/* --- Tambahkan kode ini di bagian paling atas style.css --- */
html {
    scroll-behavior: smooth; /* Membuat efek scroll menjadi halus */
}

/* --- Tambahkan kode ini di bagian bawah style.css --- */
.view-more-btn {
    display: inline-block;
    margin-top: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite; /* Memberikan efek animasi naik-turun */
    transition: opacity 0.3s ease;
}

.view-more-btn:hover {
    opacity: 0.7; /* Sedikit memudar saat disentuh */
}

.arrow-down {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
}

/* Kunci Animasi Bergerak Naik-Turun */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}
/* Reset CSS */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: #333; background-color: #fcfcfc; line-height: 1.6; }
h1, h2, h3 { font-family: 'Great Vibes', cursive; font-weight: normal; }
.container { max-width: 800px; margin: 0 auto; padding: 40px 20px; text-align: center; }

/* 1. Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Background default jika gambar belum di set */
    background-color: #d1c4e9; 
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex; justify-content: center; align-items: center; text-align: center; color: white;
}
.hero-content h1 { font-size: 4rem; margin: 10px 0; }
.hero-content p { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; }

/* 2. Countdown Section */
.countdown-section { background-color: #f8f4f1; padding: 50px 20px; text-align: center; }
.countdown-section h2 { font-size: 2.5rem; margin-bottom: 20px; color: #8d6e63; }
.countdown-container { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.time-box {
    background: white; padding: 20px; border-radius: 10px; min-width: 80px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.time-box span { font-size: 2rem; font-weight: 600; color: #5d4037; }

/* --- Tambahan CSS untuk Galeri Foto --- */

.gallery-section {
    background-color: #ffffff; /* Latar belakang putih */
    text-align: center;
}

.gallery-section p {
    color: #666;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    /* Membuat kolom otomatis menyesuaikan layar. Minimal lebar 200px */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; /* Jarak antar foto */
}

.gallery-item {
    overflow: hidden; /* Sangat penting: Mencegah gambar keluar dari kotak saat di-zoom */
    border-radius: 10px; /* Membuat sudut kotak sedikit melengkung */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Efek bayangan lembut */
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan foto terpotong proporsional (tidak gepeng) */
    aspect-ratio: 1 / 1; /* Memaksa foto menjadi bentuk persegi sama sisi (1:1) */
    display: block;
    transition: transform 0.4s ease; /* Kecepatan dan kehalusan animasi zoom */
}

/* Efek saat kursor mouse diarahkan ke gambar */
.gallery-item:hover img {
    transform: scale(1.1); /* Memperbesar gambar sebanyak 10% */
}
/* 3. Global Section Styling (Story, Address, Gift) */
.story-section, .gift-section { background-color: white; }
.address-section, .rsvp-section { background-color: #f8f4f1; }
h2 { font-size: 2.5rem; color: #8d6e63; margin-bottom: 20px; }

/* 4. Button & Bank Card */
.btn {
    display: inline-block; padding: 12px 25px; margin-top: 15px;
    background-color: #8d6e63; color: white; text-decoration: none; border-radius: 5px;
}
.bank-card {
    background: #fff; padding: 20px; margin: 20px auto; border-radius: 10px;
    max-width: 300px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #eee;
}

/* 5. Form RSVP */
.rsvp-form { text-align: left; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit;
}
.btn-submit {
    width: 100%; padding: 15px; background-color: #8d6e63; color: white;
    border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer;
}
.btn-submit:hover { background-color: #795548; }

footer { background: #5d4037; color: white; text-align: center; padding: 20px; }

/* Responsive */
@media (max-width: 600px) {
    .hero-content h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
}

/* --- CSS untuk Profil Mempelai --- */
.couple-section {
    background-color: #fcfcfc;
    padding: 50px 20px;
}

.couple-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.couple-profile {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

/* Membulatkan Foto Profil */
.couple-img img {
    width: 180px;
    height: 180px;
    object-fit: cover; /* Mencegah foto gepeng */
    border-radius: 50%; /* Membuat kotak menjadi lingkaran sempurna */
    border: 5px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.couple-profile h3 {
    font-size: 2.5rem;
    color: #8d6e63;
    margin-bottom: 5px;
}

.couple-profile p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Teks '&' di tengah */
.couple-and h1 {
    font-size: 4rem;
    color: #d1c4e9; /* Warna ungu pudar / aksen */
    margin: 0 10px;
}

/* Tombol Instagram */
.btn-ig {
    display: inline-block;
    /* Warna gradasi khas Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-ig:hover {
    transform: scale(1.05); /* Membesar sedikit saat disentuh */
}

/* Responsif untuk HP (Atas - Bawah) */
@media (max-width: 768px) {
    .couple-row {
        flex-direction: column;
    }
    .couple-and h1 {
        margin: 20px 0;
    }
}
/* --- Tambahan CSS untuk Our Story (Zig-Zag Layout) --- */

.story-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 80px;
    text-align: left;
}

/* Membalik urutan untuk foto di kanan */
.story-row.reverse {
    flex-direction: row-reverse;
}

.story-image {
    flex: 1; /* Membuat porsi lebar foto seimbang dengan teks */
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Membuat sudut foto membulat */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Memberi efek bayangan */
}

.story-text {
    flex: 1; /* Membuat porsi lebar teks seimbang dengan foto */
}

.story-text h3 {
    font-size: 2rem;
    color: #8d6e63;
    margin-bottom: 15px;
    font-family: 'Great Vibes', cursive; /* Menyesuaikan font judul */
}

.story-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* Responsif untuk HP (Di HP, foto selalu di atas teks) */
@media (max-width: 768px) {
    .story-row, .story-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
/* --- Tambahan CSS untuk Tombol Pengingat --- */

.calendar-btn-container {
    margin-top: 30px;
}

.btn-calendar {
    background-color: #5d4037; /* Warna cokelat lebih gelap agar kontras */
    border-radius: 30px; /* Bentuk tombol lebih membulat */
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-calendar:hover {
    background-color: #3e2723; /* Efek gelap saat tombol disentuh/dihove */
    color: white;
}
/* --- Tambahan CSS untuk Tombol Salin Rekening --- */

.btn-copy {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 15px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-copy:hover {
    background-color: #e0e0e0;
}

/* Efek saat tombol berhasil ditekan (menjadi hijau) */
.btn-copy.tersalin {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}
/* --- CSS untuk Sampul Awal Undangan --- */

/* Kunci scroll body saat sampul belum dibuka */
body.terkunci {
    overflow: hidden;
}

.sampul-awal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff; /* Tambahkan ini agar tidak transparan */
    background-size: cover;
    background-position: center;
    z-index: 99999; /* Pastikan angka ini paling tinggi */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease-in-out;
}

.sampul-content {
    background: rgba(255, 255, 255, 0.8); /* Beri latar putih tipis agar teks terbaca */
    padding: 30px;
    border-radius: 20px;
    color: #333;
}

.btn-buka {
    background-color: #8d6e63;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease;
    animation: bounce 2s infinite; /* Efek tombol naik-turun */
}

.btn-buka:hover {
    background-color: #5d4037;
}

/* Efek saat sampul dibuka (hilang ke atas) */
.sampul-awal.terbuka {
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none; /* Agar tidak menghalangi klik setelah hilang */
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .sampul-content h1 { font-size: 3.5rem; }
}
/* --- CSS untuk Detail Acara Akad & Resepsi --- */
.event-section {
    background-color: #f8f4f1; /* Latar belakang krem muda */
    padding: 60px 20px;
}

.event-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.event-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex: 1;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid #8d6e63; /* Garis hiasan di atas kartu */
    position: relative;
}



.event-card h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #8d6e63;
    margin-bottom: 10px;
}

.event-date {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.event-time {
    color: #666;
    margin-bottom: 20px;
}

.event-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.event-location-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #8d6e63;
    margin-bottom: 5px;
}

.event-address {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
}

/* Tombol Google Maps */
.btn-maps {
    display: inline-block;
    margin-top: 25px;
    background-color: #8d6e63;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-maps:hover {
    background-color: #5d4037;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .event-card {
        max-width: 100%;
    }
}
/* --- CSS untuk Bagian Penutup --- */
.closing-section {
    background-color: #ffffff;
    padding: 80px 20px 40px;
    text-align: center;
}

.closing-box {
    max-width: 700px;
    margin: 0 auto;
}

.closing-box p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.salam-penutup {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #8d6e63;
    margin: 30px 0;
}

.closing-names {
    margin-top: 40px;
}

.closing-names h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #8d6e63;
    margin: 10px 0;
}

.closing-names p {
    margin-bottom: 5px;
    font-weight: 500;
}

/* Footer Copyright */
.footer-copyright {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e4dddc ;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: #8d6e63;
}

/* Responsif Mobile */
@media (max-width: 600px) {
    .closing-names h2 { font-size: 2.8rem; }
    .salam-penutup { font-size: 1.8rem; }
}