/* ===================================================
   EDUCATION SECTION - TIMELINE REDESIGN
   Unique, modern layout with year badges and timeline
   =================================================== */

.education-section-redesign {
    margin: 6rem 0 4rem 0;
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(180deg,
            rgba(10, 14, 39, 0.5) 0%,
            rgba(26, 31, 58, 0.7) 50%,
            rgba(10, 14, 39, 0.5) 100%);
    border-top: 2px solid rgba(0, 229, 255, 0.2);
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
}

/* Header Section */
.education-header-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-education {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Timeline Wrapper */
.education-timeline-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Education Item */
.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

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

.education-item:last-child .timeline-line {
    display: none;
}

/* Timeline Marker */
.timeline-marker {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-line {
    width: 3px;
    flex-grow: 1;
    background: linear-gradient(180deg,
            var(--accent-cyan) 0%,
            var(--accent-purple) 100%);
    margin-top: 0.5rem;
    opacity: 0.4;
}

/* Education Content Card */
.education-content-card {
    flex: 1;
    background: linear-gradient(135deg,
            rgba(20, 27, 50, 0.95) 0%,
            rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.education-content-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.3);
}

/* Year Badge */
.edu-year-badge {
    position: absolute;
    top: -15px;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

/* Main Info */
.edu-main-info {
    margin-bottom: 1.25rem;
}

.edu-degree-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.edu-institution,
.edu-duration {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-institution i,
.edu-duration i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

/* Description */
.edu-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* Highlights Row */
.edu-highlights-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.highlight-badge {
    background: rgba(123, 47, 247, 0.15);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.highlight-badge:hover {
    background: rgba(123, 47, 247, 0.25);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.highlight-badge i {
    font-size: 1.1rem;
    color: var(--accent-purple);
}

/* Tech Stack */
.edu-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-chip {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-chip:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-section-redesign {
        padding: 3rem 0;
    }

    .education-item {
        gap: 1rem;
    }

    .timeline-marker {
        width: 30px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
    }

    .timeline-line {
        width: 2px;
    }

    .education-content-card {
        padding: 1.5rem;
    }

    .education-content-card:hover {
        transform: translateX(4px);
    }

    .edu-year-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .edu-degree-title {
        font-size: 1.3rem;
    }

    .edu-highlights-row {
        flex-direction: column;
    }

    .highlight-badge {
        justify-content: center;
    }

    .edu-tech-stack {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title-education {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-icon {
        font-size: 2rem;
    }

    .education-content-card {
        padding: 1.25rem;
    }

    .edu-degree-title {
        font-size: 1.2rem;
    }

    .highlight-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .tech-chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
}