:root {
    --bg-color: #050a14;
    --accent-blue: #00d2ff;
    --text-color: #ffffff;
    --line-color: rgba(0, 210, 255, 0.3);
    --total-duration: 13s;
}

#career-timeline {
    color: var(--text-color);
}

#about-me-title {
    padding-bottom: 20px;
    margin-bottom: 0;
}

#about-me-title .section-title p {
    margin-bottom: 10px;
}

#about-me-title .timeline-bridge {
    margin-bottom: 0;
}

#career-timeline {
    padding-top: 0;
    margin-top: 0;
}

#career-timeline .section-title {
    margin-bottom: 10px;
}

#career-timeline .timeline-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 4px;
}

#career-timeline .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), transparent);
    transform: translateX(-50%);
    z-index: 1;
    animation: lineGlobalTimeline var(--total-duration) infinite linear;
}

#career-timeline .step {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    width: 100%;
    opacity: 0;
    z-index: 2;
}

#career-timeline .dot {
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: transparent !important;
    background-image: url("../images/kula.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 50%;
    overflow: hidden;
    mix-blend-mode: screen;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.45), 0 0 18px rgba(0, 210, 255, 0.35);
    animation: kula-glow 2.4s ease-in-out infinite;
    will-change: filter, opacity;
}

#career-timeline .step:nth-child(2) .dot { animation-delay: 0.2s; }
#career-timeline .step:nth-child(3) .dot { animation-delay: 0.4s; }
#career-timeline .step:nth-child(4) .dot { animation-delay: 0.6s; }
#career-timeline .step:nth-child(5) .dot { animation-delay: 0.8s; }
#career-timeline .step:nth-child(6) .dot { animation-delay: 1s; }
#career-timeline .step:nth-child(7) .dot { animation-delay: 1.2s; }
#career-timeline .step:nth-child(8) .dot { animation-delay: 1.4s; }
#career-timeline .step:nth-child(9) .dot { animation-delay: 1.6s; }

#career-timeline .content {
    width: 40%;
    padding: 8px 11px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: center;
}

#career-timeline .content strong {
    display: block;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

#career-timeline .step:nth-child(odd) {
    justify-content: flex-start;
}

#career-timeline .step:nth-child(even) {
    justify-content: flex-end;
}

#career-timeline .step:nth-child(1) {
    animation: step1Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(2) {
    animation: step2Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(3) {
    animation: step3Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(4) {
    animation: step4Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(5) {
    animation: step5Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(6) {
    animation: step6Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(7) {
    animation: step7Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(8) {
    animation: step8Timeline var(--total-duration) infinite linear;
}

#career-timeline .step:nth-child(9) {
    animation: step9Timeline var(--total-duration) infinite linear;
}

@keyframes lineGlobalTimeline {
    0% { opacity: 0; }
    5%, 91% { opacity: 0.2; }
    92%, 100% { opacity: 0; }
}

@keyframes step1Timeline {
    0%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step2Timeline {
    0%, 7.6% { opacity: 0; transform: scale(0.9); }
    8%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step3Timeline {
    0%, 15.3% { opacity: 0; transform: scale(0.9); }
    16%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step4Timeline {
    0%, 23% { opacity: 0; transform: scale(0.9); }
    24%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step5Timeline {
    0%, 30.7% { opacity: 0; transform: scale(0.9); }
    31%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step6Timeline {
    0%, 38.4% { opacity: 0; transform: scale(0.9); }
    39%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step7Timeline {
    0%, 46.1% { opacity: 0; transform: scale(0.9); }
    47%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step8Timeline {
    0%, 53.8% { opacity: 0; transform: scale(0.9); }
    54%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@keyframes step9Timeline {
    0%, 61.5% { opacity: 0; transform: scale(0.9); }
    62%, 91% { opacity: 1; transform: scale(1); }
    92%, 100% { opacity: 0; }
}

@media (max-width: 650px) {
    #career-timeline .timeline-line {
        left: 20px;
    }

    #career-timeline .dot {
        left: 20px;
    }

    #career-timeline .step {
        justify-content: flex-start !important;
        padding-left: 45px;
        box-sizing: border-box;
    }

    #career-timeline .content {
        width: 90%;
        text-align: left;
    }
}
