/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(180deg, #0a0f1e 0%, #16213e 100%);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 100vw;
}

/* Background Video */
.hero__background-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  height: 105%;
}

.hero__background-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.0) contrast(1.3) saturate(1.1) blur(1.5px);
  z-index: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform 0.1s ease-out;
}

/* Video loaded state */
.hero__background-video video:not([data-loaded]) {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.hero__background-video video[data-loaded] {
  opacity: 1;
}

/* Overlays */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 30, 0.5) 0%,
    rgba(10, 15, 30, 0.7) 60%,
    rgba(22, 33, 62, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__transition-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(22, 33, 62, 0.5) 50%,
    #16213e 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Container */
.hero__container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: -6vh auto 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 100;
  position: relative;
  width: 100%;
  text-align: center;
}

.hero__content--minimal {
  align-items: flex-start;
}

.hero__content > * {
  width: 100%;
}

/* Title */
.hero__title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -2px;
  width: 100%;
  order: 1;
  transform: translateY(-1.5rem);
  text-align: center;
}

.hero__title--cinematic {
  font-size: clamp(3.5rem, 6.5vw, 6.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: -2.5px;
}

.hero__title--giant {
  font-size: clamp(4rem, 8vw, 7.5rem);
  letter-spacing: -3px;
}

.hero__title-line {
  display: block;
  opacity: 0;
  letter-spacing: -0.03em;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero__title-line--1 {
  animation-delay: 0.2s;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.hero__title-line--2 {
  animation-delay: 0.4s;
  font-size: clamp(3.5rem, 10vw, 8rem);
  background: var(--text-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  line-height: 0.98;
  white-space: normal;
}

@media (min-width: 1024px) {
  .hero__title-line--2 {
    white-space: nowrap;
  }
}

.hero__title-line--3 {
  font-size: clamp(2rem, 5vw, 4rem);
  animation-delay: 0.6s;
  line-height: 1.1;
  font-weight: 700;
}

.hero__title-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

/* Subtitle */
.hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  line-height: 1.65;
  max-width: 800px;
  margin: clamp(1.5rem, 2.5vw, 2rem) auto clamp(2rem, 3vw, 2.5rem);
  order: 2;
  text-align: center;
}

.hero__subtitle--minimal {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  max-width: 68ch;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  line-height: 1.7;
  text-wrap: balance;
}

/* Scroll Indicator */
.scroll-indicator {
  order: 4;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2rem;
  margin-top: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s ease;
  min-width: 44px;
  width: fit-content !important;
  z-index: 10;
}

.scroll-indicator--minimal {
  opacity: 0;
  animation: fadeInUpCentered 1s ease-out 1.2s forwards;
}

@keyframes fadeInUpCentered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator__label {
  margin-bottom: 12px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-indicator--minimal .scroll-indicator__label {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-align: center;
}

.hero .scroll-indicator--minimal:hover {
  opacity: 1 !important;
}

.scroll-indicator__mouse {
  width: 28px;
  height: 44px;
  border: 2px solid #00d4ff;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(10, 20, 40, 0.18);
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
  pointer-events: none;
  margin-bottom: 0;
  opacity: 1;
  transition: opacity 0.3s;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: #00d4ff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  animation: scroll-dot-move 1.5s infinite;
  opacity: 0.8;
}

@keyframes scroll-dot-move {
  0% {
    opacity: 0.7;
    top: 10px;
  }
  40% {
    opacity: 1;
    top: 22px;
  }
  80% {
    opacity: 0.7;
    top: 34px;
  }
  100% {
    opacity: 0;
    top: 40px;
  }
}

.scroll-indicator.hidden {
  opacity: 0;
}

/* Responsive - Laptop 1366x768 */
@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 800px) {
  .hero__container {
    margin: -2vh auto 0 auto;
  }

  .hero__title-line--1 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
  }

  .hero__title-line--2 {
    font-size: clamp(4rem, 7vw, 5.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .hero__title-line--3 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
  }

  .hero__subtitle--minimal {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    margin-top: 1.5rem;
    line-height: 1.7;
    max-width: 65ch;
    text-wrap: balance;
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .scroll-indicator__mouse {
    width: 22px;
    height: 36px;
    border-width: 1.5px;
  }

  .scroll-indicator__label {
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
  }

  .scroll-dot {
    width: 5px;
    height: 5px;
    top: 8px;
  }

  @keyframes scroll-dot-move {
    0% {
      opacity: 0.7;
      top: 8px;
    }
    40% {
      opacity: 1;
      top: 18px;
    }
    80% {
      opacity: 0.7;
      top: 28px;
    }
    100% {
      opacity: 0;
      top: 32px;
    }
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__container {
    margin-top: 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    min-height: 100vh;
  }

  .hero__content {
    width: 100%;
    margin: 0 auto;
  }

  .hero__title {
    transform: translateY(0);
  }

  .hero__title-line--1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .hero__title-line--2 {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    line-height: 1;
  }

  .hero__title-line--3 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .hero__subtitle--minimal {
    max-width: 100%;
    text-wrap: pretty;
    font-size: clamp(1rem, 4vw, 1.125rem);
  }

  .hero__background-video {
    height: 100vh;
  }

  .hero__background-video video {
    filter: brightness(0.5) contrast(1.1) saturate(1.1) blur(2px);
    height: 100vh;
    object-position: center center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 30, 0.7) 0%,
      rgba(10, 15, 30, 0.8) 60%,
      rgba(22, 33, 62, 0.9) 100%
    );
  }

  .scroll-indicator {
    bottom: 20px;
  }
}
