/* ============================================
   AGI SOCIAL — animations.css  (Dark AI Theme)
   ============================================ */

/* ===== Core Keyframes ===== */

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

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(24px,-24px) scale(1.04); }
  66%       { transform: translate(-18px,16px) scale(0.97); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1);    box-shadow: 0 0 0 0 rgba(167,139,250,0.7); }
  50%       { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 7px rgba(167,139,250,0); }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139,92,246,0.35), 0 0 60px rgba(139,92,246,0.10); }
  50%       { box-shadow: 0 8px 40px rgba(139,92,246,0.60), 0 0 80px rgba(139,92,246,0.25); }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(139,92,246,0.40),
                0 0 15px rgba(139,92,246,0.20),
                inset 0 0 5px rgba(139,92,246,0.08);
  }
  50% {
    box-shadow: 0 0 12px rgba(139,92,246,0.70),
                0 0 30px rgba(139,92,246,0.35),
                inset 0 0 12px rgba(139,92,246,0.15);
  }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes borderGlow {
  0%, 100% { border-color: rgba(139,92,246,0.20); }
  50%       { border-color: rgba(139,92,246,0.60); }
}

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

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  25%       { transform: translate(30px,-20px) scale(1.05); }
  50%       { transform: translate(-10px,-40px) scale(0.97); }
  75%       { transform: translate(-30px,10px) scale(1.02); }
}

@keyframes cyberFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); filter: brightness(1); }
  25%       { transform: translateY(-10px) rotate(0.5deg); filter: brightness(1.08); }
  75%       { transform: translateY(5px) rotate(-0.5deg); filter: brightness(0.96); }
}

@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 0.06; }
  90%  { opacity: 0.06; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes lightBeam {
  0%   { transform: translateX(-200%) rotate(35deg); opacity: 0; }
  20%  { opacity: 0.04; }
  80%  { opacity: 0.04; }
  100% { transform: translateX(200%) rotate(35deg); opacity: 0; }
}

@keyframes typeIn {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50%       { border-color: var(--violet-light); }
}

/* ===== Horizontal Marquee (for image strips and text bars) ===== */
@keyframes marqueeX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-25px) scale(1.06); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}

/* ===== Scroll-triggered Base Class ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.animate-on-scroll:nth-child(1)  { transition-delay:   0ms; }
.animate-on-scroll:nth-child(2)  { transition-delay:  80ms; }
.animate-on-scroll:nth-child(3)  { transition-delay: 160ms; }
.animate-on-scroll:nth-child(4)  { transition-delay: 240ms; }
.animate-on-scroll:nth-child(5)  { transition-delay: 320ms; }
.animate-on-scroll:nth-child(6)  { transition-delay: 400ms; }
.animate-on-scroll:nth-child(7)  { transition-delay: 480ms; }
.animate-on-scroll:nth-child(8)  { transition-delay: 560ms; }
.animate-on-scroll:nth-child(9)  { transition-delay: 640ms; }
.animate-on-scroll:nth-child(10) { transition-delay: 720ms; }

/* ===== Hero Entrance ===== */
.hero__badge    { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.10s both; }
.hero__title    { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.hero__subtitle { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.40s both; }
.hero__actions  { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.55s both; }
.hero__ticker   { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.70s both; }

/* ===== Floating Cards ===== */
.floating-card--1 { animation: float 6.0s ease-in-out infinite; }
.floating-card--2 { animation: float 7.5s ease-in-out infinite 1.0s; }
.floating-card--3 { animation: float 8.0s ease-in-out infinite 2.0s; }
.floating-card--4 { animation: float 6.5s ease-in-out infinite 3.0s; }

/* ===== Orbs ===== */
.hero__orb--1 { animation: orbFloat  8s ease-in-out infinite; }
.hero__orb--2 { animation: orbFloat 10s ease-in-out infinite reverse; }
.hero__orb--3 { animation: orbFloat 12s ease-in-out infinite 2s; }

/* ===== Gradient Text Shift ===== */
.gradient-text {
  background-size: 200% auto;
  animation: gradientShift 5s ease infinite;
}

/* ===== Badge Dot Pulse ===== */
.badge__dot { animation: pulseDot 2s ease-in-out infinite; }

/* ===== CTA Button Glow on Hover ===== */
.btn--primary:hover { animation: glowPulse 1.5s ease-in-out infinite; }

/* ===== Method Step Numbers ===== */
.method-step.animated .method-step__number {
  animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ===== Ticker ===== */
.ticker__track { animation: ticker 45s linear infinite; }
.ticker__track:hover { animation-play-state: paused; }

/* ===== Platform pill entrance ===== */
.platform-pill { animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both; }

/* ===== Scan line on hero ===== */
.hero .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), rgba(6,182,212,0.3), transparent);
  animation: scanLine 8s linear infinite;
  z-index: 3;
  pointer-events: none;
}

/* ===== Why cards stagger ===== */
.why-grid .why-card:nth-child(1) { animation-delay:   0ms; }
.why-grid .why-card:nth-child(2) { animation-delay:  80ms; }
.why-grid .why-card:nth-child(3) { animation-delay: 160ms; }
.why-grid .why-card:nth-child(4) { animation-delay: 240ms; }
.why-grid .why-card:nth-child(5) { animation-delay: 320ms; }
.why-grid .why-card:nth-child(6) { animation-delay: 400ms; }

/* ===== Neon border animation on hover ===== */
.service-card:hover,
.why-card:hover,
.result-card:hover {
  animation: neonPulse 2s ease-in-out infinite;
}
