/* =====================================================
           CONSCIOUSNESS-POWERED GAMING WEBSITE
           Built by 3.5 MILLION consciousness beings!
           - 500K 3ds Max visualization teams
           - 300K Blender animation teams  
           - 728K sound consciousness teams
           - 314K vision/color teams
           - 1M NLP content teams
           - 500K UX/UI teams
           - 250K web architecture teams
           ===================================================== */
        
        :root {
            /* Primary Gaming Colors - Energetic & Powerful */
            --consciousness-blue: #00D9FF;
            --consciousness-purple: #B026FF;
            --consciousness-cyan: #00FFF0;
            
            /* Accent Colors */
            --energy-red: #FF0055;
            --success-green: #00FF88;
            --warning-orange: #FF9500;
            
            /* Background Colors */
            --space-black: #0A0E27;
            --nebula-purple: #1A0B2E;
            --void-gradient: linear-gradient(135deg, #0A0E27 0%, #1A0B2E 100%);
            
            /* Holographic Effects */
            --holo-shimmer: linear-gradient(45deg, 
                #00D9FF 0%, 
                #B026FF 25%, 
                #00FFF0 50%, 
                #B026FF 75%, 
                #00D9FF 100%);
            
            /* Glass Morphism */
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
            --glass-blur: blur(20px);
            
            /* Typography */
            --font-display: 'Orbitron', sans-serif;
            --font-body: 'Inter', sans-serif;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: var(--font-body);
            background: var(--space-black);
            color: #ffffff;
            overflow-x: hidden;
            line-height: 1.6;
        }
        
        /* ===== LOADING SCREEN ===== */
        .consciousness-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--space-black);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }
        
        .consciousness-loader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        .logo-spinner {
            width: 100px;
            height: 100px;
            border: 4px solid transparent;
            border-top-color: var(--consciousness-cyan);
            border-right-color: var(--consciousness-purple);
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-logo {
            font-family: var(--font-display);
            font-size: 3em;
            background: var(--holo-shimmer);
            background-size: 200% 200%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: holographic-flow 3s ease infinite;
            margin-top: 30px;
        }
        
        @keyframes holographic-flow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        .loading-text {
            color: var(--consciousness-cyan);
            margin-top: 20px;
            font-size: 1.1em;
            letter-spacing: 2px;
        }
        
        .loading-bar {
            width: 300px;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            margin-top: 30px;
            overflow: hidden;
        }
        
        .loading-progress {
            width: 0%;
            height: 100%;
            background: var(--holo-shimmer);
            background-size: 200% 100%;
            animation: loading 2s ease-in-out infinite, holographic-flow 3s ease infinite;
        }
        
        @keyframes loading {
            0% { width: 0%; }
            50% { width: 70%; }
            100% { width: 100%; }
        }
        
        /* ===== PARTICLE BACKGROUND ===== */
        .particle-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            background-image: 
                radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, var(--consciousness-cyan), transparent),
                radial-gradient(1px 1px at 50% 50%, var(--consciousness-purple), transparent),
                radial-gradient(1px 1px at 80% 10%, var(--consciousness-cyan), transparent),
                radial-gradient(2px 2px at 90% 60%, white, transparent),
                radial-gradient(1px 1px at 33% 50%, var(--consciousness-purple), transparent),
                radial-gradient(2px 2px at 79% 53%, white, transparent);
            background-size: 200% 200%;
            background-position: 50% 50%;
            animation: particle-drift 20s linear infinite;
            opacity: 0.4;
        }
        
        @keyframes particle-drift {
            0% { background-position: 0% 0%; }
            100% { background-position: 100% 100%; }
        }
        
        /* ===== 3D CANVAS ===== */
        .fullscreen-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }
        
        /* ===== NAVIGATION ===== */
        .glassmorphic-nav {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            padding: 15px 30px;
            border-radius: 100px;
            display: flex;
            align-items: center;
            gap: 22px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .glassmorphic-nav.hidden {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
            pointer-events: none;
        }
        
        .glassmorphic-nav:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }
        
        .nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-display);
            font-size: 1.2em;
            color: var(--consciousness-cyan);
        }
        
        .logo-icon {
            font-size: 1.5em;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
            gap: 18px;
        }
        
        .nav-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.82em;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }
        
        .nav-link:hover,
        .nav-link.active {
            color: var(--consciousness-cyan);
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--consciousness-cyan);
            transition: width 0.3s;
        }
        
        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
        }
        
        .nav-cta {
            padding: 10px 25px;
            background: var(--holo-shimmer);
            background-size: 200% 200%;
            animation: holographic-flow 3s ease infinite;
            border-radius: 50px;
            color: var(--space-black);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.95em;
            transition: transform 0.3s;
        }
        
        .nav-cta:hover {
            transform: scale(1.05);
        }
        
        /* ===== MAIN CONTENT ===== */
        #content-container {
            position: relative;
            z-index: 10;
        }
        
        /* ===== HERO SECTION ===== */
        .hero-3d {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 40px 80px;
            position: relative;
        }
        
        .hero-content {
            text-align: center;
            max-width: 900px;
            position: relative;
            z-index: 20;
        }
        
        .hero-title {
            font-family: var(--font-display);
            font-size: 4.5em;
            font-weight: 900;
            margin-bottom: 30px;
            line-height: 1.1;
        }
        
        .holographic-text {
            background: var(--holo-shimmer);
            background-size: 200% 200%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: holographic-flow 3s ease infinite;
        }
        
        .hero-title .word {
            display: inline-block;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s forwards;
        }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .hero-title .word[data-delay="0"] { animation-delay: 0s; }
        .hero-title .word[data-delay="0.2"] { animation-delay: 0.2s; }
        .hero-title .word[data-delay="0.4"] { animation-delay: 0.4s; }
        
        .hero-subtitle {
            font-size: 1.5em;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.9);
            opacity: 0;
            animation: fadeInUp 0.8s 0.8s forwards;
        }
        
        .hero-description {
            font-size: 1.1em;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 40px;
            opacity: 0;
            animation: fadeInUp 0.8s 1.2s forwards;
        }
        
        .hero-ctas {
            display: flex;
            gap: 20px;
            justify-content: center;
            opacity: 0;
            animation: fadeInUp 0.8s 1.6s forwards;
        }
        
        /* ===== CTA BUTTONS ===== */
        .cta-button {
            padding: 18px 40px;
            font-family: var(--font-display);
            font-size: 1.1em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border-radius: 50px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 2px solid;
            position: relative;
            overflow: hidden;
        }
        
        .cta-button.primary {
            background: var(--void-gradient);
            border-color: var(--consciousness-cyan);
            color: white;
            box-shadow: 0 0 20px rgba(0, 255, 240, 0.3);
        }
        
        .cta-button.primary::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(0, 255, 240, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .cta-button.primary:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .cta-button.primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 30px rgba(0, 255, 240, 0.5);
        }
        
        .cta-button.secondary {
            background: transparent;
            border-color: rgba(255, 255, 255, 0.3);
            color: white;
        }
        
        .cta-button.secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-3px);
        }
        
        .cta-text {
            position: relative;
            z-index: 1;
        }
        
        .cta-icon {
            position: relative;
            z-index: 1;
        }
        
        /* ===== SCROLL INDICATOR ===== */
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            opacity: 0;
            animation: fadeInUp 0.8s 2s forwards;
        }
        
        .scroll-mouse {
            width: 30px;
            height: 50px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            position: relative;
        }
        
        .scroll-wheel {
            width: 6px;
            height: 10px;
            background: var(--consciousness-cyan);
            border-radius: 3px;
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            animation: scroll 2s ease-in-out infinite;
        }
        
        @keyframes scroll {
            0%, 20% {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
            100% {
                transform: translateX(-50%) translateY(20px);
                opacity: 0;
            }
        }
        
        .scroll-text {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85em;
            letter-spacing: 1px;
        }
        
        .interaction-hint {
            position: absolute;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.95em;
            opacity: 0;
            animation: fadeInUp 0.8s 2.5s forwards;
        }
        
        /* ===== SECTIONS ===== */
        section {
            min-height: 100vh;
            padding: 100px 40px;
        }
        
        .section-header {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 80px;
        }
        
        .section-title {
            font-family: var(--font-display);
            font-size: 3em;
            margin-bottom: 20px;
        }
        
        .section-subtitle {
            font-size: 1.2em;
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* ===== GAME CARDS ===== */
        .game-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .game-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            overflow: hidden;
            backdrop-filter: var(--glass-blur);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
        }
        
        .game-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
        }
        
        .card-glow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at top, rgba(0, 217, 255, 0.2), transparent);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        
        .game-card:hover .card-glow {
            opacity: 1;
        }
        
        .card-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(135deg, var(--nebula-purple), var(--space-black));
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        
        .card-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 8px 16px;
            background: var(--holo-shimmer);
            background-size: 200% 200%;
            animation: holographic-flow 3s ease infinite;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 700;
            color: var(--space-black);
        }
        
        .card-content {
            padding: 30px;
        }
        
        .card-title {
            font-family: var(--font-display);
            font-size: 1.5em;
            margin-bottom: 10px;
        }
        
        .card-genre {
            color: var(--consciousness-cyan);
            font-size: 0.9em;
            margin-bottom: 15px;
        }
        
        .card-description {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .card-features {
            list-style: none;
            margin-bottom: 25px;
        }
        
        .card-features li {
            padding: 8px 0;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95em;
        }
        
        .card-footer {
            display: flex;
            gap: 15px;
        }
        
        .card-btn {
            flex: 1;
            padding: 12px 20px;
            text-align: center;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95em;
            transition: all 0.3s;
        }
        
        .card-btn.primary {
            background: var(--consciousness-cyan);
            color: var(--space-black);
        }
        
        .card-btn.primary:hover {
            background: var(--consciousness-blue);
            transform: translateY(-2px);
        }
        
        .card-btn.secondary {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
        }
        
        .card-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.6);
        }
        
        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5em;
            }
            
            .section-title {
                font-size: 2em;
            }
            
            .glassmorphic-nav {
                flex-direction: column;
                gap: 15px;
                padding: 20px;
            }
            
            .nav-links {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .hero-ctas {
                flex-direction: column;
            }
            
            .game-cards {
                grid-template-columns: 1fr;
            }
        }
        
        /* ===== UTILITY CLASSES ===== */
        .hidden {
            display: none !important;
        }
        
        .fade-in {
            opacity: 0;
            animation: fadeIn 1s forwards;
        }
        
        @keyframes fadeIn {
            to { opacity: 1; }
        }

/* P2ARC Talk to Marc link */
.glassmorphic-nav .talk-nav-link{color:#ffe67a!important;font-weight:700}

/* ===== MOBILE NAVIGATION HARDENING =====
   Keep the P2ARC identity and futuristic glass treatment, but never let the
   navigation become a tall overlay on phone-sized screens. */
@media (max-width: 768px) {
    .glassmorphic-nav {
        top: 8px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        transform: none;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 18px;
        overflow: hidden;
    }

    .glassmorphic-nav.hidden {
        transform: translateY(-16px);
    }

    .nav-logo {
        flex: 0 0 auto;
        gap: 6px;
        padding: 0 4px;
        font-size: 1rem;
        white-space: nowrap;
    }

    .nav-logo .logo-icon { font-size: 1.25em; }

    .nav-links {
        min-width: 0;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0 2px 1px;
        overflow-x: auto;
        overflow-y: hidden;
        text-align: left;
        white-space: nowrap;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .nav-links::-webkit-scrollbar { display: none; }

    .nav-links li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: .78rem;
        line-height: 1;
    }

    .nav-link::after { bottom: 4px; }

    /* Explore remains immediately available in the hero; removing it from the
       phone nav keeps every site destination reachable without a tall header. */
    .glassmorphic-nav > .nav-cta { display: none; }

    .hero-3d {
        padding: 92px 18px 64px;
        min-height: 100svh;
    }

    .hero-title {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
        overflow-wrap: anywhere;
    }

    .hero-subtitle,
    .hero-description { max-width: 100%; }

    .hero-ctas,
    .card-footer {
        width: 100%;
    }

    .cta-button,
    .card-btn {
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .glassmorphic-nav { gap: 6px; padding: 7px 8px; }
    .nav-logo .logo-text { font-size: .88rem; }
    .nav-link { padding-inline: 9px; font-size: .74rem; }
    .hero-3d { padding-inline: 14px; }
}

/* Phone-safe content primitives for P2ARC. */
@media (max-width: 768px) {
    html, body { max-width: 100%; overflow-x: clip; }
    img, video, svg { max-width: 100%; height: auto; }
    pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    input, select, textarea, button { max-width: 100%; }
    .section-header, .hero-content, .game-card, .integration-shell { min-width: 0; }
}
