/* ============================================
   MALATYA TEMİZLİK - ANIMATIONS
   Scroll reveal, transitions, keyframes
   ============================================ */

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- Floating Animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

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

/* ---------- Gradient Move ---------- */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Sparkle Animation ---------- */
@keyframes sparkle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.clean-decoration {
  position: absolute; width: 300px; height: 300px; border-radius: 43% 57% 70% 30% / 46% 40% 60% 54%;
  background: linear-gradient(135deg, rgba(8,145,178,0.08), rgba(6,182,212,0.05));
  animation: sparkle 15s linear infinite; pointer-events: none;
}

/* ---------- Counter Animation ---------- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Particle Background (Hero) ---------- */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none;
}
.hero-particles span {
  position: absolute; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15); animation: float-particle linear infinite;
}
.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-duration: 8s; animation-delay: 0s; width: 4px; height: 4px; }
.hero-particles span:nth-child(2) { left: 30%; top: 60%; animation-duration: 10s; animation-delay: 2s; width: 8px; height: 8px; }
.hero-particles span:nth-child(3) { left: 50%; top: 30%; animation-duration: 7s; animation-delay: 1s; }
.hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-duration: 9s; animation-delay: 3s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { left: 85%; top: 40%; animation-duration: 11s; animation-delay: 0.5s; width: 7px; height: 7px; }
.hero-particles span:nth-child(6) { left: 20%; top: 80%; animation-duration: 8s; animation-delay: 4s; width: 3px; height: 3px; }

@keyframes float-particle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}
