/* =========================
   Base animation
========================= */
.animate {
  opacity: 0;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* =========================
   Variants
========================= */
.fade-up {
  animation-name: fadeUp;
}

/* =========================
   Delays
========================= */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* =========================
   Keyframes
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Hero image animation (desktop)
========================= */
.hero-image {
  will-change: transform;
  animation:
    fadeUp 0.8s ease-out forwards,
    heroFloat 6s ease-in-out infinite;

  animation-delay:
    0.4s,   /* fade-up */
    1.2s;   /* floating */
}

@keyframes heroFloat {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-12px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

/* =========================
   Mobile – minimal animation
========================= */
@media (max-width: 768px) {
  .hero-image {
    animation:
      fadeUp 0.6s ease-out forwards,
      heroFloatMobile 10s ease-in-out infinite;

    animation-delay:
      0.2s,
      0.8s;
  }
}

@keyframes heroFloatMobile {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* =========================
   Accessibility
========================= */
@media (prefers-reduced-motion: reduce) {
  .animate,
  .hero-image {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
