.intro {
    position: absolute;
    inset: 0;
    z-index: 10;
    height: 100dvh;
    min-height: 100svh;
    will-change: transform;
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

.intro.fade-out {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(10px);
    pointer-events: none;
}

.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.2);
    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: 3rem 2rem 4rem 2rem;
    color: var(--text-on-dark);
    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 h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow-deep);
}

.content-intro-top h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: var(--text-shadow-deep);
}

.content-intro-bottom {
    margin-bottom: 1rem;
}

.content-intro-bottom p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 2rem;
    text-shadow: var(--text-shadow-deep);
}

.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(--background);
}

@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.show { transform: none; }
.fade-out { animation: none; }