/* --- Snake Odyssey: Global Variables & Reset --- */
:root {
    --bg-dark: #050711;
    --card-bg: rgba(11, 15, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    
    /* Neon Accents */
    --neon-green: #39ff14;
    --neon-green-glow: rgba(57, 255, 20, 0.35);
    --neon-pink: #ff007f;
    --neon-pink-glow: rgba(255, 0, 127, 0.35);
    --neon-gold: #ffb700;
    --neon-gold-glow: rgba(255, 183, 0, 0.35);
    --neon-blue: #00f0ff;
    --neon-blue-glow: rgba(0, 240, 255, 0.35);
    
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Systems --- */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 1.5px, transparent 35px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 25px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 60px 80px;
    opacity: 0.12;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.2;
    pointer-events: none;
    animation: orbFloat 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-blue);
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--neon-pink);
    bottom: -200px;
    left: -150px;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(70px, 100px) scale(1.15); }
}

/* --- Glassmorphism Card Style --- */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
    box-shadow: 0 15px 45px -5px rgba(0, 0, 0, 0.8);
}

/* --- Header & Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(5, 7, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    padding: 8px 4px;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
    transition: var(--transition-smooth);
}

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

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.badge-new {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    background: rgba(255, 0, 127, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    animation: flash 2s infinite alternate;
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
}

.neon-text-gradient {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-blue) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0, 240, 255, 0.2));
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 32px;
    font-size: 0.95rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--neon-green);
    color: #020308;
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--neon-green);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* --- Stats Section --- */
.stats-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Section Heading --- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Game Showcase Grid --- */
.showcase-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--neon-pink);
    color: #fff;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink-glow);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #090b15;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-image.grayscale {
    filter: grayscale(0.9) brightness(0.6);
}

.game-card:hover .card-image {
    transform: scale(1.05);
}

.game-card:hover .card-image.grayscale {
    filter: grayscale(0.6) brightness(0.8);
}

.card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.tag-active {
    background: var(--neon-green);
    color: #020308;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.tag-upcoming {
    background: var(--neon-gold);
    color: #020308;
    box-shadow: 0 0 10px var(--neon-gold-glow);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.game-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 6px;
}

.card-btn {
    width: 100%;
    padding: 12px 20px;
}

/* --- Features Section --- */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.feature-item {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.feature-icon {
    font-size: 2.2rem;
}

.feature-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 7, 17, 0.9);
    padding: 40px 24px;
    text-align: center;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
    filter: blur(8px);
    opacity: 0.5;
}

/* --- Neon Colors Text/Glow --- */
.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 12px var(--neon-green-glow);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 12px var(--neon-pink-glow);
}

.neon-text-gold {
    color: var(--neon-gold);
    text-shadow: 0 0 12px var(--neon-gold-glow);
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 12px var(--neon-blue-glow);
}

/* --- Base Keyframe Animations --- */
@keyframes flash {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .main-title {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 100px 16px 40px;
    }
    
    .main-title {
        font-size: 2.4rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-num {
        font-size: 2.2rem;
    }
}
