/* Custom styles for PT Sumur Batu website */

/* Hero slider animation */
.hero-section {
  position: relative;
  min-height: 600px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 24s infinite;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes slideShow {
  0%, 25% {
    opacity: 1;
    transform: scale(1);
  }
  33%, 100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Spotlight card effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: background 0.3s ease;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Customer logos infinite scroll animation */
.logo-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-scroll-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

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

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

.logo-item {
  flex-shrink: 0;
  width: 180px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 1rem;
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
}

/* Language switcher button styles */
.lang-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Smooth transitions for language changes */
[data-translate] {
  transition: opacity 0.2s ease;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #004C97;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #003366;
}