/* ===================================
   Modern Carousel Styles
   Hero Slider & Property Carousels
   =================================== */

/* ============ Fullscreen Hero Slider ============ */
.fullscreen-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  max-height: 90vh;
  min-height: 600px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 50%, #f0f4ff 100%);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.fullscreen-slider-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* Modern Carousel Base */
.modern-carousel {
  position: relative;
}

.modern-carousel-slide {
  position: relative;
  overflow: hidden;
}

/* Gradient Overlay with Animation */
.modern-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(211, 222, 250, 0.1) 0%, rgba(211, 222, 250, 0.05) 50%, rgba(211, 222, 250, 0.1) 100%);
  z-index: 1;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Modern Indicators */
.modern-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  gap: 8px;
}

.modern-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(15, 36, 129, 0.3);
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  list-style: none;
}

.modern-indicators li.active {
  background: #fff;
  border-color: #0f2481;
  width: 32px;
  border-radius: 12px;
}

.modern-indicators li:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Content Styling */
.modern-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-badge {
  background: linear-gradient(135deg, #0f2481, #3554d1);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(15, 36, 129, 0.2);
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modern Title */
.modern-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #0f2481;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight-text {
  background: linear-gradient(135deg, #3554d1, #0f2481);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3554d1, #0f2481);
  border-radius: 2px;
  animation: underlineExpand 0.6s ease-out 0.3s both;
}

@keyframes underlineExpand {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Description */
.modern-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #444;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 500px;
}

/* Feature Items */
.modern-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.95);
  color: #0f2481;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid rgba(15, 36, 129, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item:hover {
  background: #fff;
  border-color: #3554d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 36, 129, 0.15);
}

/* Modern Primary Button */
.modern-btn-primary {
  background: linear-gradient(135deg, #0f2481, #3554d1);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(15, 36, 129, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.modern-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3554d1, #0f2481);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-btn-primary:hover::before {
  opacity: 1;
}

.modern-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(15, 36, 129, 0.4);
  color: white;
  text-decoration: none;
}

.modern-btn-primary span,
.modern-btn-primary i {
  position: relative;
  z-index: 1;
}

.modern-btn-primary i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.modern-btn-primary:hover i {
  transform: translateX(5px);
}

/* Image Wrapper */
.modern-img-wrapper {
  position: relative;
  width: 38vw;
  height: 80vh;
  max-height: 80vh;
  min-width: 320px;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 36, 129, 0.15);
}

.modern-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modern-img-wrapper:hover .modern-slide-image {
  transform: scale(1.08);
}

.image-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(53, 84, 209, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.modern-img-wrapper:hover .image-glow {
  opacity: 1;
}

/* Gallery Grid */
.modern-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 36, 129, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 36, 129, 0.2);
}

.gallery-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(15, 36, 129, 0.2) 0%, rgba(53, 84, 209, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Modern Navigation Controls */
.modern-carousel-control-prev,
.modern-carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  z-index: 15;
  transition: all 0.3s ease;
}

.modern-carousel-control-prev {
  left: 30px;
}

.modern-carousel-control-next {
  right: 30px;
}

.control-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(15, 36, 129, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 2px solid rgba(15, 36, 129, 0.1);
}

.modern-carousel-control-prev:hover .control-circle,
.modern-carousel-control-next:hover .control-circle {
  background: #fff;
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(15, 36, 129, 0.25);
  border-color: #3554d1;
}

.control-circle i {
  color: #0f2481;
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.modern-carousel-control-prev:hover .control-circle i {
  transform: translateX(-3px);
}

.modern-carousel-control-next:hover .control-circle i {
  transform: translateX(3px);
}

/* Ensure Full Height */
.carousel-card-fullscreen {
  height: 100% !important;
  min-height: 100% !important;
}

.carousel-card-left-full,
.carousel-card-right-full {
  height: 100% !important;
  min-height: 100% !important;
}

/* ============ Responsive Design ============ */
@media (max-width: 991.98px) {
  .carousel-inner {
    padding-left: 70px !important;
    padding-right: 70px !important;
  }

  .carousel-card-fullscreen {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .carousel-card-left-full,
  .carousel-card-right-full {
    width: 100%;
    height: 50vh;
    min-height: 220px;
    padding: 20px !important;
  }

  .carousel-card-left-full {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .modern-img-wrapper {
    width: 80vw !important;
    height: 30vh !important;
    min-width: 180px;
    min-height: 120px;
  }

  .modern-gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-image {
    height: 120px;
  }

  .modern-title {
    text-align: center !important;
  }

  .modern-description {
    text-align: center !important;
  }

  .modern-content {
    align-items: center !important;
  }

  .modern-carousel-control-prev,
  .modern-carousel-control-next {
    width: 50px;
    height: 50px;
  }

  .control-circle {
    width: 50px;
    height: 50px;
  }

  .modern-carousel-control-prev {
    left: 20px;
  }

  .modern-carousel-control-next {
    right: 20px;
  }
}

@media (max-width: 767.98px) {
  .fullscreen-slider,
  .fullscreen-slider-inner,
  .carousel-card-fullscreen {
    min-height: 90vh !important;
    height: 90vh !important;
    max-height: 90vh !important;
    margin-top: 5vh !important;
  }

  .carousel-inner {
    padding-left: 55px !important;
    padding-right: 55px !important;
  }

  .carousel-card-left-full,
  .carousel-card-right-full {
    height: 45vh !important;
    min-height: 45vh !important;
    padding: 15px !important;
    width: 100% !important;
  }

  .modern-img-wrapper {
    width: 85vw !important;
    height: 38vh !important;
    max-width: 400px !important;
    min-width: 280px;
    min-height: 140px;
    max-height: 38vh !important;
  }

  .modern-title {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
  }

  .modern-description {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
  }

  .modern-features {
    margin-bottom: 15px !important;
    gap: 8px !important;
    justify-content: center;
  }

  .feature-item {
    padding: 8px 14px;
    font-size: 0.85em;
  }

  .modern-btn-primary {
    padding: 12px 24px !important;
    font-size: 1em !important;
  }

  .modern-carousel-control-prev,
  .modern-carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .control-circle {
    width: 45px;
    height: 45px;
  }

  .modern-carousel-control-prev {
    left: 10px;
  }

  .modern-carousel-control-next {
    right: 10px;
  }

  .modern-indicators {
    bottom: 20px;
    padding: 6px 12px;
  }

  .modern-indicators li {
    width: 8px;
    height: 8px;
  }

  .modern-indicators li.active {
    width: 24px;
  }
}
