body {
    background: #f2f2f2;
}

@keyframes slide {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

.logos {
    overflow: hidden;
    padding: 16px 0;
    background: black;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* Smooth mobile scrolling */
}

.logos-slide {
    display: inline-block;
    animation: var(--speed) slide infinite linear;
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden; /* Prevent flickering issues */
    backface-visibility: hidden;
    will-change: transform; /* Suggests the element will be transformed */
}

.logos-slide img {
    height: 150px;
    margin: 0 6px;
    -webkit-backface-visibility: hidden; /* Ensures the back face doesn’t display */
    backface-visibility: hidden;
    -webkit-transform: translateZ(0); /* Force rendering optimization */
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent; /* Disable tap highlight on mobile */
}
