/* =================================================================
   TEMA: DESERT ROSE ELEGANCE (Versi Lengkap)
   ================================================================= */
/* =================================================================
   [PENTING] KONDISI CSS UNTUK RASIO HP (TEMA DESERT ROSE)
   ================================================================= */

/* Aturan ini berlaku untuk layar di bawah 768px (Tablet & HP) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Kurangi padding container */
    }
    
    /* Perbaikan Font Besar */
    h2 { font-size: 2.2rem; }
    .profile-intro-title { font-size: 2rem; }
    .profile-name { font-size: 1.8rem; }
}

/* Aturan ini berlaku untuk layar di bawah 480px (HP) */
@media (max-width: 480px) {
    /* Perbaikan Font (Lebih kecil lagi) */
    h1.calligraphy-name { font-size: 3.5rem; }
    .profile-name { font-size: 1.5rem; }

    /* [PENTING] Perbaikan Countdown Timer */
    #countdown {
        flex-wrap: wrap; /* Izinkan kotak-kotaknya "turun" (jadi 2x2) */
        gap: 10px;
        justify-content: center;
    }
    .timer-box {
        flex-basis: 120px; /* Atur lebar dasar agar pas 2 kotak */
        flex-grow: 1;
        min-width: 100px;
        padding: 10px;
    }
    .timer-box span:first-child { font-size: 2rem; }

    /* Perbaikan Kartu-Kartu */
    .profile-card, .event-main-wrapper, .rsvp-form {
        padding: 25px 15px; /* Kurangi padding di HP */
    }
    .event-card {
        padding: 10px 0;
    }
    
    .groom-title { margin-top: 40px; } /* Kurangi jarak antar profil di HP */

    /* Perbaikan Kartu Gift */
    .gift-cards-container {
         gap: 20px;
    }

    /* Perbaikan Tombol Musik */
    .music-btn {
        bottom: 20px;
        right: 20px;
    }
    
    /* Perbaikan pemisah akad & resepsi */
    .event-divider { display: none; }
    .event-card:first-child {
        /* Gunakan warna border terang dari tema ini */
        border-bottom: 1px solid #e9ddcf; 
        padding-bottom: 30px;
        margin-bottom: 20px;
    }
}
/* --- Global Reset & Basic Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    background-color: #FAF0E6; /* Antique White */
    color: #5D4037; /* Deep Chocolate */
    /* Pola geometris subtil di latar belakang */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23A0522D' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html.no-scroll, body.no-scroll {
    height: 100%;
    overflow: hidden; 
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #A0522D; /* Terracotta */
    margin-bottom: 10px;
    text-align: center;
}

/* --- [BARU] Ornamen Pembatas --- */
.islamic-divider {
    height: 3px;
    width: 80px;
    background-color: #A0522D; /* Terracotta */
    margin: 0 auto 40px auto;
    border-radius: 5px;
}

/* --- Hero Section Styling --- */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(250, 240, 230, 0.3), rgba(250, 240, 230, 0.6)), url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 6.5rem;
    font-weight: normal;
    color: #A0522D; /* Terracotta */
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.5);
}

.hero-content h3 {
    font-family: 'Lateef', serif;
    font-size: 2.5rem;
    color: #468284; /* Muted Sage Green */
    margin-bottom: 20px;
}
/* =================================================================
   [BARU] Styling "Meet The Couple" (Tema Desert Rose)
   ================================================================= */

.profile-section h2 {
    color: #A0522D; /* Terracotta */
}
.profile-section .islamic-divider {
    background-color: #A0522D; /* Terracotta */
}

/* Judul "The Bride" / "The Groom" */
.profile-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: normal;
    text-align: center;
    color: #A0522D; /* Terracotta */
    margin-bottom: 20px;
}
.groom-title {
    margin-top: 80px; /* Jarak untuk scroll */
}

/* Kartu Profil */
.profile-card {
    background: #ffffff; /* Latar putih bersih */
    box-shadow: 0 5px 25px rgba(0,0,0,0.07); /* Bayangan halus */
    border-radius: 8px;
    max-width: 500px; 
    width: 100%;
    margin: 0 auto; 
    text-align: center;
    padding: 40px 30px;
}

/* Wadah Foto */
.profile-photo { 
    width: 200px; 
    height: 200px; 
    border-radius: 50%; /* Bulat */
    border: 3px solid #A0522D; /* Border Terracotta */
    overflow: hidden; 
    margin: 0 auto 25px auto; 
    background-color: #FAF0E6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

/* Nama Lengkap */
.profile-name { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    color: #A0522D; /* Terracotta */
    margin-bottom: 25px;
    font-weight: normal;
}

/* Info Orang Tua */
.profile-parentage {
    text-align: center;
    color: #5D4037; /* Teks Deep Chocolate */
    font-size: 1rem;
    line-height: 1.7;
}
.profile-parentage p {
    margin-bottom: 5px;
}
.parent-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #5D4037;
    font-weight: normal;
}
/* Simbol & */
.parent-connector {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #468284; /* Aksen Sage Green */
    margin: 0;
}

.guest-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: #5D4037; /* Deep Chocolate */
}

#guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.scroll-down-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #A0522D;
    border-radius: 50px;
    color: #A0522D;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.scroll-down-btn:hover {
    background-color: #A0522D;
    color: #ffffff;
}

/* --- Base Styling for Sections --- */
section {
    padding: 100px 0;
    border-bottom: 1px solid #e9ddcf;
}

/* --- Quran Verse Section Styling --- */
.quran-verse-section {
    background-color: #ffffff;
    text-align: center;
}

.arabic-verse {
    font-family: 'Lateef', serif;
    font-size: 2.8rem;
    color: #A0522D;
    line-height: 2;
    margin-bottom: 20px;
}

.translation {
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 10px auto;
    color: #468284; /* Muted Sage Green */
}

.source {
    font-weight: bold;
    color: #A0522D;
}

/* --- Story Section Styling --- */
.timeline::before {
    background: #A0522D;
    opacity: 0.2;
}
.timeline-dot {
    background: #FAF0E6;
    border: 2px solid #A0522D;
}
.timeline-content {
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
.timeline-content h3 { color: #A0522D; }

/* --- Event Section Styling --- */
.event-intro, .rsvp-intro, .gift-intro, .guestbook-intro {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px auto;
    color: #888;
}
#countdown {
    margin-bottom: 60px;
}
.timer-box {
    border: 1px solid #e9ddcf;
}
.timer-box span:first-child { color: #5D4037; }
.event-card {
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}
.event-card h3 { color: #A0522D; }
.event-btn {
    color: #A0522D;
    border: 1px solid #A0522D;
}
.event-btn:hover {
    background-color: #A0522D;
    color: #ffffff;
}

/* --- Form Styling (RSVP) --- */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.form-group {
    margin-bottom: 25px; /* Sedikit ruang tambahan */
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #5D4037; /* Pastikan warna label sesuai */
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ddcf;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: #FAF0E6;
    color: #5D4037;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #A0522D;
}

/* === INI BAGIAN UTAMA PERBAIKANNYA === */
.radio-group {
    display: flex;          /* 1. Gunakan Flexbox untuk alignment */
    align-items: center;    /* 2. Sejajarkan item secara vertikal di tengah */
    margin-bottom: 12px;
}

.radio-group input[type="radio"] {
    margin-right: 10px;     /* 3. Beri jarak antara tombol dan teks */
    width: auto;            /* 4. Pastikan radio button tidak memenuhi lebar */
    flex-shrink: 0;         /* Mencegah tombol radio menyusut */
}

/* Override gaya label umum khusus untuk radio button */
.radio-group label {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
}
/* === AKHIR DARI BAGIAN PERBAIKAN === */

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #A0522D;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #b3633d;
}
.submit-btn {
    background-color: #A0522D;
    color: #ffffff;
}
.submit-btn:hover {
    background-color: #b3633d;
}

/* --- Gift Section --- */
.gift-card {
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}
.bank-logo {
    filter: none; /* Reset filter untuk background terang */
}
.account-number {
    background-color: #FAF0E6;
    border: 1px dashed #e9ddcf;
}
.account-number button {
    background-color: #A0522D;
    color: #ffffff;
}

/* --- Guestbook Section --- */
.guestbook-container {
    border: 1px solid #e9ddcf;
    background: #ffffff;
}
.guestbook-card {
    border-bottom: 1px solid #FAF0E6;
}
.guestbook-card:last-child {
    border-bottom: none;
}
.guestbook-card h3 { color: #A0522D; }

/* --- Gallery Section --- */
.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Footer Section Styling --- */
.footer-section {
    padding: 60px 0;
    background-color: #468284; /* Muted Sage Green */
    color: #ffffff;
    text-align: center;
    border-bottom: none;
}
.footer-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    font-weight: normal;
    color: #ffffff;
}
.footer-section .date {
    color: #e9ddcf;
}

/* =================================================================
   Music Control Button
   ================================================================= */

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #C5A35E; /* Warna Emas */
    color: #004225; /* Warna Hijau Tua */
    border: none;
    border-radius: 50%; /* Membuatnya bulat */
    font-size: 1.5rem; /* Ukuran emoji */
    cursor: pointer;
    z-index: 1000;
    
    /* Posisikan ikon di tengah */
    display: flex;
    justify-content: center;
    align-items: center;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.music-btn:hover {
    transform: scale(1.1); /* Efek membesar saat disentuh */
}

/* [BARU] Animasi berputar saat musik main */
.music-btn.is-playing {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Kode-kode yang tidak perlu diubah secara spesifik 
   (misalnya .timeline, .gallery-grid, .timer-box, dll.)
   akan mewarisi warna baru dari `body` dan penyesuaian di atas.
   Ini adalah kode lengkapnya. */

/* === Sisa kode yang belum tertulis eksplisit di atas (untuk kelengkapan) === */
.timeline { position: relative; margin: 0 auto; padding: 20px 0; max-width: 600px; }
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 40px; }
.timeline-content img { width: 100%; border-radius: 5px; margin-bottom: 15px; }
#countdown { display: flex; justify-content: center; gap: 20px; }
.timer-box { padding: 15px 20px; border-radius: 8px; min-width: 100px; text-align: center; }
.timer-box span:first-child { display: block; font-size: 2.5rem; font-weight: 500; }
.timer-box span:last-child { font-size: 0.9rem; color: #888; }
.event-details { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.event-card { padding: 30px; border-radius: 8px; max-width: 400px; flex-grow: 1; text-align: center; }
.event-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.event-card h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 15px; }
.event-card p { margin-bottom: 10px; }
.gift-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.gift-card { padding: 30px; border-radius: 8px; width: 320px; text-align: center; }
.bank-logo { max-height: 30px; margin-bottom: 15px; }
.gift-card p { margin-bottom: 10px; font-size: 1.1rem; }
.account-number span { font-weight: 500; font-size: 1.2rem; letter-spacing: 1px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease; }
.footer-section p { margin-bottom: 15px; }
.footer-section .date { font-size: 0.9rem; margin-bottom: 0; }