/* ========================================
   ENHANCED CAROUSEL STYLES - LUXILLAG v2.0
   ======================================== */

/* ========================================
   BASE STYLES (ALL DEVICES)
   ======================================== */

.carousel-inner {
  width: 100vw;
}

.img-cover {
  object-fit: cover;
  object-position: center;
  height: 100vh;
  overflow: hidden;
}

/* Enhanced Carousel Caption Positioning */
.carousel-caption {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-caption-main {
  z-index: 10;
  bottom: auto;
  padding: 40px;
  font-family: "Poppins", sans-serif;
  width: 90%;
  max-width: 1200px;
}

/* ========================================
   ENHANCED SLIDE LAYOUT SYSTEM
   ======================================== */

.slide-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: 
    "header visual"
    "info visual";
  gap: 40px;
  align-items: center;
  min-height: 50vh;
}

.slide-header {
  grid-area: header;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.slide-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.slide-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ========================================
   ENHANCED TYPOGRAPHY
   ======================================== */

.slide-brand-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.slide-title {
  color: #fff;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1.2s ease-out 0.3s forwards;
  white-space: nowrap; /* Prevent text wrapping */
}

.slide-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.01em;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1.2s ease-out 0.6s forwards;
}

/* ========================================
   ENHANCED PRODUCT IMAGE
   ======================================== */

.slide-product-img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.4));
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  animation: scaleUpFade 1.2s ease-out 0.5s forwards;
  transition: transform 0.3s ease;
}

.slide-product-img:hover {
  transform: scale(1.02);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUpFade {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Reset animations for new slides */
.carousel-item:not(.active) .slide-title,
.carousel-item:not(.active) .slide-subtitle,
.carousel-item:not(.active) .slide-product-img {
  opacity: 0;
  animation: none;
}

.carousel-item.active .slide-title {
  animation: slideUpFade 1.2s ease-out 0.3s forwards;
}

.carousel-item.active .slide-subtitle {
  animation: slideUpFade 1.2s ease-out 0.6s forwards;
}

.carousel-item.active .slide-product-img {
  animation: scaleUpFade 1.2s ease-out 0.5s forwards;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (max-width: 1024px) {
  .carousel-caption-main {
    padding: 30px;
    width: 95%;
  }

  .slide-content {
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    min-height: 45vh;
  }

  .slide-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
  }

  .slide-subtitle {
    font-size: 1.2rem;
  }

  .slide-brand-logo {
    max-width: 150px;
  }

  .slide-product-img {
    max-height: 60vh;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 768px) {
  .carousel-caption-main {
    padding: 20px;
    width: 95%;
  }

  .slide-content {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "info"
      "visual";
    gap: 20px;
    text-align: center;
    min-height: auto;
  }

  .slide-header {
    justify-content: center;
  }

  .slide-info {
    text-align: center;
  }

  .slide-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on mobile */
  }

  .slide-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }

  .slide-brand-logo {
    max-width: 120px;
  }

  .slide-product-img {
    max-height: 40vh;
    max-width: 90%;
  }

  /* Mobile Carousel Controls - closer to edges */
  .carousel-control-prev {
    left: 15px !important;
  }

  .carousel-control-next {
    right: 15px !important;
  }
}

@media (max-width: 480px) {
  .carousel-caption-main {
    padding: 15px;
  }

  .slide-content {
    gap: 15px;
  }

  .slide-title {
    font-size: 2.2rem;
    white-space: nowrap; /* Prevent text wrapping on small mobile */
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .slide-brand-logo {
    max-width: 100px;
  }

  .slide-product-img {
    max-height: 35vh;
  }

  /* Small Mobile Carousel Controls - even closer to edges */
  .carousel-control-prev {
    left: 10px !important;
  }

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

/* ========================================
   CAROUSEL NAVIGATION & CONTROLS
   ======================================== */

/* Carousel Indicators */
.carousel-indicators {
  opacity: 0.6;
}

.carousel-indicators button.active {
  opacity: 0.8;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  transition: all 0.3s ease;
  transform: translateX(0);
  opacity: 0.7;
  z-index: 10;
  width: 60px;
}

.carousel-control-prev {
  left: 80px;
}

.carousel-control-next {
  right: 80px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.5;
}

.carousel-control-prev:hover {
  transform: translateX(-5px);
}

.carousel-control-next:hover {
  transform: translateX(5px);
}

/* ========================================
   NEW PRODUCTS BADGE
   ======================================== */

.new-products-badge {
  position: fixed;
  top: 75%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1000;
}

.badge-content {
  background: rgba(165, 36, 34, 0);
  color: white;
  padding: 20px 30px 20px 15px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-left: none;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: visible;
  cursor: default;
  outline: none;
  width: 120px;
  height: 80px;
  border-radius: 0 40px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 
              0 0 40px rgba(255, 255, 255, 0.1);
}

/* EdgeGo background adjustment */
.img-cover-edgego {
  opacity: 0.2;
}
