/* ==========================================================================
   PT Noto Water Envirotech - Home Page Stylesheet (css/home.css)
   ========================================================================== */

/* Hero Section with Moving River Background Video */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: #092534;
  background-image: url('../assets/img/hero-river-poster.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* River Video Background Container */
.hero-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.88) saturate(1.15) contrast(1.05);
  will-change: transform;
}

/* Semi-transparent Oceanic Gradient Overlay for Perfect Text Contrast */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(9, 37, 52, 0.92) 0%, rgba(9, 37, 52, 0.72) 48%, rgba(9, 37, 52, 0.35) 100%),
    radial-gradient(circle at 85% 25%, rgba(18, 170, 191, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, rgba(9, 37, 52, 0.8) 0%, transparent 40%, rgba(9, 37, 52, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Accessibility: respect user prefers-reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* Floating Orb Animation */
@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.04);
  }
}

.animate-float-slow {
  animation: floatOrb 6s infinite ease-in-out;
}

/* Before / After Comparison Slider Container */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 1rem;
}

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 10;
  border-right: 3px solid #12AABF;
}

.ba-before-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.ba-after-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ba-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
  margin: 0;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #12AABF;
  color: white;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.1s ease;
}

/* Solution Teaser Cards */
.solution-teaser-card {
  transition: all 0.3s ease;
}
.solution-teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(9, 37, 52, 0.15);
}
