/* ==========================================================================
   04. EDUCATION JOURNEY & TIMELINE TRACK
   ========================================================================== */

.education-scroll-track {
  position: relative;
  z-index: 1;
  height: 420vh;
  width: 100%;
}

.education-sticky-stage {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(0, 255, 102, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(4, 9, 6, 0.85) 0%, rgba(7, 18, 11, 0.9) 75%, rgba(5, 10, 7, 0.95) 100%);
}

.edu-header-overlay {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  text-align: center;
  pointer-events: none;
}

.edu-header-overlay .glow-divider {
  margin: 0 auto;
}

.edu-hud {
  position: absolute;
  top: 94px;
  left: 36px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 18, 10, 0.88);
  border: 1.5px solid var(--neon-border);
  padding: 10px 16px;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
  clip-path: polygon(0px 5px, 5px 5px, 5px 0px,
      calc(100% - 5px) 0px, calc(100% - 5px) 5px, 100% 5px,
      100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
      5px 100%, 5px calc(100% - 5px), 0px calc(100% - 5px));
}

.edu-hud-label {
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  color: var(--neon);
}

.edu-hud-count {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-glow);
}

.sky-chevrons {
  position: absolute;
  top: 175px;
  left: 28%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
  opacity: 0.7;
  pointer-events: none;
}

.sky-chevron {
  width: 22px;
  height: 28px;
  background: var(--neon);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  animation: chevronPulse 1.4s infinite ease-in-out;
}

.sky-chevron:nth-child(2) {
  animation-delay: 0.15s;
}

.sky-chevron:nth-child(3) {
  animation-delay: 0.3s;
}

.sky-chevron:nth-child(4) {
  animation-delay: 0.45s;
}

.sky-chevron:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes chevronPulse {

  0%,
  100% {
    opacity: 0.25;
    transform: translateX(0);
  }

  50% {
    opacity: 0.95;
    transform: translateX(4px);
  }
}

.edu-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 125px;
  background-color: #160f12;
  background-image:
    linear-gradient(180deg, #00e65b 0px, #00e65b 8px, #1f8a3c 8px, #1f8a3c 18px, #10421e 18px, #10421e 26px, transparent 26px),
    repeating-linear-gradient(90deg, #161c18 0px, #161c18 32px, #0e1310 32px, #0e1310 64px);
  border-top: 4px solid #7dff9b;
  box-shadow: 0 -6px 25px rgba(0, 255, 102, 0.2);
  z-index: 5;
}

.edu-hero {
  position: absolute;
  bottom: 116px;
  left: 10%;
  width: 220px;
  height: 275px;
  z-index: 12;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.85));
}

.edu-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
}

.edu-hero.walking img {
  animation: heroWalkBob 0.28s steps(2) infinite;
}

@keyframes heroWalkBob {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0);
  }
}

.edu-tokens-track {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
}

.edu-token {
  position: absolute;
  bottom: 215px;
  width: 125px;
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s steps(4), transform 0.35s steps(4), filter 0.3s ease;
  animation: tokenFloat 1.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(255, 200, 0, 0.55));
}

.edu-token:nth-child(even) {
  bottom: 250px;
  animation-delay: 0.4s;
}

.edu-token img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.edu-token::before,
.edu-token::after {
  content: "✦";
  position: absolute;
  color: #ffd700;
  font-size: 18px;
  text-shadow: 0 0 8px #ffae00;
  animation: sparkleBlink 1.2s steps(2) infinite;
}

.edu-token::before {
  top: -8px;
  right: -6px;
}

.edu-token::after {
  bottom: 4px;
  left: -10px;
  animation-delay: 0.6s;
  font-size: 14px;
}

@keyframes sparkleBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(0.7);
  }
}

@keyframes tokenFloat {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

.edu-token.collected {
  opacity: 0;
  transform: translateY(-55px) scale(1.35) !important;
  filter: brightness(2) drop-shadow(0 0 30px #ffe600);
}

.edu-info-card {
  position: absolute;
  right: clamp(28px, 6vw, 90px);
  top: 56%;
  transform: translateY(-50%) translateX(35px);
  width: min(500px, calc(100vw - 40px));
  z-index: 25;
  background-color: rgba(6, 16, 10, 0.94);
  background-image:
    linear-gradient(rgba(0, 255, 102, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.04) 1px, transparent 1px);
  background-size: 6px 6px;
  border: 2px solid var(--neon-border);
  padding: 26px 28px;
  box-shadow:
    0 0 28px rgba(0, 255, 102, 0.2),
    inset 0 0 18px rgba(0, 255, 102, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s steps(4), transform 0.28s steps(4), visibility 0s linear 0.28s;
  clip-path: polygon(0px 8px, 8px 8px, 8px 0px,
      calc(100% - 8px) 0px, calc(100% - 8px) 8px, 100% 8px,
      100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
      8px 100%, 8px calc(100% - 8px), 0px calc(100% - 8px));
}

.edu-info-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  transition: opacity 0.28s steps(4), transform 0.28s steps(4), visibility 0s;
}

.edu-info-card.pulse {
  animation: eduCardFlash 0.25s steps(3);
}

@keyframes eduCardFlash {
  0% {
    filter: brightness(1.5);
  }

  100% {
    filter: brightness(1);
  }
}

.edu-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(0, 217, 89, 0.3);
}

.edu-card-logo {
  width: 68px;
  height: 68px;
  background: rgba(15, 28, 19, 0.9);
  border: 1.5px solid rgba(255, 204, 0, 0.5);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.2);
  clip-path: polygon(0px 5px, 5px 5px, 5px 0px,
      calc(100% - 5px) 0px, calc(100% - 5px) 5px, 100% 5px,
      100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
      5px 100%, 5px calc(100% - 5px), 0px calc(100% - 5px));
}

.edu-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.edu-card-headings {
  flex: 1;
  min-width: 0;
}

.edu-step-badge {
  display: inline-block;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  color: var(--gold);
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.45);
  padding: 2px 8px;
  margin-bottom: 6px;
}

.edu-institution {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 2px 2px 0 #041208;
}

.edu-program {
  font-family: 'Silkscreen', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 10px;
  line-height: 1.35;
}

.edu-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.edu-meta-pill {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #e2f5e8;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.35);
  padding: 3px 10px;
}

.edu-meta-pill.grade-pill {
  color: #ffe680;
  background: rgba(255, 204, 0, 0.12);
  border-color: rgba(255, 204, 0, 0.4);
}

.edu-description {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15.5px;
  line-height: 1.55;
  color: #d2dfd6;
  margin-bottom: 14px;
}

.edu-skills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 255, 102, 0.25);
}

.edu-skill-tag {
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  color: var(--neon);
  background: #09170e;
  border: 1px solid var(--neon-border);
  padding: 4px 9px;
}

.edu-dots-nav {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6, 14, 9, 0.9);
  border: 1px solid rgba(0, 255, 102, 0.35);
  padding: 8px 18px;
  border-radius: 30px;
}

.edu-dot-btn {
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  color: #8fa395;
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 10px;
  cursor: pointer;
  transition: 0.2s;
}

.edu-dot-btn.active {
  color: #041408;
  background: var(--neon);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

