:root {
    --primary-color: #E31B21;
    --bg-color: #F5EBE1;
    --text-color: #333333;
    --white: #ffffff;
    --font-main: 'Encode Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Floral/Decorative Background Pattern */
    background-image:
        radial-gradient(#E31B2133 1.5px, transparent 1.5px),
        radial-gradient(#E31B2133 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-120%);
    transition: transform 0.4s ease-in-out;
    padding: 10px 0;
    backdrop-filter: blur(5px);
}

#main-nav.visible {
    transform: translateY(0);
}

.nav-container {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-container li a {
    color: var(--text-color);
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-container li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
    min-height: 720px;
    /* Converted from 80vh (based on 900px viewport) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    line-height: 1.3;
}

.intro-content {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.intro-content p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 60px 0 40px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Timeline Section (SVG Path) */
.timeline-section {
    padding: 40px 0;
    position: relative;
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    width: 50%;
}

.timeline-item.left {
    margin-right: auto;
    padding-right: 60px;
    text-align: right;
    justify-content: flex-end;
}

.timeline-item.right {
    margin-left: auto;
    padding-left: 60px;
    text-align: left;
}

.timeline-item .content {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(227, 27, 33, 0.1);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease-out;
    width: 100%;
    max-width: 450px;
    opacity: 0;
}

.timeline-item.left .content {
    transform: translateX(-50px);
}

.timeline-item.right .content {
    transform: translateX(50px);
}

.timeline-item.reveal .content {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item .content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Dots for timeline - Winding Path Positioning */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    /* Aligned with path calculation */
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item.left::before {
    right: 30px;
    /* Inside the item area, left of center line */
}

.timeline-item.right::before {
    left: 30px;
    /* Inside the item area, right of center line */
}

/* Box Section (Solemn Boxes) */
.box-section {
    padding: 40px 0;
}

.box-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.box-item {
    background: var(--white);
    border-radius: 20px;
    /* Soft rounding */
    padding: 30px;
    width: calc(50% - 15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.5s ease;
    border-left: 5px solid var(--primary-color);
    opacity: 0;
    transform: translateY(40px);
}

.box-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

.box-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(227, 27, 33, 0.15);
}

.box-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(227, 27, 33, 0.2);
    line-height: 1;
    min-width: 50px;
}

.box-content p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Staggered effect for boxes */
.box-item:nth-child(even) {
    margin-top: 40px;
    /* Creates the staggered look */
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    /* Timeline Mobile */
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 0 0 40px !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 0;
        right: auto;
    }

    .timeline-svg {
        /* Simple vertical line for mobile via CSS or simplified path */
        display: none;
        /* Hide complex SVG on mobile, use border */
    }

    .timeline-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 9px;
        width: 2px;
        border-left: 2px dashed var(--primary-color);
    }

    /* Box Mobile */
    .box-item {
        width: 100%;
        margin-top: 0 !important;
        /* Remove stagger on mobile */
    }
}

/* Footer Styles */
.main-footer {
    padding: 60px 0;
    text-align: center;
    background: transparent;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}