/* 
 * template-hero-slider.css
 * Premium elegant styling for enhanced hero slider with smooth sliding animations
 * SIMPLIFIED VERSION - Text always visible for debugging
 */

/* Hero Slider Base Styles */
#heroSlider {
  position: relative;
  overflow: hidden;
  max-height: 700px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  border-bottom: 4px solid var(--accent-gold, #D4AF37);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

#heroSlider.premium-slider {
  margin-bottom: 50px;
}

/* Smooth Sliding Animation - No Zoom */
#heroSlider .slide-img {
  height: 700px;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1) saturate(1.2);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

/* Sliding Animation Classes */
#heroSlider .carousel-item {
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#heroSlider .carousel-item.slide-in-left {
  animation: slideInLeft 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#heroSlider .carousel-item.slide-out-right {
  animation: slideOutRight 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Smooth Fade Transitions */
#heroSlider .carousel-item {
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

#heroSlider .carousel-item.active {
  opacity: 1;
}

/* Enhanced Transparent Glass Effect for Captions - ALWAYS VISIBLE */
.glass-effect {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 35px 40px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 600px;
  position: relative;
  min-height: auto;
  display: block;
  visibility: visible;
  opacity: 1; /* ALWAYS VISIBLE */
  transform: translateY(0); /* NO TRANSFORM */
}

.glass-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  pointer-events: none;
}

/* Carousel Caption Styling - Positioned at Top Left */
#heroSlider .carousel-caption {
  position: absolute;
  top: 50px;
  bottom: auto;
  left: 50px;
  right: auto;
  transform: none;
  width: auto;
  max-width: 600px;
  text-align: left;
  padding: 0;
  z-index: 10;
}

#heroSlider .carousel-caption-top-left {
  position: absolute;
  top: 50px;
  bottom: auto;
  left: 50px;
  right: auto;
  text-align: left;
  max-width: 600px;
}

#heroSlider h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  opacity: 1; /* ALWAYS VISIBLE */
  transform: translateY(0); /* NO TRANSFORM */
  font-family: 'Raleway', sans-serif;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
  display: block;
  visibility: visible;
}

/* Elegant gradient underline */
#heroSlider h2::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #D4AF37, #FFD700, #FFA500);
  margin: 20px 0 0 0;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
  to { box-shadow: 0 0 30px rgba(212, 175, 55, 0.9), 0 0 40px rgba(255, 215, 0, 0.3); }
}

#heroSlider p {
  font-size: 1.3rem;
  max-width: 500px;
  margin: 0 0 25px 0;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  opacity: 1; /* ALWAYS VISIBLE */
  transform: translateY(0); /* NO TRANSFORM */
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-weight: 400;
  display: block;
  visibility: visible;
}

/* Premium Button Styling */
#heroSlider .btn-premium {
  opacity: 1; /* ALWAYS VISIBLE */
  transform: translateY(0); /* NO TRANSFORM */
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 25px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(45deg, #D4AF37, #FFD700);
  color: #000;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3), 
    0 0 25px rgba(212, 175, 55, 0.4);
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
  display: inline-block;
  visibility: visible;
}

#heroSlider .btn-premium:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s;
  z-index: -1;
}

#heroSlider .btn-premium:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.4), 
    0 0 30px rgba(212, 175, 55, 0.6);
}

#heroSlider .btn-premium:hover:before {
  left: 100%;
}

/* Enhanced Agency Badge - Improved Premium Design */
.agency-badge {
  position: absolute;
  top: 50px;
  right: 50px;
  z-index: 10;
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #FFA500 100%);
  padding: 8px;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(212, 175, 55, 0.5);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.agency-badge:hover {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.8);
}

.badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  padding: 10px;
}

.badge-icon {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 4px;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
}

.badge-content span {
  display: block;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

/* Premium Carousel Controls */
#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.3) 0%, 
    rgba(0, 0, 0, 0.1) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

#heroSlider:hover .carousel-control-prev,
#heroSlider:hover .carousel-control-next {
  opacity: 0.9;
}

#heroSlider .carousel-control-prev:hover,
#heroSlider .carousel-control-next:hover {
  background: linear-gradient(135deg, #D4AF37, #FFD700);
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
  width: 25px;
  height: 25px;
}

/* Enhanced Premium Progress Bar */
.slider-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.5) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 20;
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, 
    #D4AF37 0%, 
    #FFD700 25%, 
    #FFA500 50%, 
    #FFD700 75%, 
    #D4AF37 100%);
  background-size: 200% 100%;
  box-shadow: 
    0 0 15px rgba(212, 175, 55, 0.8),
    0 -2px 10px rgba(255, 215, 0, 0.6);
  transition: width 0.1s linear;
  animation: shimmerProgress 2s ease-in-out infinite;
  position: relative;
}

.slider-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes shimmerProgress {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes progressGlow {
  0%, 100% { opacity: 0; transform: translateX(-30px); }
  50% { opacity: 1; transform: translateX(0); }
}

/* Premium Carousel Indicators */
#heroSlider .carousel-indicators.premium-indicators {
  bottom: 25px;
  margin-bottom: 0;
}

#heroSlider .premium-indicators button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0 8px;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  backdrop-filter: blur(5px);
}

#heroSlider .premium-indicators button::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #D4AF37, #FFD700) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  opacity: 0;
  transition: all 0.4s ease;
}

#heroSlider .premium-indicators button.active {
  background: linear-gradient(45deg, #D4AF37, #FFD700);
  width: 20px;
  height: 20px;
  box-shadow: 
    0 0 20px rgba(212, 175, 55, 0.8),
    0 0 40px rgba(255, 215, 0, 0.4);
  transform: scale(1.2);
}

#heroSlider .premium-indicators button.active::before {
  opacity: 1;
}

#heroSlider .premium-indicators button:hover {
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.8), rgba(255, 215, 0, 0.8));
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  #heroSlider .slide-img,
  #heroSlider {
    max-height: 650px;
    height: 650px;
  }
  
  #heroSlider h2 {
    font-size: 3rem;
  }
  
  .agency-badge {
    width: 100px;
    height: 100px;
    top: 25px;
    right: 25px;
  }
  
  #heroSlider .carousel-caption,
  #heroSlider .carousel-caption-top-left {
    top: 40px;
    left: 25px;
    max-width: 550px;
  }
}

@media (max-width: 991.98px) {
  #heroSlider .slide-img,
  #heroSlider {
    max-height: 600px;
    height: 600px;
  }
  
  #heroSlider h2 {
    font-size: 2.8rem;
  }
  
  #heroSlider p {
    font-size: 1.2rem;
    max-width: 450px;
  }
  
  .agency-badge {
    width: 90px;
    height: 90px;
    top: 20px;
    right: 20px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 60px;
    height: 60px;
  }
  
  #heroSlider .carousel-caption,
  #heroSlider .carousel-caption-top-left {
    top: 35px;
    left: 20px;
    max-width: 450px;
  }
}

@media (max-width: 767.98px) {
  #heroSlider .slide-img,
  #heroSlider {
    max-height: 500px;
    height: 500px;
  }
  
  #heroSlider h2 {
    font-size: 2.5rem;
  }
  
  #heroSlider p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 400px;
  }
  
  .glass-effect {
    padding: 25px 30px;
  }
  
  .agency-badge {
    width: 80px;
    height: 80px;
    top: 15px;
    right: 15px;
  }
  
  .badge-content span {
    font-size: 0.75rem;
  }
  
  #heroSlider .btn-premium {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  #heroSlider .carousel-caption,
  #heroSlider .carousel-caption-top-left {
    top: 30px;
    left: 15px;
    max-width: 380px;
  }
}

@media (max-width: 575.98px) {
  #heroSlider .slide-img,
  #heroSlider {
    max-height: 450px;
    height: 450px;
  }
  
  #heroSlider h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  #heroSlider h2::after {
    margin-top: 12px;
    width: 80px;
  }
  
  #heroSlider p {
    font-size: 1rem;
    margin-bottom: 18px;
    max-width: 320px;
  }
  
  .glass-effect {
    padding: 20px 25px;
    max-width: 95%;
  }
  
  .agency-badge {
    width: 70px;
    height: 70px;
    top: 10px;
    right: 10px;
  }
  
  .badge-icon {
    font-size: 1.2rem;
  }
  
  .badge-content span {
    font-size: 0.65rem;
  }
  
  .slider-progress-container {
    height: 6px;
  }
  
  #heroSlider .premium-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
  }
  
  #heroSlider .premium-indicators button.active {
    width: 16px;
    height: 16px;
  }
  
  #heroSlider .carousel-caption,
  #heroSlider .carousel-caption-top-left {
    top: 25px;
    left: 10px;
    max-width: 300px;
  }
}