/*
 * Glitchy — Motion & scroll reveals
 */

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

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

@keyframes glitchyHeroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

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

/* Hero load */
.hero-section .hero-content > * {
    opacity: 0;
    animation: glitchyFadeUp 0.85s ease forwards;
}

.hero-section .hero-title { animation-delay: 0.15s; }
.hero-section .hero-subtitle { animation-delay: 0.35s; }
.hero-section .hero-content .btn { animation-delay: 0.55s; }

.hero-bg {
    animation: glitchyHeroZoom 1.2s ease-out forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Cards & products */
.delivery-item,
.testimonial-card,
.feature-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.delivery-item:hover,
.testimonial-card:hover,
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

ul.products li.product {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

ul.products li.product:hover {
    transform: translateY(-8px);
}

ul.products li.product img {
    transition: transform 0.5s ease !important;
}

ul.products li.product:hover img {
    transform: scale(1.03) !important;
}

.cat-card {
    transition: transform 0.3s ease;
}

.btn {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Button motion handled in main.css */

/* Stats counter pulse */
.stat-card {
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
    transform: scale(1.03);
    border-color: var(--color-accent);
}

/* Marquee strip */
.marquee-strip {
    overflow: hidden;
    border-block: 1px solid var(--color-border-light);
    background: var(--color-beige);
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

body.rtl .marquee-track {
    animation-direction: reverse;
}

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

.marquee-track span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-section .hero-content > *,
    .hero-bg,
    .marquee-track {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
