/* Hero Video Background Styles */

.slider .slide--item {
  position: relative;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(3px);
}

/* Overlay should be above video */
.bg-video.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Square noise overlay */
.bg-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Crect x='1.5' y='1.5' width='1.5' height='1.5' fill='%23000000' opacity='0.25'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* Ensure content is above video and overlay */
.slider .slide--item .container {
  position: relative;
  z-index: 2;
}

/* Mobile optimization - show video but with poster fallback */
@media (max-width: 768px) {
  .bg-video video {
    display: block;
  }

  .bg-section img {
    display: none;
  }
}

/* Desktop - hide fallback image when video is playing */
@media (min-width: 769px) {
  .bg-section img {
    display: none;
  }
}

/* Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: #c7a86b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(199, 168, 107, 0.3);
}

/* Mouse Icon */
.mouse-icon {
  width: 20px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.mouse-wheel {
  width: 2px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
  transition: all 0.3s ease;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
}

.scroll-down-btn:hover {
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(199, 168, 107, 0.5);
  transform: translateX(-50%) translateY(-3px);
}

.scroll-down-btn:hover .mouse-icon {
  border-color: #c7a86b;
}

.scroll-down-btn:hover .mouse-wheel {
  background-color: #c7a86b;
}

/* Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-down-btn {
  animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
  animation: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scroll-down-btn {
    display: none; /* Hide scroll button on mobile to avoid overlap with CTA button */
  }

  /* Add bottom spacing to hero CTA button on mobile */
  .slider .slide--action {
    margin-bottom: 40px;
  }
}
