/* ---- Clients Section ---- */
#clients {
  background: #f4f6f9;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

#clients::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,180,26,0.10) 0%, transparent 70%);
  pointer-events: none;
}

#clients .section-label {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: #f4b41a;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

#clients h2 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #1b2a49;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: center;
}

#clients .section-sub {
  font-family: 'DM Sans', sans-serif;
  color: #6b7a90;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 50px;
  text-align: center;
}

/* ---- Marquee Track ---- */
.clients-track-wrapper {
  width: 100%;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  flex-direction: row;   /* horizontal row */
  flex-wrap: nowrap;     /* never wrap to next line */
  width: max-content;    /* grow as wide as all cards */
  animation: marquee 28s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Client Card ---- */
.client-card {
  display: flex;
  flex-direction: column;
  width: 240px;
  min-width: 240px;
  margin: 8px 14px;
  padding: 0;                 /* image goes edge to edge */
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;           /* clips image to rounded corners */
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.client-card:hover {
  border-color: #f4b41a;
  box-shadow: 0 6px 20px rgba(244,180,26,0.18);
  transform: translateY(-4px);
}

/* ---- Image inside card ---- */
.client-card .card-img-top {
  width: 100%;
  height: 150px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
}

/* ---- Label ---- */
.client-card .client-name {
  padding: 12px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1b2a49;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fff;
}

/* ---- Mobile ---- */
@media (max-width: 576px) {
  .client-card {
    width: 180px;
    min-width: 180px;
    margin: 6px 8px;
  }
  .client-card .card-img-top {
    height: 115px;
  }
  .clients-stats {
    gap: 28px;
  }
}