/* ============================================
   Global Variables (Ensure these exist)
   ============================================ */
:root {
  --ha-primary: #1e3a8a; /* Deep Blue */
  --ha-secondary: #3b82f6; /* Lighter Blue */
  --ha-accent: #ef4444; /* Red */
  --ha-text-dark: #1f2937;
  --ha-text-light: #6b7280;
  --ha-bg-light: #f3f4f6;
  --ha-radius: 12px;
  --ha-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   1. Modern Banner Slider
   ============================================ */
.home-banner-slider {
  position: absolute;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  top: 0;
}

.banner-swiper {
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Background Image with slight zoom effect on active */
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 6s ease;
}

.swiper-slide-active .banner-bg {
  transform: scale(1.1); /* Slow zoom effect */
}

/* Gradient Overlay - Left to Right fade */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.7) 40%,
    rgba(15, 23, 42, 0.1) 100%
  );
  z-index: 1;
}

.banner-content-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.banner-content {
  max-width: 650px;
  color: #fff;
}

/* Typography & Animations */
.banner-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--ha-secondary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.banner-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  color: #fff;
}

.banner-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  max-width: 90%;
}

.banner-btn-wrapper {
  opacity: 0;
  transform: translateY(30px);
}

/* Staggered Animation on Active Slide */
.swiper-slide-active .banner-subtitle {
  animation: fadeInUp 0.8s forwards 0.3s;
}
.swiper-slide-active .banner-title {
  animation: fadeInUp 0.8s forwards 0.5s;
}
.swiper-slide-active .banner-description {
  animation: fadeInUp 0.8s forwards 0.7s;
}
.swiper-slide-active .banner-btn-wrapper {
  animation: fadeInUp 0.8s forwards 0.9s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Styling */
.btn-banner {
  padding: 1rem 2.5rem;
  background: var(--ha-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--ha-transition);
}

.btn-banner:hover {
  background: #fff;
  color: var(--ha-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Swiper Navigation Controls */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: var(--ha-transition);
  margin-top: 0;
}

.banner-swiper .swiper-button-prev:after,
.banner-swiper .swiper-button-next:after {
  font-size: 18px;
  font-weight: 700;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
  background: #fff;
  color: var(--ha-primary);
  border-color: #fff;
}

.banner-swiper .swiper-pagination {
  bottom: 40px;
  position: absolute;
}

.banner-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  margin: 0 5px;
}

.banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* ============================================
   2. Modern Info Section
   ============================================ */
.home-info-section {
  padding: 100px 0;
  background: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Image Column Styling */
.info-image-wrapper {
  position: relative;
  z-index: 1;
}

.info-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--ha-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* Decorative background behind image */
.info-image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ha-primary);
  border-radius: var(--ha-radius);
  z-index: 1;
  opacity: 0.3;
}

/* Content Column Styling */
.section-eyebrow {
  color: var(--ha-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--ha-text-dark);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-description {
  color: var(--ha-text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Feature Grid Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--ha-bg-light);
  padding: 1.5rem;
  border-radius: var(--ha-radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: var(--ha-transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
  border-color: var(--ha-bg-light);
}

.feature-icon-box {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.feature-label {
  font-weight: 600;
  color: var(--ha-text-dark);
  font-size: 0.95rem;
}

.btn-info-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--ha-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--ha-transition);
}

.btn-info-primary:hover {
  background: var(--ha-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-banner-slider {
    height: 600px; /* Smaller height on tablets */
  }

  .banner-content {
    text-align: center;
    margin: 0 auto;
  }

  .banner-overlay {
    background: rgba(
      15,
      23,
      42,
      0.75
    ); /* Solid overlay for better text readability */
  }

  .banner-swiper .swiper-button-prev,
  .banner-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }
}
