.welcome {
    width: 100%;
    height: 100dvh; /* aman untuk mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;

    /* 🎨 Background untuk mobile (portrait) */
    background: url("../assets/images/bingkai.png") no-repeat center center;
    background-size: cover;

    position: fixed;
    inset: 0; /* shorthand untuk top/left/right/bottom: 0 */
    z-index: 99;
    color: #070707;
    transition: all 2s ease-in;
    opacity: 0;
    transform: translateY(-100%);
}

/* 🎯 Saat layar >= 768px (tablet/desktop) → ganti ke background landscape */
@media (min-width: 768px) {
    .welcome {
        background: url("../assets/images/bingkai-desktop.png") no-repeat center center;
        background-size: cover;
    }
}

.welcome.active {
    transform: translateY(0);
    opacity: 1;
}

.welcome.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  visibility: hidden; /* opsional, agar tidak lagi menutupi */
  transition: opacity .6s ease, transform .6s ease;
}

/* 🔥 Animasi Bingkai */
@keyframes frameFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 3/4;
    background-size: contain;

    pointer-events: none;

    /* kondisi awal */
    opacity: 0;
    transform: scale(0.8);
}

/* Muncul setelah section welcome selesai turun */
.welcome.active::before {
    animation: frameFadeIn 1s ease forwards;
    animation-delay: 1.6s; /* setelah animasi turun selesai */
}

/* 🔥 Animasi konten di dalam bingkai */
@keyframes contentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Semua elemen di dalam welcome */
.welcome h2,
.welcome figure,
.welcome p,
.welcome button {
    opacity: 0;
}

/* Saat active → konten muncul bersamaan setelah bingkai */
.welcome.active h2,
.welcome.active figure,
.welcome.active p,
.welcome.active button {
    animation: contentFadeIn 1s ease forwards;
    animation-delay: 2.8s; /* semua muncul bareng setelah bingkai */
}

/* ----------------- Konten di dalam welcome ----------------- */

.frame-container {
    position: relative;
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 3/4;
    background-size: contain;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.frame-content {
    position: absolute;
    inset: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.welcome h2 {
    font-size: 3.2rem;
    font-family: 'Great Vibes', cursive; /* 🎨 Font The Wedding of */
    font-weight: 400;
    margin-top: 15%;
    margin-bottom: 5rem;
}

.welcome figure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 1rem 0;
}

.welcome figure img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 2px solid #fff;
}

.welcome figure figcaption {
    font-size: var(--fontSize-heading-base);
    font-family: 'Cinzel', serif;
    font-weight: 400;
    margin-top: 0.5rem;
}

.welcome p span {
    margin-top: 4rem;
    font-size: 1.8rem;
    margin: 1rem 0;
    display: block;
}

.welcome p {
    font-size: 1rem;
    font-weight: 300;
    margin: 1rem 0;
    line-height: 1.4;
}

.welcome button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #000;
    padding: 0.5rem 1rem;
    border: none;
    transition: var(--transition-small);
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 10%;
}

.welcome button:hover {
    color: #fff;
    background-color: #000;
}

.welcome button i {
    font-size: 1.2rem;
}
