.intro {
  position: relative;
  z-index: 2;
  height: 100dvh;
  min-height: 100svh;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 1s ease;
}

.intro.fade-out {
  opacity: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.content-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.content-intro {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 4rem 2rem;
  color: var(--text-on-dark);
  background: url(../img/img-intro.jpg);
  background-size: cover;
  background-position: center;
  font-family: var(--font-body);
  font-size: 1rem;
  overflow: hidden;
}

.content-intro-top,
.content-intro-bottom {
  position: relative;
  z-index: 2;
}

.content-intro-top img {
  width: 30%;
}

.content-intro-top h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.content-intro-top h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.horizontal-line {
  flex: 1;
  height: 1px;
  background-color: none;
}

.content-intro-bottom {
  margin-bottom: 2rem;
}

.content-intro-bottom p {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 2rem;
}

.content-intro-bottom p span {
  font-size: 1.3rem;
}

.content-intro-bottom i {
  margin-right: 5px;
}

.content-intro-bottom a {
  text-decoration: none;
  color: var(--text-on-dark);
  background-color: var(--primary);
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: background 0.5s ease, color 0.5s ease;
}

.content-intro-bottom a:hover {
  background-color: var(--accent-gold);
  color: var(--text-primary);
}

@keyframes introSlideUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-100vh); }
}

@keyframes homeSlideUp {
    0%   { transform: translateY(100vh); }
    100% { transform: translateY(0); }
}

/* animasi keluar */
.intro.slide-out {
    animation: introSlideUp 1200ms ease-in-out forwards;
}

.home.slide-in {
    animation: homeSlideUp 1200ms ease-in-out forwards;
}

/* home awalnya tersembunyi */
.home {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.home.show { transform: none; }
.fade-out { animation: none; }

