.partners_section {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 8%;
}

.partners_track {
  width: 100%;
  overflow: hidden;
}

.partners_scroll {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: scrollInfinite 70s linear infinite;
  will-change: transform;
  /* Hint browser for better performance */
}

.partners_scroll img {
  flex: 0 0 auto;
  height: 100px;
  width: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  /* Force GPU layer */
  transform: translateZ(0);
}

/* Keyframes: now translates by -50% (half the duplicated content width) for seamless loop */
@keyframes scrollInfinite {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==== MEDIA QUERIES ==== */

@media (min-width: 1751px) {
  .partners_section {
    margin-bottom: 8%;
  }
}

@media (max-width: 1024px) {
  .partners_scroll {
    gap: 80px;
  }

  .partners_scroll img {
    height: 80px;
  }

  .partners_section {
    margin-bottom: 8%;
  }
}

@media (max-width: 767px) {
  .partners_scroll {
    gap: 40px;
  }

  .partners_scroll img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .partners_scroll {
    gap: 30px;
  }

  .partners_scroll img {
    height: 50px;
  }
}
