@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-base: #0b0a08;
    --bg-obsidian: #1a140d;
    --color-sand: #c2a878;
    --color-parchment: #e6d3a3;
    --color-gold: #d4af37;
    --color-gold-glow: #f7d774;
    --color-ivory: #f5e6c8;
    
    --glass-bg: rgba(26, 20, 13, 0.6);
    --glass-border: rgba(212, 175, 55, 0.15);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Ambient Dust Particles */
.ambient-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(var(--color-gold) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.05;
    animation: dust-drift 100s linear infinite;
}

@keyframes dust-drift {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-parchment);
}

a {
    text-decoration: none;
    color: var(--color-sand);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-gold-glow);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-gold-glow);
    text-shadow: 0 0 10px rgba(247, 215, 116, 0.5);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-gold-glow);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-gold);
    cursor: pointer;
    background: none;
    border: none;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-sand) 100%);
    color: var(--bg-base);
    padding: 0.8rem 2rem;
    border-radius: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 215, 116, 0.4);
    color: var(--bg-base);
    filter: brightness(1.1);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-sand);
    padding: 0.8rem 2rem;
    border-radius: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    border: 1px solid var(--color-sand);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-glow);
    border-color: var(--color-gold-glow);
}

/* Main Layout */
main {
    position: relative;
    z-index: 1;
    padding-top: 80px; /* offset for nav */
    min-height: calc(100vh - 100px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 0 5%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-gold-glow), var(--color-sand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-sand);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeIn 1.2s ease-out;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inset 0 0 50px var(--bg-base);
    box-shadow: inset 0 0 40px var(--bg-base);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 10s ease;
}

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

/* Cards & Sections */
.section-pad {
    padding: 5rem 5%;
}

.glass-card {
    background: rgba(26, 20, 13, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(247, 215, 116, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Game Hub Styles */
.game-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 5%;
    text-align: center;
}

.game-hub h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold-glow);
}

.game-hub p {
    color: var(--color-sand);
    margin-bottom: 2rem;
}

.game-container-wrapper {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(212,175,55,0.4), rgba(26,20,13,0.8));
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    position: relative;
}

.game-container-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--color-gold), transparent, var(--color-sand));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.3;
    animation: pulseGlow 4s infinite alternate;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    background: var(--bg-obsidian);
}

/* Text Content Pages (Legal, About) */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold-glow);
    text-align: center;
}

.content-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-parchment);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.content-page p {
    margin-bottom: 1rem;
    color: var(--color-ivory);
    opacity: 0.9;
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--color-ivory);
    opacity: 0.9;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--color-sand);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(11, 10, 8, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--color-ivory);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Footer */
.site-footer {
    background: var(--bg-obsidian);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 5% 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-sand);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-gold-glow);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(245, 230, 200, 0.4);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    from { opacity: 0.2; }
    to { opacity: 0.5; }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(11, 10, 8, 0.98);
        flex-direction: column;
        padding: 5rem 2rem;
        border-left: 1px solid var(--glass-border);
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .btn-primary.nav-btn {
        display: none;
    }
}