:root {
    --bg-color: #030303;
    --bg-secondary: #080808;
    --text-color: #e0e0e0;
    --text-muted: #888888;

    /* Premium Gold Palette */
    --accent-color: #FFD700;
    --accent-dark: #C5A000;
    --accent-light: #FFE55C;
    --accent-glow: rgba(255, 215, 0, 0.15);

    /* Deep Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 215, 0, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.05);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --card-hover-transform: translateY(-8px);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 40%),
        linear-gradient(to bottom, #030303 0%, #080808 100%);
}

html {
    scroll-behavior: smooth;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0;
    animation: loaderFadeIn 1s ease-out forwards;
}

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

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateX(-100%);
    animation: loaderProgress 1.5s ease-in-out forwards;
}

@keyframes loaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: -3rem auto 4rem;
}

/* Layout Utility */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 10rem 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

/* Glass & Gradient Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 1px var(--glass-shine) inset, 0 20px 40px rgba(0, 0, 0, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 40%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--accent-color);
}

.section-dark {
    background: #000;
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 2.5rem;
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 160px;
    /* Increased from 80px to prevent cut-off */
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--accent-glow);
    background: #fff;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Advanced Stats Row */
.stats-row {
    display: flex;
    justify-content: space-around;
    padding: 4rem 0;
    margin: 4rem 0;
    position: relative;
}

.stats-row::before,
.stats-row::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.stats-row::before {
    top: 0;
}

.stats-row::after {
    bottom: 0;
}


.stat-item {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Feature/Portfolio Overhaul */
.game-spotlight {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    /* Increased whitespace */
    align-items: center;
    margin-bottom: 8rem;
    /* Spacing between spotlights */
}

.game-spotlight:nth-child(even) {
    direction: rtl;
    /* Flip layout for visual interest */
}

.game-spotlight:nth-child(even) .spotlight-content {
    direction: ltr;
    /* Reset text direction */
    text-align: left;
    /* Ensure text stays left-aligned */
}

.spotlight-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.spotlight-img img {
    width: 100%;
    display: block;
    transition: transform 0.7s;
}

.spotlight-img:hover img {
    transform: scale(1.05);
}

.spotlight-content h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.spotlight-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.spotlight-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Grid for Secondary Games */
.secondary-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.game-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Improved Game Card Images */
.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Standard landscape ratio */
    height: auto;
    overflow: hidden;
    background: #000;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on top part of image */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.game-card:hover .card-img img {
    transform: scale(1.08);
    /* subtler zoom */
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    text-decoration: underline;
}

/* Footer & Other */
footer {
    border-top: 1px solid var(--glass-border);
    background: #050505;
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.legal-links {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* Layout Helpers */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-6 {
    margin-top: 6rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.w-full {
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 3rem;
    color: #fff;
}

/* Legal Page Defaults */
.legal-content {
    background: var(--bg-secondary);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
}

.legal-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    text-align: left;
    transform: none;
    left: 0;
    display: block;
}

.legal-content h2::after {
    display: none;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    .game-spotlight {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 5rem;
    }

    .game-spotlight:nth-child(even) {
        direction: ltr;
    }

    .stats-row {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 0;
    }

    .stats-row::after {
        display: none;
    }

    .about-panel {
        flex-direction: column;
        padding: 2rem;
    }
}

/* About Section Specifics */
.about-panel {
    display: flex;
    gap: 4rem;
    padding: 4rem;
    border-radius: 20px;
    align-items: flex-start;
}

.about-content {
    flex: 1;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.global-presence {
    flex: 0.8;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.loc-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.loc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.loc-flag {
    font-size: 2rem;
}

.loc-info {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}

.loc-info strong {
    color: #fff;
    display: block;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.7;
}