/* =========================================
   HERO SLIDER STYLES
   Fully Responsive
   ========================================= */

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Individual Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Slide Background */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.7));
  z-index: 1;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slide Content */
.slide .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.slide .hero-grid {
  width: 100%;
}

.slide .hero-content {
  max-width: 600px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(16, 110, 232, 0.15);
  border: 1px solid rgba(16, 110, 232, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  animation: fadeInUp 0.6s ease forwards;
}

/* Hero Title */
.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Description */
.hero-description {
  color: var(--gray-400);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}

/* Slider Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: var(--primary);
  border-color: var(--white);
  transform: scale(1.2);
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0%;
  transition: width 0.1s linear;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

/* Tablet */
@media (max-width: 991px) {
  .hero-slider {
    min-height: 70vh;
  }
  
  .slide {
    min-height: 70vh;
  }
  
  .slide .container {
    padding-top: 80px;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-prev {
    left: 10px;
  }
  
  .slider-next {
    right: 10px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-slider {
    min-height: 60vh;
  }
  
  .slide {
    min-height: 60vh;
  }
  
  .slide .container {
    padding: 80px 15px 40px;
  }
  
  .slide .hero-grid {
    text-align: center;
  }
  
  .slide .hero-content {
    max-width: 100%;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 8px 15px;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  /* Hide arrows on mobile, rely on dots and swipe */
  .slider-arrow {
    display: none;
  }
  
  .slider-dots {
    bottom: 20px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-slider {
    min-height: 50vh;
  }
  
  .slide {
    min-height: 50vh;
  }
  
  .slide .container {
    padding: 70px 10px 30px;
  }
  
  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
    margin-bottom: 15px;
  }
  
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .slider-dots {
    bottom: 15px;
    gap: 8px;
  }
  
  .slider-dot {
    width: 8px;
    height: 8px;
  }
}

/* =========================================
   TOUCH/SWIPE SUPPORT (Optional Enhancement)
   ========================================= */
.hero-slider {
  touch-action: pan-y pinch-zoom;
}

/* Prevent image dragging */
.slide-bg img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}