/* Explain: CSS for entrance and ambient animations, respecting reduced motion. */
/* Lightweight entrance + ambient animations for the Provoli hero and sections */

@keyframes ab-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: ab-fade-up 0.7s ease both;
}
.animate-delay-1 { animation-delay: 0.12s; }
.animate-delay-2 { animation-delay: 0.24s; }
.animate-delay-3 { animation-delay: 0.36s; }
.animate-delay-4 { animation-delay: 0.48s; }

/* Slow, gentle zoom on the banner photo */
@keyframes ab-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.animate-kenburns {
    animation: ab-kenburns 20s ease-in-out infinite alternate;
}

/* Soft floating glow shapes */
@keyframes ab-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.animate-float      { animation: ab-float 6s ease-in-out infinite; }
.animate-float-slow { animation: ab-float 9s ease-in-out infinite; }

/* Friendly pulse for the badge icon */
@keyframes ab-pop {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}
.animate-pop {
    animation: ab-pop 2.6s ease-in-out infinite;
}

/* Auto-scrolling marquee — the "Δίκτυο Επιχειρήσεων" strip */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: ab-marquee 55s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
    animation-play-state: paused;
}
@keyframes ab-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-kenburns,
    .animate-float,
    .animate-float-slow,
    .animate-pop {
        animation: none;
    }
    .marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
    }
}