/* Clients Logo Carousel */
.clients-carousel {
  background: #f8f9fa;
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
  margin: 4rem 0;
}

.clients-carousel::before,
.clients-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.clients-carousel::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.clients-carousel::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.clients-carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.clients-carousel-track:hover {
  animation-play-state: paused;
}

.clients-carousel-item {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.clients-carousel-item:hover {
  transform: scale(1.1);
  opacity: 1;
}

.clients-carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: filter 0.3s ease;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Make Coca-Cola logo larger */
.clients-carousel-item img[alt="Coca-Cola"] {
  max-width: 140%;
  max-height: 140%;
}

/* Make Anytime Fitness logo larger */
.clients-carousel-item img[alt="Anytime Fitness"] {
  max-width: 170%;
  max-height: 170%;
}

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

@media (max-width: 768px) {
  .clients-carousel {
    padding: 2rem 0;
  }
  
  .clients-carousel-item {
    width: 150px;
    height: 80px;
    margin: 0 30px;
  }
  
  .clients-carousel-track {
    animation-duration: 25s;
  }
}

@media (max-width: 480px) {
  .clients-carousel-item {
    width: 120px;
    height: 60px;
    margin: 0 20px;
  }
  
  .clients-carousel-track {
    animation-duration: 20s;
  }
}
