@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=Outfit:wght@200;300;400;500;600;700;800&family=Syncopate:wght@400;700&display=swap');

:root {
    /* Etherium Luxe Palette */
    --bg-void: #020204;
    --bg-glass: rgba(20, 20, 25, 0.4);
    --bg-glass-heavy: rgba(10, 10, 15, 0.8);

    --primary-platinum: #E0E0E0;
    --secondary-slate: #94A3B8;

    --accent-cyan: #00F0FF;
    --accent-cyan-dim: rgba(0, 240, 255, 0.1);
    --accent-purple: #7000FF;

    --border-lux: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 240, 255, 0.3);

    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-text: 0 0 10px rgba(255, 255, 255, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 90px;
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* cursor: none; Removed to restore visibility */
}

/* Custom Cursor Replacement */
body {
    cursor: default;
    /* Arrow by default */
    background-color: var(--bg-void);
    color: var(--primary-platinum);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.text-display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* --- Glassmorphism v2 --- */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-lux);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s var(--ease-lux);
}

.glass-panel:hover {
    border-color: var(--border-active);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px) scale(1.005);
}

/* --- Navigation (Floating Island) --- */
.glass-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1400px;
    height: 70px;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transition: all 0.5s var(--ease-lux);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--secondary-slate);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s var(--ease-lux);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section (Cinema Style) --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-void);
    /* Fallback */
    /* Dynamic background applied via inline style for specific pages */
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 2, 4, 0.3), var(--bg-void));
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    /* Subtle blend */
}

.hero-poster-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s var(--ease-lux) forwards 0.5s;
}

/* --- Cinematic Opener (Video Opening Effect) --- */
#opening-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    /* Block clicks initially */
}

.opener-panel {
    width: 100%;
    height: 50%;
    background: #000;
    /* Pure black for contrast */
    position: relative;
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.1, 1);
    will-change: transform;
}

.opener-panel::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
    z-index: 2;
}

.opener-panel.top {
    transform-origin: top;
}

.opener-panel.top::after {
    bottom: 0;
}

.opener-panel.bottom {
    transform-origin: bottom;
}

.opener-panel.bottom::after {
    top: 0;
}

/* Animation State: Open */
body.loaded #opening-overlay .opener-panel.top {
    transform: translateY(-101%);
}

body.loaded #opening-overlay .opener-panel.bottom {
    transform: translateY(101%);
}

body.loaded #opening-overlay {
    pointer-events: none;
    /* Allow clicks after open */
    transition: visibility 0s 1.2s;
    visibility: hidden;
}

/* --- Buttons (Magnetic effect logic in JS) --- */
.btn-premium {
    padding: 16px 40px;
    border-radius: 0px;
    /* Brutalist/Tech edge */
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s var(--ease-lux);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
    background: var(--primary-platinum);
    color: var(--bg-void);
    border: none;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border-lux);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* --- Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Tech Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.card {
    height: 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--border-lux);
    transition: all 0.5s var(--ease-lux);
    position: relative;
}

.card:hover {
    border-color: var(--accent-cyan);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.02) 0%, rgba(0, 240, 255, 0.05) 100%);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--secondary-slate);
    font-size: 0.95rem;
}

/* --- Mobile Responsiveness --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay a {
    font-family: 'Syncopate', sans-serif;
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 20px 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- PROCEDURAL CSS POSTERS (Animated "A-Style") --- */
@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 40px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(15deg);
    }

    50% {
        transform: translate(-50%, -60%) rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.poster-art {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

/* 1. Teen Patti / Poker: Floating Cards */
.poster-poker {
    background: radial-gradient(circle at center, #1a472a 0%, #05100a 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.poster-poker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 90px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite;
}

.poster-poker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 60px;
    height: 90px;
    background: #e74c3c;
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite 0.5s;
    /* Staggered */
}

/* 2. Roulette: Spinning Wheel */
.poster-roulette {
    background: radial-gradient(#2c3e50, #000);
}

.poster-roulette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(red 0deg 36deg, black 36deg 72deg, red 72deg 108deg, black 108deg 144deg, red 144deg 180deg, black 180deg 216deg, red 216deg 252deg, black 252deg 288deg, red 288deg 324deg, black 324deg 360deg);
    border: 8px solid #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: spin 8s linear infinite;
}

/* 3. Ludo: Rotating Colors */
.poster-ludo {
    background: #111;
}

.poster-ludo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #e74c3c);
    animation: spin 10s linear infinite;
    opacity: 0.3;
}

.poster-ludo::before {
    content: '🎲';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* 4. VR/Metaverse: Moving Tron Grid */
.poster-vr {
    background: #050510;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 500px;
    animation: gridMove 2s linear infinite;
}

.poster-vr::after {
    content: 'VR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: transparent;
    -webkit-text-stroke: 2px #00F0FF;
    text-shadow: 0 0 30px #00F0FF;
    animation: pulse 2s ease-in-out infinite;
}

/* 5. Action/Sniper: Scanning Crosshair */
.poster-action {
    background: radial-gradient(circle, #222 10%, #000 90%);
    background-image: repeating-radial-gradient(transparent 0, transparent 40px, #1a4f1a 41px);
}

/* Hero Poster EdTech: 3D Atom/Holographic */
.hero-poster-edtech {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #001a1a 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-poster-edtech::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, rgba(0, 240, 255, 0.05) 0px, transparent 2px, transparent 20px);
    animation: spin 120s linear infinite;
}

.hero-atom-3d {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.atom-core {
    width: 40px;
    height: 40px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--accent-cyan);
}

.atom-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    width: 200px;
    height: 60px;
}

.orbit-1 {
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spinAtom 4s linear infinite;
}

.orbit-2 {
    transform: translate(-50%, -50%) rotate(60deg);
    animation: spinAtom 6s linear infinite;
}

.orbit-3 {
    transform: translate(-50%, -50%) rotate(120deg);
    animation: spinAtom 5s linear infinite;
}

.orbit-electron {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px white;
}

@keyframes spinAtom {
    0% {
        transform: translate(-50%, -50%) rotate(var(--r, 0deg)) rotateX(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(var(--r, 0deg)) rotateX(360deg);
    }
}

.hero-edtech-title {
    position: absolute;
    bottom: -60px;
    font-family: var(--font-display);
    color: white;
    font-size: 2rem;
    text-shadow: 0 0 20px var(--accent-cyan);
    letter-spacing: 0.2em;
    width: 100%;
    text-align: center;
}

.poster-target {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
    animation: pulse 1s infinite;
}

/* 6. Candy/Arcade: Moving Stripes */
.poster-candy {
    background: repeating-linear-gradient(-45deg, #ff9ff3, #ff9ff3 20px, #feca57 20px, #feca57 40px);
    background-size: 200% 200%;
    animation: gridMove 4s linear infinite;
    /* Reuse grid move for shifting stripes */
}

.poster-candy::after {
    content: '🍬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Hero Poster Food: 3D Burger Stack */
.hero-poster-food {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2e1a0b 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-poster-food::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0px, transparent 2px, transparent 20px);
    animation: flowBg 20s linear infinite;
}

.hero-burger-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 4s ease-in-out infinite;
}

.burger-layer {
    width: 200px;
    height: 40px;
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    left: 50%;
    transform: translateX(-50%);
}

.b-bun-top {
    top: 0px;
    background: #e67e22;
    height: 60px;
    border-radius: 60px 60px 20px 20px;
    z-index: 5;
}

.b-lettuce {
    top: 50px;
    background: #2ecc71;
    width: 220px;
    height: 10px;
    z-index: 4;
    border-radius: 5px;
}

.b-cheese {
    top: 60px;
    background: #f1c40f;
    width: 210px;
    height: 10px;
    z-index: 3;
}

.b-patty {
    top: 70px;
    background: #5d4037;
    height: 50px;
    z-index: 2;
}

.b-bun-bot {
    top: 120px;
    background: #e67e22;
    height: 40px;
    border-radius: 20px 20px 40px 40px;
    z-index: 1;
}

.hero-food-title {
    position: absolute;
    bottom: -60px;
    font-family: var(--font-display);
    color: white;
    font-size: 2rem;
    text-shadow: 0 0 20px var(--accent-cyan);
    letter-spacing: 0.2em;
    width: 100%;
    text-align: center;
}

@keyframes flowBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

/* 1. Betting/Sports Poster */
.poster-betting {
    background: #004d00;
    /* Green felt */
}

.poster-betting::before {
    content: '⚽';
    font-size: 3rem;
    position: absolute;
    top: 30%;
    left: 30%;
    animation: bounce 2s infinite;
}

.poster-betting::after {
    content: 'CRICKET';
    font-family: var(--font-display);
    color: white;
    border: 2px solid white;
    padding: 5px;
    position: absolute;
    bottom: 30%;
    right: 20%;
    transform: rotate(-10deg);
}

/* 2. Aviator (Reuse Crash style or new) -> Reuse Poster-Crash logic if possible, or define specific */
.poster-aviator-game {
    background: #000;
}

.poster-aviator-game::before {
    content: '✈️';
    font-size: 4rem;
    position: absolute;
    bottom: 20px;
    left: 20px;
    animation: flyUp 3s linear infinite;
}

@keyframes flyUp {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, -100px);
    }
}

/* 3. Travel Poster: Globe/Plane */
.poster-travel {
    background: #00a8ff;
}

.poster-travel::before {
    content: '🌍';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 10s linear infinite;
}

.poster-travel::after {
    content: '✈️';
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    animation: orbitEarth 4s linear infinite;
}

@keyframes orbitEarth {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(40px) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

/* 4. AI Automation Poster: Gears */
.poster-automation {
    background: #2c3e50;
}

.poster-automation::before {
    content: '⚙️';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 4s linear infinite;
}

.poster-automation::after {
    content: '🤖';
    font-size: 2rem;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* 7. Crash/Aviator: Rising Graph */
.poster-crash {
    background: #000;
}

.poster-crash::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, transparent 50%, #e74c3c 50%, transparent 52%);
    z-index: 1;
}

.poster-crash::before {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    animation: float 2s linear infinite;
    z-index: 2;
}

/* 8. AI Poster: Neural Network Nodes */
.poster-ai {
    background: radial-gradient(circle, #001 0%, #000 100%);
}

.poster-ai::before {
    content: '🧠';
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.poster-ai::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--accent-cyan);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

/* 9. Crypto/Finance Poster: Candlestick Graph */
.poster-crypto {
    background: #0b0f19;
}

.poster-crypto::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 10px;
    width: 10px;
    height: 40px;
    background: #00ff00;
    box-shadow: 20px -20px 0 0 #ff0000, 40px 10px 0 0 #00ff00, 60px -30px 0 0 #00ff00;
}

.poster-crypto::after {
    content: '📈';
    font-size: 3rem;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* 10. Mobility Poster: Map Route */
.poster-mobility {
    background: #1a1a1a;
}

.poster-mobility::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: white;
    box-shadow: 0 0 10px white;
}

.poster-mobility::after {
    content: '🚖';
    font-size: 3rem;
    position: absolute;
    top: 40%;
    left: 10%;
    animation: gridMove 2s linear infinite;
}

/* 11. EdTech Poster: Book/Hologram */
.poster-edtech {
    background: #001a1a;
}

.poster-edtech::after {
    content: '🎓';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite;
}

/* 12. News Poster: Feed */
.poster-news {
    background: #111;
}

.poster-news::before {
    content: 'NEWS';
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    border: 3px solid white;
    padding: 5px;
}

@media (max-width: 768px) {
    .glass-nav {
        width: 95%;
        padding: 0 20px;
        top: 20px;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: block;
    }
}

/* --- Utilities --- */
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--secondary-slate));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan {
    color: var(--accent-cyan);
}

/* --- Video Showcase (Laptop Mockup) --- */
.video-showcase {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-void), rgba(0, 240, 255, 0.05));
}

.macbook-frame {
    width: 80%;
    max-width: 900px;
    background: #2a2a2a;
    border-radius: 20px 20px 0 0;
    padding: 15px 15px 0 15px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    margin-top: 40px;
    transition: transform 0.8s var(--ease-lux);
}

.macbook-frame:hover {
    transform: translateY(-10px);
}

.macbook-screen {
    background: #000;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 5px 5px 0 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.macbook-base {
    width: 90%;
    max-width: 1000px;
    height: 20px;
    background: #3a3a3a;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
}

.macbook-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 8px;
    background: #222;
    border-radius: 0 0 5px 5px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.play-overlay:hover {
    opacity: 0;
    /* Auto-play feel on hover */
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

/* Canvas inside screen */
#demo-canvas {
    width: 100%;
    height: 100%;
}

/* --- Advanced "Video Poster" Effects --- */

/* 1. Holographic Scanner for Cards */
.card {
    overflow: hidden;
    /* Ensure scanner doesn't bleed */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 240, 255, 0.2),
            rgba(0, 240, 255, 0.4),
            rgba(0, 240, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    animation: holoScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes holoScan {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    /* Fast sweep */
    100% {
        left: 150%;
    }

    /* Wait */
}

/* 2. Global Scanline Overlay (CRT Effect) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
    /* Subtle texture */
}

/* 3. Hero HUD details */
.hero {
    position: relative;
    /* Ensure HUD canvas aligns */
}

.glow-text {
    text-shadow: var(--glow-cyan);
}