/* ==========================================================================
   ZETA INTELLIGENCE — CLIENTS & SOCIAL PROOF MARQUEE SLIDER
   ========================================================================== */

.clients-section {
  position: relative;
  padding: 80px 0 84px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.clients-section .container {
  text-align: center;
  margin-bottom: 44px;
}

.clients-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.clients-header .eyebrow {
  margin-bottom: 0;
  color: var(--zi-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.clients-header .clients-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0;
}

.clients-header .clients-sub {
  font-size: 1.02rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

/* Marquee wrapper with elegant edge fade masks */
.marquee-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0;
  overflow: hidden;
  display: flex;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 72px;
  padding-right: 72px;
  flex-shrink: 0;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 130px;
  padding: 6px 14px;
  transition: transform 0.28s ease, filter 0.28s ease, opacity 0.28s ease;
}

.client-logo-item img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(92%);
  opacity: 0.65;
  transition: filter 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.client-logo-item:hover img {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
  transform: scale(1.1);
}

/* Infinite loop animation */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }
  .marquee-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .clients-section {
    padding: 60px 0 64px;
  }
  .clients-header .clients-title {
    font-size: 1.35rem;
  }
  .clients-section .container {
    margin-bottom: 34px;
  }
  .marquee-group {
    gap: 52px;
    padding-right: 52px;
  }
  .client-logo-item {
    height: 48px;
    min-width: 110px;
  }
  .client-logo-item img {
    max-height: 38px;
    max-width: 135px;
  }
}

@media (max-width: 600px) {
  .clients-section {
    padding: 48px 0 52px;
  }
  .clients-header .clients-title {
    font-size: 1.2rem;
  }
  .marquee-group {
    gap: 40px;
    padding-right: 40px;
  }
  .client-logo-item {
    height: 42px;
    min-width: 95px;
  }
  .client-logo-item img {
    max-height: 32px;
    max-width: 115px;
  }
}
