/* ==========================================================================
   EADC Animation Library
   --------------------------------------------------------------------------
   Reusable keyframes plus the small set of utility classes that drive them.
   Everything here is decorative — the layout is fully usable with animations
   disabled, and the reduced-motion block at the bottom neutralises them all.
   ========================================================================== */

/* ------------------------------------------------------------- Floating */
/* Gentle vertical drift for badges, leaf accents and floating cards. */
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes floating1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(8px, -12px) rotate(3deg); }
  66%      { transform: translate(-6px, -6px) rotate(-2deg); }
}

@keyframes floating2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(-5deg); }
}

/* ---------------------------------------------------------------- Leaves */
/* Organic botanical accents — used on the hero and section corners. */
@keyframes leaf-sway {
  0%, 100% { transform: rotate(-6deg) translateX(0); }
  50%      { transform: rotate(6deg) translateX(6px); }
}

@keyframes leaf-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.85; }
  50%  { transform: translateY(-22px) rotate(12deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
}

@keyframes leaf-drop {
  0%   { transform: translate(0, -10%) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(18px, 50%) rotate(160deg); opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translate(-10px, 110%) rotate(320deg); opacity: 0; }
}

@keyframes leaf-glide {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(40px, -60px, 0) rotate(45deg); }
}

/* --------------------------------------------------------------- Marquee */
/* Continuous horizontal scroll for the partner logo strip. */
@keyframes marquee-animation {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------- Image reveals */
/* Masked image reveals — the clip grows to expose the picture. */
@keyframes revealImageIn {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes revealImageInDown {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes revealImageInLeft {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes revealImageInHorizontal {
  from { clip-path: inset(0 50% 0 50%); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes revealCircle {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes revealImageCircle {
  from { clip-path: circle(0% at 50% 50%); }
  to   { clip-path: circle(75% at 50% 50%); }
}

/* ------------------------------------------------------------- Attention */
@keyframes bounce-top {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes circular-motion {
  0%   { transform: rotate(0deg) translateX(18px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: 0.85; }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

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

@keyframes ken-burns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ----------------------------------------------------------- Entrances */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes grow-width {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ------------------------------------------------------- Utility classes */
.anim-float        { animation: floating 6s var(--ease-in-out) infinite; }
.anim-float-slow   { animation: floating 9s var(--ease-in-out) infinite; }
.anim-leaf-sway    { animation: leaf-sway 7s var(--ease-in-out) infinite; }
.anim-leaf-float   { animation: leaf-float 11s var(--ease-in-out) infinite; }
.anim-bounce-top   { animation: bounce-top 3s var(--ease-in-out) infinite; }
.anim-pulse-soft   { animation: pulse-soft 3.5s var(--ease-in-out) infinite; }
.anim-spin-slow    { animation: spin-slow 22s linear infinite; }
.anim-ken-burns    { animation: ken-burns 18s var(--ease-in-out) infinite alternate; }
.anim-gradient     { background-size: 200% 200%; animation: gradient-shift 12s var(--ease-in-out) infinite; }
.anim-delay-1      { animation-delay: 0.15s; }
.anim-delay-2      { animation-delay: 0.3s; }
.anim-delay-3      { animation-delay: 0.45s; }

/* Marquee: the track holds the logo set twice, so -50% loops seamlessly. */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-animation 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Decorative leaf accent positions. */
.leaf-accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
  z-index: 0;
}

/* --------------------------------------------------------- Reduced motion */
/* Respect the OS setting: kill decorative animation but keep content visible. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track { animation: none !important; }

  .leaf-accent { display: none; }
}
