/* Hero section with single collage background */
:root {
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --hero-gradient-start: rgba(0, 0, 0, 0.75);
  --hero-gradient-end: rgba(0, 0, 0, 0.2);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('../hero-background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Subtle motion */
  animation: hero-float 18s ease-in-out infinite;
  /* Parallax perf hint */
  will-change: background-position, transform;
}

/* Container for gradient and overlay layers present in index.html */
.hero-video-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-gradient-start) 0%, transparent 40%, var(--hero-gradient-end) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,59,102,.65), rgba(7,22,41,.55)),
    var(--hero-overlay);
}

/* Ensure hero content sits above overlays */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 4rem 1.25rem;
}

/* Hero typographic polish */
.hero-content h1 { 
  margin: 0 0 .5rem; 
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero-content p { 
  margin: 0 auto; 
  max-width: 720px; 
  color: rgba(255,255,255,.9);
}

/* CTA group */
.hero-cta { display: inline-flex; gap: 12px; margin-top: 18px; }
.hero-cta .cta-secondary {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Scroll indicator above overlays */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
}

.scroll-indicator .scroll-arrow {
  width: 2px; height: 22px; margin: 0 auto 8px; background: rgba(255,255,255,.8);
  position: relative; overflow: hidden; border-radius: 999px;
}
.scroll-indicator .scroll-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px; top: -10px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1));
  animation: scrollPulse 1.8s ease-in-out infinite;
}
.scroll-indicator span { font-size: .85rem; opacity: .9; }

@keyframes hero-float {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-8px) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes scrollPulse {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(22px); opacity: 0; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-section { animation: none; }
  .scroll-indicator .scroll-arrow::after { animation: none; }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-content { padding: 3rem 1rem; }
}
