.clients-section {
  background: black;
  padding: 4rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.clients-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f6d764;
  margin-bottom: 0.5rem;
}

.clients-subtitle {
  font-size: 1.1rem;
  color: white;
  max-width: 400px;
}

.testimonials-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.testimonials-btn:hover {
  background: #0056b3;
}

.ticker-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: fit-content;
}

.client-logo {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

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

.client-logo img.no-filter {
  filter: opacity(0.7);
}

.client-logo:hover img.no-filter {
  filter: opacity(1);
}

/* Gradient overlays for seamless effect */
.ticker-container::before,
.ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.ticker-container::before {
  left: 0;
  background: linear-gradient(to right, black, transparent);
}

.ticker-container::after {
  right: 0;
  background: linear-gradient(to left, black, transparent);
}

@media (max-width: 768px) {
  .client-section-header {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .clients-title {
    font-size: 2rem;
  }

  .client-logo {
    width: 130px;
    height: 50px;
  }

  .ticker-content {
    gap: 3rem;
  }
}
