/* ======== Basic Setup & Variables ======== */
:root {
    --primary-green: #2A6F29;
    --accent-gold: #D4AF37;
    --dark-charcoal: #212529;
    --royal-maroon: #6D2932; /* New Color */
    --light-bg: #F8F9FA;
    --white: #ffffff;
    --cream-text: #f1ede4;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-royal: 'Playfair Display', serif; /* New Font */
}

/* ... (Keep all previous CSS from body to .hero-content p) ... */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-charcoal);
    background-color: var(--white);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-charcoal);
}
h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h1 span, h2 span { color: var(--primary-green); }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title p { font-size: 1.1rem; color: #6c757d; }

.cta-button { display: inline-block; background-color: var(--accent-gold); color: var(--white); padding: 12px 28px; border-radius: 50px; text-decoration: none; font-family: var(--font-heading); font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; }
.cta-button:hover { background-color: transparent; border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-3px); }

.header { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; padding: 1rem 0; position: sticky; top: 0; width: 100%; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary-green); text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--dark-charcoal); font-weight: 600; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-green); }
.cta-button-nav { background-color: var(--primary-green); color: var(--white); padding: 8px 20px; border-radius: 50px; }
.cta-button-nav:hover { background-color: var(--accent-gold); color: var(--white); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--dark-charcoal); }

.hero-section { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; color: var(--white); background: url('https://images.unsplash.com/photo-1590002159570-7433b56c433c?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content h1 span { color: var(--accent-gold); }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.9); }


/* ======== About Section Styles ======== */
.about-section { padding: 6rem 0; background-color: var(--light-bg); }
.features-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.feature-card { background-color: var(--white); padding: 2.5rem; text-align: center; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.feature-icon { font-size: 3rem; color: var(--primary-green); margin-bottom: 1.5rem; }

/* ======== NEW: History Section Styles ======== */
.history-section {
    padding: 6rem 0;
    background-color: var(--dark-charcoal);
    background-image: linear-gradient(rgba(42, 111, 41, 0.1), rgba(109, 41, 50, 0.2)), url('https://www.transparenttextures.com/patterns/dark-matter.png');
    color: var(--cream-text);
}

.history-section .section-title p {
    color: rgba(241, 237, 228, 0.7);
}

.history-title {
    font-family: var(--font-royal);
    font-size: 3rem;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.3);
}
.history-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 1rem auto 0;
}

.timeline-container {
    overflow-x: auto;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
/* Custom scrollbar for a better look */
.timeline-container::-webkit-scrollbar { height: 8px; }
.timeline-container::-webkit-scrollbar-track { background: #444; }
.timeline-container::-webkit-scrollbar-thumb { background-color: var(--accent-gold); border-radius: 10px; }

.timeline {
    display: inline-flex; /* Allows horizontal layout without wrapping */
    position: relative;
    padding: 2rem;
    min-width: 100%;
}
/* The main timeline bar */
.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-50%);
}

.timeline-item {
    position: relative;
    min-width: 300px;
    padding: 1.5rem;
    margin: 0 2rem;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}
.timeline-item:nth-child(odd) {
    margin-top: -30px;
}
.timeline-item:nth-child(even) {
    margin-top: 30px;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: -2rem; /* Aligns with the container's padding */
    width: 16px;
    height: 16px;
    background-color: var(--royal-maroon);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.timeline-content h3 {
    font-family: var(--font-royal);
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}


/* ... (Keep all other CSS from .legacy-section to the end, no changes needed there) ... */
.legacy-section { padding: 6rem 0; }
.legacy-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.legacy-card { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); color: var(--white); }
.legacy-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.legacy-card:hover img { transform: scale(1.05); }
.legacy-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); }
.legacy-info h3 { color: var(--white); margin-bottom: 0.5rem; }

.how-it-works-section { padding: 6rem 0; background-color: var(--light-bg); }
.steps-container { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.step { text-align: center; max-width: 300px; }
.step-icon { margin-bottom: 1rem; font-size: 2.5rem; color: var(--primary-green); position: relative; display: inline-block; }
.step-icon span { position: absolute; top: -10px; left: -15px; background-color: var(--accent-gold); color: var(--white); font-size: 1rem; font-weight: 700; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step-arrow { display: none; }

.final-cta-section { padding: 6rem 0; background-color: var(--primary-green); color: var(--white); text-align: center; }
.final-cta-section h2 { color: var(--white); }
.final-cta-section p { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }
.invite-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 0 auto; }
.invite-form input { padding: 15px; border-radius: 50px; border: 2px solid transparent; font-size: 1rem; font-family: var(--font-body); }
.invite-form input:focus { outline: none; border-color: var(--accent-gold); }

.footer { background-color: var(--dark-charcoal); color: var(--light-bg); padding: 4rem 0 2rem; text-align: center; }
.footer-content h3 { color: var(--white); margin-bottom: 0.5rem; }
.social-links { margin: 2rem 0; }
.social-links a { color: var(--white); text-decoration: none; font-size: 1.5rem; margin: 0 1rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid #444; padding-top: 2rem; margin-top: 2rem; }
.footer-bottom p { font-size: 0.9rem; }
.footer-bottom a { color: var(--accent-gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .legacy-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-container { flex-direction: row; justify-content: space-between; align-items: flex-start; }
    .step-arrow { display: block; font-size: 2rem; color: var(--accent-gold); margin-top: 3rem; }
    .invite-form { flex-direction: row; }
    .invite-form input { width: 70%; }
    .invite-form button { width: 30%; }
}
@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 5rem; flex-direction: column; background-color: var(--white); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-radius: 0 0 10px 10px; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .steps-container .step-arrow { transform: rotate(90deg); margin: 0; }
    .history-title { font-size: 2.5rem; }
}