 /* =========================
   CLIENT LOGO BELT (Scoped)
   ========================= */
#client-section {
  padding-top: 56px;
  padding-bottom: 56px;
  background-image: url("/assets/img/clients/clients-bg.jpg");
}

#client-section .clients-belt {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px 0;
  background: linear-gradient(180deg, #fffef688, #fff9d942);
  border-top: 1px solid rgba(0, 0, 0, .05);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

#client-section .belt-row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
  padding: 6px;
}

/* Each logo container */
#client-section .client-square {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, .04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#client-section .client-square:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Logo image styling */
#client-section .client-square img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) brightness(1.05) contrast(1.1);
  transition: filter 0.5s ease, transform 0.4s ease;
}

#client-section .client-square:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1.5);
}

/* Mobile responsive tweak */
@media (max-width: 576px) {
  #client-section .client-square {
    width: 120px;
    height: 90px;
  }

  #client-section .client-square img {
    width: 85%;
    height: 85%;
  }
}

/* Scoped marquee animations */
@keyframes client-belt-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes client-belt-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

#client-section .belt-left {
  animation: client-belt-left 36s linear infinite;
}

#client-section .belt-right {
  animation: client-belt-right 38s linear infinite;
}

#client-section .clients-belt:hover .belt-row {
  animation-play-state: paused;
}
