/* --- VERTICALE TIJDLIJN UPGRADE --- */

/* 1. Hoofdsectie */
#timeline-horizontal {
    padding: 6rem 0;
    background-color: #0f172a;
    color: white;
    font-family: 'Inter', sans-serif;
}

.timeline-title-horizontal {
    text-align: center;
    margin-bottom: 5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f0f9ff;
}

/* 2. Track en items verticaal */
.timeline-container-horizontal {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-track-horizontal {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* 3. Tijdlijn item: flex-row voor lijn links */
.timeline-item-horizontal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: row; /* lijn links, content rechts */
    align-items: flex-start;
    gap: 1.5rem;
}

/* 4. Marker container voor lijn en bolletje */
.timeline-item__marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Verticale lijn zichtbaar */
.timeline-item__marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #334155; /* lijnkleur */
    transform: translateX(-50%);
    z-index: -1; /* achter bolletje en content */
}

/* Bolletje */
.timeline-item__dot {
    width: 28px;
    height: 28px;
    background: #0ea5e9;
    border: 5px solid #38bdf8;
    border-radius: 50%;
    z-index: 1;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

/* 5. Jaar links van lijn */
.timeline-item__year {
    position: absolute;
    left: -100px; /* afstand tot bolletje */
    top: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-body-bg);
    white-space: nowrap;
    text-align: right;
}

/* 6. Content */
.timeline-item__content {
    position: relative;
    z-index: 1;
    background: #1e293b;
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item__content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Titel in content */
.timeline-item__content h3 {
    color: var(--color-body-bg);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Description in content */
.timeline-item__content p {
    color: var(--color-body-bg);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* 7. Afbeelding: terug naar oorspronkelijke versie */
.timeline-item-horizontal img {
    width: auto;       /* behoudt originele verhouding */
    height: auto;      
    max-height: 200px;
    max-width: 300px;  /* voorkomt dat afbeeldingen groter worden dan content */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    margin-top: 1rem;
}

/* 8. Animatie beginstaat */
.timeline-item-horizontal {
    opacity: 0;
    transform: translateY(50px);
}
