/* Showcase Carousel Styles */
.showcase-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: visible;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.showcase-carousel:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track.transitioning {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track.touching {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  opacity: 0.8;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Changed from cover to contain */
  max-height: 800px; /* Increased height to show images completely */
  transition: transform 0.5s ease;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: none; /* Hide dot indicators as requested */
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .showcase-carousel {
    border-radius: 12px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .carousel-dots {
    bottom: 10px;
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}

.carousel-slide .carousel-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.2s;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
}

.carousel-slide.animate-content .carousel-content {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
}

.carousel-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.carousel-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
  fill: var(--gray-900);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem 0;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

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

.carousel-dot.active:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: scale(0);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 300px;
  }
  
  .carousel-content {
    padding: 1.5rem;
  }
  
  .carousel-content h3 {
    font-size: 1.25rem;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .carousel-slide img {
    height: 250px;
  }
  
  .carousel-content {
    padding: 1rem;
  }
  
  .carousel-content h3 {
    font-size: 1.1rem;
  }
  
  .carousel-content p {
    font-size: 0.9rem;
  }
  
  .carousel-button {
    width: 36px;
    height: 36px;
  }
}