/* Hero Slider Styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;  /* Reduced from 100vh */
  min-height: 500px;  /* Reduced from 600px */
  overflow: hidden;
  background: radial-gradient(1200px 600px at 15% 30%, rgba(0, 102, 255, 0.22), transparent 60%),
              radial-gradient(800px 400px at 85% 70%, rgba(0, 204, 255, 0.18), transparent 60%),
              linear-gradient(180deg, #0b1220 0%, #0a1426 60%, #081226 100%);
  perspective: 1000px;
}

/* Background glow decorations */
.hero-slider::before,
.hero-slider::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero-slider::before {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(0,120,255,0.45), rgba(0,120,255,0) 70%);
}
.hero-slider::after {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 10%;
  background: radial-gradient(circle at 50% 50%, rgba(0,200,255,0.35), rgba(0,200,255,0) 70%);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 6%;
  text-align: center;
  color: #fff;
}

/* Atmospheric overlays for each slide */
.slide::before,
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* behind content, above image */
}
.slide::before {
  /* Directional gradient to improve text contrast */
  background: linear-gradient(120deg, rgba(5,12,24,0.85) 0%, rgba(5,12,24,0.6) 35%, rgba(5,12,24,0.25) 60%, rgba(5,12,24,0.05) 100%);
}
.slide::after {
  /* Soft vignette */
  background: radial-gradient(120% 80% at 50% 60%, transparent 55%, rgba(0,0,0,0.5) 100%);
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Focus image on the right side */
  background-position: right center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.1);
  transition: transform 1.5s ease-out;
  will-change: transform;
  filter: brightness(0.7) saturate(1.1) contrast(1.05);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Fade the image starting just after center toward the left edge */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 90%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 90%);
}

/* Subtle noise texture on top of slides (improves perceived sharpness) */
.hero-slider::after {
  mix-blend-mode: overlay;
  opacity: 0.15;
}

@keyframes zoomInOut {
  0% { 
    transform: scale(1.1);
    filter: brightness(0.7);
  }
  100% { 
    transform: scale(1.3);
    filter: brightness(0.8);
  }
}

.slide.active .slide-bg {
  animation: zoomInOut 5s infinite alternate;
  filter: brightness(0.85);
}

/* Clean color combinations */
.slide:nth-child(1) .slide-content {
  --primary-color: #2c3e50; /* Navy */
  --accent-color: #3498db;  /* Blue */
}

.slide:nth-child(2) .slide-content {
  --primary-color: #34495e; /* Dark Gray */
  --accent-color: #2ecc71;  /* Green */
}

.slide:nth-child(3) .slide-content {
  --primary-color: #2c3e50; /* Navy */
  --accent-color: #9b59b6;  /* Purple */
}

/* Clean typography */
.slide-content h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.2px;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.35);
  position: relative;
}
.slide-content h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, #00a2ff, rgba(0,162,255,0));
  border-radius: 3px;
}

.slide-content h2 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.35);
}

.slide-content p {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* Clean buttons */
.slide-content .btn-primary {
  background: linear-gradient(135deg, rgba(13,110,253,0.95), rgba(0,212,255,0.95));
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 160, 255, 0.35);
  backdrop-filter: blur(1px);
}

.slide-content .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 160, 255, 0.45);
}

/* Outline button to match neon style */
.slide-content .btn-outline-light {
  color: #d9ecff;
  border: 1px solid rgba(0,162,255,0.5);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 0.8rem 2rem;
  border-radius: 40px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
}
.slide-content .btn-outline-light:hover {
  color: #fff;
  border-color: rgba(0,162,255,0.8);
  box-shadow: 0 12px 28px rgba(0,162,255,0.35);
}

.slide-content {
  max-width: 720px;
  padding: 0;
  background: transparent;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  color: #fff;
  text-align: left;
}

/* Changing text (glass/adaptive) */
.changing-text-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.35rem 0.6rem;
  margin: 0.4rem 0 0.65rem;
  position: relative;
  overflow: hidden; /* hide non-active items */
  max-width: min(620px, 90vw);
}

.changing-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 23, 45, 0.65), rgba(7, 18, 40, 0.45));
  border: 1px solid rgba(0, 153, 255, 0.35);
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.25), inset 0 0 20px rgba(0, 153, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  display: none !important; /* ensure hidden by layout as well */
  transform: translateY(6px) scale(0.98);
  transition: opacity 380ms ease, transform 420ms ease;
  white-space: nowrap;
}

.changing-text.active {
  opacity: 1;
  display: inline-block !important; /* show only active */
  transform: translateY(0) scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }
  
  .slide {
    justify-content: center;
    padding: 0 16px;
    text-align: center;
  }
  .slide-content {
    padding: 0 4px;
    margin: 0 8px;
    border-radius: 12px;
    text-align: center;
    max-width: 92vw;
  }
  
  .slide-content h1 {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }
  
  .slide-content h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
  }
  .changing-text {
    padding: 0.4rem 0.85rem;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .hero-slider {
    height: 55vh;
    min-height: 360px;
  }
  .slide-content {
    padding: 1.1rem 1rem;
    margin: 0 10px;
  }
  .slide-content .btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .slide-content .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
  .changing-text-container {
    min-height: 2rem;
  }
  .changing-text {
    padding: 0.35rem 0.75rem;
    font-size: clamp(0.85rem, 3.8vw, 0.98rem);
  }
  .slider-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .hero-slider {
    min-height: 320px;
  }
  .slide-content h1 {
    font-size: clamp(1.3rem, 6vw, 1.6rem) !important;
  }
  .slide-content h2 {
    font-size: clamp(1rem, 4.2vw, 1.2rem) !important;
  }
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 30px;
}

.slider-nav.next {
  right: 30px;
}

/* Pagination Dots */
.slider-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

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

.pagination-dot:hover,
.pagination-dot.active {
  background: #00a2ff;
  box-shadow: 0 0 0 6px rgba(0,162,255,0.15);
  transform: scale(1.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .slide-content {
    padding: 2rem 1.5rem;
    margin: 0 15px;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .slider-nav.prev {
    left: 10px;
  }
  
  .slider-nav.next {
    right: 10px;
  }
  
  /* On small screens, center the image and remove the fade for clarity */
  .slide-bg {
    background-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
