/* ==========================================================================
   HERO & VIDEO PLAYER SECTION — INSTITUTO AMUSI (AWWARDS STYLE)
   ========================================================================== */

.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 6.5rem;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

/* Video Stage Container (Expansivo 16:9 ou Full-Cover) */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: var(--color-navy-950);
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.88;
  filter: saturate(1.1) brightness(0.9);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mascaramento Elegante (Dark Vignette + Gradient Scrim) */
.hero-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: 
    linear-gradient(180deg, rgba(8, 14, 33, 0.7) 0%, rgba(8, 14, 33, 0.25) 35%, rgba(8, 14, 33, 0.85) 80%, rgba(8, 14, 33, 1) 100%),
    radial-gradient(circle at center, transparent 40%, rgba(5, 8, 17, 0.6) 100%);
  pointer-events: none;
}

/* Hero Content Overlay */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
}

.hero-top-badge {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  animation: heroFadeUp 1s ease 0.2s both;
}

.hero-headline {
  max-width: 1000px;
  margin-bottom: 1.5rem;
  animation: heroFadeUp 1s ease 0.35s both;
}

.hero-headline h1 {
  font-size: clamp(2.1rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-headline h1 .word-accent {
  color: var(--color-accent);
  font-style: italic;
  font-family: 'Syne', serif;
}

.hero-description {
  max-width: 600px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s ease 0.5s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  animation: heroFadeUp 1s ease 0.65s both;
}

/* Floating Interactive Controls (Sound, Play, Scroll) */
.hero-dock {
  position: absolute;
  bottom: 2rem;
  right: var(--container-padding);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(11, 19, 43, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}

.video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
}

.video-ctrl-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Animated Audio Wave Bars */
.audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-bar {
  width: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  height: 4px;
  transition: height 0.15s;
}

.is-unmuted .audio-bar:nth-child(1) {
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.is-unmuted .audio-bar:nth-child(2) {
  animation: waveBar 0.6s ease-in-out 0.15s infinite alternate;
}
.is-unmuted .audio-bar:nth-child(3) {
  animation: waveBar 0.9s ease-in-out 0.3s infinite alternate;
}
.is-unmuted .audio-bar:nth-child(4) {
  animation: waveBar 0.7s ease-in-out 0.45s infinite alternate;
}

@keyframes waveBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Indicador de Scroll Interativo */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.hero-scroll-indicator:hover {
  opacity: 1;
  color: var(--color-accent);
}

.mouse-pill {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--border-medium);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mouse-wheel {
  width: 3px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  animation: scrollDown 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-dock {
    bottom: 1rem;
    right: 1rem;
  }
  .hero-scroll-indicator {
    display: none;
  }
}
