/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #2c5f2d;
    --primary-light: #4a8f4b;
    --primary-dark: #1a3d1b;
    --secondary-color: #97cc97;
    --accent-color: #d4af37;
    --text-dark: #2d2d2d;
    --text-light: #555555;
    --text-muted: #777777;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-cream: #faf8f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

p {
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 100px 0 120px;
    text-align: center;
}

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

.hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-cream);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================================
   Chapter Sections
   =================================== */
.chapter {
    padding: var(--section-padding);
}

.chapter.alt-bg {
    background-color: var(--bg-light);
}

.chapter-header {
    text-align: center;
    margin-bottom: 4rem;
}

.chapter-number {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 20px;
}

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

.content-section h3 {
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.content-section h4 {
    color: var(--primary-dark);
    margin-top: 2rem;
}

/* ===================================
   Content Boxes & Highlights
   =================================== */
.highlight-box {
    background-color: var(--bg-cream);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box.warning {
    border-left-color: var(--accent-color);
    background-color: #fffbf0;
}

.alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.alert-box h4 {
    color: #856404;
    margin-top: 0;
}

.principles-box {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.principles-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.principles-box ul {
    list-style: none;
    padding-left: 0;
}

.principles-box ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.principles-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================
   Quote Section
   =================================== */
.quote-section {
    margin: 3rem 0;
}

.quote-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.quote-box blockquote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.quote-box cite {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-style: normal;
    opacity: 0.9;
}

/* ===================================
   Grid Layouts
   =================================== */
.info-grid,
.humors-grid,
.impact-grid,
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card,
.humor-card,
.impact-card,
.modality-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alt-bg .info-card,
.alt-bg .humor-card,
.alt-bg .impact-card,
.alt-bg .modality-card {
    background-color: var(--bg-cream);
}

.info-card:hover,
.humor-card:hover,
.impact-card:hover,
.modality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card h4,
.humor-card h4,
.impact-card h4,
.modality-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.info-card p,
.humor-card p,
.impact-card p,
.modality-card p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* ===================================
   Tradition Cards
   =================================== */
.tradition-section {
    margin: 3rem 0;
}

.tradition {
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.tradition h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* ===================================
   Timeline
   =================================== */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin: 3rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-year {
    position: absolute;
    left: -3rem;
    top: 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    transform: translateX(-100%);
    margin-left: -1rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-light);
    border-radius: 50%;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* ===================================
   Revival Timeline
   =================================== */
.revival-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.revival-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.revival-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ===================================
   Breakthroughs
   =================================== */
.breakthroughs {
    margin: 3rem 0;
}

.breakthrough-card {
    background-color: var(--bg-cream);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.breakthrough-card.featured {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid var(--accent-color);
}

.breakthrough-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breakthrough-card h4 {
    color: var(--primary-dark);
    margin-top: 0;
}

/* ===================================
   Statistics Section
   =================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===================================
   Future Section
   =================================== */
.future-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pillar-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

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

.pillar-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.future-vision {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.future-vision h4 {
    color: var(--bg-white);
    margin-top: 0;
}

/* ===================================
   Journey Section
   =================================== */
.journey-section {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    padding: 100px 0;
}

.journey-header {
    text-align: center;
    margin-bottom: 4rem;
}

.journey-header h2 {
    color: var(--primary-color);
    font-size: 3rem;
}

.journey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.journey-card {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.journey-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.journey-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.final-message {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.call-to-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.call-to-action h3 {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.call-to-action p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .timeline-year {
        position: static;
        transform: none;
        margin-left: 0;
        margin-bottom: 1rem;
        display: inline-block;
    }

    .timeline-item:before {
        left: -3.5rem;
    }

    .quote-box blockquote {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .journey-header h2 {
        font-size: 2rem;
    }

    .call-to-action h3 {
        font-size: 1.5rem;
    }

    .info-grid,
    .humors-grid,
    .impact-grid,
    .modalities-grid,
    .future-pillars {
        grid-template-columns: 1fr;
    }
}
