﻿/* =======================
   CLIENTS SECTION
======================= */

.clients-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 80px 0;
  background: #050505;
}

.clients-title {
  position: relative;
  z-index: 3;
  text-align: center;
  top: 50px;
  font-family: var(--font-primary);
  font-size: clamp(48px, 9vw, 90px);
  font-weight: 800;
  line-height: 0.4;
  letter-spacing: -0.05em;
  color: #C7C8CC;
  margin-bottom: 200px;
  text-transform: uppercase;
}

.small-line {
  display: block;
  font-family: var(--font-primary);
  font-size: .11em;
  letter-spacing: .75em;
  color: #7d7d7d;
  margin-bottom: 18px;
  font-weight: 400;
}

.large-line {
  display: block;
  color: #6f6f6f;
  margin-top: 10px;
}

/* Fade edges */
.clients-section::before,
.clients-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 220px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.clients-section::before {
  left: 0;
  background: linear-gradient(to right,
      #000 0%,
      rgba(0, 0, 0, .9) 30%,
      transparent 100%);
}

.clients-section::after {
  right: 0;
  background: linear-gradient(to left,
      #000 0%,
      rgba(0, 0, 0, .9) 30%,
      transparent 100%);
}

/* Track */
.clients-track {
  position: relative;
  z-index: 20;
  display: flex;
  width: max-content;
  margin-top: 80px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: clientsMarquee 28s linear infinite;
  animation-fill-mode: both;
}

/* Pause only when hovering logos */
.clients-track:hover {
  animation-play-state: paused;
}

/* Logo group */
.clients-group {
  display: flex;
  align-items: center;
  gap: 120px;
  padding-right: 120px;
}

/* Logos */
.clients-group img {
  flex: 0 0 200px;
  width: 200px;
  height: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: brightness(0) invert(1) grayscale(100%);
  opacity: .55;
  transition:
    transform .45s ease,
    filter .45s ease,
    opacity .45s ease;
}

/* Hover logo */
.clients-group img:hover {
  opacity: 1;
  transform: scale(1.12) translateY(-8px);
  filter:
    brightness(0) invert(1) grayscale(100%) drop-shadow(0 0 12px rgba(255, 255, 255, .25)) drop-shadow(0 0 24px rgba(255, 255, 255, .18)) drop-shadow(0 0 40px rgba(255, 255, 255, .10));
}

/* Animation */
@keyframes clientsMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* =======================
   RESPONSIVE — MOBILE (≤768px)
======================= */
@media (max-width: 768px) {

  .clients-section::before,
  .clients-section::after {
    width: 40px;
  }

  .clients-section {
    padding: 50px 0;
  }

  .clients-track {
    margin-top: 50px;
  }

  .clients-group {
    gap: 36px;
    padding-right: 36px;
  }

  .clients-group img {
    flex-basis: 160px;
    width: 160px;
    height: 90px;
  }

  .clients-track {
    animation-duration: 15s;
  }
}