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

:root {
    /* Base Colors */
    --bg-primary: #1a1206;
    --bg-secondary: #2a1a08;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(250, 204, 21, 0.15);
    
    /* Accent Colors */
    --accent-primary: #facc15;
    --accent-secondary: #f97316;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #facc15, #f97316);
    --gradient-overlay: linear-gradient(to bottom, transparent, #1a1206);
    --glow-accent: rgba(250, 204, 21, 0.35);
    
    /* Text Colors */
    --text-primary: #fff7ed;
    --text-secondary: #fde68a;
    --text-muted: rgba(255, 247, 237, 0.6);
    
    /* Layout */
    --max-width: 1320px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-desktop: 110px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    
    /* Nav */
    --nav-height: 80px;
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

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

@media (max-width: 1024px) {
    .container { padding: 0 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

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

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

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

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

/* Glassmorphism Components */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--glow-accent);
    border-color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #1a1206;
    box-shadow: 0 4px 15px var(--glow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-accent);
}

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

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

.btn-outline:hover {
    background: rgba(250, 204, 21, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(26, 18, 6, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1206;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--glow-accent);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('assets/egyptian-desert-sunset-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 18, 6, 0.95) 0%, rgba(42, 26, 8, 0.8) 100%);
    z-index: 1;
}

/* Subtle dust particles simulation via CSS background */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, var(--accent-primary) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.05;
    z-index: 2;
    animation: floatingDust 60s linear infinite;
}

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

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-visual {
    grid-column: span 6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--surface-border);
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

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

.game-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 300px;
    background: var(--glow-accent);
    filter: blur(150px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.game-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-container:hover {
    transform: scale(1.01);
    box-shadow: 0 0 60px rgba(250, 204, 21, 0.25);
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius-lg) - 5px);
    overflow: hidden;
    background-color: #000;
}

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

/* Features Section */
.features {
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(250, 204, 21, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

/* Stats Section */
.stats {
    background: linear-gradient(to right, var(--bg-primary), var(--bg-secondary));
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: #1a1206;
    margin: 4rem auto;
    max-width: var(--max-width);
    box-shadow: 0 20px 40px var(--glow-accent);
}

.cta-banner h2 {
    color: #1a1206;
}

.cta-banner p {
    color: rgba(26, 18, 6, 0.8);
    font-weight: 500;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-banner .btn {
    background: #1a1206;
    color: var(--accent-primary);
}

.cta-banner .btn:hover {
    background: #2a1a08;
    box-shadow: 0 8px 25px rgba(26, 18, 6, 0.4);
}

/* Footer & Legal */
.footer {
    background-color: var(--bg-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--surface-border);
}

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

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent-primary);
}

.legal-disclaimer {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-disclaimer p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.legal-disclaimer strong {
    color: var(--accent-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

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

/* Internal Page Headers */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid var(--surface-border);
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-12 {
        grid-template-columns: repeat(8, 1fr);
    }
    .hero-content {
        grid-column: span 8;
        text-align: center;
        align-items: center;
    }
    .hero-visual {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header .btn {
        display: none;
    }

    .features-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .game-iframe-wrapper {
        aspect-ratio: 4 / 3;
    }
}