:root {
    /* Default Light Mode Variables */
    --primary-color: #0055ff;
    --primary-hover: #0044cc;
    --bg-dark: #f0f3f8;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.85);
    --text-main: #1a1a1b;
    --text-muted: #57606f;
    --accent-gradient: linear-gradient(135deg, #0055ff 0%, #00d8e6 100%);
    --card-border: rgba(0, 0, 0, 0.08);
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

body.dark-mode {
    /* Dark Mode Overrides */
    --primary-color: #00f2ff;
    --primary-hover: #00d8e6;
    --bg-dark: #0a0a0b;
    --bg-card: #151518;
    --bg-header: rgba(10, 10, 11, 0.8);
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #006aff 100%);
    --card-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Header Toggle Buttons */
.theme-toggle,
.menu-toggle {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-speed);
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

body.dark-mode .theme-toggle .icon-sun { display: none; }
body.dark-mode .theme-toggle .icon-moon { display: block; }

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(0, 106, 255, 0.05), transparent);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.02), transparent);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.about-text h2 span {
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

body.dark-mode .btn-primary {
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 106, 255, 0.2);
}

.btn-outline {
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(128, 128, 128, 0.05);
}

/* Games Section */
.games-section {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--card-border);
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-speed);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.03);
}

body.dark-mode .game-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    position: relative;
    aspect-ratio: 7/4;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

body.dark-mode .game-image {
    background: linear-gradient(135deg, #151518 0%, #0a0a0b 100%);
}

/* Featured Game Thumbnail Styling */
.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Premium Sheen Effect */
.game-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 55%
    );
    transform: rotate(30deg);
    transition: all 0.7s;
    pointer-events: none;
    z-index: 3;
}

.game-card:hover .game-image::after {
    left: 100%;
    top: 100%;
}

.game-card:hover .game-image img {
    transform: scale(1.08);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .game-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-info {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.game-meta {
    flex: 1;
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    background: var(--primary-color);
    color: #fff;
    flex-shrink: 0;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .btn-small {
    color: #000;
}

.btn-small:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
}
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Legal Pages */
.legal-page {
    padding: 6rem 0;
    max-width: 800px;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: var(--text-main);
    line-height: 1.8;
}

.legal-content ul {
    margin: 1rem 0 2rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Footer Links */
.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}
/* Weekly Drops Section */
.weekly-drops {
    padding: 6rem 0;
}

.drop-banner {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.02);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

body.dark-mode .drop-banner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.drop-badge {
    display: inline-block;
    background: rgba(0, 85, 255, 0.08);
    color: var(--primary-hover);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .drop-badge {
    background: rgba(0, 242, 255, 0.1);
}

.weekly-drops h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.drop-subtitle {
    max-width: 750px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.drop-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 3rem;
}

.drop-feat-item {
    text-align: center;
}

.drop-feat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.drop-feat-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.drop-feat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }

    .nav-right.mobile-active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--card-border);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 99;
        text-align: center;
        animation: slideDown 0.3s ease-out forwards;
    }

    body.dark-mode .nav-right.mobile-active ul {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-right.mobile-active ul li {
        list-style: none;
    }

    .weekly-drops {
        padding: 4rem 0;
    }

    .weekly-drops h2 {
        font-size: 2rem;
    }

    .drop-banner {
        padding: 3rem 1.5rem;
    }

    .drop-features {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .game-card {
        border-radius: 12px;
    }

    .game-info {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }

    .btn-small {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Keyboard Access & Focus States */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 85, 255, 0.3);
}

body.dark-mode .skip-link:focus,
body.dark-mode .skip-link:focus-visible {
    color: #000000;
}
