/* ============================================================
   VELORYX AI — ANIMATIONS.CSS
   Keyframes · Entrance Animations · Micro-interactions
   ============================================================ */

/* ============================================================
   1. ENTRANCE ANIMATION BASE CLASSES
   ============================================================ */

/* Fade up (default entrance) */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fade in from left */
.animate-fade-left {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fade in */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================
   2. ANIMATION DELAYS
   ============================================================ */
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s;  }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s;  }
.animate-delay-5 { animation-delay: 0.9s;  }

/* ============================================================
   3. CORE KEYFRAMES
   ============================================================ */

/* Fade Up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Left */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   4. ORB DRIFT ANIMATIONS
   ============================================================ */
@keyframes orbDrift1 {
  0%   { transform: translate(0,   0)   scale(1);    }
  33%  { transform: translate(-40px, 30px) scale(1.05); }
  66%  { transform: translate(20px, -20px) scale(0.97); }
  100% { transform: translate(0,   0)   scale(1);    }
}

@keyframes orbDrift2 {
  0%   { transform: translate(0,  0)    scale(1);    }
  40%  { transform: translate(50px, -35px) scale(1.08); }
  70%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0,  0)    scale(1);    }
}

@keyframes orbDrift3 {
  0%   { transform: translate(-50%, -50%) scale(1);    }
  30%  { transform: translate(-50%, -50%) scale(1.15); }
  60%  { transform: translate(-50%, -50%) scale(0.9);  }
  100% { transform: translate(-50%, -50%) scale(1);    }
}

/* ============================================================
   5. VISUAL COMPONENT ANIMATIONS
   ============================================================ */

/* Main card float */
@keyframes floatCard {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* Stat card 1 float */
@keyframes floatStat1 {
  0%   { transform: translateY(0)   rotate(-1deg); }
  50%  { transform: translateY(-9px) rotate(0.5deg); }
  100% { transform: translateY(0)   rotate(-1deg); }
}

/* Stat card 2 float */
@keyframes floatStat2 {
  0%   { transform: translateY(0)   rotate(1deg); }
  50%  { transform: translateY(-7px) rotate(-0.5deg); }
  100% { transform: translateY(0)   rotate(1deg); }
}

/* Badge 1 float */
@keyframes floatBadge1 {
  0%   { transform: translateY(0)   rotate(-0.5deg); }
  50%  { transform: translateY(-8px) rotate(0.5deg); }
  100% { transform: translateY(0)   rotate(-0.5deg); }
}

/* Badge 2 float */
@keyframes floatBadge2 {
  0%   { transform: translateY(0)   rotate(0.5deg); }
  50%  { transform: translateY(-10px) rotate(-0.5deg); }
  100% { transform: translateY(0)   rotate(0.5deg); }
}

/* Glow ring pulse */
@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  50%  { transform: scale(1.06); opacity: 1;   }
  100% { transform: scale(1);    opacity: 0.6; }
}

/* Cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Dot pulse */
@keyframes pulseDot {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(139,92,246,0.7); }
  70%  { transform: scale(1.1);  box-shadow: 0 0 0 6px rgba(139,92,246,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(139,92,246,0);   }
}

/* Stat bar grow */
@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--fill); }
}

/* Scroll line pulse */
@keyframes scrollPulse {
  0%   { transform: scaleY(0.8); opacity: 0.4; }
  50%  { transform: scaleY(1.1); opacity: 1;   }
  100% { transform: scaleY(0.8); opacity: 0.4; }
}

/* ============================================================
   6. GRADIENT BACKGROUND SHIFT
   ============================================================ */
@keyframes gradientShift {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

/* ============================================================
   7. REDUCED MOTION — RESPECT USER PREF
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }

  .animate-fade-up,
  .animate-fade-left,
  .animate-fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
