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

:root {
    --bg-deep: #05050f;
    --bg-dark: #0a0a1a;
    --neon-pink: #ff2d95;
    --neon-pink-dim: rgba(255, 45, 149, 0.12);
    --neon-cyan: #00fff5;
    --neon-cyan-dim: rgba(0, 255, 245, 0.10);
    --neon-blue: #4d7cff;
    --neon-blue-dim: rgba(77, 124, 255, 0.10);
    --neon-magenta: #ff00ff;
    --neon-yellow: #ffe600;
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-glow: rgba(255, 45, 149, 0.05);
    --text-primary: #e0e6ff;
    --text-secondary: rgba(224, 230, 255, 0.65);
    --text-muted: rgba(224, 230, 255, 0.50);
    --font-sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

html { scroll-behavior: auto; }
body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── GLASS ── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}
.glass-glow {
    box-shadow: 0 0 30px var(--glass-glow), inset 0 1px 0 rgba(255,255,255,0.03);
}
.glass-glow-cyan {
    box-shadow: 0 0 30px rgba(0, 255, 245, 0.04);
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.4s ease;
}
nav.scrolled {
    background: rgba(5, 5, 15, 0.92);
    border-bottom: 1px solid rgba(255, 45, 149, 0.1);
    padding: 0.8rem 5%;
}
.logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 3px;
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 45, 149, 0.5), 0 0 30px rgba(255, 45, 149, 0.2);
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 6px var(--neon-pink);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--neon-pink); text-shadow: 0 0 8px rgba(255, 45, 149, 0.4); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    background: transparent;
    color: var(--neon-cyan) !important;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 245, 0.15), inset 0 0 8px rgba(0, 255, 245, 0.05);
    transition: all 0.3s ease;
}
.nav-cta:hover {
    background: rgba(0, 255, 245, 0.08);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.3), inset 0 0 12px rgba(0, 255, 245, 0.1);
    transform: translateY(-2px);
}
.nav-cta::after { display: none !important; }

.hamburger {
    display: none;
    background: none; border: none;
    cursor: pointer; padding: 0.75rem; z-index: 1001;
    flex-direction: column; gap: 5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--neon-pink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 4px rgba(255, 45, 149, 0.5);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── SCROLL PROGRESS ── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px rgba(255, 45, 149, 0.3);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 3; }
section[id] { scroll-margin-top: 80px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 245, 0.3);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.section-title .gradient {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 45, 149, 0.3));
}

/* ── FOOTER ── */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 45, 149, 0.08);
    position: relative;
    z-index: 2;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.4);
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--neon-cyan); }
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── CYBER CONTROLS BUTTON ── */
#cyberControlsToggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(5, 5, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 45, 149, 0.25);
    border-radius: 8px;
    color: rgba(255, 45, 149, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 45, 149, 0.08), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: cyberPulse 3s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
}
#cyberControlsToggle:hover {
    border-color: rgba(255, 45, 149, 0.6);
    color: #ff2d95;
    box-shadow: 0 0 25px rgba(255, 45, 149, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-2px);
    animation: none;
}
#cyberControlsToggle.active {
    border-color: #00fff5;
    color: #00fff5;
    box-shadow: 0 0 25px rgba(0, 255, 245, 0.2), 0 0 8px #00fff5;
}
#cyberControlsToggle .cyber-icon {
    font-size: 1rem;
    line-height: 1;
}
#cyberControlsToggle .cyber-label {
    font-weight: 600;
}
#cyberControlsToggle .cyber-key {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
@keyframes cyberPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 45, 149, 0.08), inset 0 1px 0 rgba(255,255,255,0.04); }
    50% { box-shadow: 0 0 20px rgba(255, 45, 149, 0.15), 0 0 40px rgba(255, 45, 149, 0.04), inset 0 1px 0 rgba(255,255,255,0.04); }
}

/* ── KEYBOARD FOCUS ── */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}
.nav-links a:focus-visible {
    outline-offset: 4px;
}
.hamburger:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #rainCanvas,
    #particleCanvas,
    #gridCanvas,
    .neon-bloom,
    .scanlines {
        display: none !important;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; max-width: 320px;
        height: 100vh;
        background: rgba(5, 5, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex !important;
        z-index: 1000;
        border-left: 1px solid rgba(255, 45, 149, 0.1);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 0.9rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
}
