.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-color);
    background-size: cover;
    background-position: center;
    font-family: var(--font-biasa);
    font-size: 1rem;
    overflow: hidden;
}

.content-intro-top,
.content-intro-bottom {
    position: relative;
    z-index: 2;
}

.content-intro-top {
  margin-bottom: 1rem;
}

.content-intro-top h2 {
  font-family: var(--font-tambahan);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.content-intro-top h1 {
    font-family: var(--font-kaligrafi);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.content-intro-img {
  background: url(../img/img-intro.jpg);
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.horizontal-line {
  flex: 1;
  height: 1px;
  background-color: var(--text-color);
}

.content-intro-bottom {
  margin-top: 1rem;
}

.content-intro-bottom p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 2rem;
}

.content-intro-bottom i {
    margin-right: 5px;
}

.content-intro-bottom a {
    text-decoration: none;
    color: var(--text-color);
    background-color: none;
    border: 1px solid var(--text-color);
    padding: 0.5rem;
    transition: background 0.5s ease, color 0.5s ease, border 0.5s ease;
}

.content-intro-bottom a:hover {
    background-color: var(--text-hover);
    color: var(--text-color-dark);
    border: 1px solid var(--text-hover);
}

@keyframes fadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* animasi keluar */
.fade-out {
  animation: fadeOut 600ms ease forwards;
}

/* home awalnya tersembunyi */
.home {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* muncul setelah intro hilang */
.home.show {
  opacity: 1;
}

