/* css/hero.css */

/* Hero section is brought to the front (z-index: 9999) and fills the viewport */
.hero-section {
  position: relative !important;
  z-index: 9999; /* Force hero above other elements if needed */
  height: 100vh;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

/* Video wrapper is absolutely positioned behind the hero content */
.hero-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* video behind hero text */
}

/* Hero video: slightly dimmed to help text stand out */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9); /* Slight dimming; adjust to 0.8 or 0.7 if needed */
}

.hero-content {
  position: relative;
  z-index: 1; /* text above the video */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Fade effect for hero headline using text-fade */
.hero-content h1.text-fade {
  background: linear-gradient(to right, #fff 70%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-cta {
  font-size: 1rem;
}

/* ============================
   Mobile Responsive Adjustments
   ============================ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem; /* Slightly smaller headline on mobile */
  }
  
  .hero-content p {
    font-size: 1rem; /* Adjust paragraph text size */
  }
  
  .hero-cta {
    font-size: 0.9rem;
  }
}
