.timeline-section {
    padding: 4rem 2rem;
    color: #FFFFFF;
    font-family: "Work Sans", sans-serif;
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    margin-left: 115px;
    padding-left: 40px;
    border-left: 2px solid #7F8CFF;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #7F8CFF 0%, #A88BFF 100%);
    animation: scrollLine 4s ease-in-out forwards;
}

@keyframes scrollLine {
    0% { height: 0; }
    100% { height: 100%; }
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 4px;
    width: 19px;
    height: 19px;
    background: radial-gradient(circle, #A88BFF 0%, #7F8CFF 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px #A88BFF;
    transition: box-shadow 0.3s ease;
}

.timeline-item:hover::before {
    box-shadow: 0 0 15px #A88BFF, 0 0 25px #7F8CFF;
}

.timeline-date {
    position: absolute;
    left: -200px;
    width: 140px;
    font-weight: 600;
    font-size: 14px;
    color: #A2B1FF;
    text-align: right;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(127, 140, 255, 0.3);
    box-shadow: 0 0 10px rgba(168, 139, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 40px;
    max-width: 600px;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(168, 139, 255, 0.25);
    animation: unblur 3s forwards ease-out;
}

.timeline-content h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
}

.timeline-content p {
    color: #D8D8F6;
    font-size: 15px;
    line-height: 1.6;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(168, 139, 255, 0.25);
}

.timeline-item:nth-child(1) {transition-delay: 0s;}
.timeline-item:nth-child(2) {transition-delay: 0.2s;}
.timeline-item:nth-child(3) {transition-delay: 0.4s;}
.timeline-item:nth-child(4) {transition-delay: 0.6s;}
.timeline-item:nth-child(5) {transition-delay: 0.8s;}
.timeline-item:nth-child(6) {transition-delay: 1s;}
.timeline-item:nth-child(7) {transition-delay: 1.2s;}

@keyframes unblur {
    from {
        backdrop-filter: blur(4px);
    }
    to {
        backdrop-filter: blur(0px);
    }
}
