

/* ─── AMBIENT GLOW ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: drift 10s ease-in-out infinite;
}

.orb1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(140, 0, 0, 0.09), transparent 70%);
}

.orb2 {
  width: 360px;
  height: 360px;
  bottom: 40px;
  right: -100px;
  background: radial-gradient(circle, rgba(140, 0, 0, 0.07), transparent 70%);
  animation-delay: 4.5s;
}

[data-theme="light"] .orb {
  background: radial-gradient(circle, rgba(140, 0, 0, 0.04), transparent 70%);
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-36px);
  }
}

/* ─── WRAPPER ─── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 118px 32px 80px;
}

[data-theme="light"] .wrapper {
  background: var(--bk);
}

/* ─── HEADER ─── */
.header {
  text-align: center;
  margin-bottom: 36px;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.divider-row span {
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: red;
}

[data-theme="light"] .sub-title,
[data-theme="light"] .divider-row span {
  color: red;
}

.dl {
  flex: 1;
  max-width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-dim));
}

.dr {
  flex: 1;
  max-width: 110px;
  height: 1px;
  background: linear-gradient(90deg, var(--red-dim), transparent);
}

[data-theme="light"] .dl {
  background: linear-gradient(90deg, transparent, var(--muted));
}

[data-theme="light"] .dr {
  background: linear-gradient(90deg, var(--muted), transparent);
}

.main-title {
  font-family: var(--fd);
  font-size: clamp(30px, 5.5vw, 58px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 10px;
}

.main-title .tr {
  color: var(--red-bright);
  text-shadow: 0 0 28px rgba(220, 0, 0, 0.45);
}

.main-title .tw {
  color: var(--offwhite);
}

[data-theme="light"] .main-title .tw {
  color: var(--w);
}

.sub-title {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: red;
  margin-bottom: 16px;
}

/* animated scan line */
.scanbar {
  width: 80%;
  height: 2px;
  margin: 0 auto;
  background: rgba(180, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.scanbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  animation: scan 2.5s ease-in-out infinite;
}

.scanbar1 {
  margin-top: 40px;
  margin-bottom: 40px;
}

@keyframes scan {
  to {
    left: 130%;
  }
}

/* === BUTTON RED === */
.btn-red {
  font-family: var(--fc);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: none;
  padding: 11px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  width: fit-content;
  text-decoration: none;
}

.btn-red::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red2);
  transform: translateX(-101%);
  transition: transform 0.3s;
}

.btn-red:hover {
  box-shadow: 0 0 36px var(--rg);
  color: #fff;
}

.btn-red:hover::after {
  transform: translateX(0);
}

.btn-red .t {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   ROAD + STEPS LAYOUT
   The road is a true vertical centre line.
   Steps use a 3-column grid:
     left-content | centre (node) | right-content
   Left steps: content left, blank right
   Right steps: blank left, content right
──────────────────────────────────────────── */
.roadmap {
  position: relative;
  margin-top: 8px;
}

/* The vertical road drawn as an absolutely positioned SVG */
.road-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--col-centre);
  pointer-events: none;
  z-index: 0;
}

.road-track svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Each step row */
.step {
  display: grid;
  grid-template-columns: 1fr var(--col-centre) 1fr;
  align-items: center;
  min-height: 160px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.5s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }
.step:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Centre column — always col 2 */
.step-node {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Left content — col 1 */
.step-left {
  grid-column: 1;
  text-align: right;
  padding-right: 28px;
}

/* Right content — col 3 */
.step-right {
  grid-column: 3;
  text-align: left;
  padding-left: 28px;
}

/* Blank placeholder */
.step-blank {}

/* NODE CIRCLE */
.node {
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 38% 32%, var(--node-grad-light), var(--node-grad-dark));
  border: 2.5px solid var(--red);
  box-shadow: 0 0 0 1px rgba(180, 0, 0, 0.12),
              0 0 20px rgba(180, 0, 0, 0.32),
              inset 0 0 12px rgba(180, 0, 0, 0.1);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s;
  cursor: default;
}

.node:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 1px rgba(220, 0, 0, 0.25),
              0 0 36px rgba(200, 0, 0, 0.55),
              inset 0 0 18px rgba(200, 0, 0, 0.18);
}

.node::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(180, 0, 0, 0.28);
}

.node:hover::before {
  animation: spin 5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.node svg {
  width: 40px;
  height: 40px;
}

/* Step number badge */
.num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--offwhite);
  font-family: var(--fm);
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(200, 0, 0, 0.7);
  border: 1.5px solid var(--red2);
}

/* CERT NODE overrides */
.cert .node {
  background: radial-gradient(circle at 38% 32%, var(--cert-grad-light), var(--cert-grad-dark));
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(190, 130, 0, 0.3), inset 0 0 12px rgba(190, 130, 0, 0.08);
}

.cert .node:hover {
  box-shadow: 0 0 36px rgba(210, 150, 0, 0.55), inset 0 0 18px rgba(210, 150, 0, 0.15);
}

.cert .num {
  background: var(--gold-primary);
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(190, 130, 0, 0.7);
  color: #fff;
}

.cert .phase-lbl {
  color: var(--gold-primary);
}

.cert .step-title {
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(200, 130, 0, 0.35);
}

.cert .step-tag {
  border-color: rgba(190, 130, 0, 0.35);
  color: var(--gold-primary);
  background: rgba(190, 130, 0, 0.07);
}

.cert .bullets li::before {
  color: var(--gold-primary);
}

/* CONTENT TEXT */
.phase-lbl {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 5px;
}

.step-tag {
  display: inline-block;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 2px;
  border: 1px solid rgba(180, 0, 0, 0.32);
  background: rgba(180, 0, 0, 0.07);
  color: var(--red-bright);
  margin-bottom: 7px;
}

.step-title {
  font-family: var(--fd);
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--red-bright);
  text-shadow: 0 0 14px rgba(200, 0, 0, 0.3);
  margin-bottom: 9px;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bullets li {
  font-size: 13px;
  font-weight: 500;
  color: var(--offwhite2);
  line-height: 1.42;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.step-left .bullets li {
  flex-direction: row-reverse;
}

.step-right .bullets li {
  flex-direction: row;
}

.bullets li::before {
  content: '◆';
  color: var(--red);
  font-size: 7px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Scoped overrides for internship page CTA */
.internship-cta-section .cta-title {
  font-size: clamp(1.3rem, 4vw, 3.5rem);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  :root {
    --node-size: 55px;
    --col-centre: 35px;
  }
  .step {
    min-height: 120px;
  }
  .node svg {
    width: 30px;
    height: 30px;
  }
  .step-title {
    font-size: 11.5px;
  }
  .bullets li {
    font-size: 8.5px;
  }
  .step-left {
    padding-right: 26px;
  }
  .step-right {
    padding-left: 26px;
  }
  .cta-badges {
    justify-content: flex-start !important;
  }
  .cta-sub {
    text-align: left;
    font-size: 0.88rem !important;
  }
  .cta-inner {
    text-align: left !important;
  }
  .internship-cta-section .cta-title {
    text-align: center !important;
  }
}

/* === LIGHT THEME TIMELINE STYLES === */
[data-theme="light"] .phase-lbl {
  color: var(--red-dim);
}

[data-theme="light"] .step-tag {
  border-color: rgba(180,0,0,.15);
  background: rgba(180,0,0,.04);
  color: var(--red-bright);
}

[data-theme="light"] .step-title {
  color: var(--red-bright);
  text-shadow: 0 0 14px rgba(200,0,0,.15);
}

[data-theme="light"] .bullets li {
  color: var(--offwhite2);
}

[data-theme="light"] .bullets li::before {
  color: var(--red);
}

[data-theme="light"] .node {
  background: radial-gradient(circle at 38% 32%, var(--node-grad-light), var(--node-grad-dark));
  border-color: var(--red);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.08),
    0 0 20px rgba(200,0,0,.15),
    inset 0 0 12px rgba(200,0,0,.05);
}

[data-theme="light"] .node:hover {
  box-shadow:
    0 0 0 1px rgba(220,0,0,.15),
    0 0 36px rgba(200,0,0,.25),
    inset 0 0 18px rgba(200,0,0,.08);
}

[data-theme="light"] .node::before {
  border-color: rgba(180,0,0,.15);
}

[data-theme="light"] .num {
  background: var(--red);
  color: var(--offwhite);
  border-color: var(--red-bright);
}

[data-theme="light"] .cert .node {
  background: radial-gradient(circle at 38% 32%, var(--cert-grad-light), var(--cert-grad-dark));
  border-color: var(--gold-primary);
}

[data-theme="light"] .cert .num {
  background: var(--gold-primary);
  border-color: var(--gold-bright);
}

[data-theme="light"] .cert .phase-lbl {
  color: var(--gold-primary);
}

[data-theme="light"] .cert .step-title {
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(200,130,0,.2);
}

[data-theme="light"] .cert .step-tag {
  border-color: rgba(190,130,0,.2);
  color: var(--gold-primary);
  background: rgba(190,130,0,.04);
}

[data-theme="light"] .cert .bullets li::before {
  color: var(--gold-primary);
}

/* Media Queries for CTA Title */
@media (max-width: 768px) {
  .cta-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }
}

@media (max-width: 480px) {
  .cta-title {
    font-size: clamp(1.7rem, 11vw, 2.8rem);
  }
}

