/* Custom Hero Video Background Styles */

/* Remove default template background */
.hero::before {
  display: none !important;
}

/* Video Background Container */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 !important;
  background-color: #000;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

/* Image Background (Fallback) */
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 !important;
}

/* Center align content */
.hero-content-wrapper .row {
  width: 100%;
}

.hero-content-wrapper .hero-content {
  text-align: center;
}

.hero-content-wrapper .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-content-wrapper .trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Override existing hero styles when video/image is present */
.hero .hero-video ~ .hero-content-wrapper,
.hero .hero-image-bg ~ .hero-content-wrapper {
  padding: 120px 0;
}

.hero .hero-video ~ .hero-content-wrapper .hero-content,
.hero .hero-image-bg ~ .hero-content-wrapper .hero-content {
  color: #ffffff;
}

.hero .hero-video ~ .hero-content-wrapper .hero-content h1,
.hero .hero-image-bg ~ .hero-content-wrapper .hero-content h1 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .hero-video ~ .hero-content-wrapper .hero-content p,
.hero .hero-image-bg ~ .hero-content-wrapper .hero-content p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .hero-video ~ .hero-content-wrapper .hero-content .subtitle,
.hero .hero-image-bg ~ .hero-content-wrapper .hero-content .subtitle {
  color: var(--accent-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Trust badges styling on video background */
.hero .hero-video ~ .hero-content-wrapper .trust-badges,
.hero .hero-image-bg ~ .hero-content-wrapper .trust-badges {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
}

.hero .hero-video ~ .hero-content-wrapper .trust-badges .badge-text,
.hero .hero-image-bg ~ .hero-content-wrapper .trust-badges .badge-text {
  color: #ffffff;
}

.hero .hero-video ~ .hero-content-wrapper .trust-badges i,
.hero .hero-image-bg ~ .hero-content-wrapper .trust-badges i {
  color: var(--accent-color);
}

/* Mobile Optimization */
@media (max-width: 992px) {
  .hero-content-wrapper {
    min-height: auto;
    padding: 80px 0 !important;
  }
  
  .hero {
    min-height: auto;
  }
  
  .hero-video-element {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-video-element {
    height: 100%;
    width: auto;
    min-height: 100%;
  }
}

/* Ensure buttons are visible on video background */
.hero .btn-primary,
.hero .btn-secondary {
  position: relative;
  z-index: 3;
}
