/* --- 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; }
}
/* --- Tambahan CSS untuk Our Story (Zig-Zag Layout) --- */

.story-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    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;
}