/* MAX 300 LINES — hero.css */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 0;
  background:
    linear-gradient(180deg, rgba(2, 13, 26, 0.42) 0%, rgba(2, 13, 26, 0.88) 100%),
    url('../../assets/images/library_hero_2x.jpg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(0, 229, 255, 0.06) 45%, transparent 60%),
    linear-gradient(70deg, transparent 20%, rgba(255, 255, 255, 0.03) 48%, transparent 62%);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: shimmer 11s linear infinite;
  z-index: 0;
}

.hero-copy {
  max-width: 920px;
  padding-top: 8px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-logo {
  margin: 0 0 26px;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.9rem, 9vw, 7.2rem);
  letter-spacing: 0.02em;
  text-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.32));
}

.hero-subtitle {
  margin-bottom: 20px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.hero-slogan {
  margin: 0 0 18px;
  max-width: 34ch;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.hero-description {
  margin: 0 0 32px;
  max-width: 58ch;
  color: rgba(233, 246, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(26, 10, 58, 0.22)),
    rgba(2, 13, 26, 0.58);
  box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.05), 0 0 40px rgba(0, 229, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(0, 229, 255, 0.22), transparent 20%),
    radial-gradient(circle at 50% 55%, rgba(26, 10, 58, 0.9), transparent 60%),
    linear-gradient(180deg, rgba(3, 23, 45, 0.12), rgba(2, 13, 26, 0.72));
  border: 1px solid rgba(0, 229, 255, 0.12);
  box-shadow: inset 0 0 36px rgba(0, 229, 255, 0.06);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -50px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.26), transparent 68%);
  filter: blur(18px);
}

.submersible {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78%, 320px);
  aspect-ratio: 1.15 / 1;
  transform: translate(-50%, -48%);
  z-index: 1;
}

.submersible__core {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 28%;
  bottom: 28%;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(180deg, rgba(184, 250, 255, 0.18), rgba(0, 229, 255, 0.12));
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 0 28px rgba(0, 229, 255, 0.18);
}

.submersible__window {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.78), rgba(0, 229, 255, 0.45) 34%, rgba(0, 229, 255, 0.12) 68%, transparent 80%);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.35);
}

.submersible__wing {
  position: absolute;
  top: 50%;
  width: 34%;
  height: 12%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.24), rgba(0, 229, 255, 0.04));
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.submersible__wing.left {
  left: 0;
}

.submersible__wing.right {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

.submersible__trail {
  position: absolute;
  width: 38%;
  height: 6%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 130%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.65), transparent);
  filter: blur(6px);
  opacity: 0.7;
  animation: trailPulse 3.2s ease-in-out infinite;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.hero-bubbles span {
  position: absolute;
  bottom: -120px;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  border-radius: 50%;
  border: 1px solid rgba(167, 249, 255, 0.26);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04) 34%, transparent 54%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.08);
  animation: bubbleRise var(--duration) linear infinite;
  animation-delay: var(--delay);
  opacity: 0.7;
}

.hero-bubbles span::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 68%);
  filter: blur(10px);
  opacity: 0.35;
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 88px 0 52px;
  }

  .hero-logo {
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .hero-copy {
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .hero-slogan {
    max-width: 24ch;
    font-size: 1.32rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}
