/* Our Clients Section Styles */

:root {
  --scroll-speed: 80s; /* Adjust speed as needed */
}

.clients-section {
  background-color: #f3f4f6;
  background-image: url("../images/dot.webp");
  background-size: 10px 10px;
  background-repeat: repeat;
  padding: 20px 20px;
  font-family: "Inter", sans-serif;
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.clients-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.clients-header {
  flex: 1;
  min-width: 250px;
}

.clients-title {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #212936;
  margin: 0 0 10px;
  z-index: 2;
}

.clients-subtitle {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: #4d5461;
  margin: 0;
  z-index: 2;
}

.clients-logos-wrapper {
  flex: 2;
  background: white;
  border-radius: 60px;
  overflow: hidden;
  position: relative;
  padding: 15px;
  z-index: 2;
}

.clients-logos-track {
  display: flex;
  width: max-content;
  animation: scroll-logos var(--scroll-speed) linear infinite;
  gap: 40px;
}

.clients-logos-wrapper:hover .clients-logos-track {
  animation-play-state: paused;
}

.clients-logos {
  display: flex;
  align-items: center;
  gap: 40px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.client-logo img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clients-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .clients-header {
    order: 1;
  }

  .clients-logos-wrapper {
    order: 2;
    width: 100%;
    margin-top: 20px;
  }

  .clients-title {
    font-size: 26px;
  }

  .clients-subtitle {
    font-size: 14px;
  }

  .clients-logos {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .clients-title {
    font-size: 36px;
  }

  .clients-subtitle {
    font-size: 18px;
  }

  .client-logo img {
    max-height: 40px;
  }

  .clients-logos {
    gap: 20px;
  }
}