/* ========================================
   ANIMATIONS — URBAN CAT CAFÉ
   ======================================== */

/* --- Fade In Up --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fade In --- */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* --- Fade In Left --- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Fade In Right --- */
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Scale In --- */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger Children --- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Floating Particles --- */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 18s;
  animation-delay: 0s;
  width: 4px;
  height: 4px;
  opacity: 0.12;
}

.particle:nth-child(2) {
  left: 30%;
  animation-duration: 22s;
  animation-delay: 3s;
  width: 5px;
  height: 5px;
  opacity: 0.08;
  background: var(--accent-secondary);
}

.particle:nth-child(3) {
  left: 55%;
  animation-duration: 20s;
  animation-delay: 6s;
  width: 3px;
  height: 3px;
  opacity: 0.1;
  background: var(--accent-highlight);
}

.particle:nth-child(4) {
  left: 75%;
  animation-duration: 25s;
  animation-delay: 2s;
  width: 6px;
  height: 6px;
  opacity: 0.06;
}

.particle:nth-child(5) {
  left: 90%;
  animation-duration: 19s;
  animation-delay: 8s;
  width: 4px;
  height: 4px;
  opacity: 0.09;
  background: var(--accent-secondary);
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--particle-opacity, 0.08);
  }
  90% {
    opacity: var(--particle-opacity, 0.08);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* --- Pulse Glow for CTA --- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 30px rgba(255, 159, 28, 0.15);
  }
  50% {
    box-shadow: 0 4px 40px rgba(255, 159, 28, 0.25);
  }
}

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

/* --- Slow Zoom for Hero Image --- */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.slow-zoom {
  animation: slowZoom 20s ease-in-out alternate infinite;
}

/* --- Gentle Bounce --- */
@keyframes gentleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.gentle-bounce {
  animation: gentleBounce 3s ease-in-out infinite;
}

/* --- Reduced Motion --- */
@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;
  }

  .fade-in-up,
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .particles-container {
    display: none;
  }
}