.hero-3-section {
  font-family: 'Gowun Batang', serif;
  background-image: url('../public/pizzas/pizza-bg-3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 40px 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 300px;
  perspective: 1000px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  position: absolute;
  width: 200px;
  height: auto;
  background: white;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 0 0 50% 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

/* Card positions */
.card.active {
  transform: translateX(0) translateZ(0) scale(1);
  opacity: 1;
  z-index: 10;
}

.card.next {
  transform: translateX(200px) translateZ(-100px) scale(0.8);
  opacity: 1;
  z-index: 5;
}

.card.prev {
  transform: translateX(-200px) translateZ(-100px) scale(0.8);
  opacity: 1;
  z-index: 5;
}

.card.hidden-next {
  transform: translateX(400px) translateZ(-200px) scale(0.6);
  opacity: 1;
  z-index: 1;
}

.card.hidden-prev {
  transform: translateX(-400px) translateZ(-200px) scale(0.6);
  opacity: 1;
  z-index: 1;
}

.card.far-next {
  transform: translateX(600px) translateZ(-300px) scale(0.4);
  opacity: 0;
  z-index: 0;
}

.card.far-prev {
  transform: translateX(-600px) translateZ(-300px) scale(0.4);
  opacity: 0;
  z-index: 0;
}

/* Navigation arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: 50px;
}

.nav-arrow.right {
  right: 50px;
}

/* Slide indicator */
.slide-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* Hover effects */
.card:hover {
  transform: translateX(0) translateZ(20px) scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card.active:hover {
  transform: translateX(0) translateZ(20px) scale(1.05);
}

.card.next:hover {
  transform: translateX(200px) translateZ(-80px) scale(0.85);
}

.card.prev:hover {
  transform: translateX(-200px) translateZ(-80px) scale(0.85);
}

.active-item-display {
  font-family: 'Ultra', serif;
  text-align: center;
  font-size: 14px;
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Add this to create space between name and indicator */
}

.veg-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-left: 8px;
  position: relative;
}

.veg-indicator.veg {
  background-color: #4caf50;
  border: 2px solid #4caf50;
}

.veg-indicator.non-veg {
  background-color: #f44336;
  border: 2px solid #f44336;
}

.veg-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
}

.pizza-character {
  position: absolute;
  left: 3%;
  top: 35%;
  transform: translateY(-50%);
  z-index: 5;
  animation: float 3s ease-in-out infinite;
}

.pizza-mascot {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.pizza-mascot:hover {
  transform: scale(1.1) rotate(5deg);
  animation-play-state: paused;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-55%) translateX(10px);
  }
}

/* Brand Logo Styling */
.brand-logo {
  position: absolute;
  right: 3%;
  top: 15%;
  z-index: 5;
}

.brand-logo-text {
  font-family: 'Ultra', serif;
  font-size: 16px;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.2;
  font-weight: bold;
}

.section-title {
  margin-bottom: 20px;
  z-index: 10;
}

@media (max-width: 576px) {
  .pizza-character {
    display: none; /* ✓ This hides the character on mobile */
  }

  .hero-3-section {
    min-height: 70vh;
  }
  .active-item-display {
    font-family: 'Ultra', serif;
    font-weight: normal;
    font-size: 11px;
  }
}
