.experience {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}

/* Abstract glowing background blobs */
.exp-bg-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: 20%;
    left: -10vw;
    z-index: 0;
    pointer-events: none;
}

.exp-bg-glow-2 {
    position: absolute;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    bottom: 10%;
    right: -5vw;
    z-index: 0;
    pointer-events: none;
}

html.dark .exp-bg-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

html.dark .exp-bg-glow-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.exp-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    z-index: 2;
    position: relative;
}

.modern-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

/* The central glowing vertical line */
.modern-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), #a855f7, transparent);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.m-timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 60px;
}

.m-timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.m-timeline-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 3;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.m-timeline-item:hover .m-timeline-icon {
    transform: translate(-50%, 0) scale(1.2) rotate(10deg);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
}

.m-timeline-icon--logo {
    padding: 4px;
    background: var(--bg-card);
    overflow: hidden;
}

.m-timeline-icon--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.m-timeline-item:hover .m-timeline-icon--logo {
    background: var(--bg-card);
}

.m-timeline-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

html.dark .m-timeline-content {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.m-timeline-item:hover .m-timeline-content {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.m-timeline-date {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

html.dark .m-timeline-date {
    background: rgba(59, 130, 246, 0.2);
}

.m-timeline-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.m-timeline-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.m-timeline-desc {
    color: var(--text-color-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Connecting arrows */
.m-timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.m-timeline-item:nth-child(odd) .m-timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.6);
}

html.dark .m-timeline-item:nth-child(odd) .m-timeline-content::before {
    border-color: transparent transparent transparent rgba(30, 41, 59, 0.7);
}

.m-timeline-item:nth-child(even) .m-timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.6) transparent transparent;
}

html.dark .m-timeline-item:nth-child(even) .m-timeline-content::before {
    border-color: transparent rgba(30, 41, 59, 0.7) transparent transparent;
}


/* Responsive (Mobile view) */
@media (max-width: 768px) {
    .modern-timeline::before {
        left: 30px;
    }

    .m-timeline-item,
    .m-timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 80px;
    }

    .m-timeline-icon {
        left: 30px;
    }

    .m-timeline-content {
        width: 100%;
    }

    .m-timeline-item:nth-child(odd) .m-timeline-content::before,
    .m-timeline-item:nth-child(even) .m-timeline-content::before {
        left: -15px;
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.6) transparent transparent;
    }

    html.dark .m-timeline-item:nth-child(odd) .m-timeline-content::before,
    html.dark .m-timeline-item:nth-child(even) .m-timeline-content::before {
        border-color: transparent rgba(30, 41, 59, 0.7) transparent transparent;
    }
}