.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: 20% 0;
    color: var(--secondary-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 h1 {
    font-family: var(--font-kaligrafi);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.content-intro-bottom p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 2rem;
}

.content-intro-bottom i {
    margin-right: 5px;
}

.content-intro-bottom a {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--accent-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.5s ease, color 0.5s ease;
}

.content-intro-bottom a:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

@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;
}

