/* =========================================================
   Acuaria — Animations & scroll-reveal utilities
   ========================================================= */

/* ---------- Keyframes ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(27, 184, 160, 0.4), var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 40px 8px rgba(27, 184, 160, 0.25), var(--shadow-lg);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes spinGradient {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

/* ---------- Reveal utility ----------
   Default is visible. GSAP uses gsap.from() to animate from a hidden
   state, but the CSS default ensures elements remain visible if JS
   or the GSAP ticker never runs. */
.reveal {
    opacity: 1;
    transform: none;
}

/* ---------- Animated gradient border for AI cards ---------- */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.gradient-border {
    position: relative;
    background: var(--color-navy-deep);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--angle),
        var(--color-teal),
        var(--color-teal-light),
        var(--color-coral),
        var(--color-teal)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spinGradient 6s linear infinite;
    pointer-events: none;
}

/* ---------- Reduced motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .gradient-border::before {
        animation: none;
    }
}
