/* Brands Section Styles */
.brands-section {
    padding: 80px 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.brands-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.brands-section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 650;
    color: var(--color-black);
    margin-bottom: 12px;
}

.brands-section-p {
    font-size: clamp(15px, 2.5vw, 22px);
    color: var(--color-black);
    margin-bottom: 60px;
}

/* Brands Marquee Wrapper */
.brands-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.brands-marquee-wrapper::before,
.brands-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white) 0%, transparent 100%);
}

.brands-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white) 0%, transparent 100%);
}

/* Marquee Row */
.brands-marquee-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.brands-marquee-row:last-child {
    margin-bottom: 0;
}

/* Marquee Track */
.brands-marquee-track {
    display: flex;
    width: max-content;
    gap: 30px;
    padding: 15px 0;
}

/* Right to Left Animation */
.row-rtl .brands-marquee-track {
    animation: marqueeRTL 40s linear infinite;
}

.row-rtl .brands-marquee-track:hover {
    animation-play-state: paused;
}

/* Left to Right Animation */
.row-ltr .brands-marquee-track {
    animation: marqueeLTR 40s linear infinite;
}

.row-ltr .brands-marquee-track:hover {
    animation-play-state: paused;
}

/* Brand Card */
.brand-card {
    flex: 0 0 auto;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

/* Brand Logo */
.brand-logo {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.103);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
    box-shadow: 0 8px 30px rgba(6, 171, 92, 0.15);
    transform: scale(1.02);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /*filter: grayscale(0%) brightness(1.02);*/
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo img {
    cursor: pointer;
}

/* Country Name - Top Position */
.brand-country-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-600);
    order: -1;
}

.brand-country-top img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Country Name - Bottom Position */
.brand-country-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-600);
}

.brand-country-bottom img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brand-card:hover .brand-country-top,
.brand-card:hover .brand-country-bottom {
    color: var(--navbar-primary-green);
}

/* Animations */
@keyframes marqueeRTL {
    0% {
        transform: translateX(0);
    }

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

@keyframes marqueeLTR {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Tablet Styles */
@media (max-width: 991px) {
    .brands-section {
        padding: 60px 0;
    }

    .brands-section-p {
        margin-bottom: 40px;
    }

    .brands-marquee-row {
        margin-bottom: 20px;
    }

    .brands-marquee-track {
        gap: 30px;
    }

    .brand-card {
        width: 180px;
    }

    .brand-logo {
        height: 90px;
        padding: 12px;
    }

    .brand-country-top,
    .brand-country-bottom {
        font-size: 14px;
    }

    .brand-country-top img,
    .brand-country-bottom img {
        width: 20px;
        height: 14px;
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    .brands-section {
        padding: 50px 0;
    }

    .brands-section-title {
        font-size: 34px;
        margin-bottom: 10px;
    }

    .brands-section-p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .brands-marquee-wrapper {
        padding: 10px 0;
    }

    .brands-marquee-row {
        margin-bottom: 15px;
    }

    .brands-marquee-track {
        gap: 20px;
        padding: 15px 0;
    }

    .brand-card {
        width: 150px;
        gap: 8px;
    }

    .brand-logo {
        height: 80px;
        padding: 10px;
        border-radius: 10px;
    }

    .brand-country-top,
    .brand-country-bottom {
        font-size: 13px;
        gap: 6px;
    }

    .brand-country-top img,
    .brand-country-bottom img {
        width: 18px;
        height: 13px;
    }

    /* Faster animation on mobile */
    .row-rtl .brands-marquee-track {
        animation: marqueeRTL 30s linear infinite;
    }

    .row-ltr .brands-marquee-track {
        animation: marqueeLTR 30s linear infinite;
    }
}

/* Badges Section Styles (Keep existing badges section unchanged) */
.badges-section {
    background-color: var(--color-white);
    overflow: hidden;
}

.badges-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* Badge Item Base */
.badge-item {
    position: relative;
    width: 140px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 1;
}

.badge-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
    will-change: transform;
    mix-blend-mode: multiply;
    
}

/* Elastic Pop Hover Effects */
.badge-item:hover {
    transform: scale(.97) translateY(-2px);
    z-index: 20;
}

.badge-item:hover img {
    filter: drop-shadow(0 20px 30px rgba(6, 171, 92, 0.3));
    animation: badgeBounce 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes badgeBounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(1.15) rotate(-3deg);
    }

    80% {
        transform: scale(1.2) rotate(3deg);
    }

    100% {
        transform: scale(1.2) rotate(0);
    }
}

/* Simple Glow */
.badge-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 171, 92, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.badge-item:hover::before {
    width: 160%;
    height: 160%;
    opacity: 1;
}

/* Tablet Portrait Adjustments for Badges (577px to 991px) */
@media (min-width: 577px) and (max-width: 991px) {
    .badges-container {
        gap: 18px;
        padding: 0 30px;
        padding-top: 40px !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .badge-item {
        width: 120px;
        height: 150px;
        flex: 0 0 auto;
    }

    .testimonies-section {
        padding-top: 60px !important;
        padding-bottom: 20px !important;
    }

    .testimonies-marquee-container {
        margin-top: -40px;
    }
}

/* Mobile Adjustments for Badges (576px and below) */
@media (max-width: 576px) {
    .badges-container {
        gap: 15px;
        padding: 40px 20px 0px 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .badge-item {
        width: 90px;
        height: 120px;
    }
     .testimonies-section {
        padding-top: 80px !important;
        padding-bottom: 20px !important;
    }
}