/* 1. THE MAIN STAGE */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 85vh; 
  overflow: hidden;
  background-color: var(--body-bg-color);
}

/* 2. THE SLIDES */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1; /* Base layer */
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 2; /* Active image layer */
}

/* 3. VIDEO BACKGROUND WRAPPER */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Sits behind slide content */
  pointer-events: none; /* Allows clicks to pass through to buttons */
  overflow: hidden;
}

/* THE YOUTUBE IFRAME FIX */
.video-background iframe, 
.video-background div {
  width: 100vw;
  height: 56.25vw; 
  min-height: 100vh;
  min-width: 177.77vh; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* 4. GRADIENT OVERLAY 
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
  z-index: 5; 
} 
*/

/* 5. HERO CONTENT */
.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #ffffff;
  z-index: 20; /* Above the video and gradient */
  max-width: 600px;
  opacity: 0;
  transition: all 0.8s ease-out 0.4s;
}

.slide.active .hero-content {
  opacity: 1;
}

/* 6. NAVIGATION (The "Missing" Pieces) */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--body-bg-color);
  color: var(--body-txt-color);
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  z-index: 999 !important; /* Forces buttons to the absolute top layer */
  font-size: 2rem;
  transition: 0.3s;
  display: block !important; /* Ensures theme doesn't hide them */
  opacity: 0.75;
}

.nav-btn:hover {
  background: var(--body-lnk-color); /* Safety Orange */
}

.prev { left: 0; }
.next { right: 0; }

.dot-container {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  z-index: 999 !important; /* Forces dots to the top layer */
}

.dot {
  cursor: pointer;
  height: 6px;
  width: 6px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
}

.dot.active {
  background-color: var(--body-lnk-color);
  transform: scale(1.3);
}






/***********************
 industries-served
***********************/
#industries-served .industry-img {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center center;
}