/* Carousel Animation Styles */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Desktop scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.auto-scroll {
  animation: scroll 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.auto-scroll:hover {
  animation-play-state: paused;
}

/* Optimize for smooth scrolling */
.auto-scroll * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Subtle fade effect at edges - desktop only */
@media (min-width: 768px) {
  .relative.overflow-hidden::before,
  .relative.overflow-hidden::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 10;
    pointer-events: none;
  }

  .relative.overflow-hidden::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
  }

  .relative.overflow-hidden::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
  }
}
