/* experience.css — Timeline page */
.experience-header {
  padding: var(--space-16) 0 var(--space-8);
}

.timeline {
  position: relative;
  padding-left: 150px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-medium);
}

.timeline-year {
  position: relative;
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--accent-primary);
  font-family: var(--font-sans);
  margin: var(--space-12) 0 var(--space-6);
  padding-left: var(--space-4);
}

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

.timeline-year::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

body.light-mode .timeline-year::before {
  border-color: var(--bg-primary);
}

.timeline-section-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: var(--space-6) 0 var(--space-3);
  padding-left: var(--space-4);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-tertiary);
  border: 2px solid var(--bg-primary);
}

body.light-mode .timeline-item::before {
  border-color: var(--bg-primary);
}

.timeline-item .card {
  padding: var(--space-4) var(--space-5);
}

.timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.timeline-item__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

.timeline-item__org {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
  background: var(--accent-glow);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.light-mode .timeline-item__org {
  background: rgba(0, 184, 122, 0.08);
  border-color: rgba(0, 184, 122, 0.25);
}

.timeline-item__name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.timeline-date {
  position: absolute;
  top: 14px;
  right: calc(100% + 35px);
  width: 110px;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  line-height: 1.3;
  white-space: nowrap;
}

.timeline-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media(max-width:480px) {
  .timeline {
    padding-left: 100px;
  }

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

  .timeline-year::before {
    left: -22px;
    width: 12px;
    height: 12px;
  }

  .timeline-item::before {
    left: -18px;
  }

  .timeline-date {
    right: calc(100% + 28px);
    width: 65px;
    font-size: 0.75rem;
    top: 16px;
  }
}