/* Jobs page — extends style.css */

.jobs-page {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.jobs-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}

/* LEFT sidebar */
.jobs-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.5rem 2.5rem 3rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.1s;
}

.jobs-header::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240,168,50,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.jobs-title {
  font-family: var(--font);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.jobs-sub {
  font-size: 0.9rem;
  color: #a0aabb;
  line-height: 1.65;
}

/* RIGHT: timeline */
.timeline {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4rem 5rem;
  overflow-y: auto;
  background: var(--bg);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.32s; }
.timeline-item:nth-child(3) { animation-delay: 0.44s; }
.timeline-item:nth-child(4) { animation-delay: 0.56s; }
.timeline-item:nth-child(5) { animation-delay: 0.68s; }

/* Marker column */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
}

.timeline-item:hover .marker-dot,
.timeline-item.current .marker-dot {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 12px rgba(240, 168, 50, 0.4);
}

.marker-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin: 6px 0;
  min-height: 60px;
}

/* Content column */
.timeline-content {
  padding-bottom: 3.5rem;
  flex: 1;
}

.timeline-item:last-child .timeline-content {
  padding-bottom: 0;
}

.job-period {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.job-company {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #eef0f5;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.timeline-item:hover .job-company {
  color: var(--amber);
}

.job-duration {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #a0aabb;
}

.job-role {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #c8d0de;
  margin-bottom: 0.25rem;
}

.job-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #a0aabb;
  margin-bottom: 0.2rem;
}

.job-badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 0.25rem 0.7rem;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* AWS sub-timeline */
.job-sub-timeline {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.1rem;
}

.sub-item {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.sub-item:last-child {
  padding-bottom: 0;
}

.sub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 0.3rem;
  position: absolute;
  left: -1.87rem;
}

.sub-dot.active {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 8px rgba(240, 168, 50, 0.35);
}

.sub-content {}

.sub-period {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.75;
  margin-bottom: 0.3rem;
}

.sub-role {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #eef0f5;
  margin-bottom: 0.25rem;
}

/* ── MOBILE ── */
@media (max-width: 700px) {
  .jobs-page {
    overflow: auto;
  }

  .jobs-main {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .jobs-header {
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .timeline {
    padding: 2rem 1.25rem 2rem 1.25rem;
  }

  .job-company {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
}
