/* ==========================================================================
   آکادمی مشاوره کنکور نسل Z - انیمیشن‌ها و کی‌فریم‌های متحرک (Animations)
   ========================================================================== */

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; filter: blur(30px); }
  50% { opacity: 0.8; filter: blur(45px); }
}

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

@keyframes slideInToast {
  to { transform: translateX(0); }
}

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

/* Floating Background Z Animations (Zora Bot Style) */
@keyframes floatZ1 {
  0% {
    transform: translateY(0px) rotate(-12deg) scale(1);
    opacity: 0.07;
  }
  50% {
    transform: translateY(-35px) rotate(-5deg) scale(1.05);
    opacity: 0.12;
  }
  100% {
    transform: translateY(15px) rotate(-18deg) scale(0.98);
    opacity: 0.06;
  }
}

@keyframes floatZ2 {
  0% {
    transform: translateY(0px) rotate(15deg) scale(1);
    opacity: 0.05;
  }
  50% {
    transform: translateY(-45px) rotate(22deg) scale(1.08);
    opacity: 0.10;
  }
  100% {
    transform: translateY(20px) rotate(8deg) scale(0.95);
    opacity: 0.04;
  }
}

@keyframes floatZ3 {
  0% {
    transform: translateY(0px) rotate(5deg) scale(1);
    opacity: 0.06;
  }
  50% {
    transform: translateY(-25px) rotate(-8deg) scale(1.04);
    opacity: 0.09;
  }
  100% {
    transform: translateY(30px) rotate(12deg) scale(0.96);
    opacity: 0.05;
  }
}

/* Animation Utility Classes */
.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

/* Floating Background Z Elements */
.floating-z-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-z-large {
  position: absolute;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  filter: blur(1px);
}

.bg-z-gold {
  color: #ffd700;
  text-shadow: 0 0 100px rgba(255, 215, 0, 0.4);
}

.bg-z-cyan {
  color: #38bdf8;
  text-shadow: 0 0 100px rgba(56, 189, 248, 0.4);
}

.bg-z-1 {
  top: 2%;
  left: -4%;
  font-size: clamp(22rem, 38vw, 42rem);
  animation: floatZ1 18s ease-in-out infinite alternate;
}

.bg-z-2 {
  top: 38%;
  right: -5%;
  font-size: clamp(20rem, 32vw, 36rem);
  animation: floatZ2 22s ease-in-out infinite alternate;
}

.bg-z-3 {
  top: 72%;
  left: 8%;
  font-size: clamp(18rem, 28vw, 30rem);
  animation: floatZ3 16s ease-in-out infinite alternate;
}

/* Reveal on Scroll Animation Class (Always Visible Base) */
.reveal-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
