/* ===============================
   MEMPELAI SECTION
================================= */

.mempelai {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    /* Pastikan width 100% dari parent */
    max-width: 100%;
    /* Tidak melebihi parent */
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.747);
}



/* Pastikan parent membatasi */


.mempelai>* {
    position: relative;
    z-index: 999;
}



/* Section Header */

img.top-couple {
    width: 125px;
    z-index: 999;
}

.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;
    border-radius: 250px;
}

.photo-border {
    width: 180px;
    height: 320px;
    position: relative;
    border-radius: 250px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 🔥 tanpa spasi */
.photo-border::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    top: 10px;
    /* geser bawah */
    left: 10px;
    /* geser kanan */

    width: 100%;
    height: 100%;
    border-radius: 250px;

    z-index: 0;
}

/* konten di atas frame */
.photo-border>* {
    position: relative;
    z-index: 1;
}

.photo-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* Elegant gold border overlay */


/* ================= FLOWER ================= */

.flower-couple {
    position: absolute;
    bottom: -10px;
    pointer-events: none;
}

.flower-couple img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: bottom center;
}

/* =========================
FLOWER BASE
========================= */

/* =========================
FLOWER BASE
========================= */

.flower-main {
    position: absolute;
    width: clamp(200px, 18vw, 140px);
    bottom: 5%;
    z-index: -99;
}

.flower-secondary {
    position: absolute;
    width: clamp(70px, 14vw, 100px);
    bottom: 0;
}

/* =========================
DESKTOP (default)
========================= */

.first-couple .flower-main {
    right: -40%;
}

.second-couple .flower-main {
    left: -40%;
}

.first-couple .flower-secondary {
    left: -20%;
    transform: rotate(-25deg);
}

.second-couple .flower-secondary {
    right: -20%;
    transform: rotate(25deg);
}


/* =========================
TABLET
========================= */

/* @media (max-width: 992px) {

    .flower-main {
        width: (200px, 18vw, 140px);
    }

    .flower-secondary {
        width: clamp(60px, 16vw, 90px);
    }

    .first-couple .flower-main {
        right: -25%;
    }

    .second-couple .flower-main {
        left: -30%;
    }

    .first-couple .flower-secondary {
        left: -15%;
    }

    .second-couple .flower-secondary {
        right: -15%;
    }

} */


/* =========================
MOBILE
========================= */

/* @media (max-width: 768px) {

    .flower-main {
        width: (200px, 18vw, 140px);
        bottom: 3%;
    }

    .flower-secondary {
        width: clamp(50px, 20vw, 70px);
    }

    .first-couple .flower-main {
        right: -20%;
    }

    .second-couple .flower-main {
        left: -25%;
    }

    .first-couple .flower-secondary {
        left: -10%;
    }

    .second-couple .flower-secondary {
        right: -10%;
    }

} */


/* =========================
SMALL MOBILE
========================= */
/* 
@media (max-width: 480px) {

    .flower-main {
        width: clamp(120px, 34vw, 160px);
    }

    .flower-secondary {
        width: clamp(40px, 22vw, 60px);
    }

    .first-couple .flower-main {
        right: -15%;
    }

    .second-couple .flower-main {
        left: -20%;
    }

    .first-couple .flower-secondary {
        left: -8%;
    }

    .second-couple .flower-secondary {
        right: -8%;
    }

} */

/* ===== 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: 3rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

h4.fullname-detail {
    font-family: var(--couple-name, 'Playfair Display', serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.parents-info {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
}

.child-order {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-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(--secondary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.social:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* ===============================
   HEART DIVIDER
================================= */

.divider-heart {
    font-size: 48px;
    margin: 40px 0;
}

.heart-divider {
    color: var(--secondary-color);
    font-size: 1rem;
}

.heart-divider {
    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;
    }
}