/* ==========================================================================
   3D RING CAROUSEL
   Kept from the original design — cleaned up, class names unchanged
   so the same GSAP logic still applies.
   ========================================================================== */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: 560px;
  overflow: hidden;
}

.carousel-3d {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: center center;
}

.cards-wrapper {
  position: relative;
  width: 280px;
  height: 400px;
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  width: 280px;
  height: 400px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.card-content {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.card-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.portal-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.1rem;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  padding: 1.1rem 1rem;
}

.portal-items li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.portal-items li i {
  width: 16px;
  text-align: center;
  opacity: 0.85;
}

/* Navigation arrows */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-prev { left: 8px; }
.nav-next { right: 8px; }

@media (min-width: 640px) {
  .nav-prev { left: 24px; }
  .nav-next { right: 24px; }
}

/* Bottom controls */
.bottom-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.controls-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  padding: 0.6rem 1.2rem;
}

.indicators {
  display: flex;
  gap: 0.45rem;
}

.indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s ease;
}

.indicator.active {
  background: var(--paper);
}

.autoplay-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  border-radius: 50%;
}

.autoplay-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hidden {
  display: none;
}

/* Progress bar */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 50;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
}

@media (max-width: 640px) {
  .carousel-container {
    height: 460px;
  }

  .cards-wrapper,
  .card {
    width: 230px;
    height: 320px;
  }

  .card-content {
    padding: 1.4rem;
  }
}
