/* ═══════════════════════════════════════════════════
   ZYPAWAY — Animations
   Scroll reveals, transitions, micro-interactions
   ═══════════════════════════════════════════════════ */

/* ─── Fade-in Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 90, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(255, 107, 90, 0); }
}

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

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

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1); opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Animation Classes ─── */
.animate-fade-in-up {
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--ease-spring) forwards;
  opacity: 0;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* ─── Stagger Children ─── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* ─── Hover Effects ─── */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ─── Spinner ─── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg { width: 36px; height: 36px; border-width: 4px; }

/* ─── Map Pin Drop Animation ─── */
@keyframes pinDrop {
  0% {
    transform: rotate(-45deg) translateY(-24px) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: rotate(-45deg) translateY(5px) scale(1.12);
    opacity: 1;
  }
  80% {
    transform: rotate(-45deg) translateY(-3px) scale(0.95);
  }
  100% {
    transform: rotate(-45deg) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pinPulseRing {
  0%   { transform: rotate(45deg) scale(1);   opacity: 0.7; }
  100% { transform: rotate(45deg) scale(2.8); opacity: 0; }
}

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

/* ─── Typing Indicator ─── */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}
.typing-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: bounce-dot 1.2s infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
