/* ============================================================
   HOME PAGE — Hero Video Background
   Extends the global design system in style.css
============================================================ */

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.hero-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__media--video-active .hero-video-container {
  opacity: 1;
}

.hero__media--video-active .hero__image {
  opacity: 0;
}

/* ============================================================
   FEATURED PROJECTS — Video Background & Controls
============================================================ */

.fp-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 600ms ease;
  background-color: var(--clr-neutral-900);
}

.fp-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fp-video.is-visible {
  opacity: 1;
}

.fp-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-controls__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fp-controls__btn:hover,
.fp-controls__btn:focus-visible {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.fp-controls__btn:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 2px;
}

.fp-controls__dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fp-controls__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.fp-controls__dot:hover,
.fp-controls__dot:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.25);
}

.fp-controls__dot:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 2px;
}

.fp-controls__dot.is-active {
  background: var(--clr-secondary);
  transform: scale(1.2);
}

/* ============================================================
   HOME PAGE — Industries Section Background Images
============================================================ */

.industry-panel__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.industry-panel.is-fallback .industry-panel__image {
  background-image: none !important;
}

.industry-panel.panel-expanded .industry-panel__image {
  animation: industryZoom 6s linear 0.85s both;
}

@keyframes industryZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-container {
    display: none;
  }

  .fp-video {
    display: none;
  }

  .industry-panel.panel-expanded .industry-panel__image {
    animation: none;
  }
}

@media (max-width: 1199.98px) {
  .fp-controls {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 767.98px) {
  .fp-controls {
    display: none;
  }
}
