section.top-cover {
    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;
    overflow: hidden;
}

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

.top-cover .bg-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.top-cover .bg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.top-cover .bg-image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.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;
}

.top-cover .logo {
    padding-top: 4rem;
}

.top-cover .subtitle {
    color: #713135;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-top: 1rem;
}

.top-cover .name-couple-wrapper {
    margin-bottom: 1.5rem;
    z-index: 2;
}

.top-cover .name-couple-wrapper h1.name {
    font-family: var(--playfair, serif) !important;
    color: #713135;
    font-size: 46px;
    font-style: normal;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;

    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    gap: 5px;
}

.top-cover .name-couple-wrapper h1.name .dan {
    font-size: 36px;
    font-weight: 500;
}

.top-cover .date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.top-cover .date-wrapper .line {
    width: 60px;
    height: 1px;
    background-color: #713135;
}

.top-cover .date-wrapper .date-text {
    color: #713135;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0;
}

.top-cover .guest-action-wrapper {
    margin-top: auto;
    margin-bottom: 12vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.top-cover .honorable {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.top-cover .honorable .kepada {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #713135;
}

.top-cover .honorable .nama-tamu {
    font-family: var(--playfair, serif);
    font-size: 22px;
    font-weight: 800;
    color: #713135;
    margin: 0;
}

.top-cover .btn-buka-undangan {
    background-color: #713135;
    color: #ffffff;
    font-family: var(--montserrat, sans-serif);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.top-cover .btn-buka-undangan:hover {
    background-color: #5a272a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Ornamen */
.top-cover .ornaments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.top-cover .ornaments img {
    position: absolute;
    width: 60%;
    max-width: 280px;
    object-fit: cover;
    opacity: 0.85;
}

.top-cover .ornaments img:nth-child(1) {
    top: -1%;
    width: 40% !important;
    max-width: none !important;
    right: 0;
    animation: rotateRight 3s ease-in-out infinite alternate;
}

.top-cover .ornaments img:nth-child(2) {
    width: 40% !important;
    max-width: none !important;
    top: 0;
    left: 0;
    /* animation: rotateLeft 3s ease-in-out infinite alternate; */
}

.top-cover .ornaments img:nth-child(3) {
    width: 130% !important;
    max-width: none !important;
    bottom: 0;
    left: calc((100% - 130%) / 2);
}

.top-cover .ornaments img:nth-child(4) {
    width: 100% !important;
    max-width: none !important;
    bottom: 25%;
    left: -45%;
    /* width: 80% !important;
    max-width: none !important;
    bottom: 54%;
    left: -35%; */
}

.top-cover .ornaments img:nth-child(5) {
    width: 55% !important;
    max-width: none !important;
    bottom: 5%;
    right: -25%;
}

.top-cover .ornaments img:nth-child(6) {
    width: 60%;
    bottom: -1%;
    right: 0;
    animation: rotateLeft 3s ease-in-out infinite alternate;
}

.top-cover .ornaments img:nth-child(7) {
    width: 60%;
    bottom: -1%;
    left: 0;
    animation: rotateRight 3s ease-in-out infinite alternate;
}

.top-cover .ornaments .awan-wrapper {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    z-index: -1;
    opacity: 70%;
    overflow: hidden;
    pointer-events: none;
}

.top-cover .ornaments .awan-track {
    display: flex;
    flex-wrap: nowrap;
    width: 280%;
    animation: seamlessLinearCloud 30s linear infinite;
    gap: 0;
}

.top-cover .ornaments .awan-track img {
    position: static !important;
    width: 50% !important;
    max-width: none !important;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
    animation: none !important;
}

@keyframes seamlessLinearCloud {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media screen and (min-width: 768px) {
    .top-cover .name-couple-wrapper h1.name {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .top-cover .subtitle {
        margin-bottom: 1rem;
        padding-top: 1rem !important;
    }

    .top-cover .name-couple-wrapper {
        /* margin-bottom: 1.5rem;
        z-index: 2; */
    }
}

@media screen and (min-width: 481px) {
    .top-cover .subtitle {
        padding-top: 9rem;
    }

    .top-cover .ornaments img:nth-child(4) {
        width: 80% !important;
        max-width: none !important;
        bottom: 20%;
        left: -45%;
    }
}

@media screen and (min-width: 381px) and (max-width: 480px) {
    .top-cover .subtitle {
        /* padding-top: 5rem; */
    }
    .top-cover .ornaments img:nth-child(4) {
        width: 80% !important;
        max-width: none !important;
        bottom: 54%;
        left: -35%;
    }
}

@media (max-width: 380px) {
    .top-cover .name-couple-wrapper h1.name {
        font-size: 38px;
    }

    .top-cover .name-couple-wrapper h1.name .dan {
        font-size: 28px;
    }

    /* .top-cover .subtitle {
        padding-top: 4rem;
    } */

    .top-cover .ornaments img:nth-child(3) {
        width: 110% !important;
        max-width: none !important;
        bottom: 0;
        left: calc((100% - 110%) / 2);
    }

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