* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000; 
    overflow: hidden; 
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* PC: Konten di kanan */
    align-items: center;
}

/* --- Layout Responsif PC & Tablet --- */
.desktop-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('BgPc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.mobile-wrapper {
    width: 100%;
    max-width: 414px; /* Ukuran standar smartphone */
    height: 100vh;
    position: relative;
    z-index: 10;
    background-color: #000;
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
}

@media screen and (max-width: 1024px) {
    body, html {
        justify-content: center; /* Tablet: Konten di tengah */
    }
    .mobile-wrapper {
        height: 95vh;
        border-radius: 20px;
        box-shadow: 0 0 40px rgba(0,0,0,0.8);
    }
}

@media screen and (max-width: 480px) {
    .desktop-bg {
        display: none; /* HP: Sembunyikan background PC */
    }
    .mobile-wrapper {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* --- Halaman Cover --- */
#cover-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Menggunakan persentase dari .mobile-wrapper */
    height: 100vh;
    background-image: url('cv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pisahkan teks di atas dan tombol di bawah */
    align-items: center; 
    padding-top: 10vh; /* Jarak teks dari atas layar */
    padding-bottom: 10vh; /* Jarak tombol dari bawah layar */
    transition: transform 1s ease-in-out, opacity 1s ease-in-out, visibility 1s ease-in-out;
    opacity: 0;
    visibility: hidden; /* Sembunyikan di awal */
}

/* --- Layout Teks Cover --- */
.cover-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ebdac4; /* Warna emas mirip seperti di gambar */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* Bayangan agar terbaca jelas */
}

.the-wedding-of {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 10px; /* Kurangi sedikit margin bawahnya */
}

/* Container baru agar nama sejajar */
.names-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Jarak antara nama dan simbol & */
}

.groom-name, .bride-name {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 2px;
}

.ampersand {
    font-family: 'Pinyon Script', cursive;
    font-size: 3rem;
    font-weight: normal;
    margin: 0; /* Hapus margin negatif karena sekarang sudah sejajar */
    color: #f3dca1; /* Sedikit lebih terang dari teks lainnya */
}

/* --- Tombol --- */
#open-btn {
    background-color: rgba(150, 145, 131, 0.658);
    color: #f1d48b;
    border: 2px solid #f8f8f8;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#open-btn:hover {
    background-color: #e4c27a8a;
    color: #000;
}

/* --- Container Animasi Lottie --- */
#lottie-animation {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1; 
}

#lottie-animation svg, #lottie-animation canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* --- Konten Utama Undangan --- */
#main-content {
    visibility: hidden; /* Sembunyikan tanpa merusak ukuran canvas */
    opacity: 0;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transition: opacity 0.5s ease;
    overflow-y: auto; /* Mengaktifkan scroll kebawah untuk membaca isi undangan */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.section {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#section-2-animation svg, #section-2-animation canvas,
#section-3-animation svg, #section-3-animation canvas,
#section-4-animation svg, #section-4-animation canvas,
#section-5-animation svg, #section-5-animation canvas,
#section-6-animation svg, #section-6-animation canvas,
#section-7-animation svg, #section-7-animation canvas,
#section-8-animation svg, #section-8-animation canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    z-index: 1; /* Di bawah elemen lain yang ada di dalam section */
}

/* --- Countdown Timer --- */
#countdown-container {
    position: absolute;
    bottom: 13%; /* Agak ke bawah agar ada ruang untuk tombol */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    max-width: 250px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Menghapus gaya kotak transparan sebelumnya */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
    flex: 1;
    gap: 8px; /* Jarak antara angka dan teks bawah */
    margin: 0 2px;
}

/* Kotak untuk angka (Flip Box) */
.flip-box {
    background: rgba(255, 255, 255, 0.4); /* Mengubah warna menjadi kaca putih transparan */
    border-radius: 8px;
    width: 100%;
    max-width: 45px; /* Menyesuaikan agar kotak agak kotak/persegi panjang vertikal */
    height: 55px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Bayangan lebih lembut */
    border: 1px solid rgba(255, 255, 255, 0.7); /* Pinggiran kaca */
    backdrop-filter: blur(8px); /* Menambahkan efek blur */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Garis horizontal pembatas (efek belah tengah) */
.flip-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8); /* Garis pembatas warna putih */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transform: translateY(-50%);
}

.flip-box span {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    color: #4a3b32; /* Mengubah warna teks menjadi kecoklatan */
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Mengubah bayangan menjadi terang */
}

.countdown-item p {
    font-size: 0.6rem;
    color: #000000f3; /* Warna emas/oranye seperti di gambar */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 0;
}

/* --- Tombol Peta --- */
#map-btn {
    position: absolute;
    bottom: 57%; /* Berada di bawah countdown */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(240, 232, 207, 0.7);
    color: #4a3b32;
    border: 1px solid #e4c27a;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease, opacity 1s ease-in-out;
    opacity: 0; /* Mulai dari tidak terlihat */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#map-btn:hover, #map-btn-2:hover {
    background-color: #e4c27a;
    color: #000;
}

/* --- Tombol Peta 2 --- */
#map-btn-2 {
    position: absolute;
    bottom: 27%; /* Sesuaikan posisi untuk peta kedua */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(240, 232, 207, 0.7);
    color: #4a3b32;
    border: 1px solid #e4c27a;
    padding: 5px 10px; /* Sama persis dengan tombol 1 */
    font-size: 0.8rem; /* Sama persis dengan tombol 1 */
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease, opacity 1s ease-in-out;
    opacity: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- RSVP Form (Section 7) --- */
#rsvp-container {
    position: absolute;
    bottom: 20%; /* Letaknya di bagian tengah-bawah Section 7 */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 350px;
    z-index: 10;
    padding: 20px 25px;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.rsvp-title {
    font-family: 'Cinzel', serif;
    color: #4a3b32;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

#rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#rsvp-form input,
#rsvp-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e4c27a;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    color: #4a3b32;
    font-size: 0.9rem;
    outline: none;
}

#rsvp-form input::placeholder {
    color: #8c7b70;
}

#rsvp-submit {
    background-color: #e4c27a;
    color: #000;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

#rsvp-submit:hover {
    background-color: #d4a373;
}
/* --- Daftar RSVP (Scrollable List) --- */
#rsvp-list-container {
    width: 100%;
}

#rsvp-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Membatasi tinggi agar hanya muat sekitar 3 orang */
    max-height: 140px; 
    overflow-y: auto; /* Munculkan scrollbar jika lebih dari 3 */
    padding-right: 5px; /* Jarak untuk scrollbar */
}

/* Kustomisasi Scrollbar List RSVP */
#rsvp-list::-webkit-scrollbar {
    width: 5px;
}
#rsvp-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
#rsvp-list::-webkit-scrollbar-thumb {
    background: #e4c27a;
    border-radius: 10px;
}

.rsvp-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    color: #4a3b32;
    font-size: 0.9rem;
    border: 1px solid rgba(228, 194, 122, 0.5);
}

.rsvp-item strong {
    font-weight: 600;
}

.badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.hadir {
    background-color: #d4edda;
    color: #155724;
}

.badge.tidak-hadir {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- Wedding Gift (Section 8) --- */
#gift-container {
    position: absolute;
    top: 50%; /* Digeser ke atas, sebelumnya 50% */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 380px;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gift-intro {
    text-align: center;
    margin-bottom: 20px;
    /* Background kaca dihapus sesuai referensi gambar */
}

.gift-title {
    font-family: 'Cinzel', serif;
    color: #f7d05c; /* Emas cerah */
    font-size: 1.8rem; 
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.gift-intro p {
    font-family: 'Inter', sans-serif; 
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Desain Kartu ATM */
.atm-card {
    background: linear-gradient(135deg, #f5e4b3, #e3c582); /* Gradasi krem dan emas terang */
    border-radius: 16px;
    padding: 20px;
    color: #3a2e1d; /* Teks cokelat gelap agar kontras di atas kartu terang */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    font-family: 'Inter', sans-serif; 
}

/* Pola cahaya tipis dihilangkan agar desain flat seperti referensi */
.atm-card::before {
    display: none;
}

.card-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.bank-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #2e2312; /* Cokelat tua untuk kontras */
    font-style: italic;
    text-shadow: none;
}

.card-chip {
    margin-bottom: 25px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-owner {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.card-number {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.copy-btn {
    background-color: #ffffff;
    color: #3a2e1d;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    background-color: #f5e4b3;
}

/* --- Alamat Kado Fisik --- */
.physical-gift {
    background: rgba(255, 255, 255, 0.7); /* Kaca lebih putih/terang */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 15px;
    margin-top: 15px;
    color: #3a2e1d; /* Teks gelap agar mudah dibaca di atas kaca terang */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gift-icon {
    margin-bottom: 5px;
    color: #d4af37; /* Ikon kado berwarna emas terang */
}

.address-info {
    text-align: center;
    margin-bottom: 12px;
}

.address-title {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.address-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

.copy-address-btn {
    width: auto;
    align-self: center;
    background-color: #d4af37; /* Emas cerah */
    color: #ffffff;
    border: none;
}

.copy-address-btn:hover {
    background-color: #c7a153;
    color: #ffffff;
}

/* --- Perbaikan Seluruh Ikon SVG di dalam Wedding Gift --- */
/* (Menambahkan ID agar prioritas CSS ini menang melawan Lottie) */
#section-8-animation #gift-container svg {
    position: static !important;
    object-fit: initial !important;
    z-index: 2 !important;
}

#section-8-animation .card-chip svg {
    width: 45px !important;
    height: 35px !important;
}

#section-8-animation .copy-btn svg {
    width: 14px !important;
    height: 14px !important;
    margin-right: 4px;
}

#section-8-animation .gift-icon svg {
    width: 32px !important;
    height: 32px !important;
}

/* --- Section 9: Ucapan Terima Kasih & Footer --- */
.half-section {
    height: 50vh !important;
    background: linear-gradient(to bottom, #fdfbf7 0%, #f1d79daf); /* Nuansa krem ke emas terang yang jauh lebih cerah */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #3a2e1d; /* Teks berwarna cokelat elegan */
    z-index: 5;
}

.thank-you-container {
    text-align: center;
    padding: 0 30px;
    margin-bottom: 20px;
}

.thank-you-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-style: italic;
    color: #4a3b22;
}

.thank-you-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #c7a153; /* Emas tua */
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.thank-you-names {
    font-family: 'Pinyon Script', cursive; /* Kembali gunakan latin script agar manis */
    font-size: 2.5rem;
    color: #3a2e1d; /* Cokelat tua elegan */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.thank-you-names .ampersand {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #c7a153;
}

.wedding-footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.4); /* Kaca terang untuk footer */
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #555555;
    position: absolute;
    bottom: 0;
    left: 0;
}

.wedding-footer p {
    margin: 3px 0;
}
