/* ===================================================================
   EASYNAUKRI4U: Technological Evolution (2024 — 2027+)
   Ultra-Premium Cinematic Scroll-Driven Growth Curve
   - Luxury dark-mode obsidian aesthetic (#06090e)
   - Luminous rising Bézier curve with progressive SVG drawing
   - Multi-layer canvas with micro-particles, electromagnetic pulses & neural mesh
   - Glassmorphism telemetry cards with 3D perspective rotation & cursor parallax
   - Climax 2027+ AI Frontier milestone with branching curves & orbiting particle fields
   - Year typography dissolve with subtle glyph glitch transitions
   - Hardware-accelerated, responsive, reduced-motion compliant
   =================================================================== */

.evolution-curve-section {
  position: relative;
  background: #06090e;
  color: #f1f5f9;
  padding: 110px 0 120px;
  overflow: hidden;
  isolation: isolate;
  --curve-progress: 1;
  --mouse-tilt-x: 0deg;
  --mouse-tilt-y: 0deg;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

/* Background Cyber Grid & Coordinate Reference Mesh */
.evolution-curve-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 85%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

/* Atmospheric Atmospheric Radial Glow Horizons */
.evolution-ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  will-change: transform, opacity;
}

.evolution-ambient-glow--base {
  bottom: 0%;
  left: 5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(202, 243, 76, 0.09) 0%, rgba(88, 227, 210, 0.05) 50%, transparent 70%);
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
}

.evolution-ambient-glow--climax {
  top: 5%;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(88, 227, 210, 0.16) 0%, rgba(167, 139, 250, 0.1) 45%, transparent 70%);
  animation: evoAmbientFloat 16s ease-in-out infinite alternate;
}

.evolution-ambient-glow--neural {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(88, 227, 210, 0.04) 0%, rgba(202, 243, 76, 0.03) 40%, transparent 70%);
}

@keyframes evoAmbientFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-35px, 25px, 0) scale(1.08); }
  100% { transform: translate3d(20px, -30px, 0) scale(0.96); }
}

/* Container Structure */
.evolution-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
}

/* ================= Section Header Typography & Telemetry ================= */
.evolution-header {
  position: relative;
  z-index: 3;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.evolution-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.evolution-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #58e3d2;
  background: rgba(88, 227, 210, 0.08);
  border: 1px solid rgba(88, 227, 210, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(88, 227, 210, 0.15);
}

.evolution-telemetry-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #94a3b8;
}

.evolution-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #caf34c;
  box-shadow: 0 0 8px #caf34c, 0 0 16px rgba(202, 243, 76, 0.6);
  animation: evoStatusPulse 1.8s infinite ease-in-out;
}

@keyframes evoStatusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.evolution-title {
  font-family: 'Barlow Condensed', Impact, sans-serif !important;
  font-size: clamp(48px, 6vw, 84px) !important;
  font-weight: 900 !important;
  letter-spacing: -1.5px !important;
  line-height: 0.98 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 16px !important;
}

.evolution-title span {
  background: linear-gradient(135deg, #caf34c 20%, #58e3d2 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.evolution-lead {
  font-family: 'Plus Jakarta Sans', Manrope, sans-serif !important;
  font-size: clamp(15px, 1.35vw, 18px);
  color: #94a3b8;
  max-width: 740px;
  line-height: 1.65;
  margin: 0 0 28px;
}

/* ================= Dynamic Year Glitch HUD Indicator Bar ================= */
.evolution-hud-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 880px;
  width: 100%;
}

.evolution-hud-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.evolution-hud-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #64748b;
  text-transform: uppercase;
}

.evolution-hud-year {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: #caf34c;
  letter-spacing: 0.05em;
  text-shadow: 0 0 14px rgba(202, 243, 76, 0.6);
  min-width: 65px;
  text-align: center;
  transition: color 0.3s ease;
}

.evolution-hud-year.is-glitching {
  color: #58e3d2;
  text-shadow: 0 0 18px rgba(88, 227, 210, 0.8), -1px 0 #caf34c;
  animation: evoGlitchShake 0.16s linear;
}

@keyframes evoGlitchShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(0, 0); }
}

.evolution-hud-phase {
  font-family: 'Plus Jakarta Sans', Manrope, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.evolution-hud-stat {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.80rem;
  font-weight: 600;
  color: #58e3d2;
  white-space: nowrap;
}

.evolution-hud-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

/* ================= 16:9 Cinematic Evolution Canvas Stage ================= */
.evolution-canvas-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.evolution-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 580px;
  background: radial-gradient(ellipse at 50% 50%, #0d1420 0%, #080b11 75%, #05070a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  perspective: 1200px;
}

/* Interactive Multi-Layer HTML5 Canvas */
.evolution-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* High-Precision SVG Layer */
.evolution-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
  overflow: visible;
}

/* Luminous Paths */
.evolution-base-curve {
  pointer-events: none;
}

.evolution-glow-path {
  pointer-events: none;
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.15s linear;
}

/* Climax AI Neural Branches */
.evolution-climax-branches {
  transition: opacity 0.8s ease;
}

.evolution-climax-branches.is-visible {
  opacity: 1 !important;
}

.evo-branch-path {
  animation: evoBranchGlow 3s infinite ease-in-out alternate;
}

@keyframes evoBranchGlow {
  0% { stroke-opacity: 0.5; filter: drop-shadow(0 0 4px #58e3d2); }
  100% { stroke-opacity: 1; filter: drop-shadow(0 0 12px #a78bfa); }
}

/* Milestone Interactive Nodes */
.evo-node-anchor {
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evo-node-anchor:focus-visible .evo-node-outer-ring {
  stroke: #ffffff;
  stroke-width: 4;
}

.evo-node-pulse-ring {
  fill: none;
  stroke: #caf34c;
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
}

.evo-node-anchor.is-active .evo-node-pulse-ring {
  animation: evoRingPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes evoRingPulse {
  0% { r: 9; opacity: 0.9; stroke-width: 2.5; }
  100% { r: 28; opacity: 0; stroke-width: 0.5; }
}

.evo-node-outer-ring {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease, fill 0.3s ease;
}

.evo-node-core {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s ease;
}

.evo-node-anchor:hover .evo-node-outer-ring,
.evo-node-anchor.is-active .evo-node-outer-ring {
  transform: scale(1.3);
  stroke: #ffffff;
}

.evo-node-anchor:hover .evo-node-core,
.evo-node-anchor.is-active .evo-node-core {
  transform: scale(1.25);
  fill: #ffffff;
}

/* Climax Node Enhancements */
.evo-climax-halo {
  animation: evoHaloPulse 3s ease-in-out infinite alternate;
}

@keyframes evoHaloPulse {
  0% { r: 26; opacity: 0.4; }
  100% { r: 42; opacity: 0.85; }
}

.evo-node-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: #64748b;
  pointer-events: none;
  transition: fill 0.3s ease, font-size 0.3s ease;
}

.evo-node-anchor.is-active .evo-node-tag {
  fill: #caf34c;
  font-weight: 800;
}

.evo-node-tag--climax {
  fill: #58e3d2;
}

/* ================= Floating Glassmorphism Milestone Cards ================= */
.evo-card {
  position: absolute;
  width: clamp(260px, 22vw, 310px);
  background: rgba(11, 16, 23, 0.74);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter, box-shadow;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
  
  /* Initial default state */
  opacity: 0.35;
  filter: blur(1.5px);
  transform: translate(-50%, var(--card-y-offset)) scale(0.92) rotateX(var(--mouse-tilt-x, 0deg)) rotateY(var(--mouse-tilt-y, 0deg));
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Active Highlight Card State */
.evo-card.is-active {
  opacity: 1 !important;
  filter: blur(0) !important;
  border-color: rgba(202, 243, 76, 0.5) !important;
  box-shadow:
    0 25px 65px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(202, 243, 76, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translate(-50%, var(--card-y-offset)) scale(1.02) rotateX(var(--mouse-tilt-x, 0deg)) rotateY(var(--mouse-tilt-y, 0deg));
  z-index: 10 !important;
}

/* Subtle Cursor-Following Sheen */
.evo-card__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 160px at var(--card-pointer-x, 50%) var(--card-pointer-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.evo-card:hover .evo-card__sheen {
  opacity: 1;
}

/* Climax Card Spec: Neural Constellation Glow */
.evo-card.is-climax.is-active {
  border-color: rgba(88, 227, 210, 0.6) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(88, 227, 210, 0.28),
    0 0 60px rgba(167, 139, 250, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.evo-card__neural-border {
  position: absolute;
  inset: -1.5px;
  border-radius: 19.5px;
  background: linear-gradient(135deg, rgba(202, 243, 76, 0.5) 0%, rgba(88, 227, 210, 0.6) 50%, rgba(167, 139, 250, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.evo-card.is-climax.is-active .evo-card__neural-border {
  opacity: 1;
}

/* Card Interior Content */
.evo-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.evo-card__year {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #caf34c;
  line-height: 1;
}

.evo-card__year--climax {
  color: #58e3d2;
  text-shadow: 0 0 10px rgba(88, 227, 210, 0.6);
}

.evo-card__badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
}

.evo-card__badge--lime {
  color: #caf34c;
  background: rgba(202, 243, 76, 0.1);
  border-color: rgba(202, 243, 76, 0.3);
}

.evo-card__badge--cyan {
  color: #58e3d2;
  background: rgba(88, 227, 210, 0.1);
  border-color: rgba(88, 227, 210, 0.3);
}

.evo-card__badge--purple {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.3);
}

.evo-card__badge--climax {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(88, 227, 210, 0.25), rgba(167, 139, 250, 0.25));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(88, 227, 210, 0.3);
}

.evo-card__title {
  font-family: 'Barlow Condensed', Impact, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 8px !important;
}

.evo-card__desc {
  font-family: 'Plus Jakarta Sans', Manrope, sans-serif !important;
  font-size: 0.81rem !important;
  line-height: 1.55 !important;
  color: #94a3b8 !important;
  margin: 0 0 14px !important;
}

.evo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.evo-card__tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5px 7px;
  border-radius: 5px;
}

.evo-card__tag--highlight {
  color: #58e3d2;
  background: rgba(88, 227, 210, 0.12);
  border-color: rgba(88, 227, 210, 0.3);
}

.evo-card__telemetry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.evo-card__tel-item strong {
  color: #94a3b8;
  font-weight: 700;
  margin-right: 4px;
}

/* ================= Bottom Interactive Metrics & Epoch Navigation Strip ================= */
.evolution-metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 3;
}

.evolution-strip-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.evolution-strip-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #caf34c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.evolution-strip-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.evolution-strip-item.is-active {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(202, 243, 76, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 16px rgba(202, 243, 76, 0.15);
  transform: translateY(-3px);
}

.evolution-strip-item.is-active::after {
  transform: scaleX(1);
}

.evolution-strip-item[data-index="5"].is-active::after {
  background: linear-gradient(90deg, #58e3d2, #a78bfa);
}

.evolution-strip-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-bottom: 4px;
}

.evolution-strip-item.is-active .evolution-strip-num {
  color: #caf34c;
}

.evolution-strip-year {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.evolution-strip-title {
  font-family: 'Plus Jakarta Sans', Manrope, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.evolution-strip-item.is-active .evolution-strip-title {
  color: #f1f5f9;
}

/* ================= Responsive Adaptations ================= */
@media (max-width: 1100px) {
  .evolution-stage {
    aspect-ratio: auto;
    min-height: 640px;
  }
  
  .evo-card {
    width: 250px;
    padding: 18px 16px;
  }
  
  .evolution-strip-item {
    padding: 10px 12px;
  }
}

@media (max-width: 900px) {
  .evolution-curve-section {
    padding: 80px 0 90px;
  }

  .evolution-hud-bar {
    border-radius: 16px;
    padding: 12px 18px;
    gap: 14px;
  }

  .evolution-stage {
    min-height: 600px;
  }

  .evolution-metrics-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .evolution-hud-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .evolution-hud-divider {
    display: none;
  }

  .evolution-stage {
    min-height: 540px;
  }

  .evo-card {
    width: 230px;
    padding: 16px 14px;
  }

  .evo-card__title {
    font-size: 1.1rem !important;
  }

  .evo-card__desc {
    font-size: 0.75rem !important;
  }

  .evolution-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= Accessibility & Reduced Motion ================= */
@media (prefers-reduced-motion: reduce) {
  .evolution-ambient-glow--climax,
  .evo-branch-path,
  .evo-node-pulse-ring,
  .evo-climax-halo {
    animation: none !important;
  }

  .evo-card {
    transition: none !important;
    transform: translate(-50%, var(--card-y-offset)) !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .evolution-canvas {
    display: none !important;
  }
}
