/* =========================
   HERO SECTION (TOP)
   ========================= */
.hero--top {
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  text-align: center;
  padding: 2rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.2rem;
  font-weight: 400;
}

/* =========================
   TYPEWRITER ANIMATION
   ========================= */
.typewriter {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.typewriter::after {
  content: '|';
  position: absolute;
  right: 0;
  animation: blink 1s infinite;
  opacity: 1;
}

.typewriter.completed::after {
  animation: none;
  opacity: 0;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Initially hide text */
.hero__title,
.hero__tagline {
  opacity: 0;
}

.hero__title.animate,
.hero__tagline.animate {
  opacity: 1;
}

/* =========================
   HERO SLIDER STYLES
   ========================= */
.hero--image-slider {
  position: relative;
  height: calc(100vh - var(--navbar-height));
  overflow: hidden;
}

.hero--image-slider picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero--image-slider picture.active {
  opacity: 1;
  z-index: 1;
}

.hero--image-slider picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--color-bg);
}

/* =========================
   SCROLL LOCK STYLE
   ========================= */
.scroll-locked {
  scroll-behavior: auto;
}