/* ============================================================
   EXPERIENCE PAGE STYLES — alternating single-spine timeline
   ============================================================ */

/* ── ALTERNATING TIMELINE ── */
.alt-timeline {
  position: relative;
  padding: 0;
}

/* Central vertical spine */
.alt-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--cyan) 0%, rgba(0,210,255,0.04) 100%);
  z-index: 0;
}

/* Each row: 3 columns — card | spine | empty  OR  empty | spine | card */
.alt-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

/* Spine column — dot centred on it */
.alt-spine-cell {
  display: flex;
  justify-content: center;
  padding-top: 1.4rem;
  position: relative;
  z-index: 1;
}

.alt-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0,210,255,0.55);
  flex-shrink: 0;
}

/* Card column — left variant pushes card to right edge of its column */
.alt-left .alt-card-cell  { padding-right: 1.75rem; display: flex; justify-content: flex-end; }
.alt-right .alt-card-cell { padding-left: 1.75rem;  display: flex; justify-content: flex-start; }

.alt-empty-cell { /* spacer */ }

/* ── WORK CARD BASE ── */
.dt-work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s, background 0.22s;
  opacity: 0;
  transform: translateY(18px);
}

.dt-work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: 0;
  transition: opacity 0.3s;
}
.dt-work-card:hover::before { opacity: 1; }
.dt-work-card:hover { border-color: var(--border-glow); background: var(--bg-card-hover); }
.dt-work-card.visible { animation: revealUp 0.5s ease forwards; }

/* ── WORK CARD INTERNALS ── */
.dt-role {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.dt-company {
  font-size: 0.83rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.12rem;
}
.dt-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.dt-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dt-bullets li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.dt-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.65rem;
  top: 4px;
}
.dt-bullets li.extra { display: none; }
.dt-bullets.expanded li.extra { display: list-item; }

.dt-toggle {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  background: none;
  border: 1px solid rgba(0,210,255,0.22);
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s, border-color 0.2s;
}
.dt-toggle:hover { background: var(--cyan-muted); border-color: var(--border-glow); }

.dt-tech { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }

/* ── EDUCATION PAGE — degree card ── */
.dt-edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s, background 0.22s;
  opacity: 0;
  transform: translateY(18px);
}
.dt-edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s;
}
.dt-edu-card:hover::before { opacity: 1; }
.dt-edu-card:hover { border-color: var(--border-glow); background: var(--bg-card-hover); }
.dt-edu-card.visible { animation: revealUp 0.5s ease forwards; }

.dt-edu-inst {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.dt-edu-degree {
  font-size: 0.88rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.dt-edu-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.dt-edu-gpa {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.dt-edu-gpa span {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.dt-courses-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Coursework as individual bullet points */
.dt-courses-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dt-courses-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.dt-courses-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.65rem;
  top: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Collapse to left-spine single column */
  .alt-timeline::before { left: 18px; transform: none; }

  .alt-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 1.75rem;
  }

  /* Spine always in column 1 */
  .alt-row .alt-spine-cell {
    grid-column: 1;
    grid-row: 1;
    padding-top: 1.4rem;
    justify-content: center;
  }

  /* Card always in column 2 regardless of left/right */
  .alt-left .alt-card-cell,
  .alt-right .alt-card-cell {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 1rem;
    justify-content: flex-start;
  }

  /* Hide empty spacer cells on mobile */
  .alt-left .alt-empty-cell,
  .alt-right .alt-empty-cell { display: none; }

  /* Reorder: on left rows, spine is already col 1; on right rows, move spine before card */
  .alt-right .alt-empty-cell { display: none; }
  .alt-right .alt-spine-cell { order: -1; }
}
