/* ============================================================
   ANIMATIONS.CSS — All Keyframe Animations
   ============================================================ */

/* ─── CORE KEYFRAMES ─── */

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(1deg); }
  66%       { transform: translateY(-4px) rotate(-1deg); }
}

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

@keyframes pulse-border {
  0%, 100% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.2); }
  50%       { border-color: var(--secondary); box-shadow: 0 0 0 6px rgba(108, 99, 255, 0); }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes drawCheck {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30%       { transform: scale(1.25) rotate(-8deg); }
  60%       { transform: scale(0.9) rotate(4deg); }
  80%       { transform: scale(1.05) rotate(-2deg); }
}

@keyframes burst {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.97); }
}

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

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(60px, -40px) scale(1.05); }
  50%       { transform: translate(30px, -80px) scale(0.95); }
  75%       { transform: translate(-30px, -30px) scale(1.02); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(-50px, 40px) scale(0.98); }
  50%       { transform: translate(-80px, 20px) scale(1.04); }
  75%       { transform: translate(-20px, 60px) scale(0.96); }
}

@keyframes progressFill {
  from { width: 0%; }
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.8; }
}

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

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

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

@keyframes blink {
  50% { border-color: transparent; }
}

/* ─── ANIMATION UTILITY CLASSES ─── */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.4s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-bounce-in {
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ─── SHIMMER SKELETON ─── */
.shimmer-bg {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ─── STAGGER DELAYS (for tool cards) ─── */
.stagger-1  { animation-delay: 60ms; }
.stagger-2  { animation-delay: 120ms; }
.stagger-3  { animation-delay: 180ms; }
.stagger-4  { animation-delay: 240ms; }
.stagger-5  { animation-delay: 300ms; }
.stagger-6  { animation-delay: 360ms; }
.stagger-7  { animation-delay: 420ms; }
.stagger-8  { animation-delay: 480ms; }
.stagger-9  { animation-delay: 540ms; }
.stagger-10 { animation-delay: 600ms; }

/* ─── TRANSITION PRESETS ─── */
.transition-all    { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
.transition-transform { transition: transform var(--transition-base); }
