/* CSS Variables for Clients Section */
:root {
  --section-padding: 60px;
  --white: #ffffff;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark :root {
  --white: #374151;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.clients {
  background-color: #f8fafc;
  padding: 80px 0;
  transition: background-color 0.3s ease;
}

.dark .clients {
  background-color: #1e293b;
}

/* Text Container Styling */
.clients-text-container {
  text-align: center;
  margin-bottom: 50px;
}

.clients .section-subtitle {
  color: #059669;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
  padding: 6px 16px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 20px;
}

.dark .clients .section-subtitle {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.clients .section-title {
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 20px;
  line-height: 1.2;
}

.dark .clients .section-title {
  color: #f1f5f9;
}

.clients .section-title .span {
  color: #059669;
}

.dark .clients .section-title .span {
  color: #10b981;
}

.clients .section-text {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark .clients .section-text {
  color: #94a3b8;
}

.clients-logo-container {
  overflow: hidden;
  position: relative;
  padding: 40px 0;
}

.clients-logo-container::before,
.clients-logo-container::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 100%;
  top: 0;
  pointer-events: none;
}

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

.dark .clients-logo-container::before {
  background: linear-gradient(to right, #1e293b, transparent);
}

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

.dark .clients-logo-container::after {
  background: linear-gradient(to left, #1e293b, transparent);
}

.clients-logo-track {
  display: flex;
  gap: 40px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

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

.clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 120px;
  transition: all 0.3s ease;
}

.clients-logo:hover {
  transform: scale(1.1);
}

.clients-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.clients-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 5 - 40px * 5)); /* Width of 5 logos + gaps (first set) */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clients {
    padding: 60px 0;
  }
  
  .clients .section-title {
    font-size: 36px;
  }
  
  .clients .section-text {
    font-size: 16px;
  }
  
  .clients-logo {
    width: 120px;
    height: 70px;
  }
  
  .clients-logo img {
    max-height: 70px;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-120px * 5 - 40px * 5)); /* Width of 5 logos + gaps (first set) */
    }
  }
}

@media (max-width: 480px) {
  .clients .section-title {
    font-size: 28px;
  }
  
  .clients .section-text {
    font-size: 14px;
  }
  
  .clients-logo-container {
    padding: 30px 0;
  }
}