/* ============================================
   Hero Banner Carousel - Modern Full-Screen Design
   ============================================ */

/* Main Hero Container */
.hero-banner-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #0a1628;
  z-index: 1;
}

/* Carousel Wrapper */
.hero-carousel-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual Slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

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

/* Slide Background with Ken Burns Effect */
.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.1);
}

/* Slide Overlay */
.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.6) 100%);
  z-index: 1;
}

/* Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 80px 20px 20px;
}

/* Hero Typography */
.hero-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #287dfe;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

/* Navigation Dots */
.hero-carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #287dfe;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS - CLOSELOOP.COM STYLE
   ============================================ */

/* Large Desktop - Extra Large Screens (1920px+) */
@media (min-width: 1920px) {
  .hero-title {
    font-size: 72px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 25px;
  }

  .hero-content-wrapper {
    padding: 100px 40px 40px;
  }

  .hero-carousel-dots {
    bottom: 60px;
    gap: 16px;
  }

  .hero-dot {
    width: 14px;
    height: 14px;
  }

  .hero-dot.active {
    width: 40px;
  }
}

/* Desktop - Large Screens (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 15px;
    letter-spacing: 3.5px;
  }
}

/* Desktop - Standard (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .hero-banner-carousel {
    min-height: 550px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .hero-content-wrapper {
    padding: 80px 30px 30px;
  }
}

/* Laptop/Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-banner-carousel {
    min-height: 520px;
    height: 100vh;
  }

  .hero-title {
    font-size: 44px;
    line-height: 1.25;
    margin-bottom: 25px;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
  }

  .hero-content-wrapper {
    padding: 80px 25px 25px;
  }

  .hero-carousel-dots {
    bottom: 35px;
    gap: 10px;
  }

  .hero-dot {
    width: 11px;
    height: 11px;
  }

  .hero-dot.active {
    width: 28px;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-banner-carousel {
    /* Set banner height to 50% of viewport for tablets below 992px */
    min-height: 400px;
    height: 100vh;
  }

  .hero-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 22px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
  }

  .hero-content-wrapper {
    padding: 100px 20px 20px;
  }

  .hero-carousel-dots {
    bottom: 30px;
    gap: 10px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-dot.active {
    width: 26px;
  }

  /* Adjust overlay for better readability on tablets */
  .hero-slide-overlay {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.65) 100%);
  }
}

/* Mobile Landscape (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-banner-carousel {
    /* Maintaining 50vh height for mobile landscape below 992px */
    min-height: 350px;
    height: 50vh;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 14px;
  }

  .hero-content-wrapper {
    padding: 90px 20px 20px;
  }

  .hero-carousel-dots {
    bottom: 25px;
    gap: 9px;
  }

  .hero-dot {
    width: 9px;
    height: 9px;
  }

  .hero-dot.active {
    width: 24px;
  }

  /* Stronger overlay for mobile readability */
  .hero-slide-overlay {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.7) 100%);
  }
}

/* Mobile Portrait (375px - 575px) */
@media (min-width: 375px) and (max-width: 575px) {
  .hero-banner-carousel {
    /* Set banner height to 50% of viewport for mobile devices */
    min-height: 300px;
    height: 50vh;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .hero-content-wrapper {
    padding: 90px 18px 18px;
  }

  .hero-carousel-dots {
    bottom: 22px;
    gap: 8px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot.active {
    width: 22px;
  }

  .hero-cta .btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* Small Mobile (320px - 374px) */
@media (max-width: 374px) {
  .hero-banner-carousel {
    /* Set banner height to 50% of viewport for small mobile devices */
    min-height: 280px;
    height: 50vh;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }

  .hero-content-wrapper {
    padding: 80px 15px 15px;
  }

  .hero-carousel-dots {
    bottom: 20px;
    gap: 7px;
  }

  .hero-dot {
    width: 7px;
    height: 7px;
  }

  .hero-dot.active {
    width: 20px;
  }

  .hero-cta .btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/* Landscape Mobile Devices (max-height: 500px) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-banner-carousel {
    height: 100vh;
    min-height: 380px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
  }

  .hero-content-wrapper {
    padding: 70px 20px 15px;
  }

  .hero-carousel-dots {
    bottom: 15px;
    gap: 7px;
  }

  .hero-dot {
    width: 7px;
    height: 7px;
  }

  .hero-dot.active {
    width: 18px;
  }

  .hero-cta .btn {
    padding: 8px 20px;
    font-size: 12px;
  }
}

/* Very Short Landscape Devices (max-height: 400px) */
@media (max-height: 400px) and (orientation: landscape) {
  .hero-banner-carousel {
    min-height: 350px;
  }

  .hero-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .hero-content-wrapper {
    padding: 60px 15px 10px;
  }

  .hero-carousel-dots {
    bottom: 12px;
    gap: 6px;
  }
}

/* iPad Pro Portrait (1024px height) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-banner-carousel {
    min-height: 600px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 13px;
  }
}

/* iPad Pro Landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-banner-carousel {
    min-height: 540px;
  }

  .hero-title {
    font-size: 48px;
  }
}

/* Touch device hover states */
@media (hover: none) and (pointer: coarse) {
  .hero-dot:hover {
    transform: none;
  }

  .hero-dot:active {
    transform: scale(0.95);
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-slide-bg {
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  }

  .hero-slide-bg {
    transition: none;
    transform: scale(1) !important;
  }

  .hero-subtitle,
  .hero-title,
  .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-dot {
    transition: background 0.2s ease;
  }
}
