.intro {
    position: relative;
    z-index: 2;
    height: 100dvh;
    min-height: 100svh;
    will-change: transform, opacity;
    transform: translateY(0);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.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: white;
    background-size: cover;
    background-position: center;
    font-family: var(--font-biasa);
    font-size: 1rem;
}

.content-intro-top h1 {
    font-family: var(--font-kaligrafi);
    font-size: 3rem;
    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: black;
    background-color: var(--button);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.5s ease, color 0.5s ease;
}

.content-intro-bottom a:hover {
    background-color: black;
    color: white;
}

@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; }

.snow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 11;
}

.snowflake {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0.4; /* Lebih transparan */
  animation: fall-snow linear infinite;
}

/* Animasi salju dengan gerak acak kiri-kanan saat jatuh */
@keyframes fall-snow {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(25vh) translateX(-20px) rotate(45deg);
  }
  50% {
    transform: translateY(50vh) translateX(20px) rotate(90deg);
  }
  75% {
    transform: translateY(75vh) translateX(-15px) rotate(135deg);
  }
  100% {
    transform: translateY(100vh) translateX(0) rotate(180deg);
  }
}

