/* HIDE THE ORIGINAL HERO BANNER */
/* This assumes the hero banner is the first child of the main layout container */
/* We will apply a class 'hide-original-hero' dynamically to the element in JS */
.hide-original-hero {
  display: none !important;
}

/* CUSTOM SWIPER HERO STYLES */
.custom-hero-slider {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.swiper-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 10s linear; /* subtle zoom effect */
  transform: scale(1);
}

/* Modern clean animated zoom on active slide */
.swiper-slide-active .swiper-slide-bg {
  transform: scale(1.1);
}

.swiper-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  max-width: 1000px;
  color: white;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #d97706;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
  font-family: 'Inter', sans-serif; /* Fallback modern font */
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s;
  color: #f1f5f9;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background-color: #d97706; /* A nice timber/wood accent color */
  border-radius: 8px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s, background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4);
}

.hero-btn:hover {
  background-color: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(217, 119, 6, 0.5);
}

/* Animations for active slide */
.swiper-slide-active .hero-subtitle,
.swiper-slide-active .hero-content h1,
.swiper-slide-active .hero-content p,
.swiper-slide-active .hero-content .hero-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Pagination and Navigation customizations */
.swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background: #d97706;
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #d97706;
}

@media (max-width: 768px) {
  .custom-hero-slider {
    min-height: 100vh;
  }

  .swiper-slide-bg {
    background-position: 70% center; /* Adjusts image slightly for mobile */
  }
  
  .hero-content {
    padding: 0 6%;
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
}

/* Scroll Animations for Sections */
.scroll-animate {
  opacity: 0;
}

.scroll-animate.is-visible {
  animation: fadeInUpSection 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUpSection {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Our Products Section Background Override */
.custom-products-section {
  position: relative;
  background-color: transparent !important; /* Ensure the image shows through if there's a background utility */
}

.custom-products-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/banner-2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Creates a nice premium parallax effect */
  opacity: 0.12; /* Low opacity */
  z-index: 0;
  pointer-events: none;
}

.custom-products-section > * {
  position: relative;
  z-index: 1;
}
