/* Education Timeline Styling */
.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    z-index: 1;
}

.timeline-line::before,
.timeline-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.7);
    z-index: 2;
}

.timeline-line::before {
    top: 0;
}

.timeline-line::after {
    bottom: 0;
    background-color: rgba(147, 51, 234, 0.7);
}

.education-card {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
}

.education-card:last-child {
    margin-bottom: 0;
}

.education-year {
    position: absolute;
    left: -2.5rem;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.year-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.education-card:hover .year-badge {
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.education-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.education-card:hover .education-content {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.degree-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.degree-icon.master {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.degree-icon.bachelor {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.degree-icon.certifications {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(45, 212, 191, 0.2));
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.education-card:hover .degree-icon {
    transform: rotate(5deg) scale(1.1);
}

.education-details {
    padding-left: 4rem;
}

.completion-date {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.thesis-download-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #3B82F6;
    font-weight: 500;
    transition: all 0.3s ease;
}

.thesis-download-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(59, 130, 246, 0.4);
}

/* Responsive adjustments for education timeline */
@media (max-width: 768px) {
    .education-timeline {
        padding-left: 1.5rem;
    }

    .education-year {
        left: -2rem;
    }

    .year-badge {
        width: 3rem;
        height: 3rem;
        font-size: 0.8rem;
    }

    .education-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .education-details {
        padding-left: 0;
    }

    .degree-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}