/* ==========================================================================
   Dansy Labs — Animation Layer
   Complements AOS; adds bespoke keyframes not covered by the library.
   ========================================================================== */

@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;
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-anim { animation: floatY 5s ease-in-out infinite; }

@keyframes spinSlow { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-orbit.o1 { animation: spinSlow 60s linear infinite; }
.hero-orbit.o2 { animation: spinSlow 40s linear infinite reverse; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal-up { animation: fadeInUp 0.8s var(--ease-out) both; }
.reveal-left { animation: fadeInLeft 0.8s var(--ease-out) both; }
.reveal-right { animation: fadeInRight 0.8s var(--ease-out) both; }

/* Button ripple-style hover shine */
.btn-brand, .btn-outline-brand {
  position: relative;
  overflow: hidden;
}
.btn-brand::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}
.btn-brand:hover::before { left: 130%; }

/* Counter pop */
@keyframes countPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.counting { animation: countPop 0.4s var(--ease-out); }

/* Parallax background layer utility */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Card entrance stagger helper (JS adds --d as delay) */
[data-stagger] {
  animation-delay: calc(var(--d, 0) * 90ms);
}

/* Loader spinner used inside forms */
.dl-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinSlow 0.7s linear infinite;
  display: inline-block;
}
