:root {
    --card-white: rgba(255, 255, 255, 0.85);
}

section.footer {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        to bottom,
        #68798a 0%,
        #ffffff 35%,
        #ffffff 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
}

section.footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

.footer .ornaments img {
    position: relative;
    z-index: 2;
}

/* --- CONTAINER TEKS & CARD --- */
.footer .section-1 {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    margin-top: 10%;
    box-sizing: border-box;
}

.footer .closing-text {
    font-family: var(--satisfy, "Satisfy", cursive);
    color: var(--primary);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

/* --- GLASSMORPHISM CARD --- */
.footer .white-card {
    background-color: var(--card-white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0 auto;
    box-sizing: border-box;
}

.footer .white-card .card-subtitle {
    font-family: var(--satisfy, "Satisfy", cursive);
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.footer .white-card .couple-name {
    font-family: var(--satisfy, "Satisfy", cursive);
    color: var(--primary);
    font-size: 40px;
    font-weight: 400;
    margin: 10px 0;
}

.footer .white-card .card-date {
    font-family: var(--satisfy, "Satisfy", cursive);
    color: var(--primary);
    font-size: 18px;
    margin-top: 0.5rem;
}

/* Ornament */
.footer .ornaments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}
.footer .ornaments img:nth-child(1) {
    position: absolute;
    top: -90px;
    right: -60px;
    width: 55%;
    object-fit: cover;
    animation: rotateLeft 2s ease-in-out infinite alternate;
}

.footer .ornaments img:nth-child(2) {
    position: absolute;
    top: -90px;
    left: -60px;
    width: 55%;
    object-fit: cover;
    animation: rotateRight 2s ease-in-out infinite alternate;
}

.footer .ornaments img:nth-child(3) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    max-width: 200px;
    object-fit: contain;
    animation: moveHorizontalLeft 3s ease-in-out infinite alternate;
}

.footer .ornaments img:nth-child(4) {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 200px;
    object-fit: contain;
    animation: moveHorizontalRight 3s ease-in-out infinite alternate;
}

.footer .ornaments img:nth-child(5) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    object-fit: cover;
    animation: rotateLeft 2s ease-in-out infinite alternate;
}

.footer .ornaments img:nth-child(6) {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    object-fit: cover;
    animation: rotateRight 2s ease-in-out infinite alternate;
}

@media (max-width: 425px) {
    .footer .section-1 {
        margin-top: 15%;
    }

    .footer .closing-text {
        font-size: 16px;
    }

    .footer .white-card {
        padding: 1.8rem 1.2rem;
    }

    .footer .white-card .couple-name {
        font-size: 32px;
    }
}

@keyframes moveHorizontalLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(20px);
    }
}

@keyframes moveHorizontalRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-20px);
    }
}
