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

:root {
    /* Color System - Base Layers */
    --bg-obsidian: #0b0a08;
    --bg-shadow: #1a140d;
    --bg-elevated: rgba(255, 215, 140, 0.04);
    
    /* Color System - Accents */
    --gold-primary: #d4af37;
    --gold-sunlit: #f5d06f;
    --gold-burnished: #c89b3c;
    
    /* Color System - Typography */
    --text-primary: #fff3d6;
    --text-secondary: #e7cfa3;
    --text-muted: #b89b6a;

    /* Layout System */
    --max-width: 1320px;
    --border-radius: 16px;
    --border-radius-lg: 20px;
    
    /* Spacing Base */
    --spacing-section: 120px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold-sunlit);
    line-height: 1.2;
}

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

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

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-burnished));
    color: var(--bg-obsidian);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-sunlit), var(--gold-primary));
    color: var(--bg-obsidian);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

/* Navigation - Golden Temple Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 10, 8, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(11, 10, 8, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-sunlit);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-sunlit);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--gold-sunlit);
}

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

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

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: sepia(0.3) brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--bg-obsidian) 0%, rgba(11, 10, 8, 0.7) 50%, rgba(11, 10, 8, 0.2) 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    background: linear-gradient(to bottom, var(--gold-sunlit), var(--gold-burnished));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-disclaimer {
    display: block;
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Main Game Section */
.game-section {
    background: linear-gradient(to bottom, var(--bg-obsidian), var(--bg-shadow), var(--bg-obsidian));
    position: relative;
    text-align: center;
}

.game-header {
    margin-bottom: 60px;
}

.game-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

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

.game-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.game-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid var(--gold-burnished);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(0,0,0,0.8);
    background-color: #000;
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Feature Sections */
.features {
    background-color: var(--bg-obsidian);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.feature-card:hover::before {
    left: 200%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-burnished);
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px var(--gold-sunlit));
}

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

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

/* Interior Pages Content (About, Contact, Legal) */
.page-header {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(11, 10, 8, 0.9), var(--bg-obsidian)), url('images/ancient-egypt-wall-texture.webp') center/cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 32px;
}

/* Parchment Style for Legal/Rules */
.parchment-box {
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

.parchment-box::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.05);
    border-radius: calc(var(--border-radius) - 4px);
    pointer-events: none;
}

.parchment-box h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

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

.parchment-box ul {
    padding-left: 20px;
}

.parchment-box li {
    margin-bottom: 10px;
}

/* Form Styles */
.contact-form {
    display: grid;
    gap: 24px;
}

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

.form-group label {
    color: var(--text-secondary);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--bg-shadow);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 400px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

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

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}