/**
 * animations.css
 *
 * Every @keyframes definition lives here so the rest of the stylesheet
 * stays focused on structure and color. Pair these with classes /
 * inline styles in components.css and inside the SVG scene.
 */

/* Star twinkle — applied to selected foreground stars. */
@keyframes tw {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

/* Atmospheric halo around Earth. */
@keyframes glowAtm {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.5;
  }
}

/* Cloud-layer drift across the Earth disc. */
@keyframes earthDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-30px);
  }
}

/* Cosmic-dust parallax. Group resets when offscreen. */
@keyframes dustDrift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-60px);
  }
}

/* One-shot meteor crossing the viewport. */
@keyframes meteor {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translate(-340px, 130px);
    opacity: 0;
  }
}

/* Quick shooting-star flash. */
@keyframes shootStar {

  0%,
  90% {
    opacity: 0;
    transform: translate(0, 0);
  }

  92% {
    opacity: 1;
  }

  99% {
    opacity: 0;
    transform: translate(220px, 70px);
  }

  100% {
    opacity: 0;
  }
}

/* Code-editor cursor blink (laptop screen + dev tagline). */
@keyframes typeBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* HUD-style indicator pulse. */
@keyframes pulseStatus {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.25;
  }
}

/* Same as typeBlink — separate name kept for the dev tagline cursor. */
@keyframes cursorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Gentle bob for the "scroll ↓" hint. */
@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Loading spinner glyph. */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Coffee mug steam — wisp drifts upward and fades. */
@keyframes mugSmoke {

  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-10px);
    opacity: 0;
  }
}

/* Footer "available" status dot — soft glow ring. */
@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(90, 255, 144, 0.5);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 4px rgba(90, 255, 144, 0);
  }
}