/* 1. Style the main container */
.hero-video-container {
  position: relative;
  height: 100vh; /* Makes the section screen-height */
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 2. Style BOTH videos to be centered backgrounds */
.hero-video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
}

/* 3. Style the text content on top */
.hero-content {
  position: relative;
  z-index: 2; /* Ensures text is on top of the video */
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Adds shadow for readability */
}


/* 4. THE LOGIC: By default, hide the mobile video */
.mobile-video {
  display: none;
}


/* 5. THE SWITCH: On screens 768px or smaller (tablets/phones) */
@media (max-width: 768px) {
  
  /* Hide the desktop video */
  .desktop-video {
    display: none;
  }
  
  /* Show the mobile video */
  .mobile-video {
    display: block;
  }
}