/* ============================================================
   ANIMATIONS — AusPath Migration Consultants
   ============================================================ */

/* ── Fade + slide up (hero text, page loads) ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Float (kangaroo, decorative elements) ── */
@keyframes float {
  0%   { transform: translateY(0px) rotate(0deg); }
  33%  { transform: translateY(-14px) rotate(2deg); }
  66%  { transform: translateY(-8px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ── Plane flying across ── */
@keyframes flyAcross {
  0%   { transform: translateX(-160px) translateY(0px); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateX(110vw) translateY(-40px); opacity: 0; }
}

/* ── Star twinkle ── */
@keyframes twinkle {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(0.6); }
}

/* ── Wave motion ── */
@keyframes waveDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Pulse (CTA buttons) ── */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26, 58, 107, 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(26, 58, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 58, 107, 0); }
}

/* ── Map path draw ── */
@keyframes drawMap {
  from { stroke-dashoffset: 2000; opacity: 0.3; }
  to   { stroke-dashoffset: 0;    opacity: 1; }
}

/* ── Shimmer (loading states) ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Scroll-triggered fade in ── */
@keyframes scrollFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero sky gradient shift ── */
@keyframes skyShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Skyline silhouette rise ── */
@keyframes skylineRise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.animate-fade-up {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.btn-pulse {
  animation: pulse 2.5s ease-out infinite;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll-triggered — JS adds .visible class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
