/* TIMELINE STYLES */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #334155;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }

/* The Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #0F172A;
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

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

.timeline-item:hover::after {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.content {
    padding: 20px 30px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .content {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.year-tag {
    font-family: 'Courier Prime', monospace;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .left { text-align: left; }
    .left::after, .right::after { left: 21px; }
    .right { left: 0%; }
}
