/* Image Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  flex: 1 1 700px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 394px;
  background: #f8f9fa;
}

.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

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

.carousel-nav:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

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

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
  fill: var(--oxford-blue);
}

/* Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

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

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

.carousel-dot.active {
  background: var(--fiery-rose);
  border-color: var(--fiery-rose);
  width: 30px;
  border-radius: 5px;
}

/* Portfolio carousel specific styling */
.landing-page .portfolio.carousel-portfolio {
  background-color: var(--alice-blue);
  padding: 28px 48px;
  border-radius: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.landing-page .portfolio.carousel-portfolio:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.landing-page .portfolio.carousel-portfolio .content {
  flex-direction: row;
  gap: 38px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.landing-page .portfolio.carousel-portfolio .content-1 {
  width: auto;
  max-width: 518px;
  text-align: left;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 10px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 24px;
  }
}

/* Fullscreen Modal Styles */
.carousel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.carousel-modal-content {
  position: relative;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.carousel-modal-slides .carousel-slide {
  max-width: 100%;
  max-height: 100%;
}

.carousel-modal-slides .carousel-slide img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Modal Close Button */
.carousel-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.carousel-modal-close:hover {
  background: white;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.carousel-modal-close svg {
  width: 24px;
  height: 24px;
  fill: #1a1a1a;
}

/* Modal Navigation Buttons */
.carousel-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.carousel-modal-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-modal-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.carousel-modal-nav.prev {
  left: 40px;
}

.carousel-modal-nav.next {
  right: 40px;
}

.carousel-modal-nav svg {
  width: 28px;
  height: 28px;
  fill: #1a1a1a;
}

/* Modal Dots */
.carousel-modal-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

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

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

.carousel-modal-dot.active {
  background: white;
  border-color: white;
  width: 36px;
  border-radius: 6px;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .carousel-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .carousel-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .carousel-modal-nav {
    width: 44px;
    height: 44px;
  }

  .carousel-modal-nav.prev {
    left: 15px;
  }

  .carousel-modal-nav.next {
    right: 15px;
  }

  .carousel-modal-nav svg {
    width: 22px;
    height: 22px;
  }

  .carousel-modal-dots {
    bottom: 20px;
    gap: 8px;
    padding: 8px 16px;
  }

  .carousel-modal-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-modal-dot.active {
    width: 28px;
  }

  .carousel-modal-slides .carousel-slide img {
    max-height: 80vh;
  }
}