@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-panel);
}

/* ═══════ CUSTOM SCROLLBAR ═══════ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-panel);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    border: 2px solid var(--bg-panel);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* ═══════ TEXT SELECTION ═══════ */
::selection {
    background: var(--primary);
    color: #000;
}

::-moz-selection {
    background: var(--primary);
    color: #000;
}

:root {
    --bg: #050a10;
    --bg-panel: #0c1420;
    --bg-panel2: #111c2e;
    --primary: #00ff41;
    --primary-dim: rgba(0, 255, 65, .08);
    --primary-glow: rgba(0, 255, 65, .15);
    --secondary: #0ea5e9;
    --sec-dim: rgba(14, 165, 233, .1);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, .1);
    --red: #ff3e3e;
    --text: #e2e8f0;
    --text-muted: #7b8ba5;
    --border: #1a2740;
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .45s ease, color .45s ease;
}

body,
a,
button,
input,
textarea,
select,
label,
.service-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 2 L20 8 L11 11 L8 20 Z" fill="%2300ff41" fill-opacity="0.25" stroke="%2300ff41" stroke-width="1.5" stroke-linejoin="round"/></svg>') 2 2, auto !important;
}

[data-theme="light"] body,
[data-theme="light"] a,
[data-theme="light"] button,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select,
[data-theme="light"] label,
[data-theme="light"] .service-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 2 L20 8 L11 11 L8 20 Z" fill="%230284c7" fill-opacity="0.25" stroke="%230284c7" stroke-width="1.5" stroke-linejoin="round"/></svg>') 2 2, auto !important;
}

h1,
h2,
h3,
h4,
.mono {
    font-family: 'JetBrains Mono', monospace
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s, text-shadow .3s
}

/* ═══════ CANVAS ═══════ */
#matrixCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .25
}

#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .65
}

/* scanlines — subtle CRT effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, .03) 2px, rgba(0, 255, 65, .03) 4px);
    mix-blend-mode: overlay;
}

/* ═══════ HEADER ═══════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 70px;
    background: rgba(5, 10, 16, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background .4s, box-shadow .4s, border-color .4s;
    gap: 24px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

header.scrolled {
    background: rgba(5, 10, 16, .96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.logo .cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite
}

.logo .az {
    color: var(--primary);
    font-weight: 600
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

/* glitch on hover — premium cyber effect */
.logo {
    position: relative;
}

.logo:hover {
    animation: glitchShake .4s cubic-bezier(.25, .8, .25, 1);
    text-shadow:
        2px 0 var(--primary),
        -2px 0 var(--secondary);
}

.logo:hover .az {
    animation: glitchColor .4s steps(2, end);
}

@keyframes glitchShake {
    0% {
        transform: translate(0);
        filter: none;
    }

    10% {
        transform: translate(-2px, 1px) skewX(-1deg);
    }

    20% {
        transform: translate(2px, -1px) skewX(1deg);
        filter: hue-rotate(90deg);
    }

    30% {
        transform: translate(-1px, -1px);
    }

    40% {
        transform: translate(1px, 2px) skewX(-0.5deg);
        filter: none;
    }

    50% {
        transform: translate(-1px, 1px);
    }

    60% {
        transform: translate(2px, 0) skewX(0.5deg);
        filter: hue-rotate(-90deg);
    }

    70% {
        transform: translate(0, -1px);
        filter: none;
    }

    80% {
        transform: translate(-2px, 0) skewX(-0.5deg);
    }

    90% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(0);
        filter: none;
        text-shadow: none;
    }
}

@keyframes glitchColor {
    0% {
        color: var(--primary);
    }

    25% {
        color: var(--secondary);
    }

    50% {
        color: #fff;
    }

    75% {
        color: var(--red);
    }

    100% {
        color: var(--primary);
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px
}

nav a {
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
    position: relative;
    letter-spacing: .3px;
    transition: color .3s, text-shadow .3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 0 8px var(--primary-glow);
    border-radius: 1px;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow)
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1)
}

nav a.active {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s;
    border-radius: var(--radius-sm);
    letter-spacing: .5px;
    white-space: nowrap;
    line-height: 1;
    height: 38px;
}

.btn-header:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 25px var(--primary-glow), 0 0 50px rgba(0, 255, 65, .08);
}

/* ═══════ HAMBURGER ═══════ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .35s cubic-bezier(.25, .8, .25, 1);
    transform-origin: center;
}

/* Hamburger -> X animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--primary);
}

/* ═══════ HERO ═══════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 10% 80px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag .blink-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--primary-glow)
    }

    50% {
        opacity: .4;
        box-shadow: 0 0 0 6px transparent
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.12;
    margin-bottom: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 580px;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.btn-primary {
    padding: 14px 32px;
    background: var(--primary);
    color: #000;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all .35s;
    letter-spacing: .5px;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(0, 255, 65, .06);
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 65, .3);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all .35s;
    letter-spacing: .5px;
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: var(--primary-dim)
}

.hero-stats {
    display: flex;
    gap: 56px;
    margin-top: 56px;
    flex-wrap: wrap
}

.stat h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat p {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 400
}

/* terminal decoration */
.terminal-deco {
    position: absolute;
    right: 8%;
    top: 55%;
    transform: translateY(-40%);
    width: 380px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    display: none;
    opacity: .7;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, .3);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.terminal-dot--r {
    background: #ff5f57
}

.terminal-dot--y {
    background: #febc2e
}

.terminal-dot--g {
    background: #28c840
}

.terminal-bar span {
    color: var(--text-muted);
    font-size: .7rem;
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto
}

.terminal-body {
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--primary);
    line-height: 2;
}

.terminal-body .cmd {
    color: var(--text-muted)
}

.terminal-body .highlight {
    color: var(--secondary)
}

@media(min-width:1100px) {
    .terminal-deco {
        display: block
    }
}

/* ═══════ SECTIONS ═══════ */
.section {
    padding: 110px 8%;
    position: relative;
    z-index: 1
}

.section--alt {
    background: var(--bg-panel)
}

.section-header {
    margin-bottom: 64px;
    text-align: center;
}

.section-header .tag {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(0, 255, 65, .15);
    border-radius: 50px;
    background: rgba(0, 255, 65, .04);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
}

.section-header p.section-desc {
    color: var(--text-muted);
    font-size: .95rem;
    max-width: 600px;
    margin: 12px auto 0;
    font-weight: 400;
}

/* ═══════ SERVICE CARDS ═══════ */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(145deg, rgba(12, 20, 32, .95), rgba(17, 28, 46, .8));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: transform .45s cubic-bezier(.25, .8, .25, 1), border-color .45s, box-shadow .45s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    --glow-color: 0, 255, 65;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow-color), .06), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--glow-color), .35);
    box-shadow: 0 20px 50px rgba(var(--glow-color), .06), 0 0 80px rgba(var(--glow-color), .03);
}

.card:hover::before {
    transform: scaleY(1)
}

.card:hover::after {
    opacity: 1
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 28px;
    position: relative;
}

.card-icon--green {
    background: var(--primary-dim);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, .1);
}

.card-icon--red {
    background: rgba(255, 62, 62, .1);
    color: var(--red);
    box-shadow: 0 0 20px rgba(255, 62, 62, .1);
}

.card-icon--blue {
    background: var(--sec-dim);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(14, 165, 233, .1);
}

.card-icon--amber {
    background: var(--amber-dim);
    color: var(--amber);
    box-shadow: 0 0 20px rgba(245, 158, 11, .1);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: .3px;
}

.card h3.clr-blue {
    color: var(--secondary)
}

.card h3.clr-amber {
    color: var(--amber)
}

.card>p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.7;
}

.card ul {
    list-style: none;
    margin-top: 8px;
}

.card ul li {
    font-size: .86rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    padding: 4px 0;
}

.card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.red-card {
    --glow-color: 255, 62, 62;
}

.blue-card {
    --glow-color: 14, 165, 233;
}

.amber-card {
    --glow-color: 245, 158, 11;
}

.card.red-card::before {
    background: var(--red)
}

.card.red-card h3 {
    color: var(--red)
}

.card.red-card ul li::before {
    color: var(--red)
}

.card.blue-card::before {
    background: var(--secondary)
}

.card.blue-card ul li::before {
    color: var(--secondary)
}

.card.amber-card::before {
    background: var(--amber)
}

.card.amber-card ul li::before {
    color: var(--amber)
}

/* ═══════ WHY US ═══════ */
#whyus {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
@keyframes dataStreamFall {
    from { background-position: 0 -800px; }
    to { background-position: 0 0; }
}

#whyus::before,
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-panel);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" opacity="0.1"><text x="10" y="25" fill="%2300ff41" font-family="monospace" font-size="12">0 1</text><text x="50" y="65" fill="%2300ff41" font-family="monospace" font-size="12">1 0</text><text x="30" y="45" fill="%2300ff41" font-family="monospace" font-size="10">1</text></svg>');
    background-size: 80px 80px;
    box-shadow: inset 0 0 120px var(--bg);
    animation: dataStreamFall 30s linear infinite;
}

#why-heading {
    position: relative;
    display: inline-block;
    transition: text-shadow 0.4s ease, color 0.4s ease;
}
#why-heading:hover {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.4),
                 0 0 30px rgba(0, 255, 65, 0.2);
}
#why-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--primary);
}
#why-heading:hover::after {
    width: 100%;
    animation: laserScan 2s ease-in-out infinite 0.6s;
}
@keyframes laserScan {
    0% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.7); opacity: 0.6; }
    100% { transform: scaleX(1); opacity: 1; }
}

.why-grid-premium {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px; /* 2rem */
    margin-top: 50px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.why-grid-premium .card {
    flex: 0 0 calc(33.333% - 21.34px);
    max-width: calc(33.333% - 21.34px);
}

@media (max-width: 1024px) {
    .why-grid-premium .card { flex: 0 0 calc(50% - 16px); max-width: calc(50% - 16px); }
}
@media (max-width: 650px) {
    .why-grid-premium { padding: 0 16px; }
    .why-grid-premium .card { flex: 0 0 100%; max-width: 100%; min-height: 250px; }
}

/* ── GRID ── */
/* .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; width: 100%;
}
/* .grid-bot {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 668px; width: 100%;
}

/* ── BASE CARD ── */
.why-grid-premium .card {
  background: transparent; border-radius: 12px;
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 290px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0; /* Override the padding from main card */
}

.why-grid-premium .card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150%; height: 150%;
  background: conic-gradient(from 0deg, transparent 75%, var(--primary) 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: borderSpin 3s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes borderSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.why-grid-premium .card-bg-layer {
  position: absolute; inset: 1.5px; z-index: 1; background: rgba(16, 26, 40, 0.95);
  border-radius: 10px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s;
}

.why-grid-premium .card:hover {
  transform: scale(1.05) translateY(-20px);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 40px rgba(var(--glow-color, 0, 255, 102), 0.15);
}

.why-grid-premium .card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(0, 255, 102, 0.04), transparent 65%);
  opacity: 0; transition: opacity 0.5s;
}
.why-grid-premium .card:hover::after { opacity: 1; }

.why-grid-premium .card-inner { padding: 28px 22px 24px; position: relative; z-index: 4; display: flex; flex-direction: column; gap: 14px; }
.why-grid-premium .card-title {
  font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #fff;
}
.why-grid-premium .card-desc { font-size: 0.72rem; line-height: 1.6; color: var(--text-muted); transition: color 0.3s; }
.why-grid-premium .card:hover .card-desc { color: #6e94a8; }

.why-grid-premium .card-num {
  position: absolute; bottom: 14px; right: 16px; font-size: 9px; letter-spacing: 1px; 
  color: rgba(0, 255, 102, 0.12); z-index: 5; transition: color 0.3s;
}
.why-grid-premium .card:hover .card-num { color: rgba(0, 255, 102, 0.3); }

/* ORTAQ İKON STRUKTURU */
.why-grid-premium .icon-box { position: relative; width: 52px; height: 52px; z-index: 2; }
.why-grid-premium .icon-base { fill: rgba(255,255,255,0.02); stroke: rgba(255,255,255,0.15); stroke-width: 1.5; transition: opacity 0.3s; stroke-linecap: round; stroke-linejoin: round; }
.why-grid-premium .icon-anim { fill: rgba(0, 255, 102, 0.05); stroke: var(--primary); stroke-width: 1.8; opacity: 0; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(0,255,102,0.5)); }
.why-grid-premium .card:hover .icon-base { opacity: 0; }
.why-grid-premium .card:hover .icon-anim { opacity: 1; }

/* ============================================================
   CARD 1: MÜTLƏQ MÜDAFİƏ
   ============================================================ */
.bg-hex {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="69.28"><path d="M40 11.54L20 0L0 11.54V34.64L20 46.18L40 34.64V11.54Z" fill="none" stroke="rgba(0,255,102,0.1)" stroke-width="1"/><path d="M0 46.18L20 57.73L40 46.18" fill="none" stroke="rgba(0,255,102,0.1)" stroke-width="1"/><path d="M20 57.73V80.82" fill="none" stroke="rgba(0,255,102,0.1)" stroke-width="1"/></svg>');
  opacity: 0; pointer-events: none; z-index: 2; transition: opacity 0.5s;
}
.card-shield:hover .bg-hex { opacity: 1; animation: hexMove 15s linear infinite; }
@keyframes hexMove { from { transform: translate(0, 0); } to { transform: translate(-40px, -69.28px); } }

.sh-anim-path { stroke-dasharray: 250; stroke-dashoffset: 250; }
.card-shield:hover .sh-anim-path { animation: shDraw 0.6s ease-out forwards; }
@keyframes shDraw { to { stroke-dashoffset: 0; fill: rgba(0, 255, 102, 0.1); } }
.sh-check { stroke-dasharray: 40; stroke-dashoffset: 40; fill: none; stroke: var(--primary); stroke-width: 2; opacity: 0; }
.card-shield:hover .sh-check { animation: checkDraw 0.4s 0.4s ease-out forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; opacity: 1; } }


/* ============================================================
   CARD 2: SÜRƏTLİ REAKSİYA
   ============================================================ */
.bg-speed-lines { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; opacity: 0; transition: opacity 0.4s; }
.sl-line { position: absolute; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--primary), transparent); left: -60px; opacity: 0; }
.sl-1 { top: 20%; animation: speedShoot 1s infinite; }
.sl-2 { top: 50%; animation: speedShoot 1.5s infinite 0.3s; width: 100px; }
.sl-3 { top: 80%; animation: speedShoot 1.2s infinite 0.6s; width: 40px; }
.card-bolt:hover .bg-speed-lines { opacity: 1; }
@keyframes speedShoot { 0% { left: -60px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.bt-anim-path { stroke-dasharray: 180; stroke-dashoffset: 180; }
.card-bolt:hover .bt-anim-path { animation: btDraw 0.5s ease-out forwards; }
@keyframes btDraw { to { stroke-dashoffset: 0; fill: rgba(0, 255, 102, 0.15); } }


/* ============================================================
   CARD 3: TAM MƏXFİLİK (NDA)
   ============================================================ */
.lk-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.4s; z-index: 2; }
.card-lock:hover .lk-rain { opacity: 1; }
.lk-col { position: absolute; font-family: 'Share Tech Mono', monospace; font-size: 8px; color: rgba(0, 255, 102, 0.12); white-space: nowrap; writing-mode: vertical-rl; letter-spacing: 5px; animation: lkFall 2.6s linear infinite; }
.lk-col:nth-child(1) { left: 10%; animation-delay: 0s; }
.lk-col:nth-child(2) { left: 35%; animation-delay: 0.65s; color: rgba(0, 255, 102, 0.07); }
.lk-col:nth-child(3) { left: 65%; animation-delay: 1.4s; }
.lk-col:nth-child(4) { left: 85%; animation-delay: 0.3s; color: rgba(0, 255, 102, 0.06); }
@keyframes lkFall { from { top: -100%; } to { top: 200%; } }

.card-lock .icon-base { stroke-width: 2.2; }
.card-lock .icon-anim { stroke-width: 2.5; }

.lk-arc-anim { stroke-dasharray: 60; stroke-dashoffset: 60; }
.card-lock:hover .lk-arc-anim { animation: lineDraw 0.5s ease-out forwards; }
.lk-body-anim { stroke-dasharray: 120; stroke-dashoffset: 120; }
.card-lock:hover .lk-body-anim { animation: lineDraw 0.5s 0.2s ease-out forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }


/* ============================================================
   CARD 4: 7/24 MONİTORİNQ
   ============================================================ */
#c4 .card-inner { padding-bottom: 56px; flex-grow: 1; } 

.c4-radar {
  position: absolute; top: 40%; right: -40px; width: 150px; height: 150px;
  border-radius: 50%; border: 1px dashed rgba(0, 255, 102, 0.15);
  transform: translateY(-50%); z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
}
.c4-radar::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgba(0, 255, 102, 0.1);
}
.c4-radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(0,255,102,0.25) 100%);
}
.card-mon:hover .c4-radar { opacity: 1; }
.card-mon:hover .c4-radar-sweep { animation: radarSweep 2.5s linear infinite; }
@keyframes radarSweep { 100% { transform: rotate(360deg); } }

.bg-ekg-soft {
  position: absolute; bottom: 8px; left: 0; width: 200%; height: 36px; z-index: 2;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 36" preserveAspectRatio="none"><path d="M0,18 L15,18 L20,4 L30,32 L35,18 L100,18" fill="none" stroke="%2300ff66" stroke-width="1.5" stroke-linejoin="round" opacity="0.4"/></svg>');
  background-repeat: repeat-x; background-size: 100px 36px;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.card-mon:hover .bg-ekg-soft { opacity: 1; animation: ekgInfinite 3s linear infinite; }
@keyframes ekgInfinite { from { transform: translateX(0); } to { transform: translateX(-100px); } }

.ey-anim-path { stroke-dasharray: 160; stroke-dashoffset: 160; fill: none; }
.ey-iris { stroke-dasharray: 70; stroke-dashoffset: 70; fill: none; transform-origin: 26px 26px; stroke-dasharray: 4 4; }
.ey-pupil-anim { transform: scale(0); transform-origin: 26px 26px; }

.card-mon:hover .ey-anim-path { animation: lineDraw 0.6s ease-out forwards; }
.card-mon:hover .ey-iris { animation: lineDraw 0.5s 0.2s ease-out forwards, spinIris 4s linear infinite; }
.card-mon:hover .ey-pupil-anim { animation: eyPupilPop 0.4s 0.4s cubic-bezier(0.175,0.885,0.32,1.275) forwards; }
@keyframes eyPupilPop { to { transform: scale(1); fill: var(--primary); } }
@keyframes spinIris { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* ============================================================
   CARD 5: ANALİTİK HESABATLAR
   ============================================================ */
.bg-data-bars {
  position: absolute; bottom: 0; left: 0; right: 0; height: 100%; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 0 10%; opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card-chart:hover .bg-data-bars { opacity: 1; }
.db-bar { width: 10%; background: linear-gradient(to top, rgba(0, 255, 102, 0.1), transparent); border-top: 1px solid rgba(0, 255, 102, 0.3); }
.db-1 { animation: dbRise 2s infinite alternate; }
.db-2 { animation: dbRise 1.5s infinite alternate 0.5s; }
.db-3 { animation: dbRise 2.5s infinite alternate 1s; }
.db-4 { animation: dbRise 1.8s infinite alternate 0.2s; }
.db-5 { animation: dbRise 2.2s infinite alternate 0.8s; }
@keyframes dbRise { 0% { height: 10%; } 100% { height: 60%; } }

.ch-doc-anim { stroke-dasharray: 160; stroke-dashoffset: 160; fill: transparent; }
.card-chart:hover .ch-doc-anim { animation: docDraw 0.6s ease-out forwards; }
@keyframes docDraw { to { stroke-dashoffset: 0; fill: rgba(0, 255, 102, 0.1); } }

.ch-fold-anim { stroke-dasharray: 30; stroke-dashoffset: 30; fill: none !important; }
.card-chart:hover .ch-fold-anim { animation: lineDraw 0.4s 0.4s ease-out forwards; }

.ch-line-anim { stroke-dasharray: 80; stroke-dashoffset: 80; fill: none !important; stroke: var(--primary); stroke-width: 2; }
.card-chart:hover .ch-line-anim { animation: lineDraw 0.5s 0.3s ease-out forwards; }

.ch-dot { opacity: 0; fill: var(--primary); }
.card-chart:hover .ch-dot { animation: dotPop 0.3s forwards; }
.card-chart:hover .ch-dot:nth-of-type(1) { animation-delay: 0.4s; }
.card-chart:hover .ch-dot:nth-of-type(2) { animation-delay: 0.5s; }
.card-chart:hover .ch-dot:nth-of-type(3) { animation-delay: 0.6s; }
.card-chart:hover .ch-dot:nth-of-type(4) { animation-delay: 0.7s; }
@keyframes dotPop { 0%{opacity:0; transform:scale(0) translateY(-10px);} 100%{opacity:1; transform:scale(1) translateY(0);} }





/* ═══════ CTA ═══════ */
.cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 48px;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 255, 65, .04), rgba(14, 165, 233, .04));
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 65, .08), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(14, 165, 233, .06), transparent 50%);
    pointer-events: none;
}

.cta-box>* {
    position: relative;
    z-index: 1
}

.cta-box h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px
}

.cta-box p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto
}

/* ═══════ FOOTER ═══════ */
footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 60px 8% 30px;
    margin-top: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-contact p,
.footer-contact a {
    color: var(--text-muted);
    font-size: .88rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    transition: color .25s;
}

.footer-contact a:hover {
    color: var(--primary)
}

.footer-contact .wp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
    background: rgba(37, 211, 102, .1);
    color: #25d366;
    margin-left: 6px;
}

.insta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--text-muted) !important;
    transition: color .3s;
}

.insta-link svg {
    stroke: var(--text-muted);
    transition: stroke .3s
}

.insta-link:hover {
    color: var(--primary) !important
}

.insta-link:hover svg {
    stroke: var(--primary)
}

.ceo-item {
    margin-bottom: 16px
}

.ceo-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: .95rem
}

.ceo-title {
    font-size: .75rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace
}

.footer-brand p {
    color: var(--text-muted);
    font-size: .85rem;
    max-width: 300px;
    margin-top: 16px;
    font-weight: 400
}

/* ═══════ MAP SECTION ═══════ */
.map-section {
    padding: 0 8% 0;
    position: relative;
    z-index: 1;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-panel);
}

.map-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
    font-weight: 600;
    transition: background .3s;
}

.map-toggle:hover {
    background: rgba(0, 255, 65, .04)
}

.map-toggle .map-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-toggle .map-label .pin-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.map-toggle .map-label span:last-child {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 400;
}

.map-toggle .arrow {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform .4s;
    display: inline-block;
}

.map-toggle.active .arrow {
    transform: rotate(180deg)
}

.map-frame {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.25, .8, .25, 1);
    position: relative;
}

.map-frame.open {
    max-height: 500px
}

.map-frame iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

iframe#mapFrame {
    border-radius: 16px !important;
    border: 2px solid rgba(0, 255, 65, 0.3) !important;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.15) !important;
    transition: all 0.3s ease-in-out !important;
}

iframe#mapFrame:hover {
    border-color: rgba(0, 255, 65, 0.8) !important;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.35) !important;
}




.footer-bottom {
    text-align: center;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    font-size: .78rem;
    color: #475569;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .5px;
}

/* ═══════ MODAL ═══════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible
}

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    width: 520px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 255, 65, .08);
    transform: translateY(20px) scale(.97);
    transition: transform .4s;
}

/* Custom scrollbar for modal */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, .2);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, .4);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1)
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color .3s;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(0, 255, 65, .08);
}

.modal h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--primary)
}

.form-group {
    margin-bottom: 22px
}

.form-group label {
    display: block;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    color: #fff;
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius-sm);
    transition: border-color .3s, box-shadow .3s;
    outline: none;
    line-height: 1.5 !important;
    height: auto !important;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, .07);
}

.form-control::placeholder {
    color: #475569
}

/* Validation error state for inputs */
.form-control.input-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, .1);
    animation: inputShake .4s ease;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0)
    }

    20% {
        transform: translateX(-4px)
    }

    40% {
        transform: translateX(4px)
    }

    60% {
        transform: translateX(-3px)
    }

    80% {
        transform: translateX(3px)
    }
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237b8ba5'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select.form-control option {
    background: var(--bg-panel);
    color: #fff
}

/* service selector */
.svc-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.svc-chip {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .35s;
    opacity: 0;
    transform: translateY(8px);
    font-family: 'Inter', sans-serif;
}

.svc-selector:hover .svc-chip,
.svc-selector.revealed .svc-chip {
    opacity: 1;
    transform: translateY(0);
}

.svc-chip:nth-child(1) {
    transition-delay: .03s
}

.svc-chip:nth-child(2) {
    transition-delay: .06s
}

.svc-chip:nth-child(3) {
    transition-delay: .09s
}

.svc-chip:nth-child(4) {
    transition-delay: .12s
}

.svc-chip:nth-child(5) {
    transition-delay: .15s
}

.svc-chip:nth-child(6) {
    transition-delay: .18s
}

.svc-chip input {
    display: none
}

.svc-chip.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim)
}

/* Service selector error outline */
.svc-selector.svc-error .svc-chip {
    border-color: rgba(255, 62, 62, .4);
}

.svc-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--text-muted);
    padding: 12px 0 2px;
    text-align: center;
    transition: .3s;
}

.svc-selector:hover~.svc-hint,
.svc-selector.revealed~.svc-hint {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.other-field {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease
}

.other-field.open {
    max-height: 120px;
    margin-top: 12px
}

.other-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 60px;
    outline: none;
    transition: border-color .3s;
}

.other-field textarea:focus {
    border-color: var(--primary)
}

.other-field textarea::placeholder {
    color: #475569
}

.form-error {
    color: var(--red);
    font-size: .74rem;
    margin-top: 6px;
    display: none;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeInError .3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all .35s;
    letter-spacing: .5px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 25px var(--primary-glow)
}

.btn-submit.sending {
    background: rgba(255, 255, 255, .1);
    color: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.success {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    pointer-events: none;
}

.btn-submit.error {
    background: rgba(255, 62, 62, .15);
    color: var(--red);
    border-color: var(--red);
}

/* ═══════ SCROLL REVEAL ═══════ */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .7s cubic-bezier(.25, .8, .25, 1), transform .7s cubic-bezier(.25, .8, .25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ═══════ CYBER PRELOADER ═══════ */
#cyber-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

#cyber-preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Radar ring animation */
.preloader-rings {
    position: relative;
    width: 120px;
    height: 120px;
}

.preloader-rings .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.preloader-rings .ring:nth-child(1) {
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: ringSpin 1.2s linear infinite;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.preloader-rings .ring:nth-child(2) {
    inset: 12px;
    border-bottom-color: var(--secondary);
    border-left-color: var(--secondary);
    animation: ringSpin 1.6s linear infinite reverse;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

.preloader-rings .ring:nth-child(3) {
    inset: 24px;
    border-top-color: var(--primary);
    border-left-color: rgba(0, 255, 65, 0.3);
    animation: ringSpin 2s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.preloader-rings .ring-core {
    position: absolute;
    inset: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.25) 0%, transparent 70%);
    animation: corePulse 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-svg-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 12px var(--primary-glow));
    overflow: visible;
}

.preloader-svg-logo .cy-shield {
    stroke: var(--primary);
    stroke-dasharray: 240;
    stroke-dashoffset: 0;
    animation: drawCyberShield 2.5s ease-in-out infinite alternate;
}

.preloader-svg-logo .cy-lock-body,
.preloader-svg-logo .cy-lock-top {
    stroke: #fff;
    animation: pulseLock 2s ease infinite alternate;
}

.preloader-svg-logo .cy-lock-hole {
    fill: var(--secondary);
    animation: pulseLock 2s ease infinite alternate;
}

.preloader-svg-logo .cy-circuit {
    stroke: var(--secondary);
    stroke-dasharray: 20;
    animation: dataFlow 1.5s linear infinite;
}

@keyframes drawCyberShield {
    0% {
        stroke-dashoffset: 240;
        opacity: 0.5;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes pulseLock {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
        opacity: 0.7;
    }

    100% {
        filter: drop-shadow(0 0 8px #fff);
        opacity: 1;
    }
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 20;
    }

    100% {
        stroke-dashoffset: -20;
    }
}

/* Scan line sweeping across preloader */
#cyber-preloader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 255, 65, 0.3);
    animation: scanLine 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes ringSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes corePulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.terminal-loader {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    text-align: left;
    position: relative;
    z-index: 2;
}

.terminal-loader p {
    opacity: 0;
    margin-bottom: 8px;
    animation: terminalFadeIn 0.5s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-loader p::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    flex-shrink: 0;
    animation: dotPulse 1s ease-in-out infinite;
}

.terminal-loader p:nth-child(1) {
    animation-delay: 0.2s;
}

.terminal-loader p:nth-child(2) {
    animation-delay: 0.6s;
}

.terminal-loader p:nth-child(3) {
    animation-delay: 1s;
    color: #fff;
    text-shadow: 0 0 15px var(--primary);
}

.terminal-loader p:nth-child(3)::before {
    background: #fff;
    box-shadow: 0 0 8px #fff;
}

@keyframes terminalFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ═══════ TYPEWRITER CURSOR ═══════ */
#typewriter-text {
    min-height: 1.2em;
}

#typewriter-text::after {
    content: '_';
    color: var(--primary);
    font-weight: 700;
    animation: twBlink 0.7s step-end infinite;
}

@keyframes twBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ═══════ TOAST ═══════ */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: rgba(5, 10, 16, 0.95);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.15), 0 0 60px rgba(0, 255, 65, 0.05);
    animation: toastSlideIn 0.5s cubic-bezier(.25, .8, .25, 1) forwards;
    pointer-events: auto;
    max-width: 400px;
}

.toast-notification.toast-out {
    animation: toastSlideOut 0.4s cubic-bezier(.25, .8, .25, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ═══════ THEME TOGGLE ═══════ */
.theme-toggle {
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-panel2);
    border: 1px solid var(--primary);
    position: relative;
    cursor: pointer;
    transition: all .4s ease;
    box-shadow: 0 0 12px var(--primary-glow), inset 0 0 6px rgba(0, 0, 0, .3);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 8px rgba(0, 0, 0, .2);
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: .9rem;
    line-height: 1;
    transition: opacity .3s, color .3s, text-shadow .3s, transform .4s;
    pointer-events: none;
    z-index: 1;
}

.toggle-sun {
    right: 5px;
    opacity: .5;
    color: #fbbf24;
}

.toggle-moon {
    left: 6px;
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary-glow);
    filter: drop-shadow(0 0 5px var(--primary));
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform .45s cubic-bezier(.68, -.55, .265, 1.55), background .3s, box-shadow .3s;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-glow);
    z-index: 2;
}

[data-theme="light"] .toggle-thumb {
    transform: translateX(24px);
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, .5), 0 0 20px rgba(245, 158, 11, .2);
}

[data-theme="light"] .toggle-sun {
    opacity: 1;
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, .6), 0 0 16px rgba(245, 158, 11, .3);
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, .5));
}

[data-theme="light"] .toggle-moon {
    opacity: 1;
    color: #0f172a;
    text-shadow: none;
    filter: drop-shadow(0 0 3px rgba(15, 23, 42, 0.3));
}

/* ═══════ LANGUAGE SWITCHER ═══════ */
.lang-switcher {
    position: relative;
    z-index: 120;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(0, 255, 65, .04);
    border: 1px solid rgba(0, 255, 65, .25);
    border-radius: 10px;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s cubic-bezier(.25, .8, .25, 1);
    letter-spacing: .5px;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}

.lang-btn:hover {
    background: rgba(0, 255, 65, .1);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow), 0 0 30px rgba(0, 255, 65, .06);
    transform: translateY(-1px);
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-globe {
    font-size: .8rem;
    opacity: .85;
    transition: transform .3s;
}

.lang-btn:hover .lang-globe {
    transform: rotate(20deg);
}

.lang-arrow {
    font-size: .55rem;
    transition: transform .3s;
    opacity: .6;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 6px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.96);
    transition: all .25s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), 0 0 20px var(--primary-glow);
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, .2);
    border-radius: 2px;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all .2s;
    letter-spacing: .3px;
}

.lang-option:hover {
    background: var(--primary-dim);
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    background: rgba(0, 255, 65, .06);
    position: relative;
}

.lang-option.active::before {
    content: '>';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .7rem;
    color: var(--primary);
    opacity: .6;
}

/* ═══════ SERVICE DETAIL MODAL ═══════ */
.service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
    padding: 20px;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal {
    --modal-theme-rgb: 0, 255, 65;
    --modal-theme-hex: var(--primary);
    background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-panel2) 100%);
    border: 1px solid var(--modal-theme-hex);
    border-radius: 24px;
    padding: 44px 40px;
    width: 620px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 60px rgba(var(--modal-theme-rgb), .1), 0 0 120px rgba(var(--modal-theme-rgb), .03);
    transform: translateY(30px) scale(.94);
    transition: transform .45s cubic-bezier(.25, .8, .25, 1), border-color 0.4s, box-shadow 0.4s;
}

.service-modal.theme-red {
    --modal-theme-rgb: 255, 62, 62;
    --modal-theme-hex: var(--red);
}

.service-modal.theme-blue {
    --modal-theme-rgb: 14, 165, 233;
    --modal-theme-hex: var(--secondary);
}

.service-modal.theme-amber {
    --modal-theme-rgb: 245, 158, 11;
    --modal-theme-hex: var(--amber);
}

.service-modal-overlay.active .service-modal {
    transform: translateY(0) scale(1);
}

.service-modal::-webkit-scrollbar {
    width: 5px;
}

.service-modal::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, .2);
    border-radius: 3px;
}

.service-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all .3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    line-height: 1;
}

.service-modal-close:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-dim);
    box-shadow: 0 0 12px var(--primary-glow);
}

.service-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.service-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(var(--modal-theme-rgb), .08);
    border: 1px solid rgba(var(--modal-theme-rgb), .15);
    transition: background 0.4s, border-color 0.4s;
}

.service-modal h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--modal-theme-hex);
    margin: 0;
    line-height: 1.3;
    transition: color 0.4s;
}

.service-modal-desc {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.75;
    margin-bottom: 28px;
    padding-left: 16px;
    border-left: 2px solid var(--modal-theme-hex);
    transition: border-color 0.4s;
}

.service-modal-features {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.svc-feature-item {
    background: rgba(var(--modal-theme-rgb), .03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color .3s, background 0.3s;
}

.svc-feature-item:hover {
    border-color: rgba(var(--modal-theme-rgb), .35);
}

.svc-feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.svc-feature-header h5 {
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    font-weight: 600;
    color: var(--modal-theme-hex);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s;
}

.svc-feature-header h5::before {
    content: '❯';
    font-size: .65rem;
    color: var(--modal-theme-hex);
    opacity: 0.8;
    transition: transform 0.3s;
}

.svc-feature-item.open .svc-feature-header h5::before {
    transform: rotate(90deg);
}

.svc-feature-arrow {
    font-size: .65rem;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.4s;
}

.svc-feature-item.open .svc-feature-arrow {
    transform: rotate(180deg);
    color: var(--modal-theme-hex);
}

.svc-feature-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
}

.svc-feature-body-inner {
    overflow: hidden;
}

.svc-feature-item.open .svc-feature-body {
    grid-template-rows: 1fr;
    margin-top: 12px;
}

.svc-feature-body p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--modal-theme-rgb), 0.3);
}

.service-modal-tools-section {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.tools-heading {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    letter-spacing: .5px;
}

.service-modal-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-item {
    background: rgba(var(--modal-theme-rgb), .02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color .3s;
}

.tool-item:hover {
    border-color: rgba(var(--modal-theme-rgb), .25);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.tool-badge {
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(var(--modal-theme-rgb), .08);
    border: 1px solid rgba(var(--modal-theme-rgb), .12);
    color: var(--modal-theme-hex);
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    font-weight: 500;
    transition: color 0.4s, background 0.4s, border-color 0.4s;
}

.tool-arrow {
    font-size: .65rem;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.4s;
}

.tool-item.open .tool-arrow {
    transform: rotate(180deg);
    color: var(--modal-theme-hex);
}

.tool-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
}

.tool-body-inner {
    overflow: hidden;
}

.tool-item.open .tool-body {
    grid-template-rows: 1fr;
    margin-top: 10px;
}

.tool-body p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
    text-align: justify;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--modal-theme-rgb), 0.3);
}

/* ═══════ LIGHT THEME ═══════ */
[data-theme="light"] {
    --bg: #f8fafc;
    --bg-panel: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --primary: #0284c7;
    --primary-dim: rgba(2, 132, 199, .08);
    --primary-glow: rgba(2, 132, 199, .18);
    --secondary: #4f46e5;
    --sec-dim: rgba(79, 70, 229, .1);
    --amber: #d97706;
    --amber-dim: rgba(217, 119, 6, .1);
    --red: #dc2626;
}

[data-theme="light"] #matrixCanvas {
    opacity: .7;
}

[data-theme="light"] #particleCanvas {
    opacity: .55;
}

[data-theme="light"] body::after {
    opacity: 0;
}

/* Soft gradients for light mode, emphasizing matrix rain */
[data-theme="light"] body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.08), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.08), transparent 45%);
    background-attachment: fixed;
}

[data-theme="light"] header {
    background: rgba(226, 232, 240, .92);
    border-bottom-color: #cbd5e1;
}

[data-theme="light"] header.scrolled {
    background: rgba(226, 232, 240, .97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

[data-theme="light"] .logo {
    color: #0f172a;
}

[data-theme="light"] .logo .cursor {
    color: var(--primary);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-submit,
[data-theme="light"] .btn-header:hover,
[data-theme="light"] .cta-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .card {
    background: linear-gradient(145deg, rgba(248, 250, 252, .95), rgba(241, 245, 249, .9));
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04), 0 1px 4px rgba(15, 23, 42, .02);
}

[data-theme="light"] .card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .08), 0 4px 8px rgba(15, 23, 42, .04);
}

[data-theme="light"] .card.red-card:hover {
    border-color: rgba(239, 68, 68, .4);
    box-shadow: 0 20px 40px rgba(239, 68, 68, .08), 0 4px 8px rgba(239, 68, 68, .04);
}

[data-theme="light"] .card.blue-card:hover {
    border-color: rgba(59, 130, 246, .4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, .08), 0 4px 8px rgba(59, 130, 246, .04);
}

[data-theme="light"] .card.amber-card:hover {
    border-color: rgba(245, 158, 11, .4);
    box-shadow: 0 20px 40px rgba(245, 158, 11, .08), 0 4px 8px rgba(245, 158, 11, .04);
}

[data-theme="light"] .card.red-card::before {
    background: #ef4444;
}

[data-theme="light"] .card.blue-card::before {
    background: #3b82f6;
}

[data-theme="light"] .card.amber-card::before {
    background: #f59e0b;
}

[data-theme="light"] .card h3,
[data-theme="light"] .section-header h2,
[data-theme="light"] .cta-box h3,
[data-theme="light"] .footer-col h4,
[data-theme="light"] .why-item h4,
[data-theme="light"] .ceo-name {
    color: #0f172a;
}

[data-theme="light"] .why-item {
    background: rgba(248, 250, 252, .9);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .why-item:hover {
    border-color: rgba(14, 165, 233, .4);
    box-shadow: 0 8px 24px rgba(14, 165, 233, .08);
}

[data-theme="light"] .svc-feature-item {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .svc-feature-item:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .terminal-deco {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

[data-theme="light"] .terminal-bar {
    background: rgba(0, 0, 0, .06);
}

[data-theme="light"] .modal {
    background: #e2e8f0;
}

[data-theme="light"] .form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

[data-theme="light"] .form-control::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .service-modal {
    background: linear-gradient(160deg, #e2e8f0 0%, #f0f4f8 100%);
}

[data-theme="light"] .lang-dropdown {
    background: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 0 12px var(--primary-glow);
}

[data-theme="light"] #cyber-preloader {
    background: var(--bg);
}

[data-theme="light"] .terminal-loader p {
    color: #0ea5e9;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

[data-theme="light"] .terminal-loader p:nth-child(3) {
    color: #059669;
    text-shadow: 0 0 12px rgba(5, 150, 105, 0.3);
}

[data-theme="light"] .terminal-loader p:nth-child(3)::before {
    background: #059669;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
}

[data-theme="light"] .preloader-svg-logo {
    filter: drop-shadow(0 0 6px rgba(15, 23, 42, 0.2));
}

[data-theme="light"] .preloader-svg-logo .cy-shield {
    stroke: #0f172a;
    /* Slate 900 for shield */
}

[data-theme="light"] .preloader-svg-logo .cy-lock-body,
[data-theme="light"] .preloader-svg-logo .cy-lock-top {
    stroke: #059669;
    /* Emerald green lock */
}

[data-theme="light"] .preloader-svg-logo .cy-lock-hole {
    fill: #e11d48;
    /* Crimson red node */
}

[data-theme="light"] .preloader-svg-logo .cy-circuit {
    stroke: #0ea5e9;
    /* Sky blue circuits */
}

/* Clean white technical tracking lines for light mode preloader */
[data-theme="light"] #cyber-preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.45) 2px, rgba(255, 255, 255, 0.45) 3px);
    z-index: 10;
}

[data-theme="light"] .svc-chip {
    background: rgba(0, 0, 0, .04);
}

[data-theme="light"] .cta-box {
    background: linear-gradient(135deg, rgba(5, 150, 105, .06), rgba(3, 105, 161, .06));
}

[data-theme="light"] footer {
    background: #e2e8f0;
    border-top-color: #cbd5e1;
}

[data-theme="light"] .map-container {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

[data-theme="light"] .section--alt {
    background: rgba(226, 232, 240, .6);
}

[data-theme="light"] .toast-notification {
    background: rgba(241, 245, 249, .96);
    color: var(--primary);
}

[data-theme="light"] .theme-toggle {
    background: #cbd5e1;
    border-color: #94a3b8;
    box-shadow: 0 0 8px rgba(0, 0, 0, .08);
}

[data-theme="light"] iframe#mapFrame {
    filter: none !important;
    border-color: rgba(5, 150, 105, 0.3) !important;
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.1) !important;
}

/* Card cursor on service cards */
.card[data-service] {
    cursor: pointer;
}

/* ═══════ RESPONSIVE — TABLETS ═══════ */
@media(max-width:1024px) {
    .hero {
        padding: 100px 6% 60px;
    }

    .section {
        padding: 80px 6%;
    }

    .grid-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ═══════ RESPONSIVE — MOBILE ═══════ */
@media(max-width:768px) {
    header {
        padding: 0 16px;
        height: 60px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-right {
        gap: 6px;
        /* Maximized space saving to prevent clipping */
    }

    .btn-header {
        padding: 6px 10px;
        font-size: .65rem;
        letter-spacing: 0;
        height: 32px;
    }

    /* Mobile nav overlay */
    /* Mobile nav overlay - 100dvh Centered Layout */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh; /* Tam ekran zəmanəti */
        background: rgba(0, 0, 0, 0.88); /* Minimal boğmayan fon */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 105;
        display: flex;
        align-items: center; /* Tam mərkəz (şaquli) */
        justify-content: center; /* Tam mərkəz (üfüqi) */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.25, 1, 0.25, 1), visibility 0.4s;
    }

    [data-theme="light"] nav {
        background: rgba(248, 250, 252, 0.88);
    }

    nav.mobile-open {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        max-width: 320px;
        max-height: calc(100dvh - 100px); /* Skroll limiti yalnız menyu daxilində */
        overflow-y: auto;
        padding: 20px 0;
    }
    
    /* Scrollbar for ul on mobile */
    nav ul::-webkit-scrollbar {
        width: 2px;
    }
    nav ul::-webkit-scrollbar-thumb {
        background: var(--primary);
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border: none;
    }

    nav ul li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 1.15rem;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 500;
        color: var(--text);
        letter-spacing: 1px;
        text-transform: uppercase;
        position: relative;
        background: transparent;
        border: none; /* Kobud qutuları atdıq */
        transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    nav ul li a::before {
        content: '/>';
        position: absolute;
        left: -10px;
        opacity: 0;
        font-size: 0.9rem;
        color: var(--primary);
        transition: all 0.3s ease;
        transform: translateX(-10px);
    }

    nav ul li a:hover, nav ul li a.active {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary-glow);
        transform: translateX(8px); /* Yüngül slayd irəliyə */
        letter-spacing: 2px;
        background: transparent;
    }

    nav ul li a:hover::before, nav ul li a.active::before {
        opacity: 1;
        transform: translateX(0); /* Display bullet marker cleanly left */
    }

    /* Masterpiece Cyber Hamburger - Fits perfectly, Lasers & White Codes */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        width: 30px; /* Ekrana tam sığması üçün daraldıldı */
        height: 34px;
        gap: 5px; /* Daha kompakt və xaker tərzində boşluqlar */
        background: transparent;
        border: none;
        outline: none;
        box-shadow: none;
        padding: 0;
        cursor: pointer;
    }

    .hamburger:hover, .hamburger.active {
        background: transparent;
    }

    /* Kiber xəttlər üçün konteyner */
    .hamburger span {
        width: 30px; 
        height: 7px; 
        background: transparent;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
    }

    /* Əsas Menyu Xətləri: Bir az daha dolğun lazer kimi */
    .hamburger span::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        height: 2px; /* Çox azca qalınlaşdırıldı */
        background: var(--primary); 
        box-shadow: 0 0 6px var(--primary-glow);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Solid xəttin düz mərkəzindən (üstündən) axan radiativ matrix məlumat axını */
    .hamburger span::before {
        content: '1 0 1  0 1 1  0 1  0 0'; 
        position: absolute;
        left: 0;
        top: 50%; /* Tam mərkəz (şaquli) */
        line-height: 0; /* Boşluq payını sildim ki tam dəqiq otursun */
        font-family: 'JetBrains Mono', monospace;
        font-size: 7.5px; 
        font-weight: 800; 
        letter-spacing: 3px;
        color: #fff; 
        text-shadow: 0 0 6px #fff, 0 0 10px var(--primary-glow); 
        white-space: nowrap;
        z-index: 2;
    }

    /* Yavaş, axıcı kiber animasiyalar */
    .hamburger span:nth-child(1)::before { animation: cyberStream 6s infinite linear; }
    .hamburger span:nth-child(2)::before { content: '0 1 1  0 0 1  1  0 1'; animation: cyberStream 8s infinite linear reverse; }
    .hamburger span:nth-child(3)::before { content: '1 1  0 1 0  0 1  1'; animation: cyberStream 7s infinite linear; }

    @keyframes cyberStream {
        0% { transform: translateY(-50%) translateX(100%); opacity: 0; }
        15% { opacity: 1; text-shadow: 0 0 6px var(--primary-glow); color: var(--primary); }
        50% { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 8px var(--primary-glow); color: #fff; }
        85% { opacity: 1; text-shadow: 0 0 6px var(--primary-glow); color: var(--primary); }
        100% { transform: translateY(-50%) translateX(-100%); opacity: 0; }
    }

    /* Active -> Çox incə, ülgüc kimi kəsici X */
    .hamburger.active span {
        background: transparent;
    }
    
    .hamburger.active span::after {
        height: 1px; /* Çox incə, sapnazik X xətti */
        background: var(--primary); 
        box-shadow: 0 0 2px var(--primary-glow); /* Qombulluq verən bütün kölgələr yığışdırıldı */
    }

    .hamburger.active span::before {
        opacity: 0; 
        animation: none; 
    }

    /* Smooth Transition to X (7px span + 5px gap = 12px tam center məsafəsi) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(30px); 
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

    /* Hero mobile */
    .hero {
        padding: 90px 5% 50px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: .92rem;
        margin-bottom: 28px;
        padding-left: 14px;
    }

    .hero-btns {
        flex-direction: row;
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-ghost {
        width: auto;
        text-align: center;
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 30px; /* Elegant oval kənarlar */
        letter-spacing: 0.5px;
        position: relative;
        flex: 1;
        min-width: 140px;
        clip-path: none;
        transition: all 0.35s ease;
    }

    .hero-btns .btn-primary {
        box-shadow: 0 4px 15px rgba(0, 255, 65, 0.25), inset 0 0 8px rgba(0, 255, 65, 0.1);
        border: 1px solid rgba(0, 255, 65, 0.5);
    }

    .hero-btns .btn-primary:active {
        box-shadow: 0 4px 25px rgba(0, 255, 65, 0.4), inset 0 0 12px rgba(0, 255, 65, 0.2);
        transform: scale(0.96);
    }

    .hero-btns .btn-ghost {
        background: rgba(0, 255, 65, 0.04);
        border: 1px solid rgba(0, 255, 65, 0.35);
        box-shadow: 0 4px 15px rgba(0, 255, 65, 0.05);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hero-btns .btn-ghost:active {
        border-color: rgba(0, 255, 65, 0.8);
        background: rgba(0, 255, 65, 0.12);
        box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
        transform: scale(0.96);
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-top: 36px;
        padding: 14px 6px;
        background: var(--bg-panel);
        border: 1px solid var(--border);
        border-radius: 6px;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .hero-stats .stat {
        position: relative;
        text-align: center;
        padding: 0 4px;
    }

    .hero-stats .stat:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -3px;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--border);
    }

    .stat h3 {
        font-size: 1.15rem;
        margin-bottom: 3px;
    }

    .stat p {
        font-size: 0.65rem;
        line-height: 1.25;
        opacity: 0.9;
    }

    /* Sections mobile */
    .section {
        padding: 60px 5%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .section-header .tag {
        font-size: .72rem;
        padding: 5px 14px;
    }

    /* Cards mobile */
    .grid-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .card:hover {
        transform: none;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
        font-size: 1.3rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card>p {
        font-size: .85rem;
    }

    .card ul li {
        font-size: .8rem;
        gap: 8px;
    }

    /* Why grid mobile */
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .why-item {
        padding: 24px 16px;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .why-item h4 {
        font-size: .82rem;
    }

    .why-item p {
        font-size: .74rem;
    }

    /* CTA mobile */
    .cta-box {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .cta-box h3 {
        font-size: 1.1rem;
    }

    .cta-box p {
        font-size: .85rem;
    }

    /* Footer mobile */
    footer {
        padding: 40px 5% 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Map mobile */
    .map-section {
        padding: 0 5%;
    }

    .map-toggle {
        padding: 16px 18px;
        font-size: .78rem;
    }

    .map-toggle .map-label span:last-child {
        font-size: .7rem;
    }

    .map-frame.open {
        max-height: 350px;
    }

    .map-frame iframe {
        height: 300px;
    }

    /* Modal mobile */
    .modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px;
        padding: 24px 16px;
        transform: translateY(20px);
        border-bottom: 1px solid var(--primary);
        box-sizing: border-box;
    }

    .modal-overlay.active .modal {
        transform: translateY(0);
    }

    .modal h2 {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: .85rem;
        height: 45px;
    }

    #otherTextarea {
        min-height: 60px;
        padding: 10px 14px;
        font-size: .85rem;
    }

    .svc-chip {
        padding: 8px 12px;
        font-size: .75rem;
        /* Always visible on mobile */
        opacity: 1;
        transform: translateY(0);
    }

    .svc-hint {
        display: none;
    }

    .btn-submit {
        padding: 12px 10px;
        font-size: .85rem;
        margin-top: 4px;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.4;
        border-radius: 8px;
    }

    /* Optimized mobile lang switcher to icon-only */
    .lang-code,
    .lang-arrow {
        display: none;
    }

    .lang-btn {
        padding: 6px;
        width: 32px;
        height: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }

    .lang-dropdown {
        min-width: 180px;
    }

    .theme-toggle {
        width: 46px;
        height: 24px;
    }

    .toggle-thumb {
        width: 18px;
        height: 18px;
        top: 2px;
        left: 2px;
    }

    [data-theme="light"] .toggle-thumb {
        transform: translateX(22px);
    }

    .toggle-moon {
        left: 5px;
        font-size: .75rem;
    }

    .toggle-sun {
        right: 5px;
        font-size: .75rem;
    }

    .service-modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .service-modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px;
        padding: 24px 16px;
        transform: translateY(20px);
    }

    .service-modal-overlay.active .service-modal {
        transform: translateY(0);
    }

    .service-modal h2 {
        font-size: 1.05rem;
    }

    .service-modal-icon {
        width: 40px;
        height: 40px;
    }
}

/* ═══════ RESPONSIVE — SMALL PHONES ═══════ */
@media(max-width:400px) {
    header {
        padding: 0 18px;
    }

    .logo {
        font-size: .95rem;
    }

    .nav-right {
        gap: 8px;
        /* Extremely snug for small phones */
    }

    .btn-header {
        padding: 6px 10px;
        font-size: .65rem;
        letter-spacing: -0.3px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: .65rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: .84rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════ FOCUS VISIBLE ═══════ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ═══════ WHY US LIGHT MODE OVERRIDES ═══════ */
[data-theme="light"] .card-bg-layer {
    background: #f8fafc;
}
[data-theme="light"] .why-grid-premium .card {
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .why-grid-premium .card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08), 0 0 20px rgba(14, 165, 233, 0.1);
}
[data-theme="light"] .why-grid-premium .card::before {
    background: conic-gradient(from 0deg, transparent 75%, #0ea5e9 100%);
}
[data-theme="light"] .why-grid-premium .card-title {
    color: #0f172a;
}
[data-theme="light"] .why-grid-premium .card-desc {
    color: var(--text-muted);
}
[data-theme="light"] .why-grid-premium .card:hover .card-desc {
    color: #475569;
}
[data-theme="light"] .why-grid-premium .icon-base {
    stroke: rgba(15, 23, 42, 0.2);
}
[data-theme="light"] .why-grid-premium .card:hover .icon-base {
    opacity: 0;
}
[data-theme="light"] #whyus::before,
[data-theme="light"] footer::before {
    background-color: var(--bg-panel);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" opacity="0.15"><text x="10" y="25" fill="%230284c7" font-family="monospace" font-size="12">0 1</text><text x="50" y="65" fill="%230284c7" font-family="monospace" font-size="12">1 0</text><text x="30" y="45" fill="%230284c7" font-family="monospace" font-size="10">1</text></svg>');
    box-shadow: inset 0 0 120px var(--bg);
}

[data-theme="light"] .c4-radar {
    border: 1px dashed rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .c4-radar::before {
    border: 1px solid rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .c4-radar-sweep {
    background: conic-gradient(from 0deg, transparent 70%, rgba(2,132,199,0.15) 100%);
}
[data-theme="light"] .bg-ekg-soft {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 36" preserveAspectRatio="none"><path d="M0,18 L15,18 L20,4 L30,32 L35,18 L100,18" fill="none" stroke="%230284c7" stroke-width="1.5" stroke-linejoin="round" opacity="0.4"/></svg>');
}
[data-theme="light"] .icon-anim, 
[data-theme="light"] .card-lock .icon-anim {
    stroke: #0284c7;
}
[data-theme="light"] .ey-iris {
    stroke: #0284c7;
}