@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --bg-accent: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d1;
    --text-muted: #6b7280;
    --accent-primary: #ff006e;
    --accent-secondary: #00f5ff;
    --accent-tertiary: #8b5cf6;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-neon: rgba(0, 245, 255, 0.3);
    --shadow-neon: 0 0 20px rgba(0, 245, 255, 0.3);
    --gradient-cyber: linear-gradient(135deg, #ff006e 0%, #8b5cf6 50%, #00f5ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #151520 100%);
}

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

body {
    font-family: 'Orbitron', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header with Fixed Top Design --- */
/* small adjustments to logo/nav are applied below where .navbar/.logo are defined */

/* --- Hero Section with Split Layout --- */
.hero {
    background: var(--gradient-dark);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(0, 245, 255, 0.1) 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-highlight {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* About section centering on desktop */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .about-content {
        text-align: center;
    }
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
}

.btn-outline:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-placeholder {
    width: 100%;
    height: 350px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border-neon);
    position: relative;
    overflow: hidden;
}

.hero-placeholder img.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to fill container */
    display: block;
}

@keyframes scan {
    0% { transform: translateX(-120%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(220%); opacity: 0; }
}

/* Smaller hero placeholders should reduce the scan width for better appearance */
@media (max-width: 700px) {
    .hero-placeholder { height: 220px; }
    .hero-placeholder::before { width: 60%; animation-duration: 2.2s; }
}

/* Mobile header layout: logo left, menu toggle right, nav hidden by default */
@media (max-width: 768px) {
    .navbar {
        padding: 0 14px;
        height: 64px;
    }

    .logo {
        font-size: 1.5rem;
        padding-top: 0; /* tighten vertical alignment */
        order: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 2;
        background: var(--bg-card);
        border: 1px solid var(--border-neon);
        color: var(--text-primary);
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* Hide full nav on mobile; toggle will add .active to show */
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        right: 14px;
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.6);
        min-width: 180px;
        z-index: 1200;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 10px 14px;
        border-radius: 6px;
    }

    /* Ensure header content uses flex order: logo left, spacer, toggle right */
    .navbar .container {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

/* --- Header with Fixed Top Design --- */
.header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
    transition: transform 0.28s ease; /* smooth show/hide on scroll */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    padding: 0 10px; /* small horizontal padding to prevent tight edges */
}

.logo {
    font-size: 1.6rem;
    line-height: 1; /* ensures no extra vertical space */
    display: inline-block; /* allow vertical centering and transforms if needed */
    transform-origin: left center;
    font-weight: 900;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-top: 2px; /* tiny nudge to visually center with nav items */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-secondary);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-neon);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: inherit;
}

/* --- Hero Section with Split Layout --- */
.hero {
    background: var(--gradient-dark);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(0, 245, 255, 0.1) 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-highlight {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
}

.btn-outline:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-placeholder {
    width: 100%;
    height: 350px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border-neon);
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Game Section --- */
.game-showcase {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
    max-width: 1000px;
    margin: 0 auto;
}

.game-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    background: var(--bg-primary);
}

/* --- Features with Hexagonal Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-neon);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-cyber);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column so content fills available width when image removed */
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    width: 100%;
    height: 300px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border-neon);
    position: relative;
    overflow: hidden;
}

.about-content {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.about-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

/* --- Footer with Tech Style --- */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-neon);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.footer-disclaimer {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-neon);
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
}

.footer-disclaimer::before {
    content: '⚠️';
    position: absolute;
    top: -8px;
    left: 15px;
    background: var(--bg-card);
    padding: 0 8px;
    color: var(--accent-primary);
}

.footer-disclaimer strong {
    color: var(--accent-secondary);
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 1rem;
}

.footer-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul li a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 5px var(--accent-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Age Popup --- */
.age-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.age-popup-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--border-neon);
    box-shadow: var(--shadow-neon);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.age-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-cyber);
    border-radius: 12px 12px 0 0;
}

.age-popup-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-popup-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.age-button.confirm {
    background: var(--gradient-cyber);
    color: white;
}

.age-button.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
}

.age-button.deny {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.age-button.deny:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        order: 0;
        text-align: left;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 2;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        margin-left: auto; /* push toggle to the right */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 14px; /* anchor to right so toggle appears on the right */
        background: var(--bg-card);
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--border-neon);
        box-shadow: 0 8px 30px rgba(0,0,0,0.6);
        gap: 0.5rem;
        min-width: 170px;
        z-index: 1200;
    }

    .nav-links.active {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .age-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .game-showcase {
        padding: 1.5rem;
    }
    
    .game-frame {
        height: 400px;
    }
}