/* ==========================================================================
   Fusion Air — Animation library
   Scroll-reveal utility classes (toggled by assets/js/main.js via
   IntersectionObserver) + shared keyframes used across the site.
   ========================================================================== */

[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate].is-visible { opacity: 1; transform: none; }

[data-animate="fade-up"] { transform: translateY(28px); }
[data-animate="fade-down"] { transform: translateY(-20px); opacity: 1; }
[data-animate="fade-in"] { transform: none; }
[data-animate="zoom-in"] { transform: scale(0.94); }

[data-animate-group] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate-group].is-visible > * { opacity: 1; transform: none; }
[data-animate-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate-group].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-animate-group].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-animate-group].is-visible > *:nth-child(4) { transition-delay: 0.35s; }

@keyframes sky-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

@keyframes cloud-drift {
    from { transform: translateX(-10%); }
    to { transform: translateX(120vw); }
}

@keyframes plane-hover {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 12px 28px rgba(47, 143, 209, 0.4); }
    50% { box-shadow: 0 12px 34px rgba(79, 195, 232, 0.65); }
}

@keyframes fly-path {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}

@keyframes dash-move {
    to { stroke-dashoffset: -100; }
}
.route-line { animation: dash-move 6s linear infinite; }

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

.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--grey-600, #5c7188);
    animation: typing-bounce 1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}
