/* assets/css/hero.css */
@import './theme.css';

/* — Hero wrapper — */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* geen vulling die kan “blokken” */
}

/* — Video-achtergronden — */
.hero__video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -1;            /* achter header + content */
  display: none;
}

/* Desktop (≥768px) */
@media (min-width: 768px) {
  [data-theme="light"]  .video--desktop.video--light { display: block; }
  [data-theme="dark"]   .video--desktop.video--dark  { display: block; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  [data-theme="light"]  .video--mobile.video--light  { display: block; }
  [data-theme="dark"]   .video--mobile.video--dark   { display: block; }

  /* Fallback radial gradient als video om wat voor reden dan ook niet zichtbaar is */
  #hero:not(:has(video:visible)) {
    background: radial-gradient(circle at top, var(--bg-start), var(--bg-end));
  }
}

/* — Content — */
.hero__content {
  position: relative;
  z-index: 1;           /* boven video, onder header-shadow */
  text-align: center;
  color: var(--text);
  padding: 1rem;
  max-width: 760px;
  background: transparent;  /* BELANGRIJK: geen glasslaag meer */
}

/* — Hoofdtitel — */
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .75rem;
  letter-spacing: -0.01em;
}

/* Blauwe USP die grammaticaal aansluit op de hoofdzin */
.hero__usp {
  display: inline-block;
  margin-left: .25rem;
  color: var(--accent);     /* fallback */
  white-space: nowrap;
}

/* Letter-voor-letter rotatie + zichtbare gradient per letter */
.usp-letter {
  display: inline-block;
  opacity: 0;
  transform: rotateX(-90deg) translateZ(0);
  transform-origin: 50% 70%;
  will-change: transform, opacity;
  background-image: linear-gradient(90deg, var(--accent), #73dbff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes rotateIn { to { transform: rotateX(0); opacity: 1; } }

/* Subtitel */
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* — Strakke tellers — */
.hero__counters {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.counter {
  text-align: center;
  min-width: 110px;
}
.counter .number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.counter .unit {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 800;
  color: var(--accent);
  vertical-align: super;
  margin-left: .1rem;
}
.counter .label {
  font-size: .9rem;
  color: var(--text);
  margin-top: .25rem;
}

/* — CTA — */
.hero__cta {
  display: inline-block;
  margin-top: .25rem;
  padding: .8rem 2.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,176,239,0.4);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.hero__cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,176,239,0.6);
}

/* — Scroll-indicator — */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 1;
}
.scroll-indicator span {
  width: .6rem; height: .6rem;
  background: var(--text);
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.scroll-indicator span:nth-child(2) { animation-delay: .2s; }
.scroll-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-10px)} }

/* Secties vormen géén front-layer */
#hero, .svc, .rev { position: relative; z-index: 0; }

/* Overlays & video vangen geen kliks */
#hero::after,
.svc::before,
.rev::before { pointer-events: none; }

.hero__video,
.rev__video { pointer-events: none; z-index: -1; }  /* video ligt achter alles */
