@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

.ourcustomers {
    text-align: center;
    color: var(--clr-dark);
    overflow-x: hidden;
    background-color: var(--clr-light);
}

@font-face {
    font-family: 'Juana';
    src: url('../fonts/Juana/Demo_Fonts/Fontspring-DEMO-juana-blackit.otf') format('woff2');
    font-weight: normal;
    font-style: normal;
}


.ourcustomers h2{
    color: var(--clr-dark);
    margin-top: 10px;
    font-family: "Juana";
    font-size: 40px;
    
}


.customersContainer {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5%;
    margin-left: 5%;
}

.customersimages {
    display: flex;
    justify-content: space-between;
    margin-top: 1%;
    gap: 20px; /* Adjust spacing between images */
    animation: scroll-horizontal 20s linear infinite; /* Adjust speed as needed */
}

.customersimages img {
    width: 200px; /* Set a fixed width for all images */
    height: 100px; /* Set a fixed height for all images */
    object-fit: contain; /* Ensures the image fits within the box without distortion */
    border: 1px solid transparent; /* Optional: Helps visualize the boundaries */
    box-sizing: border-box; /* Ensures padding and borders are included in the size */
    margin: 0 auto; /* Centers images inside their container */
}


/* Horizontal scrolling animation */
@keyframes scroll-horizontal {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Keep animation running on hover */
.customersimages:hover {
    animation-play-state: running;
}

@media (max-width:768px) {

    .customersimages img {
        width: 100px; /* Set a fixed width for all images */
        height: 50px; /* Set a fixed height for all images */
        object-fit: contain; /* Ensures the image fits within the box without distortion */
        border: 1px solid transparent; /* Optional: Helps visualize the boundaries */
        box-sizing: border-box; /* Ensures padding and borders are included in the size */
        margin: 0 auto; /* Centers images inside their container */
    }
    
    
}


.customersContainer {
    overflow: hidden;
    white-space: nowrap;
}

.customersTextScroll {
    display: inline-block;
    animation: scrollLeft 20s linear infinite;
}

.customersTextScroll span {
    display: inline-block;
    margin: 0 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}


.ourcustomers {
    padding: 40px 20px;
    text-align: center;
  
}

.infinity-scroll {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    direction: ltr; /* Default direction */
  }
  
  /* RTL support: if body is RTL, reverse scroll direction */
  body[dir="rtl"] .infinity-scroll {
    direction: rtl;
  }
  
  .loop-track {
    display: inline-block;
    animation: scrollLoop 30s linear infinite;
    will-change: transform;
  }
  
  .infinity-scroll:hover .loop-track {
    animation-play-state: paused;
  }
  
  .service-pill {
    display: inline-block;
    margin: 0 20px;
    padding: 14px 28px;
    border-radius: 50px;
    background-color: #ff6a00;
    color: #fff;
    font-size: 1.05rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    transition: transform 0.3s ease;
  }
  
  .service-pill:hover {
    transform: scale(1.05);
  }
  
  /* Scroll animation for LTR */
  @keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  /* Scroll animation for RTL */
  body[dir="rtl"] .loop-track {
    animation-name: scrollLoopRTL;
  }
  
  @keyframes scrollLoopRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
  }
  
  /* Responsive tweaks */
  @media (max-width: 768px) {
    .service-pill {
      font-size: 0.9rem;
      padding: 10px 20px;
      margin: 0 10px;
    }
    .ourcustomers h2{
          font-size: 25px;
      
  }

  }