.top-cover {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999999;
    top: 0;
    max-width: 526px;
    left: 0;
    right: 0;
    margin: 0 auto;
    transition: all 1.8s cubic-bezier(0.23, 0.56, 0.38, 0.78);
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
}

section.top-cover.hide {
    top: -120%;
    bottom: 120%;
    pointer-events: none;
}

/* --- BACKGROUND --- */
.top-cover .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.top-cover .background img.cover-palace {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.8;
}

/* Gerbang */
.top-cover .background img.cover-couple {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    object-fit: cover;
    object-position: center;
}

.bg-shades {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* --- CONTENT WRAPPER --- */
.top-cover .content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* 1. Teks THE WEDDING OF */
.top-cover .subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* 2. Nama Pasangan */
.top-cover .name-couple-wrapper {
    margin-bottom: 2rem;
}

.top-cover .name-couple-wrapper h1.name {
    font-family: var(--playfair, serif);
    font-size: 40px;
    font-style: italic;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

/* 3. Tanggal */
.top-cover .date-text {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* 4-6. Info Tamu */
.top-cover .honorable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.top-cover .honorable .kepada {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

.top-cover .honorable .nama-tamu {
    font-family: var(--playfair, serif);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.top-cover .honorable .di-tempat {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

/* 7. Tombol Buka Undangan */
.top-cover .btn-buka-undangan {
    background-color: #dcb388;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.top-cover .btn-buka-undangan:hover {
    background-color: #c99f73;
    transform: translateY(-2px);
    color: #ffffff;
}

.top-cover .ornaments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.top-cover .ornaments img:nth-child(1) {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    object-fit: cover;
}

.top-cover .ornaments img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    object-fit: cover;
}

.top-cover .ornaments img:nth-child(3) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    object-fit: cover;
}

.top-cover .ornaments img:nth-child(4) {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    object-fit: cover;
}

/* Responsif Mobile Kecil */
@media (max-width: 380px) {
    .top-cover .name-couple-wrapper h1.name {
        font-size: 32px;
    }

    .top-cover .honorable .nama-tamu {
        font-size: 20px;
    }
}
