/* === Overlay === */
#carouselOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7); /* transparent overlay */
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Banner wrapper */
.banner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* === Close Button === */
.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 8px 16px;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease;
}
.close-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* === Slider core === */
.slider {
  position: relative;
  width: 200px;
  height: 260px;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(-12deg);
  animation: autoRotate 22s linear infinite;
  cursor: grab;
}
@keyframes autoRotate {
  from { transform: perspective(1200px) rotateX(-12deg) rotateY(0deg); }
  to   { transform: perspective(1200px) rotateX(-12deg) rotateY(360deg); }
}
.slider .item {
  position: absolute;
  inset: 0;
  transform:
    rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
    translateZ(500px);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Bounce-in animation */
  animation: bounceIn 0.8s ease backwards;
  animation-delay: calc(var(--position) * 0.15s);
}
@keyframes bounceIn {
  0% { transform: scale(0.5) translateY(200px); opacity: 0; }
  60% { transform: scale(1.2) translateY(-20px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

/* === Glassy Card with Shine === */
.card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* Shine effect */
.card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -150%;
  width: 200%;
  height: 300%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.6) 50%,
    transparent 70%
  );
  transform: rotate(25deg);
  opacity: 0;
}
.card:hover::before {
  animation: shine 1s forwards;
  opacity: 1;
}
@keyframes shine {
  0% { top: -100%; left: -150%; }
  100% { top: 100%; left: 150%; }
}
/* Hover grow */
.item:hover .card {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Card contents */
.card object {
  width: 70%;
  height: 70%;
  pointer-events: none;
}
.label {
  position: absolute;
  bottom: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* === Description Panel === */
.description-panel {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 320px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  min-height: 120px;
}
.description-panel h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #00e0ff;
}
.description-panel p { white-space: pre-wrap; }
