/* ============================================================
   experience.css — Timeline spine, cards, dots
   ============================================================ */

#experience {
  background: var(--dark-2);
  padding: var(--section-pad) 0;
}

.experience-header {
  text-align: center;
  margin-bottom: 80px;
}

.experience-header .section-title { color: var(--text-light); }

/* ---- Timeline container ---- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

/* Spine */
.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--dark-border);
  overflow: hidden;
}

.timeline-spine-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  transition: height 0.1s linear;
}

/* ---- Item layout (alternating) ---- */
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 56px;
  align-items: start;
}

.timeline-item:nth-child(odd)  .tl-card  { grid-column: 1; justify-self: end; padding-right: 40px; }
.timeline-item:nth-child(odd)  .tl-dot   { grid-column: 2; }
.timeline-item:nth-child(odd)  .tl-empty { grid-column: 3; }

.timeline-item:nth-child(even) .tl-empty { grid-column: 1; }
.timeline-item:nth-child(even) .tl-dot   { grid-column: 2; }
.timeline-item:nth-child(even) .tl-card  { grid-column: 3; padding-left: 40px; }

/* ---- Dot ---- */
.tl-dot {
  display: flex;
  justify-content: center;
  padding-top: 22px;
}

.tl-dot-inner {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--dark-2);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}

/* ---- Card ---- */
.tl-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 420px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(108, 99, 255, 0.25);
}

.tl-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.tl-role {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tl-meta .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.tl-bullets {
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.7;
}

.tl-bullets li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.tl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 2px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tl-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-light);
}
