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

:root {
    /* Color Palette */
    --bg-primary: #0A0A0D;
    --bg-secondary: #141417;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent-primary: #00FF88;
    --accent-secondary: #00FFCC;
    --accent-gold: #C8A951;
    --text-primary: #F5F5F5;
    --text-secondary: #9CA3AF;
    
    /* Layout */
    --max-width: 1400px;
    --spacing-desktop: 100px;
    --spacing-tablet: 70px;
    --spacing-mobile: 50px;
    
    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

.section {
    padding: var(--spacing-desktop) 0;
}

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

/* Glassmorphism & Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 40px;
    transition: var(--transition-fast);
}

.glass-card:hover {
    border-color: rgba(0, 255, 136, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 136, 0.05);
    transform: translateY(-5px);
}

/* Typography */
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--accent-gold);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
    color: var(--bg-primary);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
    transform: translateY(-3px);
    text-shadow: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition-fast);
}

.site-header.scrolled {
    background: rgba(10, 10, 13, 0.95);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

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

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

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

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    transition: var(--transition-fast);
}

.nav-list a:hover {
    color: var(--accent-primary);
    text-shadow: none;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px; /* Offset for header */
    background: linear-gradient(to bottom, rgba(10, 10, 13, 0.4), var(--bg-primary)), 
                url('assets/images/ancient-egyptian-pyramid-desert-night-background.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10,10,13,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-legal-badge {
    display: inline-block;
    background: rgba(200, 169, 81, 0.1);
    border: 1px solid rgba(200, 169, 81, 0.3);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* Inner Page Hero */
.page-hero {
    padding: 180px 0 80px;
    background: linear-gradient(to bottom, rgba(20, 20, 23, 0.8), var(--bg-primary)),
                url('assets/images/temple-of-ra-interior-pillars-background.jpg') center/cover no-repeat;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero h1 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

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

.game-wrapper {
    width: 85%;
    max-width: 1300px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-lg);
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 136, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-secondary));
    z-index: -1;
    border-radius: calc(var(--border-radius-lg) + 2px);
    opacity: 0.3;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Features / Legal Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 50px 30px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.feature-icon img {
    width: 32px;
    height: 32px;
    filter: invert(73%) sepia(50%) saturate(5000%) hue-rotate(110deg) brightness(105%) contrast(105%); /* Adjusts white to approx neon green */
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

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

/* Content Pages */
.content-section {
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--accent-gold);
}

.content-wrapper p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.content-wrapper li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.content-wrapper li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 80px;
}

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

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

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    background: var(--bg-primary);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-bottom p {
    color: rgba(156, 163, 175, 0.6);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .game-wrapper {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .section {
        padding: var(--spacing-tablet) 0;
    }

    .features-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav.active {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 13, 0.98);
        backdrop-filter: blur(15px);
        padding: 30px;
        border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    }
    
    .main-nav.active .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-mobile) 0;
    }
    
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-wrapper {
        width: 100%;
        border-radius: var(--border-radius-md);
    }
    
    .header-actions .btn {
        display: none; /* Hide CTA in header on small mobile to save space */
    }
}