/* ============================================================
   About page — interactive layer (career timeline, skill hover,
   scroll-reveal). Subtle motion, respects prefers-reduced-motion.
   ============================================================ */

/* ---------- Scroll reveal ---------- */
.pg-about .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.pg-about .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Slight stagger for grids */
.pg-skills-grid .reveal:nth-child(2) { transition-delay: 0.04s; }
.pg-skills-grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.pg-skills-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.pg-values-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.pg-values-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.pg-values-grid .reveal:nth-child(4) { transition-delay: 0.15s; }

/* ============================================================
   CAREER TIMELINE
   ============================================================ */
.ab-timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 6px;
}

.ab-timeline-line {
    position: absolute;
    left: 26px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.ab-timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: height 0.5s ease;
}

.ab-tl-item {
    position: relative;
    display: flex;
    gap: 22px;
    padding: 14px 0;
}

.ab-tl-dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    min-width: 54px;
    height: 30px;
    padding: 0 8px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition);
}

.ab-tl-item.is-visible .ab-tl-dot {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-glow);
}

.ab-tl-body {
    padding-top: 2px;
}

.ab-tl-body h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: var(--text-main);
}

.ab-tl-body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================================
   INTERACTIVE SKILLS (hover / focus highlight)
   ============================================================ */
.pg-skill-card.is-interactive {
    cursor: default;
    outline: none;
}

.pg-skill-card.is-interactive:hover,
.pg-skill-card.is-interactive:focus-visible {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.pg-skill-card.is-interactive:hover .pg-skill-chip,
.pg-skill-card.is-interactive:focus-visible .pg-skill-chip {
    border-color: rgba(0, 0, 0, 0.18);
    color: var(--primary);
}

.pg-skill-chip {
    transition: var(--transition);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .ab-tl-item {
        gap: 14px;
    }

    .ab-timeline-line {
        left: 26px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pg-about .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .ab-timeline-progress,
    .ab-tl-dot,
    .pg-skill-card.is-interactive {
        transition: none;
    }
}
