/* --- LAYOUT & TRANSITIONS --- */
.right-panel {
    position: relative;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow-x: hidden;
    overflow-y: hidden;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.right-panel::-webkit-scrollbar {
    display: none;
}

.right-inner-content {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding-top: 8vh;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TYPOGRAPHY & UTILITIES --- */
.couple-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    margin: 12px 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.soft-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- STATE LOGIC --- */
.is-opened .right-panel {
    height: 100dvh;
    overflow-y: auto;
    justify-content: flex-start;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.is-opened .right-inner-content {
    padding-top: 0;
    justify-content: flex-start;
}

.is-opened .right-panel section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    width: 100%;
    position: relative;
}

.content-wrapper {
    display: none;
    width: 100%;
}

.is-opened .content-wrapper {
    display: block;
    animation: blinkEffect 0.6s ease-out;
}

/* CSS Scroll Snap */
html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    /* Mencegah scroll ganda */
}

.main-scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    width: 100%;
}

.hero-section {
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 20;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.is-opened .hero-section {
    opacity: 0;
    visibility: hidden;
    height: 0;
    min-height: 0;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

html.js :where([class*="taos:"]:not(.taos-init)) {
    visibility: hidden;
    opacity: 0;
}

.wedding-header,
.invitation-box {
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blinkEffect {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Penyesuaian khusus Mobile (max-width: 1023px) */
@media (max-width: 1023px) {
    body.is-unlocked {
        overflow-y: auto;
        /* Pastikan bisa scroll */
    }

    .right-panel {
        width: 100%;
        padding: 0;
        /* Menghilangkan padding samping jika ada agar konten full */
    }

    .right-inner-content {
        width: 100%;
    }

    /* Jika ada elemen di right-panel yang punya margin besar, kecilkan di sini */
    .hero-section,
    .content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .menu-burger-container {
        top: 20px;
        right: 20px;
    }
}