/* animations.css — Keyframes, transitions, fade-up, stagger */

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Applied by IntersectionObserver when element enters viewport */
.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* Elements waiting for scroll trigger — hidden by default */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
}

/* Hero entrance — plays on page load */
.hero-animate {
    animation: heroReveal 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Staggered children — sequential animation-delay per card */
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.08s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.32s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }

/* Card hover transitions (defined in components, reinforced here) */
.solution-card,
.feature-card,
.industry-card,
.product-card,
.card-clean {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Image zoom transitions */
.solution-thumb img,
.image-panel img {
    transition: transform 0.4s ease;
}

/* Link color transitions */
a {
    transition: color 0.15s ease;
}

/* Dropdown caret rotation */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}
