/* =========================================
   CSS PREMIUM MOBILE-FIRST & PROFESIONAL
========================================= */

@font-face {
    font-family: 'JawaPalsu';
    src: url('../fonts/JAWAPALSU.TTF') format('truetype');
}

:root {
    --gold: #D4AF37; 
    --gold-muda: #fcf6ba;
    --sogan: #2e1a10; 
    --dark: #120904;
    --white: #F9F6F0;
    --wa-color: #25D366; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: #000; 
    display: flex; justify-content: center;
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    margin: 0; overflow-x: hidden;
}

.no-scroll { overflow: hidden; height: 100vh; }

/* ================= PEMBUNGKUS UTAMA ================= */
#mobile-wrapper {
    width: 100%; max-width: 480px; 
    background: var(--dark);
    min-height: 100vh; position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}

/* ================= TYPOGRAPHY PROFESIONAL ================= */
.judul-jawa { font-family: 'JawaPalsu', sans-serif; font-weight: normal; letter-spacing: 2px; font-size: 2.2rem; text-shadow: 0 2px 5px rgba(0,0,0,0.6); }
.nama-cover { font-family: 'Great Vibes', cursive; font-size: 4.5rem; color: var(--gold); text-shadow: 2px 2px 8px rgba(0,0,0,0.8); line-height: 1; }
.nama-elegan { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.judul-acara { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; }
.judul-timeline { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: bold; margin-bottom: 8px; }
.teks-formal { font-family: 'Poppins', sans-serif; font-size: 0.9rem; line-height: 1.6; font-weight: 300; opacity: 0.9; }
.teks-kecil { font-size: 0.8rem; font-weight: 300; }
.teks-sangat-kecil { font-size: 0.7rem; font-style: italic; opacity: 0.7; margin-top: 5px; }
.teks-arab { font-size: 1.6rem; line-height: 2.2; font-weight: bold; color: var(--gold); }
.teks-arti { font-size: 0.85rem; font-style: italic; line-height: 1.6; opacity: 0.8; }
.teks-surat { font-size: 0.85rem; color: var(--gold); letter-spacing: 1px; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-block { display: block; }
.w-100 { width: 100%; }
.d-flex-center { display: flex; justify-content: center; align-items: center; }
.gold-text { background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.fw-bold { font-weight: 600; }
.opacity-80 { opacity: 0.8; }
.garis-emas { border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); width: 80%; margin: 15px auto; }
.w-icon { width: 25px; text-align: center; display: inline-block; }

/* ================= BOX GLASSMORPHISM ================= */
.box-kaca-dark { background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(212,175,55,0.3); border-radius: 15px; padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.6); width: 90%; max-width: 400px; }
.box-kaca-light { background: rgba(255,255,255,0.05); border-radius: 15px; padding: 25px; border: 1px solid rgba(212,175,55,0.3); width: 90%; max-width: 400px; }

/* ================= BACKGROUND SECTIONS ================= */
.section-dark { background-color: var(--sogan); padding: 50px 0; position: relative; }
.section-darker { background-color: var(--dark); padding: 50px 0; position: relative; }
.pattern-bg::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background: url('../image/pattern-batik.png'); background-size: cover; opacity: 0.05; pointer-events: none; z-index: 1; }
.container { position: relative; z-index: 2; width: 100%; padding: 0 20px; }

.mt-2 { margin-top: 10px; } .mt-3 { margin-top: 15px; } .mt-4 { margin-top: 20px; } .mt-5 { margin-top: 30px; } .mb-2 { margin-bottom: 10px; } .mb-3 { margin-bottom: 15px; } .mb-4 { margin-bottom: 20px; } .mb-5 { margin-bottom: 30px; }

/* ================= REVISI MUKADIMAH (BISMILLAH & SALAM) ================= */
.bismillah-img { 
    width: 90%; 
    max-width: 380px;
    margin-top: -60px; 
    margin-left: 15px; 
    margin-bottom: -15px; 
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.3));
}

.salam-pembuka { 
    margin-top: -40px !important; 
    font-size: 1.8rem; 
    line-height: 1.2;
    padding: 0 15px;
}

/* ================= 1. COVER THEATRICAL ================= */
.cover-wrapper { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 100vh; background: radial-gradient(circle, #2e1a10, var(--dark)); z-index: 9999; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-content { position: relative; z-index: 15; width: 100%; padding: 30px 20px; opacity: 1 !important; transition: opacity 1s ease-in-out; }
.frame-cover-utama { position: relative; padding: 10px; border-radius: 20px; border: 1px solid rgba(212,175,55,0.3); background: rgba(0,0,0,0.3); width: 65%; max-width: 220px; }
.cover-img { width: 100%; border-radius: 15px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); object-fit: cover; }
.kepada-yth { padding: 15px; }
.nama-tamu { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold); margin: 5px 0; border-bottom: 1px solid rgba(212,175,55,0.5); padding-bottom: 5px; display: inline-block; }

/* Gunungan Cover */
.gunungan-cover { position: absolute; bottom: -5%; height: 50vh; max-width: 55%; z-index: 3; transition: transform 2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 1.5s; opacity: 0.9; mix-blend-mode: screen; filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.8)); }
.gate-left { left: -10%; transform-origin: left bottom; }
.gate-right { right: -10%; transform-origin: right bottom; transform: scaleX(-1); }
.gate-open-left { transform: translateX(-120%) rotate(-20deg) !important; opacity: 0; }
.gate-open-right { transform: translateX(120%) rotate(20deg) scaleX(-1) !important; opacity: 0; }

/* ================= 2. TOMBOL SOLID (TEGAS & JELAS) ================= */
.btn-solid-gold { display: block; width: 85%; max-width: 300px; margin: 0 auto; background: linear-gradient(135deg, #d4af37, #9c7b16); color: #fff; padding: 15px; border: 1px solid #ffdb58; border-radius: 50px; font-weight: 600; font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 5px 15px rgba(212,175,55,0.6); z-index: 2; position: relative; text-shadow: 0 1px 2px rgba(0,0,0,0.5); transition: 0.3s; text-decoration: none; }
.btn-solid-gold:hover { background: linear-gradient(135deg, #fcf6ba, #d4af37); color: #000; text-shadow: none; box-shadow: 0 8px 20px rgba(212,175,55,0.8); }
.btn-wa-solid { display: block; width: 100%; text-align: center; background: #25D366; color: #fff; padding: 15px; border: none; border-radius: 50px; font-weight: 600; font-family: 'Poppins', sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5); transition: 0.3s; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.btn-wa-solid:hover { background: #128C7E; transform: translateY(-3px); }
.btn-gold-outline { display: block; width: 100%; text-align: center; border: 2px solid var(--gold); background: rgba(0,0,0,0.4); color: var(--gold); padding: 12px; border-radius: 30px; text-decoration: none; font-size: 0.9rem; transition: 0.3s; font-family: 'Poppins', sans-serif; font-weight: 500; cursor: pointer;}
.btn-gold-outline:hover { background: var(--gold); color: #000; }
.btn-medsos { display: inline-block; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.2); }
.ring-animation { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85%; max-width: 300px; height: 100%; border-radius: 50px; background: rgba(212,175,55,0.5); z-index: 1; animation: radarRing 1.5s infinite ease-out; pointer-events: none;}

/* ================= 3. BOTTOM NAV MOBILE ================= */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 480px; background: rgba(18,9,4,0.98); backdrop-filter: blur(10px); border-top: 1px solid rgba(212,175,55,0.3); z-index: 9990; padding: 12px 0; border-radius: 25px 25px 0 0; animation: fadeInMasuk 1.5s ease-out forwards; }
.bottom-nav ul { display: flex; justify-content: space-around; list-style: none; margin:0; padding:0; }
.bottom-nav a { color: #777; text-decoration: none; font-size: 0.65rem; display: flex; flex-direction: column; align-items: center; transition: 0.3s; }
.bottom-nav a i { font-size: 1.4rem; margin-bottom: 4px; transition: 0.3s; }
.bottom-nav a.active { color: var(--gold); transform: translateY(-5px); }
.bottom-nav a.active i { filter: drop-shadow(0 0 8px var(--gold)); }

/* ================= 4. KONTEN & MEMPELAI ================= */
.mempelai-box { padding: 10px; width: 100%; }
.frame-foto-mempelai { display: inline-block; padding: 8px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.5); background: rgba(0,0,0,0.3); }
.img-mempelai { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 15px rgba(212,175,55,0.4);}
.ampersand { font-family: 'Great Vibes'; font-size: 4rem; color: rgba(212,175,55,0.4); }
.timeline-mobile { position: relative; padding-left: 25px; border-left: 2px solid rgba(212,175,55,0.3); margin-left: 20px; width: 90%; }
.timeline-item-m { position: relative; margin-bottom: 30px; }
.dot-m { position: absolute; width: 16px; height: 16px; background: var(--gold); border-radius: 50%; left: -34px; top: 15px; box-shadow: 0 0 10px var(--gold); border: 3px solid var(--dark); }
.content-m { padding: 20px; }
.tanggal-box { gap: 15px; margin-top: 10px; }
.tanggal-box .angka-tgl { font-size: 4rem; font-family: 'Playfair Display', serif; color: var(--gold); font-weight: bold; line-height: 1; text-shadow: 2px 2px 5px rgba(0,0,0,0.6);}
.tanggal-box .hari, .tanggal-box .bulan { font-size: 0.9rem; letter-spacing: 2px; opacity: 0.9; font-weight: bold; }
.map-responsive { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--gold); }
.map-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.input-group-modern { margin-bottom: 15px; width: 100%; }
.input-form-premium { width: 100%; padding: 15px; background: rgba(0,0,0,0.5); border: 1px solid rgba(212,175,55,0.4); border-radius: 10px; color: #fff; font-family: 'Poppins', sans-serif; transition: 0.3s; font-size: 0.9rem; }
.input-form-premium:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,0.7); }
.input-form-premium option { background: var(--dark); color: #fff; text-align: left; }
#music-controller { position: fixed; bottom: 90px; right: 50%; margin-right: -220px; background: var(--gold); color: #000; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 15px rgba(0,0,0,0.8); z-index: 999; cursor: pointer; font-size: 1.2rem; }
@media (max-width: 480px) { #music-controller { right: 20px; margin-right: 0; } }

/* ================= 5. GLOBAL GATE (ANIMASI NAVIGASI) ================= */
#global-gate { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 100vh; z-index: 9995; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; }
.gate-hidden { display: none !important; }
.global-gate-img { position: absolute; height: 80vh; max-width: 60%; transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s; mix-blend-mode: screen; filter: drop-shadow(0 0 20px rgba(0,0,0,0.8)); opacity: 0; }
.global-gate-left { left: 0; transform-origin: left center; transform: translateX(-50%) scale(0.8); }
.global-gate-right { right: 0; transform-origin: right center; transform: translateX(50%) scale(0.8) scaleX(-1); }
.gate-show .global-gate-img { opacity: 0.8; transform: translateX(0) scale(1.1); }
.gate-show .global-gate-right { transform: translateX(0) scale(1.1) scaleX(-1); }

/* ================= KUMPULAN ANIMASI LAINNYA ================= */
.animasi-masuk { animation: fadeInMasuk 1.5s ease-out forwards; }
@keyframes fadeInMasuk { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
#particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; z-index: 10; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(212,175,55,0.8); border-radius: 50%; box-shadow: 0 0 8px var(--gold); animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-10vh) scale(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110vh) scale(1.5); opacity: 0; } }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-delay { animation: float 3s ease-in-out infinite 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes radarRing { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }
.heart-beat { animation: beat 1.5s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); color: var(--gold); } }
.pulse-slow { animation: pSlow 3s infinite; }
@keyframes pSlow { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 10px rgba(212,175,55,0.5)); } }
.fa-spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ================= FIX TOMBOL COVER HILANG DI HP ================= */
.cover-wrapper .cover-content { padding: 10px 20px !important; }
.cover-wrapper .judul-jawa { font-size: 1.8rem !important; }
.cover-wrapper .nama-cover { font-size: 3.5rem !important; margin-bottom: 10px !important; }
.cover-wrapper .frame-cover-utama { width: 50% !important; max-width: 170px !important; padding: 5px !important; }
.cover-wrapper .kepada-yth { padding: 10px !important; margin-top: 15px !important; }
.cover-wrapper .nama-tamu { font-size: 1.4rem !important; margin: 5px 0 !important; }
.cover-wrapper .mt-4 { margin-top: 15px !important; }
.cover-wrapper .btn-solid-gold { padding: 12px 20px !important; font-size: 0.9rem !important; width: 75% !important; }