/* ==========================================================================
   UTEL – Animations (CSS-driven; GSAP handles scroll/entrance in animations.js)
   ========================================================================== */

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes floatYSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(6deg); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(224, 55, 47, .45); }
  100% { box-shadow: 0 0 0 10px rgba(224, 55, 47, 0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes ripple {
  from { transform: scale(0); opacity: .45; }
  to   { transform: scale(3.2); opacity: 0; }
}

/* Hero floating elements */
.phone               { animation: floatY 6s ease-in-out infinite; }
.float-chip.c1       { animation: floatY 5s ease-in-out infinite; }
.float-chip.c2       { animation: floatY 7s ease-in-out -2s infinite; }
.float-chip.c3       { animation: floatYSlow 6.5s ease-in-out -1s infinite; }
.badge-5g.b1         { animation: floatYSlow 9s ease-in-out infinite; }
.badge-5g.b2         { animation: floatYSlow 11s ease-in-out -3s infinite; }
.shape.s1            { animation: floatYSlow 10s ease-in-out infinite; }
.shape.s2            { animation: floatY 7s ease-in-out -2s infinite; }
.shape.s3            { animation: floatYSlow 12s ease-in-out -4s infinite; }
.hero-badges .glass-chip:first-child i { animation: pulseRing 2s infinite; border-radius: 50%; }

/* Button click ripple (element injected by main.js) */
.btn-utel .ripple-dot {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); pointer-events: none; animation: ripple .6s ease-out forwards; z-index: -1;
}

/* Initial hidden state for GSAP-revealed elements (only when JS is running) */
.js-anim [data-reveal],
.js-anim [data-stagger] > * { opacity: 0; }

/* Reduced motion: switch off everything decorative */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js-anim [data-reveal],
  .js-anim [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
