/* Font Face Definition */
@font-face {
    font-family: 'Bitlingravish';
    src: url('../assets/fonts/bitlingravish.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Thangka Inspired Palette */
    --color-bg: #0f0f12;
    /* Deep Dark Background */
    --color-maroon: #660000;
    /* Deep Maroon */
    --color-gold: #D4AF37;
    /* Metallic Gold */
    --color-indigo: #191970;
    /* Midnight Blue */
    --color-turquoise: #008080;
    /* Teal/Turquoise */
    --color-text: #F5F5F5;
    /* Off-white text */
    --color-text-muted: #B0B0B0;

    --font-heading: 'Bitlingravish', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

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

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

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--color-gold);
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--color-gold), #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1a0505 0%, var(--color-bg) 70%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--color-maroon) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-maroon) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-button:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin: 0 auto 4rem auto;
    position: relative;
    display: block;
    width: fit-content;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--color-maroon);
    margin: 10px auto 0;
}

/* About Section */
.about-section {
    background-color: #121215;
}

.about-content {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
}

.game-image {
    width: 100%;
    height: auto;
    background-color: #2a2a2a;
    display: block;
}

.game-info {
    padding: 1.5rem;
    text-align: center;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.game-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: linear-gradient(to top, #0f0f12, #15151a);
}

.contact-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--color-gold);
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--color-gold);
}

/* Footer */
.main-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented with JS */
    }

    .hamburger {
        display: block;
    }
}