/**
 * Hero Component Styles
 * 
 * All hero section animations, swiper styles, and visual effects
 */

/* ESSENTIAL BANNER STRUCTURE - These classes control height and layout */
.rts__section.banner__area {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.banner__area.is__home__one {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
}

.banner__height {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.banner__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner__slider {
  width: 100%;
  height: 100vh;
  position: relative;
}

.banner__slider .swiper-wrapper {
  height: 100%;
}

.banner__slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section Animations */
@layer components {
  .hero-content>* {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-geometric-1,
  .hero-geometric-2,
  .hero-geometric-3 {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-bg-image {
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-overlay {
    backdrop-filter: blur(2px);
  }

  /* Custom Swiper pagination styles */
  .hero-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
  }

  .hero-pagination .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2) !important;
  }

  .hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.1) !important;
  }

  /* Progress bar animation */
  .hero-progress {
    background: linear-gradient(90deg, #60a5fa, #6366f1, #8b5cf6);
    background-size: 200% 100%;
    animation: progressShine 3s ease-in-out infinite;
  }

  @keyframes progressShine {

    0%,
    100% {
      background-position: 200% 0;
    }

    50% {
      background-position: -200% 0;
    }
  }

  /* Geometric animations */
  @keyframes float {

    0%,
    100% {
      transform: translateY(0px) rotate(0deg);
    }

    50% {
      transform: translateY(-10px) rotate(180deg);
    }
  }

  @keyframes pulse-glow {

    0%,
    100% {
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }

    50% {
      box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    }
  }

  .hero-geometric-1 {
    animation: float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
  }

  .hero-geometric-2 {
    animation: float 8s ease-in-out infinite reverse, pulse-glow 3s ease-in-out infinite;
  }

  /* Text gradient effects */
  .hero-title span {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
  }

  @keyframes gradientShift {

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

    50% {
      background-position: 100% 50%;
    }
  }

  /* CTA button enhancements */
  .hero-cta-primary {
    background-size: 200% 100%;
    animation: buttonGradient 3s ease-in-out infinite;
  }

  @keyframes buttonGradient {

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

    50% {
      background-position: 100% 50%;
    }
  }
}

@keyframes heroTurquoiseBreath {

  0%,
  100% {
    box-shadow: 0 8px 32px 0 rgba(34, 212, 206, 0.15), 0 0 0 0 rgba(34, 212, 206, 0.25);
  }

  50% {
    box-shadow: 0 12px 48px 0 rgba(34, 212, 206, 0.35), 0 0 24px 8px rgba(34, 212, 206, 0.25);
  }
}

.hero-cta-glass {
  background: rgba(255, 255, 255, 0.25);
  /* white tint, semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: heroTurquoiseBreath 3s ease-in-out infinite;
}

.hero-cta-glass:hover,
.hero-cta-glass:focus {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px 0 rgba(34, 212, 206, 0.45), 0 0 32px 8px rgba(34, 212, 206, 0.25);
  color: #fff;
  animation: none;
}

@keyframes heroOrangeBreath {

  0%,
  100% {
    box-shadow: 0 2px 12px 0 rgba(255, 152, 0, 0.18), 0 0 0 0 rgba(255, 152, 0, 0.18);
  }

  50% {
    box-shadow: 0 4px 24px 0 rgba(255, 152, 0, 0.32), 0 0 12px 4px rgba(255, 152, 0, 0.18);
  }
}

.hero-badge-glass {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 12px 0 rgba(255, 255, 255, 0.10);
  color: #fff !important;
  animation: heroOrangeBreath 2.8s ease-in-out infinite;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
}

.hero-badge-glass:hover,
.hero-badge-glass:focus {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 32px 0 rgba(255, 152, 0, 0.38), 0 0 16px 6px rgba(255, 152, 0, 0.22);
  color: #fff !important;
  animation: none;
}

/* Banner Image Styles */
.banner__slider__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner__slider__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Banner Content Styles */
.banner__slide__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.banner__slide__content .subtitle__icon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner__slide__content h1,
.banner__slide__content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner__slide__content .sub__text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Banner Button Styles */
.banner__btn__area {
  margin-top: 40px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rts__btn.btn__primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.rts__btn.btn__primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}


.rts__slide .next,
.rts__slide .prev {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rts__slide .next:hover,
.rts__slide .prev:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.rts__slide .next:focus,
.rts__slide .prev:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Container and Grid System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

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

.col-lg-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
  padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {

  .banner__slide__content h1,
  .banner__slide__content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .banner__slide__content .sub__text {
    font-size: 1.1rem;
  }

  .rts__slide .next,
  .rts__slide .prev {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .banner__slide__content {
    padding: 0 30px;
  }

  .banner__slide__content h1,
  .banner__slide__content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 16px;
  }

  .banner__slide__content .sub__text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .banner__slide__content .subtitle__icon {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }

  .rts__btn.btn__primary {
    padding: 14px 28px;
    font-size: 15px;
  }

  .rts__slide .next,
  .rts__slide .prev {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .banner__slide__content {
    padding: 0 20px;
  }

  .banner__slide__content h1,
  .banner__slide__content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .banner__slide__content .sub__text {
    font-size: 0.95rem;
  }

  .rts__btn.btn__primary {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Animation States - More robust and consistent */
.swiper-slide:not(.swiper-slide-active) .banner__slide__content .subtitle__icon {
  opacity: 0;
  transform: translateY(20px);
}

.swiper-slide:not(.swiper-slide-active) .banner__slide__content h1,
.swiper-slide:not(.swiper-slide-active) .banner__slide__content h2 {
  opacity: 0;
  transform: translateY(20px);
}

.swiper-slide:not(.swiper-slide-active) .banner__slide__content .sub__text {
  opacity: 0;
  transform: translateY(20px);
}

.swiper-slide:not(.swiper-slide-active) .banner__slide__content .banner__btn__area {
  opacity: 0;
  transform: translateY(20px);
}

/* Active slide animations with staggered timing */
.swiper-slide-active .banner__slide__content .subtitle__icon {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.swiper-slide-active .banner__slide__content h1,
.swiper-slide-active .banner__slide__content h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.swiper-slide-active .banner__slide__content .sub__text {
  opacity: 0.9;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.swiper-slide-active .banner__slide__content .banner__btn__area {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Force immediate visibility on page load for first slide */
.swiper-slide:first-child .banner__slide__content .subtitle__icon,
.swiper-slide:first-child .banner__slide__content h1,
.swiper-slide:first-child .banner__slide__content h2,
.swiper-slide:first-child .banner__slide__content .sub__text,
.swiper-slide:first-child .banner__slide__content .banner__btn__area {
  opacity: 1;
  transform: translateY(0);
}

/* Additional animation class for JavaScript-triggered animations */
.slide-animated .banner__slide__content .subtitle__icon {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0.1s;
}

.slide-animated .banner__slide__content h1,
.slide-animated .banner__slide__content h2 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0.2s;
}

.slide-animated .banner__slide__content .sub__text {
  opacity: 0.9 !important;
  transform: translateY(0) !important;
  transition-delay: 0.3s;
}

.slide-animated .banner__slide__content .banner__btn__area {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0.4s;
}

/* Overlay for better text readability */
.banner__slider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

/* 1) Stretch the nav full-width, pad its sides, and space its two buttons */
.rts__slider__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 40px;
  /* horizontal “inset” from edges */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

/* 2) Ensure “prev” is left and “next” is right */
.rts__slide .prev {
  order: 1;
}

.rts__slide .next {
  order: 2;
}

/* 3) Mobile adjustments */
@media (max-width: 1024px) {
  .rts__slider__nav {
    bottom: 30px;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .rts__slider__nav {
    bottom: 20px;
    padding: 0 20px;
  }

  .rts__slide .next,
  .rts__slide .prev {
    width: 45px;
    height: 45px;
  }
}

.banner__slide__content {
  margin: 0 auto;
}