/* =============================================
   Salux — Video Hero + Starscape + Scroll UX
   ============================================= */

/* === STARSCAPE CANVAS (fixed, behind everything) === */
#starscape {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4A7040, #5E9152, #4A7040);
  background-size: 200% 100%;
  animation: shimmer-bar 2s linear infinite;
  z-index: 200;
  transition: width 0.1s linear;
}
@keyframes shimmer-bar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === IMAGE HERO === */
.vhero {
  position: relative;
  width: 100%;
  aspect-ratio: 2752 / 1536;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Background image — matches container ratio exactly, zero cropping */
.vhero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

/* Overlay — left-side darkening keeps text legible over the image */
.vhero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(13,23,32,0.78) 0%, rgba(13,23,32,0.45) 45%, rgba(13,23,32,0.1) 70%, transparent 100%);
  pointer-events: none;
}

/* Floating ambient orbs */
.vhero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(80px);
  opacity: 0;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.vhero__orb--1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(74,112,64,0.25) 0%, transparent 70%);
  top: -120px;
  left: -80px;
  animation-delay: 0s;
}
.vhero__orb--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(58,110,168,0.18) 0%, transparent 70%);
  bottom: 60px;
  right: 80px;
  animation-delay: -4s;
}
@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(20px, -30px) scale(1.08); opacity: 0.7; }
}

/* Hero text content */
.vhero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 80px 48px;
  width: 100%;
}

/* Badge pill */
.vhero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,112,64,0.18);
  border: 1px solid rgba(94,145,82,0.4);
  color: #7AC87A;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

/* Main headline */
.vhero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.18;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
  max-width: 560px;
}
.vhero__headline em {
  font-style: italic;
  color: #7AC87A;
}

/* Sub text */
.vhero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 400px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* CTA row */
.vhero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll hint at bottom center */
.vhero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vhero__scroll-arrow {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  position: relative;
}
.vhero__scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.5);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* === NAV PILL TRANSFORM ON SCROLL === */
.nav {
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    max-width 0.4s cubic-bezier(0.4,0,0.2,1),
    margin 0.4s cubic-bezier(0.4,0,0.2,1),
    border-radius 0.4s cubic-bezier(0.4,0,0.2,1),
    top 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { animation: none; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .vhero__content { padding: calc(var(--nav-h) + 24px) 48px 40px; }
}
@media (max-width: 768px) {
  .vhero { aspect-ratio: unset; min-height: 420px; }
  .vhero__img { object-fit: cover; object-position: center; }
  .vhero__content { padding: calc(var(--nav-h) + 16px) 20px 24px; }
  .vhero__headline { font-size: clamp(1.5rem, 5.5vw, 2.2rem); max-width: 100%; }
  .vhero__sub { font-size: 0.9rem; max-width: 100%; }
  .vhero__badge { font-size: 0.6rem; padding: 3px 8px; }
}
@media (max-width: 480px) {
  .vhero { min-height: 360px; }
  .vhero__content { padding: calc(var(--nav-h) + 10px) 16px 20px; }
  .vhero__headline { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .vhero__sub { font-size: 0.82rem; }
  .vhero__badge { display: none; }
}
