/*
Theme Name: Agroaus Custom Theme
Description: A custom WordPress theme based on HTML template.
Author: OzWebApps
Version: 1.0.0
*/

/* Custom Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.hero-gradient {
    background: linear-gradient(to right, rgba(6, 78, 59, 0.85), rgba(6, 78, 59, 0.4));
}

.bg-pattern {
    background-color: #f0fdf4;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2316a34a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


/* Marquee */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

.animate-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Mobile Swipe Effects */
@media (max-width: 767px) {
    .mobile-swipe-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-swipe-grid::-webkit-scrollbar {
        display: none;
    }

    .mobile-swipe-grid>* {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center;
    }

    .mobile-swipe-partners>* {
        flex: 0 0 55% !important;
        max-width: 55% !important;
        justify-content: center;
        margin-right: 2rem;
    }
}