:root {
    --bg-primary: #050403;
    --bg-secondary: #0f0d09;
    --bg-card: rgba(255, 255, 255, 0.05);
    
    --royal-gold: #d4af37;
    --deep-amber: #ff8c42;
    --safari-green: #1f7a63;
    --glow-highlight: #ffd166;
    
    --grad-gold: linear-gradient(135deg, #d4af37, #ffd166);
    --grad-earth: linear-gradient(135deg, #1f7a63, #ff8c42);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
.text-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Fluid Glossy Header */
.fluid-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 80px;
    background: rgba(15, 13, 9, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.fluid-header.scrolled {
    top: 10px;
    height: 70px;
    background: rgba(15, 13, 9, 0.7);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.fluid-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    background-size: 200% 100%;
    animation: liquidGold 6s infinite linear;
    z-index: -1;
    pointer-events: none;
}

@keyframes liquidGold {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.logo i {
    color: var(--royal-gold);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--royal-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-gold);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

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

.header-cta {
    position: relative;
    z-index: 2;
}

.btn-gold {
    background: var(--grad-gold);
    color: var(--bg-primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: inline-block;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--bg-primary);
}

.btn-gold:hover::before {
    left: 150%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--royal-gold);
    cursor: pointer;
    z-index: 101;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 4, 3, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--royal-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,4,3,0.3) 0%, rgba(5,4,3,0.8) 70%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 50px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Section */
.game-section {
    padding: 100px 20px;
    position: relative;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.game-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(212,175,55,0.4), rgba(255,140,66,0.1));
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
    transition: transform 0.3s ease;
}

.game-container:hover {
    transform: scale(1.01);
}

.game-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    pointer-events: none;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

.game-frame {
    width: 100%;
    height: 750px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: var(--bg-secondary);
    position: relative;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--royal-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Parallax Image Section */
.parallax-section {
    height: 60vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-image: url('images/photo-1516426122078-c23e76319801-parallax-parallax-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 3, 0.7);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.parallax-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Page Headers (About, Contact, etc.) */
.page-header {
    padding: 180px 20px 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    position: relative;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.glass-panel h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--royal-gold);
}

.glass-panel p, .glass-panel ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.glass-panel ul {
    padding-left: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--royal-gold);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--royal-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--royal-gold);
}

.legal-notice {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    margin-bottom: 30px;
}

.legal-notice p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.8;
}

.legal-notice .age-limit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--royal-gold);
    border-radius: 50%;
    font-weight: bold;
    color: var(--royal-gold);
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .game-frame { height: 600px; }
}

@media (max-width: 768px) {
    .nav-links, .header-cta { display: none; }
    .mobile-toggle { display: block; }
    .fluid-header { padding: 0 20px; height: 70px; }
    .fluid-header.scrolled { height: 60px; }
    .hero-title { font-size: 3rem; }
    .game-frame { height: 500px; }
    .game-container { padding: 5px; }
    .parallax-content h2 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .game-frame { height: 400px; }
    .feature-card { padding: 30px 20px; }
    .fluid-header { width: 90%; }
}