/* ==========================================================================
   Gita Airconditioner — animations.css
   Micro-interactions, keyframes & scroll-reveal helpers (AOS augments this)
   ========================================================================== */

/* Reveal fallback (used before AOS initialises / prefers-reduced-motion off) */
[data-aos] { pointer-events: auto; }

/* Floating decorative motion */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.anim-float { animation: float-y 5s ease-in-out infinite; }
.anim-float-slow { animation: float-y 7s ease-in-out infinite; }

/* Gentle rotation for decorative rings */
@keyframes rotate-slow { to { transform: rotate(360deg); } }
.anim-rotate { animation: rotate-slow 26s linear infinite; }

/* Shine sweep on hover (buttons / cards) */
.shine { position: relative; overflow: hidden; }
.shine::before {
    content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .7s ease;
}
.shine:hover::before { left: 130%; }

/* Underline grow link */
.link-underline { position: relative; }
.link-underline::after {
    content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Zoom-in image wrapper */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.hover-zoom:hover img { transform: scale(1.08); }

/* Icon bob */
.bob { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.bob:hover { transform: translateY(-4px); }

/* Fade-up entrance for elements without AOS (e.g. counters trigger) */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s var(--ease) both; }

/* Count-up highlight pop */
@keyframes pop {
    0% { transform: scale(.9); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.counting .num { animation: pop .5s ease; }

/* Marquee for brand / client strip */
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
    display: flex; gap: 40px; width: max-content;
    animation: marquee 28s linear infinite;
    align-items: center;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Blob morph */
@keyframes blobMorph {
    0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    50% { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; }
}
.blob-shape { animation: blobMorph 12s ease-in-out infinite; }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-bg { transform: none !important; }
}
