/* Education & Experience Section */
#education {
    padding: 6rem 0;
    background: var(--background);
    min-height: 100vh;
}

/* Simple Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    position: relative;
    max-width: 45%;
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    border-left: none;
    border-right: 4px solid var(--primary);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow-glow);
}

.timeline-content::before {
    right: -52px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: auto;
    left: -52px;
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--foreground);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-content ul {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.timeline-date {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        max-width: calc(100% - 70px);
        margin-left: 70px !important;
        border-left: 4px solid var(--primary) !important;
        border-right: none !important;
    }
    
    .timeline-content::before {
        left: -52px !important;
        right: auto !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 70px !important;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        padding: 2rem 1.5rem;
        max-width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -46px !important;
        width: 16px;
        height: 16px;
    }
    
    .timeline::before {
        left: 24px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 60px !important;
    }
}