:root {
    --color-white: #ffffff;
    --color-gold: #c5a028;
    --color-gold-dark: #8a6d1c;
    --color-gold-light: #f9f5e8;
    --color-text: #2c3e50;
    --color-muted: #6c757d;
    --color-bg-soft: #f8f9fa;
    --radius-xl: 24px;
    --radius-arch: 1000px 1000px 0 0;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-bg-soft);
    color: var(--color-text);
    overflow-x: hidden;
    overflow-y: auto; /* Izinkan scroll vertikal */
}

/* KHUSUS HALAMAN INDEX: Cegah scroll samping */
.body-index {
    overflow-x: hidden;
    width: 100%;
}

/* --- TYPOGRAPHY --- */
.font-islamic { font-family: 'Amiri', serif; }
.font-secondary { font-family: 'Cormorant Garamond', serif; }
.font-arabic { font-family: 'Amiri', serif; }

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* --- COLORS & UTILS --- */
.text-gold { color: var(--color-gold) !important; }
.text-gold-dark { color: var(--color-gold-dark) !important; }
.bg-soft-gray { background-color: var(--color-bg-soft); }

.bg-texture-islamic {
    background-color: #fcfcfc;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

.glass-clean {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* --- HERO COVER (INDEX) - MOBILE FIRST --- */
.hero-cover {
    position: relative;
    width: 100%;
    /* Gunakan min-height agar kalau konten panjang, dia memanjang, tidak kepotong */
    min-height: 100vh; 
    min-height: 100dvh; 
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: fixed; /* Background diam */
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

/* Overlay Putih Kuat di Bawah */
.hero-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.8) 0%, 
        rgba(255,255,255,0.6) 30%, 
        rgba(255,255,255,0.8) 60%, 
        rgba(255,255,255,1) 90%,
        rgba(255,255,255,1) 100%);
    z-index: 1;
    pointer-events: none; /* Klik tembus ke elemen bawah */
}

/* Konten Utama Flexbox */
.hero-content {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Sebar konten Atas-Tengah-Bawah */
    padding-top: 50px;
    padding-bottom: 40px; /* Jarak aman dari bawah layar */
}

/* Bagian Atas */
.hero-top {
    padding-top: 20px;
}

/* Bagian Tengah (Nama) */
.hero-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-name {
    font-size: 3.5rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.badge-islamic {
    border: 1px solid var(--color-gold);
    color: var(--color-gold-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Bagian Bawah */
.hero-bottom {
    margin-top: 20px;
}

/* KOTAK TAMU */
.guest-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    width: 90%; 
    max-width: 320px;
    border: 1px solid #f0f0f0;
}

/* TOMBOL UTAMA */
.btn-gold-gradient {
    background: linear-gradient(135deg, #c5a028 0%, #8a6d1c 100%);
    color: white !important;
    border: none;
    transition: transform 0.2s;
    position: relative;
    z-index: 10;
}
.btn-gold-gradient:active {
    transform: scale(0.95);
}

/* --- HEADER HERO (UNDANGAN) --- */
.hero-header-image {
    width: 100%;
    position: relative;
    z-index: 1;
}

.rounded-bottom-arch {
    border-radius: 0 0 50% 50% / 0 0 30px 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.overlay-gradient-white-bottom {
    background: linear-gradient(to top, #ffffff 10%, rgba(255,255,255,0) 100%);
}

.mt-n5 { margin-top: -60px !important; }

.divider-center { width: 50px; height: 2px; background: var(--color-gold); margin: 0 auto; opacity: 0.5; }
.divider-line { width: 40px; height: 1px; background: #000; opacity: 0.2; }

/* --- MEMPELAI CARDS --- */
.card-mempelai {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
}

.initial-circle {
    width: 90px; height: 90px;
    background: var(--color-gold-light);
    color: var(--color-gold-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

/* --- TIMELINE --- */
.date-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: #f1f1f1; color: #666; font-size: 0.75rem; font-weight: 700;
    border: 1px solid #ddd;
}
.date-badge.active { background: var(--color-gold); color: white; border-color: var(--color-gold); }

/* --- EVENT CARDS --- */
.event-card { border: 1px solid rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.accent-top { position: absolute; top:0; left:0; width:100%; height:4px; background: var(--color-gold); }
.icon-circle {
    width: 50px; height: 50px; background: var(--color-gold-light);
    color: var(--color-gold-dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 1.2rem;
}
.time-box {
    background: var(--color-bg-soft); padding: 8px 15px; border-radius: 8px;
    display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--color-text);
}

/* --- COUNTDOWN --- */
.timer-box {
    min-width: 65px; padding: 10px 5px; background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3); border-radius: 12px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

/* --- ANIMATIONS --- */
.animate-fade-down { animation: fadeDown 1s ease forwards; opacity: 0; }
.animate-zoom-in { animation: zoomIn 1s ease 0.3s forwards; opacity: 0; transform: scale(0.8); }
.animate-fade-up { animation: fadeUp 1s ease 0.6s forwards; opacity: 0; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 40, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(197, 160, 40, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 40, 0); }
}
.spin-slow { animation: spin 8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* TOAST */
.toast-custom {
    visibility: hidden; background-color: #333; color: #fff; text-align: center;
    border-radius: 50px; padding: 10px 25px; position: fixed; z-index: 9999;
    left: 50%; bottom: 80px; transform: translateX(-50%); font-size: 13px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.toast-custom.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 60px; opacity: 0;} to {bottom: 80px; opacity: 1;} }
@keyframes fadeout { from {bottom: 80px; opacity: 1;} to {bottom: 60px; opacity: 0;} }

/* --- RESPONSIVE FIXES (IPHONE) --- */
@media (max-width: 576px) {
    .hero-name { font-size: 3rem; } /* Font nama di HP */
    .hero-content { padding-bottom: 30px; }
}
@media (max-height: 700px) {
    /* Untuk HP layar pendek */
    .hero-name { font-size: 2.5rem; }
    .hero-content { padding-top: 30px; }
}