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

:root {
    /* Color System */
    --bg-primary: #0b0603;
    --bg-secondary: #1a120b;
    --accent-gold-1: #d4af37;
    --accent-gold-2: #f6e27a;
    --accent-amber-1: #c2410c;
    --accent-amber-2: #f97316;
    --accent-ruby: #b91c1c;
    
    --accent-gold: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
    --accent-amber: linear-gradient(135deg, var(--accent-amber-1), var(--accent-amber-2));
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 175, 55, 0.15);
    
    --glow-gold: rgba(212, 175, 55, 0.45);
    --glow-amber: rgba(249, 115, 22, 0.35);
    
    /* Typography */
    --text-primary: #f5e6c8;
    --text-secondary: #d6c6a5;
    --text-muted: #6b5e4a;
    
    --font-head: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --spacing-desk: 120px;
    --spacing-tab: 80px;
    --spacing-mob: 60px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

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

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

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

ul {
    list-style: none;
}

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

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

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

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

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 16px;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::after {
    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:hover::after {
    left: 150%;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-gold);
    color: var(--bg-primary);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--accent-gold-1);
}

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

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(11, 6, 3, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.logo {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gold);
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2zm0 4.5l6.5 13.5h-13L12 6.5z"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2zm0 4.5l6.5 13.5h-13L12 6.5z"/></svg>') center/contain no-repeat;
}

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

.nav-links a {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(58, 28, 13, 0.85) 0%, var(--bg-primary) 100%), url('images/dark-ancient-egypt-desert-background.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    z-index: 2;
}

#sand-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.6;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold-1);
    border-radius: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold-2);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.legal-notice-small {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Game Section */
.game-section {
    padding: var(--spacing-desk) 0;
    position: relative;
    z-index: 5;
    background: var(--bg-primary);
}

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

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.game-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.game-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 24px;
    background: linear-gradient(45deg, var(--accent-gold-1), var(--bg-primary), var(--accent-amber-1), var(--bg-primary));
    background-size: 400% 400%;
    animation: gradientBorder 8s ease infinite;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.2);
    transition: transform 0.4s ease;
}

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

.game-inner {
    background: var(--bg-primary);
    border-radius: 21px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.game-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-secondary);
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 0 10px;
}

.game-title-area h3 {
    font-size: 28px;
    color: var(--text-primary);
}

.game-title-area p {
    color: var(--text-muted);
    font-size: 14px;
}

.game-buttons {
    display: flex;
    gap: 16px;
}

/* Features Section */
.features-section {
    padding: var(--spacing-desk) 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    position: relative;
}

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

.feature-card {
    grid-column: span 3;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h4 {
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Interior Pages Content */
.interior-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(42, 22, 9, 0.85) 0%, var(--bg-primary) 100%), url('images/ancient-egypt-pyramid-interior-wall.jpg') center/cover no-repeat;
}

.interior-content {
    padding: 40px 0 var(--spacing-desk);
}

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

.content-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

.content-panel h2 {
    margin: 40px 0 20px;
    font-size: 28px;
    color: var(--accent-gold-1);
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.content-panel ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

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

.content-panel li::before {
    content: '♦';
    position: absolute;
    left: 0;
    color: var(--accent-gold-1);
}

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

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

.form-group label {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}

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

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: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    grid-column: span 5;
}

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

.footer-links {
    grid-column: span 3;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-gold-1);
    padding-left: 5px;
}

.footer-contact {
    grid-column: span 4;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.legal-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
}

.legal-bar .warning {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--accent-ruby);
    border-radius: 8px;
    background: rgba(185, 28, 28, 0.05);
    display: inline-block;
}

.legal-bar .copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.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 (max-width: 1024px) {
    .feature-card {
        grid-column: span 6;
    }
    
    .footer-brand {
        grid-column: span 12;
    }
    
    .footer-links {
        grid-column: span 6;
    }
    
    .footer-contact {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-desk: var(--spacing-tab);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links .btn {
        margin-top: 20px;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .game-buttons {
        width: 100%;
    }
    
    .game-buttons .btn {
        flex: 1;
    }
    
    .content-panel {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-desk: var(--spacing-mob);
    }
    
    .feature-card {
        grid-column: span 12;
    }
    
    .footer-links, .footer-contact {
        grid-column: span 12;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}