/* ==========================================================================
   Experience Timeline — styled as a deployment / commit log,
   true to a DevOps-heavy career rather than a generic vertical line.
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 860px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--border-strong), var(--border) 85%, transparent);
}

@media (max-width: 640px) {
  .timeline::before { left: 19px; }
}

.tl-item {
  position: relative;
  padding-left: 76px;
  padding-bottom: 56px;
}
.tl-item:last-child { padding-bottom: 0; }

@media (max-width: 640px) {
  .tl-item { padding-left: 54px; padding-bottom: 44px; }
}

.tl-node {
  position: absolute;
  left: 0; top: 4px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}

.tl-node.current {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 14%, transparent);
}

.tl-node.current::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0.5;
  animation: nodePulse 2.2s ease-out infinite;
}

@keyframes nodePulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.tl-node svg { width: 22px; height: 22px; color: var(--primary); }

@media (max-width: 640px) {
  .tl-node { width: 40px; height: 40px; }
  .tl-node svg { width: 17px; height: 17px; }
}

.tl-card {
  padding: 26px 28px;
}

.tl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tl-role { font-size: var(--fs-xl); font-weight: 700; }

.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tl-badge svg { width: 12px; height: 12px; }

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  margin-bottom: 18px;
}

.tl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tl-meta svg { width: 15px; height: 15px; color: var(--primary); }

.tl-company { color: var(--primary); font-weight: 600; }

.tl-highlights {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.tl-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.55;
}

.tl-highlights li::before {
  content: '';
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--cyan);
  flex-shrink: 0;
  transform: rotate(45deg);
}

.tl-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-stack span {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
