@import url(./variables.css);

/* ===== Timeline Section ===== */
.timeline {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    border-left: 2px solid var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1b1b1b;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 45rem;
}

/* Animation states */
.timeline-dot {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-dot.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animated vertical line */
.timeline-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: #8ec5fc;
    transition: height 0.6s ease-out;
}

@media (max-width: 600px) {
    .timeline-container {
        border-left: none;
        padding-left: 0;
    }

    .timeline-item {
        border-left: 2px solid var(--color-primary);
        margin-left: 10px;
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -8px;
    }
}