.partners-strip {
  perspective: 1000px;
  position: absolute;
  top: 66%; 
  left: 45%; /* base center */
  transform: translateX(var(--offset, -50%)); /* adjustable offset */
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-wrapper {
  position: relative;
  width: fit-content;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}



.partner-card {
  position: absolute;
  width: 160px;
  height: 120px; /* enough to fit image + title */
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column; /* stack image above text */
  align-items: center;
  justify-content: flex-start; /* start at top */
  color: #fff;
  cursor: pointer;
  top: 60%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) scale(var(--scale, 1));
  transition: transform 0.4s ease;
  z-index: 10;
  padding: 4px;
}

.partner-card img {
  width: 100%;
  height: 80px; /* allocate most space to image */
  object-fit: cover;
  border-radius: 6px;
}

.partner-title {
  margin-top: 6px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  color: #fff;
}

/* magnify card */
.partner-card.hovered {
  --scale: 1.25;
  z-index: 100;
}



/* Orbit animation (optional CSS, JS controls main movement) */
.orbiting {
  animation: rotateCarousel 20s linear infinite;
}

@keyframes rotateCarousel {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-360deg); }
}



@media (max-width: 768px) {

  .partners-strip {
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    perspective: 800px;
  }

  .carousel-wrapper {
    height: 100%;
  }

  .partner-card {
    width: 120px;
    height: 95px;
    padding: 3px;
  }

  .partner-card img {
    height: 60px;
  }

  .partner-title {
    font-size: 12px;
    margin-top: 4px;
  }

  /* reduce zoom so cards don’t overlap */
  .partner-card.hovered {
    --scale: 1.15;
  }

  .carousel-description {
    top: 155px;
    font-size: 14px;
  }
}


/*Killing the right space  */
html, body {
  overflow-x: hidden;
}