/* =========================================
   1. VARIABEL GLOBAL (PENGATURAN WARNA & FONT)
========================================= */
:root {
    --primary-color: #63705f; 
    --accent-color: #cda96d; 
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --bg-light: #f7f9f6; 
    --font-title: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --nav-height: 70px; 
}

/* =========================================
   2. RESET & PENGATURAN DASAR
========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    /* Mematikan scroll panjang ke bawah karena kita pakai menu halaman */
    overflow: hidden; 
}

/* =========================================
   3. HALAMAN SAMPUL (COVER PAGE)
========================================= */
#cover-page {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1080&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-light);
    z-index: 100;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Animasi saat tombol Buka Undangan diklik */
#cover-page.slide-up { 
    transform: translateY(-100%); 
}

.cover-content { 
    padding: 20px; 
    width: 100%; 
    max-width: 600px; 
}

.subtitle { 
    font-size: 1.1rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
}

.title { 
    font-family: var(--font-title); 
    font-size: 4rem; 
    font-weight: 700; 
    margin-bottom: 30px; 
    color: var(--accent-color); 
}

/* Kotak Nama Tamu */
.guest-info {
    margin: 40px auto; 
    padding: 25px 20px;
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(212, 196, 168, 0.4);
    border-radius: 10px; 
    backdrop-filter: blur(8px); 
    max-width: 80%;
}

#guest-name { 
    font-family: var(--font-title); 
    font-size: 2rem; 
    color: var(--text-light); 
    margin: 10px 0; 
    font-style: italic; 
}

.apology { 
    font-size: 0.8rem; 
    opacity: 0.8; 
}

/* =========================================
   4. DESAIN TOMBOL (BUTTONS)
========================================= */
.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 14px 35px; 
    background-color: var(--accent-color); 
    color: var(--text-dark);
    border: none; 
    border-radius: 30px; 
    font-size: 1rem; 
    font-weight: 600; 
    font-family: var(--font-body);
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 5px 15px rgba(205, 169, 109, 0.4);
}

.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(205, 169, 109, 0.6); 
}

.btn-outline {
    background-color: transparent; 
    color: var(--primary-color); 
    border: 1px solid var(--primary-color);
    padding: 10px 25px; 
    border-radius: 20px; 
    display: inline-block; 
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover { 
    background-color: var(--primary-color); 
    color: var(--text-light); 
}

/* =========================================
   5. HALAMAN UTAMA & ANIMASI LAYAR
========================================= */
#main-page {
    position: relative; 
    width: 100%; 
    height: 100vh;
    background-color: var(--bg-light); 
    overflow: hidden;
}

/* Base untuk setiap halaman bagian (Mempelai, Acara, Penutup) */
.content-section {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: calc(100vh - var(--nav-height)); 
    overflow-y: auto; 
    padding: 40px 20px;
    
    /* Setup Animasi Geser & Fade */
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; 
}

/* Saat halaman menjadi aktif (diklik dari menu bawah) */
.content-section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 10;
}

/* Kotak Konten Utama */
.main-container {
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center;
    background-color: #ffffff; 
    padding: 40px 30px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Tipografi Konten */
.greeting { 
    font-family: var(--font-title); 
    font-size: 1.6rem; 
    color: var(--primary-color); 
    margin-bottom: 20px; 
}

.intro-text { 
    line-height: 1.8; 
    color: #555555; 
    margin-bottom: 30px; 
    font-size: 0.95rem; 
}

.couple-section { margin: 30px 0; }

.person-name { 
    font-family: var(--font-title); 
    font-size: 2.2rem; 
    color: var(--primary-color); 
    margin-bottom: 5px; 
}

.and-symbol { 
    font-family: var(--font-title); 
    font-size: 3rem; 
    color: var(--accent-color); 
    margin: 10px 0; 
}

.section-title { 
    font-family: var(--font-title); 
    font-size: 1.8rem; 
    color: var(--primary-color); 
    margin-bottom: 25px; 
}

.closing { 
    font-style: italic; 
    color: #777777; 
    line-height: 1.8; 
}

/* =========================================
   6. FITUR HITUNG MUNDUR (COUNTDOWN)
========================================= */
#countdown { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.time-box { 
    background-color: #ffffff; 
    border: 1px solid rgba(205, 169, 109, 0.3); 
    border-radius: 10px; 
    padding: 15px 10px; 
    width: 75px; 
}

.time-box span { 
    font-family: var(--font-title); 
    font-size: 1.6rem; 
    color: var(--accent-color); 
    font-weight: 700; 
}

.time-box p { 
    font-size: 0.8rem; 
    color: #777777; 
    margin-top: 5px; 
    text-transform: uppercase; 
}

/* =========================================
   7. KARTU ACARA (EVENT CARDS)
========================================= */
.event-cards { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-bottom: 30px; 
}

.card { 
    background-color: var(--bg-light); 
    border-radius: 15px; 
    padding: 30px 20px; 
    border-top: 4px solid var(--accent-color); 
    text-align: center;
}

.card-title { 
    font-family: var(--font-title); 
    font-size: 1.5rem; 
    color: var(--text-dark); 
}

.card-divider { 
    border: 0; 
    height: 1px; 
    background-color: var(--accent-color); 
    width: 50px; 
    margin: 15px auto; 
}

.event-detail-item p { 
    line-height: 1.6; 
    color: #555555; 
    margin-bottom: 10px; 
}

/* =========================================
   8. MENU NAVIGASI BAWAH (BOTTOM NAV)
========================================= */
.bottom-nav {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: var(--nav-height);
    background-color: #ffffff; 
    display: flex; 
    justify-content: space-around; 
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05); 
    z-index: 50;
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
}

.nav-item {
    background-color: transparent; 
    border: none; 
    color: #a0a0a0;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.3s ease; 
    width: 33%;
}

.nav-item svg { 
    margin-bottom: 4px; 
    transition: transform 0.3s ease; 
}

.nav-item span { 
    font-size: 0.75rem; 
    font-family: var(--font-body); 
    font-weight: 600; 
}

.nav-item.active { 
    color: var(--primary-color); 
}

.nav-item.active svg { 
    transform: translateY(-3px); 
    fill: var(--accent-color); 
}

/* =========================================
   9. TAMPILAN RESPONSIVE (LAYAR HP KECIL)
========================================= */
@media (max-width: 480px) {
    .title { font-size: 2.8rem; }
    .person-name { font-size: 1.8rem; }
    #countdown { gap: 10px; }
    .time-box { width: 65px; padding: 10px; }
    .time-box span { font-size: 1.3rem; }
}