/* ============================================
   UNDANGAN DIGITAL - STYLE UTAMA
   Tema: Gold, Maroon, Cream - Mewah & Elegan
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Poppins:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --gold: #C9A84C;
    --gold-light: #D4AF37;
    --gold-dark: #A8872E;
    --gold-shine: #F5E6A3;
    --maroon: #5B0A0A;
    --maroon-dark: #3A0505;
    --maroon-light: #7B1818;
    --cream: #FFF8E7;
    --cream-dark: #F5ECD7;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-body: #3D2B1F;
    --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.3);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--maroon-dark);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Invitation Container ===== */
.invitation-wrapper {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    background: var(--cream);
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ===== Cover / Opening Section ===== */
.cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon) 30%, var(--maroon-light) 50%, var(--maroon) 70%, var(--maroon-dark) 100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cover-section.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.cover-ornament-top,
.cover-ornament-bottom {
    position: absolute;
    width: 300px;
    height: 200px;
    opacity: 0.4;
}

.cover-ornament-top {
    top: 0;
    left: 0;
}

.cover-ornament-bottom {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.cover-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.5s ease;
}

.cover-bismillah {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(201, 168, 76, 0.5);
}

.cover-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--gold-shine);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.cover-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 15px rgba(201, 168, 76, 0.4);
}

.cover-names .ampersand {
    display: block;
    font-size: 2rem;
    color: var(--gold-shine);
    margin: 5px 0;
}

.cover-date {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--cream-dark);
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.cover-guest {
    background: rgba(91, 10, 10, 0.6);
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    padding: 15px 25px;
    margin: 0 auto 30px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--shadow-gold);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.cover-guest::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px dashed rgba(201, 168, 76, 0.4);
    border-radius: 9px;
    pointer-events: none;
}

.cover-guest-label {
    font-size: 0.75rem;
    color: var(--gold-shine);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 500;
}

.cover-guest-name {
    font-size: 0.8rem;
    color: var(--cream-dark);
    margin-bottom: 8px;
    opacity: 0.8;
}

.cover-guest-name-big {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    padding-top: 8px;
    margin-top: 5px;
}

.btn-open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold));
    color: var(--maroon-dark);
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(201, 168, 76, 0.4);
    animation: pulse 2s infinite;
}

.btn-open:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 35px rgba(201, 168, 76, 0.6);
}

.btn-open svg {
    width: 20px;
    height: 20px;
}

/* ===== Main Content ===== */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ===== Section Base ===== */
.section {
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}

.section-cream {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
}

.section-maroon {
    background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon) 50%, var(--maroon-dark) 100%);
    color: var(--cream);
}

/* ===== Ornamental Borders ===== */
.ornament-border {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
    opacity: 0.3;
    position: relative;
}

.ornament-border::after {
    content: '❦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 1;
}

/* ===== Gold Divider ===== */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.gold-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-divider .diamond {
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ===== Header Section (Bismillah) ===== */
.header-section {
    text-align: center;
    padding: 60px 30px 40px;
    background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon) 40%, var(--cream) 100%);
    position: relative;
}

.header-section::before,
.header-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.header-section::before {
    top: -50px;
    left: -50px;
}

.header-section::after {
    top: -50px;
    right: -50px;
}

.bismillah-text {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
    line-height: 1.8;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title-dark {
    color: var(--maroon);
}

.intro-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--cream-dark);
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Couple Section ===== */
.couple-section {
    text-align: center;
    padding: 40px 25px 50px;
    background: var(--cream);
}

.couple-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.couple-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.couple-name {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--maroon);
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.couple-order {
    display: inline-block;
    padding: 4px 18px;
    background: var(--maroon);
    color: var(--gold-shine);
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.couple-parents-label {
    font-size: 0.8rem;
    color: var(--text-body);
    margin-bottom: 5px;
}

.couple-parents {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--maroon);
    line-height: 1.5;
}

.couple-separator {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.couple-separator .heart {
    color: var(--maroon);
    font-size: 1.5rem;
    animation: heartbeat 1.5s ease infinite;
}

.honor-text {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto;
    font-style: italic;
}

/* ===== Detail Acara Section ===== */
.detail-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.detail-section .section-title-dark {
    margin-bottom: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 460px;
    margin: 0 auto;
}

.detail-card {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

.detail-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
    filter: grayscale(0.2);
}

.detail-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.4;
}

.detail-value.date-big {
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
}

.detail-value-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--cream-dark);
    opacity: 0.8;
}

/* ===== Prayer Section ===== */
.prayer-section {
    text-align: center;
    padding: 50px 30px;
    background: var(--cream);
    position: relative;
}

.prayer-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 2;
    font-style: italic;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

.prayer-text::before,
.prayer-text::after {
    content: '"';
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
}

.prayer-text::before {
    top: -10px;
    left: 0;
}

.prayer-text::after {
    content: '"';
    bottom: -30px;
    right: 0;
}

/* ===== Family Inviting Section ===== */
.family-section {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 50%, var(--cream-dark) 100%);
}

.family-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.family-card {
    flex: 1;
    min-width: 180px;
    max-width: 230px;
    text-align: center;
}

.family-card-label {
    font-size: 0.75rem;
    color: var(--text-body);
    margin-bottom: 10px;
}

.family-card .name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 4px;
    line-height: 1.6;
}

.family-heart {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-top: 10px;
    animation: heartbeat 2s ease infinite;
}

/* ===== Guest Inviting Section ===== */
.guest-section {
    text-align: center;
    padding: 50px 20px;
    background: var(--cream);
}

.guest-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.guest-card {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    background: linear-gradient(135deg, rgba(91, 10, 10, 0.05), rgba(91, 10, 10, 0.02));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: left;
}

.guest-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    background: var(--maroon);
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.guest-list {
    list-style: none;
    padding: 0;
}

.guest-list li {
    font-size: 0.78rem;
    color: var(--text-body);
    padding: 5px 0;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.guest-list li::before {
    content: '❖';
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.guest-list li:last-child {
    border-bottom: none;
}

/* ===== Maps Section ===== */
.maps-section {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.maps-frame {
    width: 100%;
    max-width: 460px;
    height: 300px;
    border: 3px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px auto 0;
    box-shadow: var(--shadow-gold);
}

.maps-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Bank / Gift Section ===== */
.gift-section {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(180deg, var(--maroon-dark), var(--maroon), var(--maroon-dark));
    color: var(--cream);
}

.gift-text {
    font-size: 0.85rem;
    color: var(--cream-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.bank-card {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 16px;
    padding: 25px;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-dark));
}

.bank-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.bank-account {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.bank-holder {
    font-size: 0.85rem;
    color: var(--cream-dark);
    opacity: 0.8;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 25px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--maroon-dark);
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

/* ===== Closing Section ===== */
.closing-section {
    text-align: center;
    padding: 50px 30px 80px;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 50%, var(--maroon) 100%);
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 30px;
}

.closing-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--maroon);
}

/* ===== Corner Ornaments ===== */
.corner-ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 5;
}

.corner-ornament svg {
    width: 100%;
    height: 100%;
}

.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ===== Falling Petals Animation ===== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    opacity: 0.7;
    animation: petalFall linear infinite;
    pointer-events: none;
}

.petal-1 {
    width: 15px;
    height: 20px;
    background: radial-gradient(ellipse at 30% 30%, #f8c8d4, #e8909c);
    border-radius: 50% 0 50% 50%;
    box-shadow: inset -2px -2px 4px rgba(200, 100, 120, 0.3);
}

.petal-2 {
    width: 12px;
    height: 16px;
    background: radial-gradient(ellipse at 30% 30%, var(--gold-shine), var(--gold));
    border-radius: 50% 0 50% 50%;
    box-shadow: inset -2px -2px 4px rgba(168, 135, 46, 0.3);
}

.petal-3 {
    width: 10px;
    height: 14px;
    background: radial-gradient(ellipse at 30% 30%, #ffd1dc, #ffb6c1);
    border-radius: 0 50% 50% 50%;
    box-shadow: inset -1px -1px 3px rgba(200, 130, 150, 0.3);
}

.petal-4 {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, var(--gold-shine), var(--gold-light));
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.petal-5 {
    width: 8px;
    height: 12px;
    background: linear-gradient(135deg, #c9a84c88, #d4af3788);
    border-radius: 50%;
}

@keyframes petalFall {
    0% {
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(var(--drift)) rotate(var(--spin)) scale(0.5);
        opacity: 0;
    }
}

/* ===== Music Button ===== */
.music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(201, 168, 76, 0.4);
}

.music-btn.playing {
    animation: musicPulse 1s ease infinite;
}

.music-btn .icon-play,
.music-btn .icon-pause {
    display: none;
}

.music-btn .icon-play { display: block; }
.music-btn.playing .icon-play { display: none; }
.music-btn.playing .icon-pause { display: block; }

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== Keyframe Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 25px rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(201, 168, 76, 0.7); }
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Gold Ornament SVG Styles ===== */
.ornament-svg {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    opacity: 0.6;
}

.gold-frame {
    border: 2px solid var(--gold);
    border-image: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-shine), var(--gold-light), var(--gold-dark)) 1;
    padding: 5px;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
    .invitation-wrapper {
        max-width: 100%;
    }

    .couple-name {
        font-size: 1.8rem;
    }

    .cover-names {
        font-size: 2.2rem;
    }

    .bismillah-text {
        font-size: 1.8rem;
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section {
        padding: 40px 20px;
    }

    .guest-card {
        min-width: 100%;
    }

    .couple-container {
        flex-direction: column;
        align-items: center;
    }

    .couple-separator {
        flex-direction: row;
        gap: 10px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--maroon-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ===== RSVP & Guestbook Sections ===== */
.rsvp-section {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 50%, var(--cream-dark) 100%);
}

.rsvp-form {
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 16px;
    padding: 25px;
    max-width: 440px;
    margin: 20px auto 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rsvp-form .form-group {
    margin-bottom: 20px;
}

.rsvp-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 8px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 8px;
    background: var(--cream-dark);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--maroon);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(91, 10, 10, 0.1);
}

.btn-rsvp-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--gold-shine);
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 10, 10, 0.2);
}

.btn-rsvp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 10, 10, 0.3);
}

/* Guestbook Wishes List */
.wishes-display {
    max-width: 440px;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px auto 0;
    padding-right: 5px;
    text-align: left;
}

.wish-card {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    animation: fadeInUp 0.5s ease;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wish-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--maroon);
}

.wish-status-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-hadir {
    background: #e8f8f0;
    color: #2ecc71;
}

.status-tidak_hadir {
    background: #fde8e8;
    color: #e74c3c;
}

.status-ragu {
    background: #fef5e7;
    color: #f39c12;
}

.wish-text {
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.5;
    font-style: italic;
}

.wish-time {
    font-size: 0.65rem;
    color: var(--text-body);
    opacity: 0.6;
    margin-top: 8px;
    text-align: right;
}

/* Custom Scrollbar for Wishes display */
.wishes-display::-webkit-scrollbar {
    width: 4px;
}
.wishes-display::-webkit-scrollbar-track {
    background: transparent;
}
.wishes-display::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 2px;
}

/* Custom Modal Styling */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-content {
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 30px 25px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(201, 168, 76, 0.4);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.custom-modal-overlay.show .custom-modal-content {
    transform: scale(1);
}

.custom-modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    animation: bounce 1.5s infinite;
}

.custom-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--maroon);
    font-weight: 700;
    margin-bottom: 10px;
}

.custom-modal-message {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-custom-modal-close {
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--gold-shine);
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 10, 10, 0.2);
}

.btn-custom-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 10, 10, 0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


