/* ========================================= */
/* 1. VARIABEL WARNA & RESET DASAR */
/* ========================================= */
:root {
    --gold-primary: #C5A059;
    --gold-dark: #9E7D3F;
    --gold-light: #F4E8D1;
    --cream-bg: #FDFBF7;
    --card-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #5A6A7A;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* Kunci Scroll Layar Sebelum Buka Undangan */
body.lock-scroll { 
    overflow: hidden; 
    height: 100vh; 
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================= */
/* 2. TIPOGRAFI (HURUF & TEKS GLOBAL) */
/* ========================================= */
h1, h2, .and-symbol, .event-title, .nama-cover {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
}

.title-gold {
    color: var(--gold-primary); 
    text-align: center; 
    font-size: 3rem; 
    margin-bottom: 20px; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.text-center { text-align: center; }
.text-justify { text-align: justify; line-height: 1.8; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }
.mb-4 { margin-bottom: 30px; }
.text-small { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; letter-spacing: 2px; }

/* ========================================= */
/* 3. KOVER (HALAMAN DEPAN) */
/* ========================================= */
.cover-page {
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    background-size: cover; 
    background-position: center;
    color: white; 
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1);
    min-height: 100vh;
}

.cover-page.opened { 
    transform: translateY(-100%); 
}

.cover-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px 20px; 
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    width: 90%; 
    max-width: 500px;
}

.subtitle { font-family: 'Montserrat', sans-serif; letter-spacing: 3px; font-size: 0.8rem; }
.nama-cover { font-size: 4rem; color: var(--gold-primary); margin: 5px 0; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }
.kepada { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; margin-bottom: 15px; font-style: italic; }
.divider-gold { width: 60px; height: 2px; background-color: var(--gold-primary); margin: 15px auto; }
.tanggal-cover { font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 10px; }

/* Animasi Kover */
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.1s; } 
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; } 
.delay-4 { animation-delay: 0.5s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ========================================= */
/* 4. TOMBOL & MUSIK */
/* ========================================= */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white; border: none; padding: 12px 30px; font-size: 1rem;
    font-family: 'Montserrat', sans-serif; font-weight: 600; border-radius: 30px; cursor: pointer;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4); transition: 0.3s;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(197, 160, 89, 0.7); }
.btn-gold:disabled { opacity: 0.7; cursor: not-allowed; }
.w-100 { width: 100%; }

.pulse-anim { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.btn-outline {
    display: inline-block; padding: 12px 25px; border: 1px solid var(--gold-primary); 
    color: var(--gold-dark); text-decoration: none; border-radius: 25px; 
    font-family: 'Montserrat', sans-serif; transition: 0.3s; font-size: 0.9rem; 
    cursor: pointer; background: transparent; font-weight: bold;
}
.btn-outline:hover { background: var(--gold-primary); color: white; }

.floating-music {
    position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px;
    background-color: var(--gold-primary); color: white; border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: spin 4s linear infinite; display: flex; align-items: center; justify-content: center;
}
.floating-music.paused { animation: none; background-color: #888; }
.hidden-element { display: none !important; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ========================================= */
/* 5. ORNAMEN BAWAH & ATAS */
/* ========================================= */
.ornament-top, .ornament-bottom {
    width: 120px; height: 40px; margin: 0 auto 15px auto;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 C60 30 80 40 100 50 C80 50 60 40 50 20 C40 40 20 50 0 50 C20 40 40 30 50 0 Z" fill="%23C5A059" opacity="0.6"/></svg>');
    background-repeat: no-repeat; background-position: center; background-size: contain;
}
.ornament-bottom { transform: rotate(180deg); margin: 15px auto 0 auto; }

/* ========================================= */
/* 6. PROFIL MEMPELAI */
/* ========================================= */
.section { padding: 60px 15px; max-width: 900px; margin: 0 auto; }
.deskripsi-awal { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; font-style: italic; }
.couple-container { display: flex; flex-direction: column; align-items: center; gap: 25px; }

/* Perataan Foto Ke Tengah */
.person { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
}
.photo-circle {
    width: 170px; height: 170px; border-radius: 50%; 
    object-fit: cover; object-position: top center;
    border: 4px solid var(--cream-bg); 
    box-shadow: 0 0 0 3px var(--gold-primary), 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 15px; background-color: #eee;
}
.person h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem; margin-bottom: 5px; }
.ortu { color: var(--text-light); font-style: italic; font-size: 1.1rem; }
.and-symbol { font-size: 4rem; color: var(--gold-primary); }

/* ========================================= */
/* 7. HITUNG MUNDUR (COUNTDOWN) */
/* ========================================= */
.bg-pattern { background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary)); border-radius: 20px; }
.countdown-container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cd-box { 
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); 
    padding: 15px; border-radius: 12px; text-align: center; 
    min-width: 75px; border: 1px solid rgba(255,255,255,0.3); color: white; 
}
.cd-box span { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: bold; display: block; }
.cd-box p { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

/* ========================================= */
/* 8. ACARA LOKASI */
/* ========================================= */
.event-details { display: flex; flex-direction: column; gap: 20px; }
.event-card { 
    background: var(--card-bg); padding: 30px 20px; border-radius: 15px; 
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    border: 1px solid var(--gold-light); 
}
.event-title { font-size: 3rem; color: var(--gold-dark); margin-bottom: 10px; }
.divider-small { width: 40px; height: 1px; background: var(--gold-primary); margin: 0 auto 15px auto; }
.event-date { font-weight: bold; font-size: 1.2rem; margin-bottom: 10px; }
.event-time { 
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem; color: var(--gold-primary); 
    margin-bottom: 10px; background: var(--gold-light); display: inline-block; 
    padding: 5px 15px; border-radius: 20px;
}
.alamat-detail { display: block; margin-top: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--text-light); }

.map-responsive { overflow: hidden; padding-bottom: 56.25%; position: relative; height: 0; border-radius: 10px; border: 2px solid var(--gold-light); }
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; }

/* ========================================= */
/* 9. TIMELINE (KISAH CINTA) */
/* ========================================= */
.bg-light-gold { background-color: rgba(197, 160, 89, 0.05); border-radius: 20px; }
.timeline { border-left: 2px solid rgba(197, 160, 89, 0.4); padding-left: 20px; margin-left: 10px; margin-top: 20px; }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-item::before { 
    content: ''; position: absolute; left: -26px; top: 5px; 
    width: 10px; height: 10px; background-color: var(--gold-primary); 
    border-radius: 50%; box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2); 
}
.timeline-item h4 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; color: var(--gold-dark); margin-bottom: 5px; margin-top: 5px;}
.timeline-item p { font-size: 1.1rem; color: var(--text-light); text-align: justify; padding-right: 10px; }

/* ========================================= */
/* 10. GALERI SLIDER BERJALAN */
/* ========================================= */
.slider-container { 
    position: relative; width: 100%; height: 350px; border-radius: 15px; 
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 5px solid var(--card-bg); 
}
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; opacity: 0; 
    transform: scale(1.05); transition: opacity 2s ease-in-out, transform 5s ease-in-out; 
}
.slide.active { opacity: 1; transform: scale(1); }

/* ========================================= */
/* 11. RSVP FORM & PAPAN UCAPAN */
/* ========================================= */
.ucapan-board { background: var(--gold-light); padding: 20px; border-radius: 15px; border: 1px dashed var(--gold-dark); }
.ucapan-scroll { max-height: 350px; overflow-y: auto; padding-right: 5px; }
.ucapan-card { 
    background: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 4px solid var(--gold-primary); 
    animation: fadeIn 0.5s ease-in-out; 
}
.ucapan-header { display: flex; justify-content: space-between; align-items: center; font-family: 'Montserrat', sans-serif; margin-bottom: 5px; font-size: 0.9rem;}
.badge { padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: bold; }
.badge-hadir { background: #d4edda; color: #155724; }
.badge-absen { background: #f8d7da; color: #721c24; }
.ucapan-tanggal { font-size: 0.75rem; color: #888; margin-bottom: 10px; font-family: 'Montserrat', sans-serif; }
.ucapan-pesan { font-size: 1.1rem; font-style: italic; color: var(--text-dark); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.rsvp-wrapper { background: var(--card-bg); padding: 25px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.rsvp-form { display: flex; flex-direction: column; gap: 15px; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { 
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; 
    font-family: 'Montserrat', sans-serif; background: #fdfdfd; transition: border 0.3s; font-size: 0.9rem;
}
.alert-success { 
    background-color: #d4edda; color: #155724; padding: 12px; border-radius: 8px; 
    text-align: center; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; 
    border-left: 5px solid #28a745; font-size: 0.9rem;
}

/* ========================================= */
/* 12. POPUP (MODAL) STYLES */
/* ========================================= */
.modal { 
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; 
    overflow: auto; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); 
}
.modal-content { 
    background-color: var(--cream-bg); margin: 10% auto; padding: 30px 20px; 
    border: 1px solid var(--gold-primary); border-radius: 20px; width: 90%; max-width: 500px; 
    position: relative; box-shadow: 0 15px 50px rgba(0,0,0,0.5); animation: modalZoom 0.3s ease-out; 
}
@keyframes modalZoom { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-btn { 
    color: var(--gold-dark); position: absolute; top: 15px; right: 20px; 
    font-size: 2rem; font-weight: bold; cursor: pointer; transition: 0.3s; line-height: 1; 
}
.close-btn:hover { color: red; }

/* Modal Bank */
.bank-container { display: flex; flex-direction: column; gap: 15px; }
.bank-card { background: var(--card-bg); padding: 20px; border-radius: 15px; border: 1px dashed var(--gold-primary); text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.bank-logo { max-width: 120px; height: auto; margin: 0 auto; display: block; }
.bank-number { font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 5px; font-weight: bold;}
.btn-salin { background: transparent; color: var(--gold-primary); border: 1px solid var(--gold-primary); padding: 6px 15px; border-radius: 20px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; margin-top: 10px; transition: 0.3s; }
.btn-salin:hover { background: var(--gold-primary); color: white; }

/* ========================================= */
/* 13. ANIMASI SCROLL (SMOOTH REVEAL) */
/* ========================================= */
.smooth-reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.smooth-reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================================= */
/* 14. FOOTER */
/* ========================================= */
.footer { text-align: center; padding: 40px 20px; background: var(--card-bg); color: var(--text-light); border-top: 1px solid var(--gold-light); }

/* ========================================= */
/* 15. MEDIA QUERIES (TAMPILAN DI LAYAR LEBAR/PC) */
/* ========================================= */
@media (min-width: 768px) {
    .cover-content { padding: 60px 40px; max-width: 600px; }
    .nama-cover { font-size: 6rem; }
    .subtitle { font-size: 1rem; }
    .couple-container, .event-details { flex-direction: row; justify-content: center; align-items: stretch; }
    .person, .event-card { flex: 1; }
    .slider-container { height: 500px; }
    .photo-circle { width: 220px; height: 220px; }
    .modal-content { margin: 5% auto; padding: 40px; }
}