

/* ═══════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════ */
:root {
  --bg:           #0B0F19;
  --bg2:          #111827;
  --accent:       #39FF14;
  --accent-glow:  rgba(57,255,20,0.40);
  --accent-dim:   rgba(57,255,20,0.12);
  --accent-soft:  rgba(57,255,20,0.06);
  --white:        #FFFFFF;
  --muted:        #9CA3AF;
  --glass:        rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.10);
  --display:      'Bebas Neue', sans-serif;
  --body:         'Poppins', sans-serif;
  --ease:         cubic-bezier(0.16,1,0.3,1);
  --spring:       cubic-bezier(0.34,1.56,0.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--white); font-family: var(--body); overflow-x: hidden; }

/* ═══════════════════════════════════════════
   SECTION
═══════════════════════════════════════════ */
#admission {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

/* ── BG GRID ── */
.bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { to { background-position: 60px 60px; } }

/* ── BLOBS ── */
.blob { position: absolute; border-radius: 50%; filter: blur(140px); z-index: 0; pointer-events: none; }
.blob-1 { width: 750px; height: 750px; background: radial-gradient(circle, rgba(57,255,20,0.07) 0%, transparent 70%); top: -250px; right: -180px; animation: b1 16s ease-in-out infinite; }
.blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(57,255,20,0.05) 0%, transparent 70%); bottom: -200px; left: -150px; animation: b2 20s ease-in-out infinite; }
.blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(57,255,20,0.04) 0%, transparent 70%); top: 55%; left: 48%; animation: b1 25s ease-in-out infinite reverse; }
@keyframes b1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-35px,25px) scale(1.08)} }
@keyframes b2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(28px,-20px) scale(1.06)} }

/* ── PARTICLES ── */
#pCanvas_adm_sec { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ── DIVIDER ── */
.sec-div {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.2) 20%, var(--accent) 50%, rgba(57,255,20,0.2) 80%, transparent);
  animation: divPulse 3s ease-in-out infinite;
}
@keyframes divPulse { 0%,100%{opacity:.55} 50%{opacity:1} }

/* ═══════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.sec-header { text-align: center; margin-bottom: 86px; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; background: var(--glass);
  border: 1px solid rgba(57,255,20,0.28); border-radius: 40px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.sec-label::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.08), transparent);
  transform: translateX(-100%); animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.ldot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent), 0 0 18px var(--accent-glow);
  animation: ldp 2s ease-in-out infinite;
}
@keyframes ldp { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.7);opacity:.55} }

.sec-title {
  font-family: var(--display);
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.0; letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: 20px;
}
.sec-title .hi {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(57,255,20,0.2);
}
.sec-desc {
  max-width: 600px; margin: 0 auto;
  font-size: 15.5px; font-weight: 300; color: var(--muted); line-height: 1.8;
  margin-bottom: 30px;
}

/* BADGES */
.float-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.f-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  background: rgba(57,255,20,0.05);
  border: 1px solid rgba(57,255,20,0.18);
  border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); animation: flt 4s ease-in-out infinite;
}
.f-badge:nth-child(2){animation-delay:-1.4s} .f-badge:nth-child(3){animation-delay:-2.8s}
.f-badge::before { content: '✦'; font-size: 7px; }
@keyframes flt { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ═══════════════════════════════════════════
   TIMELINE WRAPPER
═══════════════════════════════════════════ */
.timeline-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── CENTRAL SPINE (desktop vertical center line) ── */
.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent,
    rgba(57,255,20,0.15) 5%,
    rgba(57,255,20,0.15) 95%,
    transparent);
  z-index: 1;
  overflow: hidden;
}
/* animated energy flowing down the spine */
.timeline-spine::after {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: spineFlow 4s ease-in-out infinite;
  border-radius: 50%;
  filter: blur(2px);
}
@keyframes spineFlow {
  0%   { top: -120px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── STEP ROW ── */
.step-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  min-height: 180px;
  position: relative;
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.step-row.from-left  { transform: translateX(-50px); }
.step-row.from-right { transform: translateX(50px); }
.step-row.revealed   { opacity: 1; transform: translateX(0) !important; }

/* alternating layout */
.step-row:nth-child(odd)  .step-card { grid-column: 1; justify-self: end; }
.step-row:nth-child(odd)  .step-node { grid-column: 2; }
.step-row:nth-child(odd)  .step-empty{ grid-column: 3; }

.step-row:nth-child(even) .step-empty{ grid-column: 1; }
.step-row:nth-child(even) .step-node { grid-column: 2; }
.step-row:nth-child(even) .step-card { grid-column: 3; justify-self: start; }

/* spacer between rows */
.step-row + .step-row { margin-top: -10px; }

/* ── NODE (center circle on spine) ── */
.step-node {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 3;
}
.node-outer {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(57,255,20,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color .4s ease, box-shadow .4s ease;
  animation: nodeBreath 3s ease-in-out infinite;
}
@keyframes nodeBreath {
  0%,100% { box-shadow: 0 0 0 0 transparent; }
  50%     { box-shadow: 0 0 20px rgba(57,255,20,0.18), 0 0 40px rgba(57,255,20,0.08); }
}
.step-row:hover .node-outer {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(57,255,20,0.06), 0 0 30px rgba(57,255,20,0.3) !important;
  animation: none;
}
.node-num {
  font-family: var(--display);
  font-size: 22px; color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
  line-height: 1;
  transition: text-shadow .3s ease;
}
.step-row:hover .node-num { text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-glow); }

/* pulse rings */
.node-outer::before, .node-outer::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(57,255,20,0.15);
  opacity: 0;
}
.node-outer::before { inset: -12px; }
.node-outer::after  { inset: -22px; }
.step-row:hover .node-outer::before { animation: ringPop .6s var(--spring) forwards; }
.step-row:hover .node-outer::after  { animation: ringPop .6s .1s var(--spring) forwards; }
@keyframes ringPop {
  0%  { opacity: 0; transform: scale(.7); }
  50% { opacity: .5; }
  100%{ opacity: 0; transform: scale(1); }
}

/* ── CONNECTOR LINES (horizontal, card → node) ── */
.step-row:nth-child(odd) .step-card::after,
.step-row:nth-child(even) .step-card::before {
  content: '';
  position: absolute; top: 50%; height: 1px;
  background: linear-gradient(to right, rgba(57,255,20,0.3), transparent);
  transition: background .3s ease;
}
/* We'll do this via card pseudo — simpler approach via node connectors below */

/* ── STEP CARD ── */
.step-card {
  width: 100%; max-width: 480px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .5s var(--ease),
    border-color .4s ease,
    box-shadow .4s ease,
    background .4s ease;
}

/* top glow line */
.step-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .4s ease; z-index: 3;
}
/* inner glow overlay */
.step-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 25% 20%, rgba(57,255,20,0.07) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s ease; z-index: 0;
}

.step-row:hover .step-card {
  transform: translateY(-8px);
  border-color: rgba(57,255,20,0.45);
  background: rgba(57,255,20,0.04);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 35px rgba(57,255,20,0.1);
}
.step-row:hover .step-card::after  { opacity: 1; }
.step-row:hover .step-card::before { opacity: 1; }

/* card shine sweep */
.card-shine {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, transparent 30%, rgba(57,255,20,0.04) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .65s var(--ease);
  z-index: 0; pointer-events: none;
}
.step-row:hover .card-shine { transform: translateX(100%); }

/* CARD INNER */
.card-inner { position: relative; z-index: 2; }

/* icon wrap */
.card-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .4s var(--spring), background .4s ease, box-shadow .4s ease;
}
.step-row:hover .card-icon-wrap {
  transform: rotate(8deg) scale(1.12);
  background: rgba(57,255,20,0.14);
  box-shadow: 0 0 20px rgba(57,255,20,0.25), 0 0 40px rgba(57,255,20,0.1);
}
.card-icon-wrap svg {
  width: 24px; height: 24px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(57,255,20,0.4));
  transition: filter .4s ease;
}
.step-row:hover .card-icon-wrap svg {
  filter: drop-shadow(0 0 10px rgba(57,255,20,0.8)) drop-shadow(0 0 20px rgba(57,255,20,0.4));
}

/* step label */
.step-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  background: rgba(57,255,20,0.07); border: 1px solid rgba(57,255,20,0.18);
  border-radius: 20px;
  font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.card-title {
  font-family: var(--display);
  font-size: 26px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); margin-bottom: 8px;
  transition: color .3s ease;
}
.step-row:hover .card-title {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(57,255,20,0.35);
}

.card-desc {
  font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.75;
  margin-bottom: 16px;
}

/* status bar */
.card-status {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  transition: border-color .3s ease;
}
.step-row:hover .card-status { border-color: rgba(57,255,20,0.15); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: sDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes sDot { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.8);opacity:.6} }
.status-text { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); opacity: .8; }

/* ── CONNECTOR ARROW (pointing from card to node, desktop) ── */
.conn-arrow {
  position: absolute; top: 50%; z-index: 2;
  display: flex; align-items: center; pointer-events: none;
}
.step-row:nth-child(odd) .conn-arrow {
  right: -40px; transform: translateY(-50%);
}
.step-row:nth-child(even) .conn-arrow {
  left: -40px; transform: translateY(-50%) scaleX(-1);
}
.conn-arrow svg {
  width: 36px; height: 14px;
  stroke: rgba(57,255,20,0.3); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
  transition: stroke .4s ease;
}
.step-row:hover .conn-arrow svg { stroke: rgba(57,255,20,0.7); }

/* ── EMPTY SIDE (decorative label) ── */
.step-empty {
  display: flex; align-items: center;
  padding: 0 24px;
}
.step-row:nth-child(even) .step-empty { justify-content: flex-end; }

.empty-num {
  font-family: var(--display);
  font-size: 96px; line-height: 1;
  color: rgba(57,255,20,0.04);
  user-select: none;
  transition: color .4s ease;
  letter-spacing: .02em;
}
.step-row:hover .empty-num { color: rgba(57,255,20,0.07); }

/* ═══════════════════════════════════════════
   CTA AREA
═══════════════════════════════════════════ */
.cta-area {
  margin-top: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.cta-area.revealed { opacity: 1; transform: translateY(0); }

.cta-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: .03em; text-transform: uppercase;
  line-height: 1;
}
.cta-title .hi {
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}
.cta-sub {
  font-size: 14px; color: var(--muted); font-weight: 300;
  max-width: 450px; line-height: 1.7;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 38px;
  background: var(--accent);
  border: none; border-radius: 10px;
  font-family: var(--body); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bg); cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: box-shadow .35s ease, transform .35s var(--spring);
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
}
.cta-btn:hover::before { transform: translateX(0); }
.cta-btn:hover {
  box-shadow: 0 0 35px rgba(57,255,20,0.6), 0 10px 30px rgba(57,255,20,0.25);
  transform: translateY(-4px);
}
.cta-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--spring);
}
.cta-btn:hover svg { transform: translate(4px, -4px); }

/* CTA note */
.cta-note {
  font-size: 11.5px; color: var(--muted); letter-spacing: .05em;
}
.cta-note strong { color: var(--accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .timeline-spine { left: 28px; }
  .timeline-wrap { padding-left: 0; }

  .step-row {
    grid-template-columns: 60px 1fr;
    min-height: auto;
    margin-bottom: 28px;
  }
  .step-row + .step-row { margin-top: 0; }

  /* all rows: node left, card right */
  .step-row:nth-child(odd)  .step-card,
  .step-row:nth-child(even) .step-card  { grid-column: 2; grid-row: 1; justify-self: start; width: 100%; max-width: 100%; }
  .step-row:nth-child(odd)  .step-node,
  .step-row:nth-child(even) .step-node  { grid-column: 1; grid-row: 1; }
  .step-row:nth-child(odd)  .step-empty,
  .step-row:nth-child(even) .step-empty { display: none; }

  .conn-arrow { display: none; }
  .timeline-spine { display: block; left: 28px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════ */
@media (max-width: 580px) {
  #admission { padding: 40px 0 80px; }
  .container { padding: 0 20px; }
  .timeline-spine { left: 20px; }
  .step-row { grid-template-columns: 50px 1fr; }
  .node-outer { width: 50px; height: 50px; }
  .node-num { font-size: 18px; }
  .sec-title { font-size: clamp(32px,10vw,50px); }
  .sec-header { margin-bottom: 56px; }
  .step-card { padding: 22px 18px; }
  .card-title { font-size: 22px; }
}
