/* css/pages/experience.css - Timeline styles */

.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.timeline::before,
.timeline-line {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--secondary), transparent);
}

.timeline-pulse {
    position: absolute;
    left: 27px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent), 0 0 32px var(--accent-glow);
    z-index: 3;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    opacity: 0.06;
    position: absolute;
    right: 0;
    top: -1rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    color: var(--text);
}

.timeline-item {
    padding-left: 80px;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    top: 1.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
    background: var(--bg-raised);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card.active {
    padding: 2rem 2.25rem;
    transform: translateX(8px);
    background: var(--bg-hover);
    border-color: rgba(0, 229, 155, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

.timeline-card:first-child,
.timeline-card.current {
    animation: breathe 4s ease-in-out infinite;
}

.timeline-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.timeline-role h3 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-role .company {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 155, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-tech span {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 56px;
    }

    .timeline::before,
    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 12px;
        width: 14px;
        height: 14px;
        top: 1.25rem;
    }

    .timeline-pulse {
        left: 15px;
        width: 10px;
        height: 10px;
    }

    .timeline-top {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-year {
        font-size: clamp(3rem, 6vw, 5rem);
    }
}
