:root {
    --bg-color: #0F0F0F;
    --text-color: #E0E0E0;
    --accent-gold: #D4AF37;
    --accent-sand: #C2B280;
    --dark-surface: #1A1A1A;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

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

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    /* Fixed height for header */
    padding: 0 2rem;
    /* Remove vertical padding */
    display: flex;
    justify-content: center;
    /* Center nav */
    align-items: center;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo a {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    /* Occupy all of the height */
    width: auto;
    object-fit: contain;
}

.main-header ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-header a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../assets/completed_pyramid_photorealistic.png');
    /* Expected path */
    background-size: cover;
    background-position: center;
    position: relative;
    /* Placeholder fallback */
    background-color: #2c241b;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.8s;
}

.cta-button {
    padding: 1rem 2rem;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition-speed);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 1.1s;
}

.cta-button:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    scroll-margin-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #ccc;
}

.dark-bg {
    background-color: var(--dark-surface);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: transform var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-heading);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Theories Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.theory-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.theory-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    background-color: #333;
    /* Fallback */
    background-size: cover;
    background-position: center;
}

/* Placeholders until images are generated */
.placeholder-ramp {
    background: linear-gradient(45deg, #3a2e22, #5a4632);
}

.placeholder-spiral {
    background: linear-gradient(45deg, #2c3e50, #4ca1af);
}

.placeholder-water {
    background: linear-gradient(45deg, #1a2980, #26d0ce);
}

.placeholder-workers {
    background: linear-gradient(45deg, #cc95c0, #dbd4b4, #7aa1d2);
    height: 300px;
    width: 100%;
    border-radius: 8px;
}


.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Feature Row */
.feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.feature-text,
.feature-visual {
	font-size: 1.25rem;
    flex: 1;
    min-width: 300px;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: #000;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
}

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

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}