/* Hero video section styles */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.hero__fallback.is-hidden {
  opacity: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero__credits {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 10px;
  max-width: min(280px, calc(100% - 32px));
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
  backdrop-filter: blur(4px);
}

.hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.hero__content p {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 2.4rem;
  opacity: 0.9;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0.85;
}

.hero__arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255,255,255,0.9);
  border-bottom: 2px solid rgba(255,255,255,0.9);
  transform: rotate(45deg);
  display: block;
  animation: heroArrow 1.6s ease-in-out infinite;
}

.hero__arrow:nth-child(2) {
  animation-delay: 0.25s;
}

.hero__arrow:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes heroArrow {
  0% { transform: translateY(0) rotate(45deg); opacity: 1; }
  30% { opacity: 0.25; }
  100% { transform: translateY(12px) rotate(45deg); opacity: 0; }
}

@media (max-width: 768px) {
  .hero__content {
    padding: 0 1rem;
  }

  .hero__content h1 {
    font-size: 2.8rem;
  }

  .hero__content p {
    font-size: 1.1rem;
  }

  .hero__credits {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    font-size: 0.68rem;
    max-width: calc(100% - 20px);
  }
}
