/* =========================================
   TEMA: ROYAL MOBILE + FITUR LENGKAP
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Montserrat:wght@300;500&display=swap');

:root {
    --primary: #1a1a1a;
    --gold: #c5a85e;
    --bg-color: #f9f7f2;
    --font-judul: 'Cinzel Decorative', serif;
    --font-isi: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* BODY MOBILE LOCK */
body {
    font-family: var(--font-isi);
    background-color: #111;
    color: var(--primary);
    max-width: 480px; 
    margin: 0 auto; 
    min-height: 100vh;
    position: relative;
    background-color: #f9f7f2;
    background-image: radial-gradient(#c5a85e 0.5px, #f9f7f2 0.5px);
    background-size: 20px 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    padding-bottom: 90px;
    overflow-x: hidden; /* Biar bunga jatuh gak bikin scroll samping */
}

h1, h2, h3 { font-family: var(--font-judul); font-weight: 400; }
.text-gold { color: var(--gold); }

/* --- EFEK HUJAN BUNGA (FALLING PETALS) --- */
.petal {
    position: fixed; top: -10%; left: 0;
    width: 15px; height: 15px;
    background: #FFB7B2; /* Warna Pink Bunga */
    border-radius: 150% 0 150% 0;
    opacity: 0.8; z-index: 9000;
    animation: fall linear infinite;
}
@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* --- COUNTDOWN TIMER --- */
.countdown-box {
    display: flex; justify-content: center; gap: 10px; margin: 20px 0;
}
.time-item {
    background: var(--primary); color: var(--gold);
    padding: 10px; border-radius: 8px; min-width: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.time-val { font-size: 1.5rem; font-weight: bold; display: block; }
.time-label { font-size: 0.7rem; text-transform: uppercase; }

/* --- BUKU TAMU (CHAT STYLE) --- */
.guest-form {
    background: white; padding: 20px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 20px;
    border: 1px solid #eee;
}
.input-invita {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px;
    font-family: inherit;
}
.btn-kirim {
    background: var(--gold); color: white; border: none; padding: 12px; width: 100%;
    border-radius: 50px; font-weight: bold; cursor: pointer;
}
.chat-list {
    max-height: 400px; overflow-y: auto; text-align: left; padding: 10px;
}
.chat-bubble {
    background: white; padding: 15px; border-radius: 15px; border-bottom-left-radius: 0;
    margin-bottom: 15px; box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0; position: relative;
}
.chat-name { font-weight: bold; color: var(--primary); display: flex; justify-content: space-between;}
.chat-status { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: #eee; }
.hadir { background: #d1e7dd; color: #0f5132; } /* Hijau */
.tidak { background: #f8d7da; color: #842029; } /* Merah */
.chat-time { font-size: 10px; color: #999; display: block; margin-top: 5px; text-align: right;}

/* --- ELEMEN LAIN (SAMA KAYAK KEMARIN) --- */
#tombol-musik {
    position: fixed; bottom: 100px; right: 20px; width: 45px; height: 45px;
    background: var(--gold); border-radius: 50%; border: 2px solid white;
    z-index: 999999; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); cursor: pointer;
}
.spinning { animation: putar 4s linear infinite; }
@keyframes putar { 100% { transform: rotate(360deg); } }

#overlay {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; height: 100%;
    background-position: center; background-size: cover; z-index: 9999;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    text-align: center; color: white; padding-bottom: 10vh;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
#overlay::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: -1;
}
.judul-cover { font-size: 3rem; margin: 10px 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.tamu-box { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); padding: 8px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.6); margin-bottom: 20px;}
.btn-open { background: var(--gold); color: white; border: none; padding: 12px 35px; border-radius: 50px; font-weight: 600; cursor: pointer; }

section { padding: 50px 20px; width: 100%; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.big-couple-photo { width: 220px !important; height: 300px !important; object-fit: cover !important; border-radius: 100px 100px 10px 10px; border: 4px solid white; box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin: 20px auto; display: block; }
.event-card { background: #fff; width: 100%; padding: 30px 20px; margin: 20px 0; border-radius: 10px; border: 1px solid #e5e5e5; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; }
.event-card::before { content:''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid var(--gold); border-radius: 6px; pointer-events: none; }
.event-card h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 5px; }
.btn-maps { display: inline-block; margin-top: 20px; padding: 10px 25px; background: var(--gold); color: white !important; text-decoration: none; border-radius: 50px; font-size: 12px; font-weight: bold; position: relative; z-index: 2; }
.parallax-section { width: 100%; height: 300px; background-position: center; background-size: cover; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: -1px; }
.parallax-overlay { background: rgba(0,0,0,0.4); padding: 20px; border: 1px solid rgba(255,255,255,0.5); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.bottom-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); border-radius: 50px; padding: 10px 25px; display: flex; gap: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); z-index: 9999; width: max-content; }
.nav-item { font-size: 20px; color: #bbb; transition: 0.3s; }
.nav-item.active { color: var(--gold); transform: translateY(-2px); }
#lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 20000; display: none; justify-content: center; align-items: center; }
#lightbox img { max-width: 90%; max-height: 80vh; border: 2px solid white; }
#lightbox-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 30px; }
