/* Clients Section Styles */
.clients-section {
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.section-header {
  position: relative;
  z-index: 2;
}

.section-title-clients {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f1f2e !important;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
  border-radius: 2px;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.client-logos-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.client-logos-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scroll 35s linear infinite;
}



.client-logo-item {
  flex: 0 0 auto;
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.cmi-logo {
  width: 240px !important;
  height: 160px !important;
}

.client-logo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
}

.client-logo-item:hover::before {
  opacity: 1;
}

.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.8);
  opacity: 0.7;
  transition: all 0.4s ease;
}

.client-logo-item:hover .client-logo-img {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

  .client-logo-item {
    width: 140px;
    height: 70px;
  }

  .client-logos-track {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .client-logo-item {
    width: 120px;
    height: 60px;
    padding: 10px;
  }

  .client-logos-track {
    gap: 20px;
    animation: scroll 40s linear infinite;
  }
}
