/* ===============================
   MEMPELAI SECTION
================================= */

.mempelai {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    background: url(../media/background.jpg);
    background-position: center;
    background-size: cover;
    flex-direction: column;
}

.couple-wrapper {
    padding: 20px;
    border-radius: 250px;
    border: solid 2px var(--accent-color);
    background-color: rgba(255, 255, 255, 0.726);
    overflow: hidden;
}

/* Section Header */

img.top-couple {
    width: 125px;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    opacity: 0.8;
}

.section-divider {
    margin: 15px 0 20px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.section-divider i {
    margin: 0 6px;
}

/* ===============================
   COUPLE CARD
================================= */

.couple-card {
    max-width: 600px;
    margin: 80px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* Alternating layout */
.first-couple {
    flex-direction: row;
}

.second-couple {
    flex-direction: row-reverse;
}

/* ===============================
   PHOTO FRAME
================================= */

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-border {
    width: 200px;
    height: 250px;
    border-radius: 250px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.photo-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Elegant gold border overlay */
.photo-border::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-color);
    border-radius: 250px;
    pointer-events: none;
}

/* ================= FLOWER ================= */

.flower-couple {
    position: absolute;
    bottom: -10px;
    pointer-events: none;
}

.flower-couple img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: bottom center;
}

/* MAIN FLOWER */
.flower-main {
    width: clamp(90px, 18vw, 140px);
    z-index: -1;
}

/* SECONDARY FLOWER */
.flower-secondary {
    width: clamp(70px, 14vw, 100px);
    opacity: 0.9;
    z-index: 2;
}

/* ===== POSISI DESKTOP ===== */

.first-couple .flower-main {
    right: -30px;
    bottom: -5px;
}

.second-couple .flower-main {
    left: -30px;
    bottom: -5px;
}

.first-couple .flower-secondary {
    left: 20px;
    bottom: 5px;
}

.second-couple .flower-secondary {
    right: 20px;
    bottom: 5px;
}

/* ===== RESPONSIVE TABLET ===== */

@media (max-width: 992px) {
    .first-couple .flower-main {
        right: 100px;
    }

    .second-couple .flower-main {
        left: 100px;
    }

    .first-couple .flower-secondary {
        left: 40px;
    }

    .second-couple .flower-secondary {
        right: 40px;
    }
}

/* ===== RESPONSIVE MOBILE ===== */

@media (max-width: 768px) {
    .flower-main {
        width: 80px;
    }

    .flower-secondary {
        width: 60px;
    }

    .first-couple .flower-main {
        right: 35px;
        bottom: -5px;
    }

    .second-couple .flower-main {
        left: 35px;
        bottom: -5px;
    }

    .first-couple .flower-secondary {
        left: 30px;
        bottom: 5px;
    }

    .second-couple .flower-secondary {
        right: 30px;
        bottom: 5px;
    }

    .photo-border {
        width: 180px;
        height: 220px;
    }
}

/* ===== RESPONSIVE SMALL MOBILE ===== */

@media (max-width: 480px) {
    .flower-main {
        width: 70px;
    }

    .flower-secondary {
        width: 50px;
    }

    .first-couple .flower-main {
        right: 50px;
    }

    .second-couple .flower-main {
        left: 50px;
    }

    .first-couple .flower-secondary {
        left: 70px;
    }

    .second-couple .flower-secondary {
        right: 70px;
    }

    .photo-border {
        width: 150px;
        height: 190px;
    }
}

/* ===== ANIMATION ===== */

.flower-main img {
    animation: swingRight 6s ease-in-out infinite;
}

.flower-secondary img {
    animation: swingLeft 6s ease-in-out infinite;
}

@keyframes swingRight {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

@keyframes swingLeft {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-4deg);
    }
}

/* ===============================
   DETAILS
================================= */

.couple-details {
    max-width: 400px;
    text-align: center;
}

.nickname-detail {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

h4.fullname-detail {
    font-family: var(--couple-name, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
}

.parents-info {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
}

.child-order {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.parents-name {
    opacity: 0.9;
}

.address-info::before {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    margin: 10px auto;
}

/* ===============================
   SOCIAL MEDIA
================================= */

.social-wrapper {
    margin-top: 20px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 6px;
    background: var(--accent-color);
    color: #fff;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.social:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* ===============================
   HEART DIVIDER
================================= */

.divider-heart {
    margin: 40px 0;
}

.heart-divider {
    color: var(--secondary-color);
    font-size: 1rem;
}

.heart-divider i {
    margin: 0 8px;
}

/* ===============================
   RESPONSIVE LAYOUT
================================= */

@media (min-width: 992px) {
    .mempelai {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .couple-card {
        flex-direction: column !important;
        gap: 40px;
        margin: 60px auto;
    }

    .photo-frame {
        width: 100%;
        height: auto;
    }

    .nickname-detail {
        font-size: 1.6rem;
    }
}