/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.7s ease; }
.reveal-left.show { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.7s ease; }
.reveal-right.show { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(0.85); transition: all 0.6s ease; }
.reveal-zoom.show { opacity: 1; transform: scale(1); }

/* stagger delays for groups */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }

/* ===== Fade in (for alerts) ===== */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Floating plane in hero ===== */
.floating-plane {
  position: absolute;
  font-size: 2.5rem;
  animation: floatPlane 4s ease-in-out infinite;
}
@keyframes floatPlane {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}

/* ===== Pulse for CTA buttons ===== */
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ===== Spinner ===== */
.spinner {
  width: 44px; height: 44px;
  border: 4px solid #E2E8F0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Loading dots (search results) ===== */
.loading-dots span {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); margin: 0 3px; animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ===== Page load fade ===== */
body { animation: pageLoad 0.6s ease; }
@keyframes pageLoad { from { opacity: 0; } to { opacity: 1; } }

/* ===== Hover lift utility ===== */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(30,41,59,0.12); }

/* ===== Respect reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}