/* ============================================================
   ALVO SYSTEMS — Animations
   ============================================================ */

/* ---- Gradient orb (hero background) ---------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 198, 240, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(8, 128, 196, 0.1) 0%, transparent 70%);
  bottom: 0;
  left: -100px;
  animation: orbFloat 16s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.04); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* ---- GSAP entry states ----------------------------------- */
/* NOTE: opacity/transform are set by JS (GSAP), not CSS.
   This prevents content being invisible if GSAP doesn't load. */
.reveal,
.reveal-left,
.reveal-right {
  /* no opacity:0 here — GSAP sets initial state via gsap.set() */
}

.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ---- Hero word split ------------------------------------- */
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-word-inner {
  display: inline-block;
  transform: translateY(110%);
}

/* ---- Gradient border pulse (CTA button) ------------------ */
@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 198, 240, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(6, 198, 240, 0.12); }
}

.btn-primary {
  animation: borderPulse 3s ease-in-out infinite;
}

/* ---- Line draw (gradient underline on hover) ------------- */
.link-line {
  position: relative;
}

.link-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.link-line:hover::after {
  width: 100%;
}

/* ---- Scan line (decorative, on feature visuals) ---------- */
@keyframes scanLine {
  0%   { top: 0%; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  animation: scanLine 3s linear infinite;
}

/* ---- Counter spin-up (number counting animation) --------- */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---- Page transition fade -------------------------------- */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content {
  animation: pageFadeIn 0.5s ease forwards;
}

/* ---- Marquee autoplay (CSS fallback) --------------------- */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track.auto-play {
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track.auto-play:hover {
  animation-play-state: paused;
}

/* ---- Glow on card hover ---------------------------------- */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, rgba(6, 198, 240, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}
