/* SECTION */
.clients-section {
  background: #000;
}

/* TEXT */
.clients-head {
  padding: 120px 80px 0 80px;
}

.clients-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.pill {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #0D0D0D;
  border: 1px solid #191919;
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  font-family: "Syne", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.clients-head h2 {
  font-size: 56px;
  font-weight: 700;
  color: white;
  margin: 0;
  font-family: "Syne", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* TRACK */
.clients-track {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.row {
  overflow: hidden;
}

.row-inner {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

/* CARD */
.card {
  width: 400px;
  height: 300px;
  border-radius: 20px;
  background: #1A1A1A;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  transition: 
    transform .55s cubic-bezier(.22,.61,.36,1),
    background .55s cubic-bezier(.22,.61,.36,1);
}

/* BACKGROUND IMAGE */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: #1A1A1A;
  background-size: cover;
  background-position: center;
  opacity: 0;

  transition: 
    opacity .55s cubic-bezier(.22,.61,.36,1),
    transform .8s ease;
}

/* DARK OVERLAY */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #1A1A1A;
  opacity: 0;

  transition: opacity .55s cubic-bezier(.22,.61,.36,1);
}

/* LOGO */
.card img {
  position: relative;
  z-index: 2;
  max-width: 55%;
  opacity: 20%;


  transition:
    filter .55s cubic-bezier(.22,.61,.36,1),
    transform .55s cubic-bezier(.22,.61,.36,1);
}

.card:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.card:hover::after {
  opacity: 1;
}

.card:hover img {
  transform: scale(1.06);
  opacity: 100%;
}


/* =========================================
   LARGE LAPTOP (1400px ↓)
========================================= */

@media (max-width: 1400px) {

  .clients-head {
    padding: 100px 60px 0 60px;
  }

  .clients-head h2 {
    font-size: 64px;
  }

  .card {
    width: 360px;
    height: 270px;
  }
}


/* =========================================
   TABLET (1200px ↓)
========================================= */

@media (max-width: 1200px) {

  .clients-head {
    padding: 90px 40px 0 40px;
  }

  .clients-head h2 {
    font-size: 56px;
  }

  .pill {
    font-size: 16px;
  }

  .card {
    width: 320px;
    height: 240px;
  }
}


/* =========================================
   SMALL TABLET (900px ↓)
========================================= */

@media (max-width: 900px) {

  .clients-head {
    padding: 80px 30px 0 30px;
  }

  .clients-head h2 {
    font-size: 44px;
    line-height: 1.1;
  }

  .card {
    width: 260px;
    height: 200px;
    border-radius: 16px;
  }

  .row-inner {
    gap: 8px;
  }
}


/* =========================================
   MOBILE (600px ↓)
========================================= */

@media (max-width: 600px) {

  .clients-head {
    padding: 60px 20px 20px 20px;
  }

  .clients-head h2 {
    font-size: 32px;
    line-height: 1.15;
  }

  .pill {
    font-size: 14px;
    padding: 6px 14px;
    margin-bottom: 15px;
  }

  .clients-track {
    height: 85vh; /* víc kompaktní sticky */
  }

  .card {
    width: 200px;
    height: 160px;
    border-radius: 14px;
  }

  .row-inner {
    gap: 6px;
  }

  /* vypnutí hover animací na mobile */
  .card:hover {
    transform: none;
  }

  .card:hover::before,
  .card:hover::after {
    opacity: 0;
  }

  .card:hover img {
    transform: none;
    opacity: 0.2;
  }
}


/* =========================================
   SMALL MOBILE (400px ↓)
========================================= */

@media (max-width: 400px) {

  .clients-head h2 {
    font-size: 26px;
  }

  .card {
    width: 170px;
    height: 300px;
  }

}







/* ================================
   APPLE STYLE RAMP UP
================================ */

.clients-head,
.row {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.9s cubic-bezier(.22,1,.36,1),
    transform 0.9s cubic-bezier(.22,1,.36,1);
}

.clients-section.is-visible .clients-head {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .05s;
}

.clients-section.is-visible .row:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .15s;
}

.clients-section.is-visible .row:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .25s;
}