@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Exo+2:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #06B6D4;
    --neon-blue: #3B82F6;
    --dark-blue: #1E3A8A;
    --deep-dark: #0C0E1A;
    --card-dark: #1A1D2E;
    --text-cyan: #67E8F9;
    --text-white: #F0F9FF;
    --accent-pink: #EC4899;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--deep-dark);
    color: var(--text-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(6, 182, 212, 0.03) 2px, rgba(6, 182, 212, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Top Navigation Bar */
.tech-header {
    background: linear-gradient(90deg, rgba(26, 29, 46, 0.95), rgba(12, 14, 26, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 5px 30px rgba(6, 182, 212, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-logo {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    text-shadow: 0 0 30px rgba(6, 182, 212, 1), 0 0 60px rgba(6, 182, 212, 0.6);
}

.nav-grid {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-grid a {
    color: var(--text-cyan);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-grid a:hover,
.nav-grid a.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Hamburger for Mobile */
.nav-hamburger {
    display: none;
    background: var(--neon-cyan);
    border: none;
    color: var(--deep-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Main Container */
.main-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.cyber-hero {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 
        0 0 40px rgba(6, 182, 212, 0.3),
        inset 0 0 40px rgba(6, 182, 212, 0.05);
    position: relative;
    overflow: hidden;
}

.cyber-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.cyber-hero h1 {
    font-family: 'Audiowide', cursive;
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    position: relative;
    z-index: 1;
}

.cyber-hero p {
    font-size: 1.4rem;
    color: var(--text-cyan);
    position: relative;
    z-index: 1;
}

/* Tech Cards */
.tech-card {
    background: linear-gradient(135deg, var(--card-dark), rgba(26, 29, 46, 0.8));
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.tech-card h2 {
    font-family: 'Audiowide', cursive;
    font-size: 2.8rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.tech-card h3 {
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tech-card p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card ul li {
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border-left: 4px solid var(--neon-cyan);
    border-radius: 8px;
    position: relative;
}

.tech-card ul li::before {
    content: '▸';
    position: absolute;
    left: 1rem;
    color: var(--neon-cyan);
    font-size: 1.3rem;
    font-weight: bold;
}

/* Alert Panel */
.alert-panel {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(239, 68, 68, 0.1));
    border: 2px solid var(--accent-pink);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}

.alert-panel h3 {
    font-family: 'Audiowide', cursive;
    color: var(--accent-pink);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.alert-panel p {
    color: #FECDD3;
    font-weight: 600;
    line-height: 1.8;
}

/* Game Terminal */
.game-terminal {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(6, 182, 212, 0.4),
        inset 0 0 30px rgba(6, 182, 212, 0.1);
}

.game-terminal iframe {
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(59, 130, 246, 0.4);
}

/* Footer */
.tech-footer {
    background: linear-gradient(90deg, var(--card-dark), var(--deep-dark));
    border-top: 2px solid var(--neon-cyan);
    padding: 3rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 -10px 40px rgba(6, 182, 212, 0.2);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.tech-footer h3 {
    font-family: 'Audiowide', cursive;
    font-size: 2.2rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.resource-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.resource-grid a {
    color: var(--text-cyan);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.resource-grid a:hover {
    background: var(--neon-cyan);
    color: var(--deep-dark);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.footer-info {
    color: var(--text-cyan);
    opacity: 0.8;
    margin-top: 2rem;
}

/* Age Gate */
.access-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.access-gate.open {
    display: flex;
}

.gate-panel {
    background: linear-gradient(135deg, var(--card-dark), var(--deep-dark));
    border: 3px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 3rem;
    max-width: 550px;
    text-align: center;
    box-shadow: 
        0 0 60px rgba(6, 182, 212, 0.5),
        inset 0 0 40px rgba(6, 182, 212, 0.1);
}

.gate-panel h2 {
    font-family: 'Audiowide', cursive;
    font-size: 3.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

.gate-panel p {
    font-size: 1.3rem;
    color: var(--text-cyan);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.gate-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.gate-btn {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.gate-access {
    background: var(--neon-cyan);
    color: var(--deep-dark);
}

.gate-access:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
    transform: scale(1.05);
}

.gate-deny {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    border-color: #EF4444;
}

.gate-deny:hover {
    background: #EF4444;
    color: white;
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-grid {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(26, 29, 46, 0.98);
        padding: 1rem;
        gap: 0.5rem;
        border-top: 2px solid var(--neon-cyan);
    }

    .nav-grid.active {
        display: flex;
    }

    .nav-hamburger {
        display: block;
    }

    .tech-logo {
        font-size: 1.8rem;
    }

    .cyber-hero {
        padding: 2.5rem 2rem;
    }

    .cyber-hero h1 {
        font-size: 2.8rem;
    }

    .cyber-hero p {
        font-size: 1.1rem;
    }

    .tech-card {
        padding: 2rem 1.5rem;
    }

    .tech-card h2 {
        font-size: 2.2rem;
    }

    .gate-panel {
        margin: 1rem;
        padding: 2rem;
    }

    .gate-panel h2 {
        font-size: 2.5rem;
    }

    .gate-controls {
        flex-direction: column;
    }

    .gate-btn {
        width: 100%;
    }

    .resource-grid {
        flex-direction: column;
        gap: 1rem;
    }
}
