/* ============================================
   RESUME / CV TIMELINE STYLES
   ============================================ */

/* --- Section Headers --- */
.cv-section-title {
    color: #01cafe;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cv-section-title i {
    font-size: 1.3rem;
}

.cv-intro {
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
}

.cv-intro strong {
    color: #01cafe;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 48px;
    margin-bottom: 2rem;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(1,202,254,0.5) 0%, rgba(168,85,247,0.3) 50%, rgba(250,204,21,0.2) 100%);
    border-radius: 2px;
}

/* Each timeline entry */
.timeline-item {
    position: relative;
    margin-bottom: 2.2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(1,202,254,0.12);
    border-radius: 12px;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    border-color: rgba(1,202,254,0.4);
    background: rgba(1,202,254,0.04);
    box-shadow: 0 4px 20px rgba(1,202,254,0.08);
}

/* Type icon badge inline with role */
.timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    border: 2px solid;
    margin-right: 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
}

/* Work icon */
.timeline-icon.type-work {
    background: rgba(1,202,254,0.12);
    border-color: #01cafe;
    color: #01cafe;
}
.timeline-item:hover .timeline-icon.type-work {
    background: #01cafe;
    color: #101010;
    box-shadow: 0 0 12px rgba(1,202,254,0.5);
}

/* Education icon */
.timeline-icon.type-edu {
    background: rgba(168,85,247,0.12);
    border-color: #a855f7;
    color: #a855f7;
}
.timeline-item:hover .timeline-icon.type-edu {
    background: #a855f7;
    color: #101010;
    box-shadow: 0 0 12px rgba(168,85,247,0.5);
}

/* Certification icon */
.timeline-icon.type-cert {
    background: rgba(250,204,21,0.12);
    border-color: #facc15;
    color: #facc15;
}
.timeline-item:hover .timeline-icon.type-cert {
    background: #facc15;
    color: #101010;
    box-shadow: 0 0 12px rgba(250,204,21,0.5);
}

/* Current indicator — pulsing glow */
.timeline-item.current .timeline-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Type label next to role */
.timeline-type-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.timeline-type-label.label-work {
    background: rgba(1,202,254,0.12);
    color: #01cafe;
}

.timeline-type-label.label-edu {
    background: rgba(168,85,247,0.12);
    color: #a855f7;
}

.timeline-type-label.label-cert {
    background: rgba(250,204,21,0.12);
    color: #facc15;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(1,202,254,0.4); }
    50% { box-shadow: 0 0 16px rgba(1,202,254,0.8); }
}

/* Header row inside each card */
.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.timeline-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 500;
    color: #01cafe;
    margin: 0.1rem 0 0.2rem 0;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    white-space: nowrap;
}

.timeline-location {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.timeline-location i {
    margin-right: 3px;
}

.timeline-badge {
    display: inline-block;
    background: rgba(1,202,254,0.15);
    color: #01cafe;
    border: 1px solid rgba(1,202,254,0.3);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.timeline-desc ul {
    padding-left: 1.2rem;
    margin: 0.4rem 0 0 0;
}

.timeline-desc li {
    margin-bottom: 0.3rem;
}

/* --- Skills / Certifications Chips --- */
.cv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.cv-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(1,202,254,0.25);
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.cv-chip:hover {
    border-color: #01cafe;
    background: rgba(1,202,254,0.12);
    color: #01cafe;
}

.cv-chip i {
    margin-right: 0.35rem;
    color: #01cafe;
}

/* --- Certifications list --- */
.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.6rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li::before {
    content: '\f0a3'; /* fa-certificate */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.65rem;
    color: #01cafe;
    font-size: 0.85rem;
}

.cert-list li .cert-issuer {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    display: block;
    margin-top: 0.1rem;
}

/* --- Download / LinkedIn CTA --- */
.cv-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 1rem 0;
}

.cv-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cv-cta-primary {
    background: #01cafe;
    color: #101010;
    border: none;
}

.cv-cta-primary:hover {
    background: #00b8e6;
    color: #101010;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(1,202,254,0.35);
}

.cv-cta-secondary {
    background: transparent;
    color: #01cafe;
    border: 1px solid rgba(1,202,254,0.4);
}

.cv-cta-secondary:hover {
    background: rgba(1,202,254,0.1);
    border-color: #01cafe;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(1,202,254,0.15);
}

/* --- Timeline Legend --- */
.timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.dot-work { background: #01cafe; }
.legend-dot.dot-edu  { background: #a855f7; }
.legend-dot.dot-cert { background: #facc15; }

/* --- Year marker --- */
.timeline-year {
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.8rem 0 0.8rem -48px;
    padding-left: 48px;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.timeline-year:first-child {
    margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .timeline {
        padding-left: 38px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .timeline-icon {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        margin-right: 0.4rem;
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-role {
        font-size: 1.05rem;
    }

    .cv-section-title {
        font-size: 1.25rem;
    }

    .cv-cta-row {
        flex-direction: column;
    }

    .cv-cta {
        justify-content: center;
        width: 100%;
    }

    .timeline-year {
        margin-left: -38px;
        padding-left: 38px;
    }

    .timeline-year::before {
        left: 4px;
        width: 10px;
    }

    .timeline-type-label {
        margin-left: 0;
        margin-top: 0.3rem;
        display: block;
        width: fit-content;
    }
}
