/* ==========================================================================
   INFOSSELCONNECT — ANIMATIONS
   ========================================================================== */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}

@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 63% 37% 45% 55% / 55% 46% 54% 45%; transform: rotate(8deg) scale(1.04); }
  66% { border-radius: 37% 63% 55% 45% / 49% 60% 40% 51%; transform: rotate(-6deg) scale(0.98); }
}

@keyframes auroraDrift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(3%, -4%) scale(1.08); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(91, 95, 239, 0.45); }
  100% { box-shadow: 0 0 0 16px rgba(91, 95, 239, 0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes blurReveal {
  from { opacity: 0; filter: blur(14px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ripple {
  from { transform: scale(0); opacity: 0.55; }
  to { transform: scale(2.6); opacity: 0; }
}

@keyframes dashDraw {
  from { stroke-dashoffset: var(--dash-length, 1000); }
  to { stroke-dashoffset: 0; }
}

@keyframes ticker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Utility animation classes ---- */
.anim-float { animation: floatY 6s ease-in-out infinite; }
.anim-float-slow { animation: floatY 9s ease-in-out infinite; }
.anim-blob { animation: blobMorph 12s ease-in-out infinite; }
.anim-aurora { animation: auroraDrift 16s ease-in-out infinite; }
.anim-spin-slow { animation: spinSlow 26s linear infinite; }

/* ---- Scroll reveal base state (AOS-independent fallback) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helpers */
[data-reveal-group] > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-group] > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 0.18s; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 0.26s; }
[data-reveal-group] > *:nth-child(5) { transition-delay: 0.34s; }
[data-reveal-group] > *:nth-child(6) { transition-delay: 0.42s; }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-shimmer {
  background: linear-gradient(90deg, var(--white) 0%, var(--ink-300) 25%, var(--white) 50%, var(--ink-300) 75%, var(--white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
