/* ===== VARIABLES & THEME SETUP ===== */
:root {
    /* Colors */
    --bg-primary: #0b0d0f; /* Rich dark black */
    --bg-secondary: #14171a; /* Soft charcoal */
    --accent-primary: #00ff66; /* Neon emerald green */
    --accent-secondary: #50ffa0; /* Soft mint glow */
    --text-primary: #f8fafc; /* Bright readable white */
    --text-secondary: #94a3b8; /* Softer grey */
    
    /* Glassmorphism */
    --glass-bg: rgba(20, 23, 26, 0.6);
    --glass-card: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --accent-glow: rgba(0, 255, 102, 0.15);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --game-width: 90vw;
    --game-max-width: 1400px;
    --section-spacing: 100px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #2a3036;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ===== LAYOUT SYSTEM ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.secondary-bg {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
}

h1 span {
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-glow);
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

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

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 102, 0.4);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-glow);
    transform: translateY(-2px);
}

/* ===== HEADER & NAVIGATION ===== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: var(--accent-primary);
}

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-primary);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('images/photo-1634804306598-f2ebce311fb1-hero-hero-section.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Offset header */
}

.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('images/photo-1634804306598-f2ebce311fb1-hero-hero-section.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 13, 15, 0.85) 0%, rgba(11, 13, 15, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.legal-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.hero-legal-notice {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 16px;
    background: var(--glass-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

/* ===== GAME SECTION (DOMINANT FEATURE) ===== */
.game-section {
    padding: 80px 0 120px 0;
}

.game-wrapper {
    width: var(--game-width);
    max-width: var(--game-max-width);
    margin: 0 auto;
    position: relative;
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 255, 102, 0.2);
    transition: all 0.3s ease;
}

.game-frame-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-primary));
    z-index: -1;
    border-radius: 26px;
    opacity: 0.3;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== GLASS CARDS & GRIDS ===== */
.grid-layout {
    display: grid;
    gap: 30px;
}

.three-cols { grid-template-columns: repeat(3, 1fr); }
.two-cols { grid-template-columns: repeat(2, 1fr); }

.glass-card {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px auto;
    background: rgba(0, 255, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 102, 0.1);
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.glass-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== CONTENT SECTIONS (LEGAL/ABOUT/CONTACT) ===== */
.text-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.text-content h3 {
    margin-top: 32px;
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.text-content h3:first-child {
    margin-top: 0;
}

.text-content p {
    margin-bottom: 20px;
}

.styled-list {
    margin-bottom: 24px;
    padding-left: 20px;
}

.styled-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 10px;
}

.styled-list li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: -10px;
    font-size: 1.2rem;
    line-height: 1;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 255, 102, 0.02);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

.footer-disclaimer {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-bottom: 30px;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    margin-bottom: 0;
    max-width: 900px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --game-width: 95vw;
        --section-spacing: 80px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --game-width: 100vw;
        --section-spacing: 60px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-actions .btn-primary {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .game-frame-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .game-frame-container::before {
        display: none;
    }

    .grid-layout.three-cols, .grid-layout.two-cols {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .text-content {
        padding: 24px;
    }
}
/* ENDFILE */
<!-- FILE: script.js -->
document.addEventListener('DOMContentLoaded', () => {
    // Mobile Menu Toggle
    const mobileToggle = document.getElementById('mobile-toggle');
    const mobileNav = document.getElementById('mobile-nav');

    if (mobileToggle && mobileNav) {
        mobileToggle.addEventListener('click', () => {
            mobileNav.classList.toggle('open');
            // Animate hamburger icon
            const spans = mobileToggle.querySelectorAll('span');
            if (mobileNav.classList.contains('open')) {
                spans[0].style.transform = 'rotate(45deg) translate(5px, 6px)';
                spans[1].style.opacity = '0';
                spans[2].style.transform = 'rotate(-45deg) translate(5px, -6px)';
            } else {
                spans[0].style.transform = 'none';
                spans[1].style.opacity = '1';
                spans[2].style.transform = 'none';
            }
        });
    }

    // Header Background Blur Effect on Scroll
    const header = document.querySelector('.glass-header');
    window.addEventListener('scroll', () => {
        if (window.scrollY > 50) {
            header.style.background = 'rgba(11, 13, 15, 0.9)';
            header.style.boxShadow = '0 4px 30px rgba(0, 0, 0, 0.8)';
        } else {
            header.style.background = 'var(--glass-bg)';
            header.style.boxShadow = '0 4px 30px rgba(0, 0, 0, 0.5)';
        }
    });

    // Subtly fade in elements on scroll
    const fadeElements = document.querySelectorAll('.glass-card, .section-title, .hero-content');
    
    // Initial state for fade elements
    fadeElements.forEach(el => {
        el.style.opacity = '0';
        el.style.transform = 'translateY(20px)';
        el.style.transition = 'opacity 0.6s ease-out, transform 0.6s ease-out';
    });

    const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.style.opacity = '1';
                entry.target.style.transform = 'translateY(0)';
                observer.unobserve(entry.target);
            }
        });
    }, {
        threshold: 0.1,
        rootMargin: '0px 0px -50px 0px'
    });

    fadeElements.forEach(el => observer.observe(el));
});

// Smooth Scroll to Game Section
function scrollToGame() {
    const gameSection = document.getElementById('game-section');
    if (gameSection) {
        // If on home page, scroll down smoothly
        const yOffset = -100; // Account for sticky header
        const y = gameSection.getBoundingClientRect().top + window.pageYOffset + yOffset;
        window.scrollTo({top: y, behavior: 'smooth'});
        
        // Close mobile menu if open
        const mobileNav = document.getElementById('mobile-nav');
        const mobileToggle = document.getElementById('mobile-toggle');
        if (mobileNav && mobileNav.classList.contains('open')) {
            mobileNav.classList.remove('open');
            const spans = mobileToggle.querySelectorAll('span');
            spans[0].style.transform = 'none';
            spans[1].style.opacity = '1';
            spans[2].style.transform = 'none';
        }
    } else {
        // If on another page, navigate to index.html#game-section
        window.location.href = 'index.html#game-section';
    }
}