/* ============================================================
   experience.css — Vertical Timeline with Dates on Connector
   ============================================================ */

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

/* Vertical connector line */
.timeline::before {
  content: '';
  position: absolute;
  left: 140px;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 2px dotted var(--border);
}

/* --- Timeline Entry ---------------------------------------- */
.timeline-entry {
  position: relative;
  margin-bottom: var(--space-7);
}

/* --- Date Label (on the timeline) -------------------------- */
.timeline-date-label {
  position: absolute;
  left: -160px;
  top: var(--space-5);
  width: 125px;
  text-align: right;
  color: var(--fg-dim);
  font-size: var(--fs-xs);
  white-space: nowrap;
  line-height: 1.4;
}

/* --- Marker ------------------------------------------------ */
.timeline-marker {
  position: absolute;
  left: -22px;
  top: var(--space-5);
  color: var(--accent);
  font-size: 10px;
  width: 24px;
  text-align: center;
  text-shadow: 0 0 6px var(--accent-glow);
}

/* --- Content Card ------------------------------------------ */
.timeline-content {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(94, 241, 255, 0.05);
}

/* --- Content ----------------------------------------------- */
.timeline-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.timeline-role {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-md);
}

.timeline-company {
  color: var(--fg-dim);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

/* --- Achievements ------------------------------------------ */
.timeline-achievements {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.achievement-line {
  color: var(--fg);
  font-size: var(--fs-sm);
  line-height: 1.6;
  padding-left: var(--space-4);
  position: relative;
}

.prompt-arrow {
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* --- End marker -------------------------------------------- */
.timeline-end {
  text-align: center;
  padding: var(--space-4);
  font-size: var(--fs-sm);
}

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

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

  .timeline-date-label {
    position: relative;
    left: 0;
    top: 0;
    width: auto;
    text-align: left;
    margin-bottom: var(--space-2);
    padding-left: 0;
  }

  .timeline-marker {
    left: -30px;
  }

  .timeline-content {
    padding: var(--space-4);
  }

  .timeline-header {
    flex-direction: column;
    gap: var(--space-1);
  }
}
