/* ============================================================
   EVERDAWN ATLAS — ANIMATIONS
   ============================================================ */

/* KEYFRAMES */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(var(--drift, 30px)) scale(1);
    opacity: 0;
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

@keyframes breatheGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,184,107,0);
  }
  50% {
    box-shadow: 0 0 40px 0 rgba(255,184,107,0.06);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

@keyframes scrollLineAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes horizonShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

/* UTILITY ANIMATION CLASSES */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0.1s);
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

/* HERO PARALLAX LAYER */
.hero-bg-gradient {
  animation: horizonShift 16s ease-in-out infinite;
  background-size: 200% 200%;
}

/* SCROLL CUE */
.scroll-line {
  animation: scrollLineAnim 2.4s ease-in-out infinite;
}

/* HERO VISUAL FLOAT */
.hero-visual-frame {
  animation: floatSlow 7s ease-in-out infinite;
}

/* NAV SCROLL STATE */
.nav-header {
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* CARD HOVER DEPTH */
.dest-card,
.explore-card,
.story-card,
.trust-card,
.mood-card,
.value-card,
.team-card,
.storyteller-card,
.principle-card,
.trust-link-card,
.story-grid-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

/* BUTTON TRANSITIONS */
.btn-primary,
.btn-ghost,
.btn-outline {
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

/* FILTER CHIP TRANSITIONS */
.filter-chip,
.continent-btn {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* IMAGE HOVER ZOOM */
.dest-card-img,
.explore-card-img,
.story-grid-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ATLAS WINDOW BREATHING */
@keyframes atlasBreath {
  0%, 100% {
    border-color: rgba(255,255,255,0.09);
  }
  50% {
    border-color: rgba(255,184,107,0.16);
  }
}

.atlas-window {
  animation: atlasBreath 5s ease-in-out infinite;
}