/* ======================================= */
/* GLOBAL ANIMATIONS & ACCESSIBILITY       */
/* ======================================= */

/* Accent line runner */
.accent_line {
  animation: lineRunner 2s linear infinite;
}

@keyframes lineRunner {
  from { left: -100%; }
  to   { left:  100%; }
}

/* Hero Concentric Ripple Rings: Smooth Water Droplet Fadeout */
@keyframes heroRipple {
  0% {
    r: 150px;
    opacity: 0.55;
    stroke-width: 1.3px;
  }
  40% {
    opacity: 0.3;
    stroke-width: 0.9px;
  }
  80% {
    opacity: 0.08;
    stroke-width: 0.5px;
  }
  100% {
    r: 520px;
    opacity: 0;
    stroke-width: 0.2px;
  }
}

.hero-ripple-1 {
  animation: heroRipple 9s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.hero-ripple-2 {
  animation: heroRipple 9s cubic-bezier(0.2, 0.6, 0.4, 1) infinite 3s;
}

.hero-ripple-3 {
  animation: heroRipple 9s cubic-bezier(0.2, 0.6, 0.4, 1) infinite 6s;
}

/* ======================================= */
/* GRAPHIC SCANLINES & ORBITS              */
/* ======================================= */

/* Holographic Card Scanline */
@keyframes scanline {
  0%   { transform: translateY(-100%); opacity: 0; }
  50%  { opacity: 0.4; }
  100% { transform: translateY(200%); opacity: 0; }
}

.scanline-sweep {
  animation: scanline 6s ease-in-out infinite;
}

/* Orbit ring slow rotation */
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-spin-slow {
  transform-origin: 100px 70px;
  animation: orbitSpin 24s linear infinite;
}

/* ======================================= */
/* SECTION 7: MULTI-SPEED SINE WAVES       */
/* ======================================= */
@keyframes waveFlowA {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -260; }
}

@keyframes waveFlowB {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -180; }
}

@keyframes waveFlowC {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -320; }
}

.wave-flow-1 {
  stroke-dasharray: 40 10 30 15;
  animation: waveFlowA 20s linear infinite;
}

.wave-flow-2 {
  stroke-dasharray: 35 12 25 10;
  animation: waveFlowB 28s linear infinite;
}

.wave-flow-3 {
  stroke-dasharray: 50 15 20 15;
  animation: waveFlowC 24s linear infinite;
}

/* ======================================= */
/* SECTION 8: 3D GLOBE MARKERS            */
/* ======================================= */
@keyframes pinPulse {
  0%, 100% { r: 5px; opacity: 1; }
  50%      { r: 8px; opacity: 0.6; }
}

.pin-pulse-glow {
  animation: pinPulse 2.8s ease-in-out infinite;
}

/* ======================================= */
/* SECTION 9: TREE-TO-FOOTER ENERGY FLOW   */
/* ======================================= */
@keyframes treeEnergyStream {
  0%   { stroke-dashoffset: 400; opacity: 0.1; }
  30%  { opacity: 0.9; }
  70%  { opacity: 0.9; }
  100% { stroke-dashoffset: -400; opacity: 0.1; }
}

.tree-stream-1 {
  stroke-dasharray: 80 280;
  animation: treeEnergyStream 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.tree-stream-2 {
  stroke-dasharray: 90 270;
  animation: treeEnergyStream 6s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.2s;
}

.tree-stream-3 {
  stroke-dasharray: 75 285;
  animation: treeEnergyStream 6s cubic-bezier(0.4, 0, 0.2, 1) infinite 2.4s;
}

.tree-stream-4 {
  stroke-dasharray: 75 285;
  animation: treeEnergyStream 6s cubic-bezier(0.4, 0, 0.2, 1) infinite 3.6s;
}

.tree-stream-5 {
  stroke-dasharray: 90 270;
  animation: treeEnergyStream 6s cubic-bezier(0.4, 0, 0.2, 1) infinite 4.8s;
}

.tree-stream-6 {
  stroke-dasharray: 80 280;
  animation: treeEnergyStream 6s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.6s;
}

/* ======================================= */
/* CURSOR SPOTLIGHT: BLUEPRINT ILLUMINATION */
/* ======================================= */
.blueprint-spotlight-zone {
  position: relative;
}

.blueprint-spotlight-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(43, 179, 255, 0.045),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.blueprint-spotlight-zone:hover::before {
  opacity: 1;
}

/* Footer Top Border Pulse Shimmer */
@keyframes footerBorderGlow {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.footer-top-energy-line {
  background: linear-gradient(
    90deg,
    rgba(60, 75, 191, 0.1) 0%,
    rgba(43, 179, 255, 0.6) 50%,
    rgba(60, 75, 191, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: footerBorderGlow 8s linear infinite;
}

/* ======================================= */
/* ACCESSIBILITY: REDUCED MOTION           */
/* ======================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-ripple-1,
  .hero-ripple-2,
  .hero-ripple-3,
  .scanline-sweep,
  .pin-pulse-glow,
  .tree-stream-1,
  .tree-stream-2,
  .tree-stream-3,
  .tree-stream-4,
  .tree-stream-5,
  .tree-stream-6,
  .blueprint-spotlight-zone::before,
  .footer-top-energy-line {
    animation: none !important;
    display: none !important;
  }
}
