/* =========================
  HERO VIDEO / FALLBACK IMAGE
========================== */

/* General Styling */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh; /* or the height you use for the hero */
  overflow: hidden;
}

.hero-video,
#heroFallbackImage {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback image specific settings for mobile */
#heroFallbackImage {
  display: none;
}

/* =========================
  MOBILE-SPECIFIC ADJUSTMENTS
========================== */
@media (max-width: 767px) {
  .hero-video {
    /* Ensure the video is still responsive if available */
    height: 100vh;
  }
  #heroFallbackImage {
    /* Fallback image takes the full area when shown */
    display: none;
    object-position: center;
  }
}


.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.video-overlay-text {
  position: relative;
  z-index: 1;
  text-align: left;
  color: rgba(255, 255, 255, 0.673);
  padding-top: 50vh;
  padding-left: 5vw;
}

.video-overlay-text h1 {
  font-size: 1.5em;
  margin: 0;
  font-weight: 300;
}

.video-overlay-text p {
  font-size: 1em;
  margin-top: 10px;
  font-weight: 200;
}
/* Fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate the text */
.video-overlay-text h1,
.video-overlay-text p {
  opacity: 0;
  animation: fadeUp 1.2s ease-out forwards;
}

.video-overlay-text h1 {
  animation-delay: 0.3s;
}

.video-overlay-text p {
  animation-delay: 0.7s;
}
