/* =====================================================
   CYBERX — PREMIUM CYBORG LANDING PAGE
   Table of Contents:
   1. Variables & Reset
   2. Base Typography & Utilities
   3. Loader
   4. Cursor Glow & Scroll Progress
   5. Navbar
   6. Hero
   7. About
   8. Features
   9. Statistics
   10. Timeline
   11. Gallery
   12. Testimonials
   13. FAQ
   14. Contact
   15. Footer
   16. Animations
   17. Responsive
===================================================== */

/* =====================================================
   1. VARIABLES & RESET
===================================================== */
:root {
    /* Core palette (brief-locked) */
    --bg: #050816;
    --primary: #00F5FF;
    --secondary: #7B2FF7;
    --pink: #FF2E63;
    --glass: rgba(255, 255, 255, 0.08);

    /* Derived tones */
    --bg-deep: #030510;
    --surface: #0A0E27;
    --surface-2: #0D1330;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #E9ECFA;
    --text-muted: #8B93B8;
    --text-dim: #5C6488;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-full: linear-gradient(135deg, var(--primary), var(--secondary) 55%, var(--pink));
    --grad-text: linear-gradient(90deg, var(--primary), var(--secondary) 60%, var(--pink));

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Layout */
    --container: 1240px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }

input, textarea { font-family: inherit; }

::selection { background: var(--secondary); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--grad-primary); border-radius: 10px; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   2. BASE TYPOGRAPHY & UTILITIES
===================================================== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; }

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--primary);
    margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }

.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-sub { color: var(--text-muted); font-size: 1rem; }

section { position: relative; padding: 130px 6vw; }

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Buttons */
.btn-primary, .btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-primary);
    color: #030510;
    box-shadow: 0 0 0 rgba(0, 245, 255, 0);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.35), 0 10px 40px rgba(123, 47, 247, 0.25);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--border-strong);
    color: var(--text);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.2);
}

.btn-primary.full-width { width: 100%; justify-content: center; }

/* Ripple effect */
.ripple { position: relative; }
.ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(3); opacity: 0; }
}

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   3. LOADER
===================================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-core { display: flex; gap: 10px; }
.loader-core span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--grad-primary);
    animation: loaderBounce 1.2s ease-in-out infinite;
}
.loader-core span:nth-child(2) { animation-delay: 0.15s; }
.loader-core span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.loader-text {
    font-family: var(--font-display);
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   4. CURSOR GLOW & SCROLL PROGRESS
===================================================== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, rgba(123, 47, 247, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

@media (max-width: 900px), (hover: none) {
    .cursor-glow { display: none; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-full);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* =====================================================
   5. NAVBAR
===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    z-index: 1000;
    transition: background var(--transition), padding var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 6vw;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text);
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 34px;
}

.nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    padding: 6px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width var(--transition);
    border-radius: 2px;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { width: 100%; }

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
}
.btn-nav:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.25);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    z-index: 1002;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   6. HERO
===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 6vw 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.grid-plane {
    position: absolute;
    inset: -50% -50%;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(600px) rotateX(60deg);
    transform-origin: center bottom;
    animation: gridScroll 12s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 0 48px; }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: orbFloat 10s ease-in-out infinite;
}
.orb-cyan { width: 420px; height: 420px; background: var(--primary); top: -10%; left: -8%; }
.orb-violet { width: 480px; height: 480px; background: var(--secondary); bottom: -15%; right: -10%; animation-delay: -3s; }
.orb-pink { width: 300px; height: 300px; background: var(--pink); top: 40%; left: 45%; animation-delay: -6s; opacity: 0.2; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.08); }
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.5), transparent);
    animation: scanMove 5s linear infinite;
}
@keyframes scanMove {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 26px;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
.ai-badge i { color: var(--primary); }

.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 24px;
    color: var(--text);
}

.glitch { position: relative; display: inline-block; }

.hero-description {
    max-width: 480px;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 38px;
}

.buttons { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; }
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.meta-item i { color: var(--primary); }
.meta-item strong { color: var(--text); font-weight: 600; }
.meta-online { font-size: 0.5rem; color: #35F5A0 !important; animation: pulseDot 1.6s ease-in-out infinite; }

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
}

.orbit-ring {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}
.ring-1 { width: 340px; height: 340px; transform: translate(-50%, -50%); animation: spin 24s linear infinite; border-color: rgba(0, 245, 255, 0.15); }
.ring-2 { width: 440px; height: 440px; transform: translate(-50%, -50%); animation: spin 34s linear infinite reverse; border-color: rgba(123, 47, 247, 0.15); border-style: dashed; }
.ring-3 { width: 540px; height: 540px; transform: translate(-50%, -50%); animation: spin 44s linear infinite; border-color: rgba(255, 46, 99, 0.1); }

@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.neural-core {
    position: relative;
    width: min(340px, 60vw);
    filter: drop-shadow(0 0 35px rgba(0, 245, 255, 0.25));
    animation: coreFloat 5s ease-in-out infinite;
}
@keyframes coreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
.core-svg { width: 100%; height: auto; }
.core-node { fill: var(--primary); }
.core-pulse { animation: pulseDot 1.8s ease-in-out infinite; }
.spine-path { stroke-dasharray: 6 5; animation: dashFlow 3s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -100; } }
.particles circle { animation: particleFloat 4s ease-in-out infinite; }
.particles circle:nth-child(2) { animation-delay: -1s; }
.particles circle:nth-child(3) { animation-delay: -2s; }
.particles circle:nth-child(4) { animation-delay: -3s; }
.particles circle:nth-child(5) { animation-delay: -1.5s; }
@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-14px); opacity: 1; }
}

.tech-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: floatCard 6s ease-in-out infinite;
}
.tech-card i { font-size: 1.2rem; color: var(--primary); }
.card-label { display: block; color: var(--text-muted); font-size: 0.68rem; letter-spacing: 0.04em; }
.card-value { display: block; font-weight: 600; color: var(--text); }
.mini-bar { position: absolute; bottom: 6px; left: 18px; right: 18px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--grad-primary); border-radius: 3px; }

.card-1 { top: 8%; left: -4%; animation-delay: 0s; }
.card-2 { bottom: 22%; right: -6%; animation-delay: -2s; padding-bottom: 20px; }
.card-3 { bottom: 4%; left: 6%; animation-delay: -4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    color: var(--text-dim);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 4px; height: 8px; background: var(--primary); border-radius: 3px; animation: wheelMove 1.6s ease-in-out infinite; }
@keyframes wheelMove {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* =====================================================
   7. ABOUT
===================================================== */
.about-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.about-image { position: relative; display: flex; justify-content: center; }
.about-frame {
    width: min(320px, 100%);
    position: relative;
}
.about-svg { width: 100%; height: auto; }
.rotate-slow { animation: spin 20s linear infinite; transform-origin: center; }
.rotate-slow-rev { animation: spin 16s linear infinite reverse; transform-origin: center; }
.about-svg-text { fill: var(--text); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; }
.about-svg-sub { fill: var(--text-dim); font-family: var(--font-body); font-size: 9px; letter-spacing: 0.15em; }

.stat-badge {
    position: absolute;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.stat-badge strong { display: block; font-family: var(--font-display); color: var(--primary); font-size: 1.1rem; }
.stat-badge span { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.05em; }
.badge-top { top: 0; right: -10px; animation: floatCard 5s ease-in-out infinite; }
.badge-bottom { bottom: 6%; left: -14px; animation: floatCard 5s ease-in-out infinite -2.5s; }

.about-content h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 26px; line-height: 1.3; }

.about-card { padding: 30px 34px; margin-bottom: 28px; }
.about-card p { color: var(--text-muted); margin-bottom: 14px; }
.about-card p:last-child { margin-bottom: 0; }

.about-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.mini-feature { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--text); }
.mini-feature i {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad-primary); color: var(--bg-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem;
}

/* =====================================================
   8. FEATURES
===================================================== */
.features-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.feature-card {
    position: relative;
    padding: 38px 30px;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-10px); border-color: rgba(0, 245, 255, 0.35); }

.feature-glow {
    position: absolute;
    top: -60%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.18), transparent 70%);
    transition: opacity var(--transition);
    opacity: 0;
}
.feature-card:hover .feature-glow { opacity: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    margin-bottom: 22px;
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

.feature-index {
    position: absolute;
    bottom: 20px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
}

/* =====================================================
   9. STATISTICS
===================================================== */
.stats-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    padding: 32px 26px;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--border);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-box:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }

.stat-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.stat-box-head i:first-child { font-size: 1.3rem; color: var(--primary); }
.stat-trend { font-size: 0.72rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-trend.up { color: #35F5A0; }
.stat-trend.steady { color: var(--text-dim); }

.stat-box h3 { font-size: 2.2rem; color: var(--text); margin-bottom: 6px; }
.stat-box p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }

.stat-line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.stat-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 1.6s ease forwards;
    animation-delay: 0.3s;
}
@keyframes lineGrow { to { transform: scaleX(1); } }

/* =====================================================
   10. TIMELINE
===================================================== */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
}
.timeline-progress {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: var(--grad-primary);
    transition: height 1.2s ease;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 70px;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-card {
    display: inline-block;
    text-align: left;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    max-width: 340px;
    transition: border-color var(--transition), transform var(--transition);
}
.timeline-card:hover { border-color: rgba(0, 245, 255, 0.3); transform: translateY(-4px); }

.timeline-year { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--primary); }
.timeline-card h3 { font-size: 1.2rem; margin: 10px 0; }
.timeline-card p { color: var(--text-muted); font-size: 0.9rem; }

.dot {
    position: absolute;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(0, 245, 255, 0.08);
}
.timeline-item.left .dot { right: -10px; }
.timeline-item.right .dot { left: -10px; }
.dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulseDot 1.8s ease-in-out infinite; }

/* =====================================================
   11. GALLERY
===================================================== */
.gallery-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.12); }

/* Generated cyber-art background per item (used when no real photo is present) */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 200% 200%;
    transition: transform 0.6s ease, background-position 6s ease infinite;
}
.gallery-item:hover::before { transform: scale(1.12); }

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
}

.mesh-1::before { background-image: radial-gradient(circle at 30% 30%, rgba(0,245,255,0.35), transparent 60%), linear-gradient(135deg, #0A0E27, #050816); }
.mesh-2::before { background-image: radial-gradient(circle at 70% 30%, rgba(123,47,247,0.4), transparent 60%), linear-gradient(135deg, #0D1330, #050816); }
.mesh-3::before { background-image: radial-gradient(circle at 50% 70%, rgba(255,46,99,0.3), transparent 60%), linear-gradient(135deg, #0A0E27, #030510); }
.mesh-4::before { background-image: radial-gradient(circle at 30% 70%, rgba(0,245,255,0.3), transparent 60%), linear-gradient(135deg, #050816, #0D1330); }
.mesh-5::before { background-image: radial-gradient(circle at 70% 70%, rgba(123,47,247,0.35), transparent 60%), linear-gradient(135deg, #030510, #0A0E27); }
.mesh-6::before { background-image: radial-gradient(circle at 50% 30%, rgba(255,46,99,0.35), transparent 60%), linear-gradient(135deg, #0A0E27, #050816); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(5,8,22,0.1), rgba(5,8,22,0.85));
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon { font-size: 2rem; color: var(--primary); }
.gallery-caption { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; }

/* Always-visible caption bar so cards don't look empty without hover */
.gallery-item .gallery-caption::before { content: ''; }

/* =====================================================
   12. TESTIMONIALS
===================================================== */
.testi-wrapper {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testi-container { position: relative; flex: 1; min-height: 260px; }

.testi-card {
    position: absolute;
    inset: 0;
    padding: 42px 46px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.testi-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; }

.testi-stars { color: var(--primary); letter-spacing: 4px; margin-bottom: 18px; font-size: 1rem; }
.testi-card p { font-size: 1.05rem; color: var(--text); margin-bottom: 26px; font-style: italic; }

.testi-profile { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; color: var(--bg-deep);
    font-size: 0.85rem;
}
.testi-profile h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.testi-profile span { font-size: 0.78rem; color: var(--text-muted); }

.testi-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    flex-shrink: 0;
    transition: all var(--transition);
}
.testi-arrow:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 20px rgba(0,245,255,0.2); }

.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testi-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-strong);
    cursor: pointer;
    transition: all var(--transition);
}
.testi-dots span.active { background: var(--primary); width: 26px; border-radius: 5px; }

/* =====================================================
   13. FAQ
===================================================== */
.faq-container { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item.active { border-color: rgba(0, 245, 255, 0.3); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.98rem;
}
.faq-question span { display: flex; align-items: center; gap: 14px; }
.faq-question i.fa-circle-question { color: var(--primary); font-size: 1rem; }

.faq-toggle { transition: transform var(--transition); color: var(--primary); }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding var(--transition);
    padding: 0 28px;
}
.faq-item.active .faq-answer { max-height: 200px; padding: 0 28px 24px; }
.faq-answer p { color: var(--text-muted); font-size: 0.92rem; }

/* =====================================================
   14. CONTACT
===================================================== */
.contact-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
}

.contact-info, .contact-form { padding: 40px; }

.contact-info h3 { font-size: 1.4rem; margin-bottom: 14px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 28px; }

.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 0.92rem; }
.contact-detail i { color: var(--primary); width: 20px; }

.map-placeholder {
    position: relative;
    height: 140px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: radial-gradient(circle at center, rgba(0,245,255,0.08), transparent 70%), var(--surface);
}
.map-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.map-pin { font-size: 1.6rem; color: var(--primary); z-index: 1; animation: pulseDot 2s ease-in-out infinite; }
.map-label { z-index: 1; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); }

.social-links { display: flex; gap: 14px; }
.social-links a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    transition: all var(--transition);
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.input-group { position: relative; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    resize: vertical;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); outline: none; }

.input-group label {
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--text-dim);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--bg);
    padding: 0 4px;
}
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -9px;
    font-size: 0.72rem;
    color: var(--primary);
}

.form-status { font-size: 0.85rem; color: var(--primary); min-height: 20px; }

/* =====================================================
   15. FOOTER
===================================================== */
.footer {
    position: relative;
    padding: 80px 6vw 30px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(123, 47, 247, 0.04));
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.footer-logo span { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 16px 0 22px; max-width: 280px; }

.social-icons { display: flex; gap: 14px; }
.social-icons a {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.social-icons a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 20px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }

.footer-subscribe { display: flex; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.footer-subscribe input { flex: 1; padding: 12px 16px; background: transparent; border: none; color: var(--text); font-size: 0.85rem; }
.footer-subscribe input:focus { outline: none; }
.footer-subscribe button { width: 44px; background: var(--grad-primary); color: var(--bg-deep); display: flex; align-items: center; justify-content: center; }

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.copyright { color: var(--text-dim); font-size: 0.85rem; }
.footer-tagline { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--text-dim); }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* =====================================================
   16. ANIMATIONS (shared)
===================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================
   17. RESPONSIVE
===================================================== */
@media (max-width: 1080px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 70px; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; }
    .buttons { justify-content: center; }
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 20px; }
    .features-container { grid-template-columns: repeat(2, 1fr); }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .gallery-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .btn-nav { display: none; }
    .hamburger { display: flex; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(75vw, 320px);
        background: rgba(5, 8, 22, 0.97);
        backdrop-filter: blur(20px);
        padding: 110px 40px;
        gap: 26px;
        border-left: 1px solid var(--border);
        z-index: 1001;
        animation: slideIn 0.4s ease;
    }
    @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

    .timeline-line { left: 20px; }
    .timeline-item, .timeline-item.left, .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 50px 55px;
    }
    .timeline-item.left .dot, .timeline-item.right .dot { left: 10px; right: auto; }
    .timeline-card { max-width: 100%; }
}

@media (max-width: 640px) {
    section { padding: 90px 6vw; }
    .hero { padding-top: 120px; }
    .hero-visual { min-height: 420px; transform: scale(0.85); }
    .tech-card { font-size: 0.72rem; padding: 10px 14px; }
    .features-container, .stats-container, .gallery-container { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .testi-wrapper { flex-direction: column; }
    .testi-card { position: relative; padding: 30px 24px; }
    .testi-container { min-height: unset; }
}
