/* ==================== 1. GOOGLE FONTS IMPORT ==================== */
/* NOTE: For best performance, put the <link> tags in your HTML <head>.
   If you can't, this import works too:
*
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Rajdhani:wght@500;700;800&display=swap');

/* ==================== 2. VARIABLES & THEME ENGINE ==================== */
:root {
    /* --- Colors: Neon Gold Theme --- */
    --primary-color: #fbbf24;
    --primary-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --primary-glow: 0 0 20px rgba(251, 191, 36, 0.4);
    
    /* --- Colors: Deep Dark Backgrounds --- */
    --bg-dark: #09090b;             /* Almost black */
    --bg-glass: rgba(30, 41, 59, 0.6); /* Transparent for glass effect */
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* --- Text Colors --- */
    --text-light: #ffffff;
    --text-gray: #cbd5e1;
    
    /* --- Fonts --- */
    --font-heading: 'Rajdhani', sans-serif; /* Tech/Gaming look */
    --font-body: 'Poppins', sans-serif;     /* Clean/Modern look */
    
    /* --- Layout --- */
    --container-width: 1200px;
    --nav-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 3. GLOBAL RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    /* Subtle background spotlights for depth */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 20%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==================== 4. TYPOGRAPHY & GRADIENTS ==================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Gradient Text Class */
.highlight, .logo a, .section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.text-link:hover {
    gap: 10px; /* Slide arrow effect */
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* ==================== 5. BUTTONS & ANIMATIONS ==================== */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape is more modern */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
    border: none;
    box-shadow: var(--primary-glow);
    animation: pulse-glow 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.7);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: var(--primary-glow);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.3rem;
}

/* ==================== 6. UTILITIES ==================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section { padding: 80px 0; }

.bg-darker {
    background-color: rgba(0, 0, 0, 0.3); /* Transparent overlay instead of solid */
}

/* ==================== 7. NAVBAR (GLASSMORPHISM) ==================== */
.navbar {
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.8); /* Semi-transparent */
    backdrop-filter: blur(12px);     /* Glass Blur */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Mobile Toggle (Hidden Checkbox Hack) */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-light);
    height: 2px;
    width: 100%;
    position: absolute;
    transition: var(--transition);
}
.nav-toggle-label span { top: 9px; }
.nav-toggle-label span::before { content: ''; top: -8px; }
.nav-toggle-label span::after { content: ''; top: 8px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

/* ==================== 8. HERO SECTION ==================== */
.hero-section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 85vh;
    position: relative;
}

/* Background glow behind hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 50px;
    align-items: center;
}

.hero-content { flex: 1; text-align: center; }
.hero-content h1 {
    font-size: 3rem; /* Bigger on mobile */
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.hero-image { flex: 1; width: 100%; }
.hero-image img {
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
}

/* ==================== 9. CARDS (GLASSMORPHISM) ==================== */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Shared styles for Features and Games */
.feature-card, .game-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover, .game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 15px rgba(251, 191, 36, 0.1);
}

.feature-card .icon { font-size: 3.5rem; margin-bottom: 20px; }
.feature-card h3 { color: var(--text-light); margin-bottom: 10px; font-size: 1.4rem;}

/* Game Cards Specifics */
.game-card { padding: 0; overflow: hidden; text-align: left; }
.game-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s ease;}
.game-card:hover img { transform: scale(1.1); }

.card-body { padding: 25px; }
.card-body h3 { font-size: 1.4rem; color: var(--text-light); margin-bottom: 8px;}

/* ==================== 10. STATS SECTION ==================== */
.stats-section {
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 60px 0;
}
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================== 11. FAQ ACCORDION ==================== */
.faq-wrapper { display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item[open] { border-color: var(--primary-color); }

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-content {
    padding: 20px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-gray);
    background: rgba(0,0,0,0.2);
}

/* ==================== 12. FOOTER ==================== */
.footer {
    background: #000;
    padding: 80px 0 30px;
    margin-top: 80px;
    border-top: 2px solid var(--primary-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.footer h4 { color: var(--text-light); margin-bottom: 25px; font-size: 1.3rem; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { 
    color: var(--text-gray); 
    transition: var(--transition); 
}
.footer ul li a:hover { color: var(--primary-color); padding-left: 5px; }

.rating { color: var(--primary-color); margin-top: 15px; font-size: 1.2rem; }
.rating span { color: var(--text-gray); font-size: 0.9rem; margin-left: 10px; }

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================== 13. MOBILE STICKY FOOTER ==================== */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-top: 1px solid var(--border-glass);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}
.btn-full { width: 100%; display: block; text-align: center; }

/* ==================== 14. MEDIA QUERIES (RESPONSIVENESS) ==================== */

/* TABLET (min-width: 768px) */
@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
    
    .hero-container {
        flex-direction: row;
        text-align: left;
    }
    .hero-content { text-align: left; }
    
    .grid-layout { grid-template-columns: repeat(2, 1fr); }
    
    .stats-grid { flex-direction: row; justify-content: space-around; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Hide Mobile Sticky Button on Tablet/Desktop */
    .mobile-sticky-footer { display: none; }
}

/* DESKTOP (min-width: 1024px) */
@media (min-width: 1024px) {
    .nav-toggle-label { display: none; }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        padding: 0;
        border: none;
        height: auto;
    }
    
    .nav-links { flex-direction: row; margin-right: 0; }
    
    .grid-layout { grid-template-columns: repeat(4, 1fr); }
    
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* MOBILE NAV OVERRIDE (max-width: 1023px) */
@media (max-width: 1023px) {
    .nav-toggle-label { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-dark); /* Solid bg for menu readability */
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        display: none;
    }
    
    .nav-links { flex-direction: column; gap: 25px; margin-bottom: 25px; }
    
    /* Checkbox Logic */
    #nav-toggle:checked ~ .nav-menu { display: flex; animation: slideDown 0.3s ease; }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Hamburger to X animation */
    #nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    #nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    #nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
}