@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;600&family=Amiri:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #4a4a4a;
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.subtitle,
.section-title,
.salam {
    font-family: 'Playfair Display', serif;
    color: #3e3e3e;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

/* =========================================
   --- BACKGROUND UTAMA WEBSITE --- 
   ========================================= */
body {
    /* Menggunakan background landscape untuk laptop/PC */
    background-image: url('assets/bg-baru-lands.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Efek Parallax Sederhana: Background diam, konten yang jalan */
    background-attachment: fixed;

    font-family: 'Poppins', sans-serif;
    /* atau font bawaanmu sebelumnya */
    color: #5D4037;
    /* Warna dasar teks */
}

/* KUNCI SATU LAYAR SATU SECTION */
.section-padding {
    min-height: 100vh;
    /* Minimal setinggi layar viewport */
    display: flex;
    /* Flexbox untuk memusatkan konten */
    align-items: center;
    /* Memusatkan secara vertikal */
    padding: 60px 0;
}

.bg-light {
    background-color: #fcf9f5;
}

.container {
    width: 100%;
    /* Memastikan container mengambil ruang flex */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANIMASI SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #cda85c;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background-color: #b08d48;
}
/* =========================================
   --- DESAIN SAMPUL "BUKA UNDANGAN" --- 
   ========================================= */
body.lock-scroll {
    overflow: hidden;
}

/* TAMPILAN LAPTOP / DESKTOP */
.welcome-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    background: url('assets/backrun lanscaoe.jpg') center left/cover no-repeat;
    background-color: #9f9f83;
    z-index: 999999;
    display: flex;

    /* --- MENGGESER SELURUH BLOK KE KANAN LAYAR --- */
    justify-content: flex-end;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

.welcome-cover::before,
.welcome-cover::after {
    display: none;
}

/* --- KONTEN DITARUH DI KANAN --- */
.welcome-content {
    position: relative;
    z-index: 10;
    padding-right: 8%;
    /* Memberi jarak aman dari ujung kanan layar laptop */
    width: 100%;
    max-width: 600px;
    text-align: right;
    /* Membuat tulisan dan tombol rata kanan */
}

/* Mengganti text-shadow neon dengan bayangan gelap tipis agar elegan dan jelas */
.welcome-content h1 {
    font-size: 4rem;
    margin: 5px 0 10px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.welcome-content .subtitle,
.welcome-content .guest-intro {
    color: #f0f0f0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 5px;
}

/* Desain untuk Tanggal Pernikahan */
.welcome-content .wedding-date {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 35px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Desain Kotak Nama Tamu */
.welcome-content .guest-name {
    font-size: 1.5rem;
    padding: 10px 0;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 25px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.welcome-cover.open {
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
}

.scroll-instruction {
    margin-top: 40px;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- MUKADIMAH & AR-RUM --- */
.salam {
    font-size: 1.5rem;
    color: #cda85c;
    margin-bottom: 20px;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    line-height: 2;
    margin: 20px 0;
    color: #2c3e50;
}

.ayat-translation {
    font-style: italic;
    font-size: 0.95rem;
}

.ayat-ref {
    font-weight: bold;
    margin-top: 10px;
}

/* --- MEMPELAI --- */
.section-title {
    font-size: 2.5rem;
    color: #cda85c;
    margin-bottom: 30px;
}

.couple-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.couple-card {
    flex: 1;
    min-width: 280px;
}

.photo-frame {
    width: 220px;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    /* Fokus memotong dari wajah/kepala ke bawah */

    /* Bentuk Kubah (Arch) */
    border-radius: 150px 150px 0px 0px;

    /* --- EFEK BINGKAI ESTETIK --- */
    border: 3px solid #cda85c;
    /* Bingkai garis emas di bagian terluar */
    padding: 5px 5px 0 5px;
    /* Jarak antara bingkai emas dan foto (ruang putih) */
    background-color: #fff;
    /* Warna ruang putih tersebut */

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Bayangan lembut agar bingkai terlihat timbul */
    margin: 0 auto 20px auto;
    display: block;
    
}
.couple-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.parent-text {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.ig-link {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.ig-link:hover {
    color: #cda85c;
}

.couple-and h1 {
    font-size: 4rem;
    color: #cda85c;
}
/* --- SECTION MEMPELAI --- */
#mempelai {
    position: relative;
    background-color: #fcf9f5;
    /* Warna dasar krem bersih */
    overflow: hidden;
    /* Mencegah background bocor keluar area */
}

/* Membuat Layer Khusus untuk Gunungan Masjid (Sebagai Watermark) */
#mempelai::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    max-width: 550px;
    /* BATASI UKURANNYA agar tidak raksasa di laptop */
    height: 80%;
    /* Jangan terlalu tinggi */

    /* PENTING: Ubah ekstensi menjadi .png sesuai Langkah 1 */
    background: url('assets/back masjid.jpg') center/contain no-repeat;

    opacity: 0.15;
    /* KUNCI ELEGAN: Buat sangat pudar seperti watermark (15%) */
    z-index: 1;
    /* Pastikan berada di paling belakang */
}

/* Pastikan Foto dan Teks Mempelai berada di atas watermark */
#mempelai .container {
    position: relative;
    z-index: 2;
    /* Hapus efek kaca transparan yang sebelumnya, kita kembalikan normal */
}


/* =========================================
   --- KOTAK KACA UNTUK KONTEN (AGAR TEKS TERBACA) --- 
   ========================================= */
/* Menerapkan kotak putih transparan ke semua area section (Love Story, Acara, RSVP, dll) */
section {
    background-color: rgba(255, 255, 255, 0.85) !important;
    /* Putih dengan ketebalan 85% */
    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);


    padding: 40px 30px !important;

    margin: 30px auto !important;


    max-width: 850px;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

}


section img.ornamen {
    z-index: 5;
}

/* Khusus Tampilan HP, kecilkan sedikit agar konten tidak tertutup */
@media screen and (max-width: 768px) {
    body {
            /* Ganti dengan background portrait untuk HP */
            background-image: url('assets/bg-baru-port.jpg');
        }

.ornamen-kiri,
    .ornamen-kanan {
        height: auto;
        width: 25vw;
        max-width: 100px;
        top: auto;
        bottom: 0;
        opacity: 0.5;

    }

    /* Geser sedikit keluar layar (minus) agar bagian tengah teks benar-benar bersih */
    .ornamen-kiri {
        left: -15px;
    }

    .ornamen-kanan {
        right: -15px;
    }
}

.hero {
    background: url('assets/backrun depa.jpg') center center/cover no-repeat;
    background-color: transparent;
    /* Hapus warna dasar */
}

/* Sembunyikan trik layer fade di HP */
.hero::before,
.hero::after {
    display: none;
}

/* --- ACARA & MAPS --- */


.event-card h3 {
    margin-bottom: 20px;
}

/* Mengatur paragraf (tanggal, jam, alamat) di dalam kartu */
.event-card p {
    margin-bottom: 15px;
    /* Memberikan jeda antar blok teks (tanggal -> jam -> alamat) */
    line-height: 1.6;
    /* Membuat baris teks yang panjang (seperti alamat) jadi lebih lega dan mudah dibaca */
}

.event-card p:last-child {
    margin-bottom: 0;
}
.event-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 280px;
}

.event-icon {
    font-size: 2.5rem;
    color: #cda85c;
    margin-bottom: 15px;
}

.lokasi {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}

.maps-container {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* --- LOVE STORY TIMELINE --- */
.timeline {
    max-width: 600px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #cda85c;
    text-align: left;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #cda85c;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #cda85c;
}

.timeline-item h4 {
    color: #cda85c;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 0.95rem;
}

/* --- RSVP --- */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 0;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: #cda85c;
}

/* --- FOOTER --- */
footer {
    background: #cda85c;
    color: #eee;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
}

.credit {
    margin-top: 10px;
    color: #eee;
}

/* --- TAMPILAN KOLOM KOMENTAR & UCAPAN --- */
.comments-container {
    max-width: 600px;
    margin: 50px auto 0;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #cda85c;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Membuat list komentar bisa discroll di dalam kotak */
.comments-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom bentuk Scrollbar agar cantik */
.comments-list::-webkit-scrollbar {
    width: 5px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #cda85c;
    border-radius: 5px;
}

.comment-item {
    background: #fcf9f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #f0e6d2;
}

/* Struktur Utama Header Komentar */
.comment-header {
    display: flex;
    justify-content: space-between;
    /* Mendorong info ke kiri, tombol hapus ke kanan */
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Pengelompokan Nama dan Badge */
.comment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    /* <--- INI KUNCI UNTUK MEMBERI JARAK NAMA DAN BADGE */
}

.comment-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* --- Desain Tag/Badge Status --- */
.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    /* Mencegah teks badge turun ke baris baru */
}

/* Desain Tombol Hapus (Admin) */
.btn-delete-comment {
    color: #e74c3c;
    font-size: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.btn-delete-comment:hover {
    color: #c0392b;
    text-decoration: underline;
}
.badge-hadir {
    background-color: #27ae60;
}

/* Warna Hijau */
.badge-absen {
    background-color: #e74c3c;
}

/* Warna Merah */

.comment-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Mencegah Textarea di-resize oleh pengguna */
.rsvp-form textarea {
    resize: none;
}

/* --- STYLE UNTUK PAGINATION KOMENTAR --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 5px 12px;
    border: 1px solid #cda85c;
    background-color: transparent;
    color: #cda85c;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.page-btn:hover {
    background-color: #fcf9f5;
}

.page-btn.active {
    background-color: #cda85c;
    color: white;
}

/* =========================================
   --- FLOATING MUSIC BUTTON --- 
   ========================================= */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #cda85c;
    /* Warna emas senada tema */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    /* Pastikan selalu berada di paling depan */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: #b08d48;
}

/* Animasi Putar Piringan Hitam/CD saat Musik Menyala */
.spin-icon {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Penyesuaian tombol di HP (agak dikecilkan & digeser) */
@media screen and (max-width: 768px) {
    .music-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

        .welcome-cover {
            /* Di HP tetap pakai background potrait yang lama agar pas 1 layar */
            background: url('assets/backrun depa.jpg') center center/cover no-repeat;
            justify-content: center;
            /* Kembali ke tengah layar */
        }
    
        .welcome-content {
            text-align: center;
            /* Tulisan kembali rata tengah di HP */
            padding-left: 20px;
            padding-right: 20px;
        }
    
        .welcome-content h1 {
            font-size: 3rem;
        
        }
    
        .welcome-content .guest-name {
            padding: 10px 20px;
            
        }
}

/* =========================================
   --- COUNTDOWN TIMER --- 
   ========================================= */
.countdown-wrapper {
    text-align: center;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.7);

    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);


}

.countdown-title {
    color: #5D4037;
    /* Cokelat tema */
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Jarak antar kotak */
}

.time-box {
    background-color: #9f9f83;
    /* Hijau sage tema */
    color: white;
    min-width: 75px;
    padding: 15px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(159, 159, 131, 0.4);
    /* Glow tipis hijau */
}

.time-box span {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.time-box p {
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsif di layar HP */
@media screen and (max-width: 768px) {
    .countdown {
        gap: 10px;
    }

    .time-box {
        min-width: 65px;
        padding: 10px 5px;
    }

    .time-box span {
        font-size: 1.6rem;
    }

    .time-box p {
        font-size: 0.75rem;
    }
}

