/* Page Specific Styles */

/* Timeline Design */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInTimeline 0.6s ease-out forwards;
}

@keyframes fadeInTimeline {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--accent-color);
    border: 2px solid var(--bg-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-color);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 1.5rem;
    position: relative;
}

.timeline-date {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px;
    }

    .right {
        left: 0%;
    }
}

/* Staggered animation delay */
.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(8) {
    animation-delay: 0.8s;
}