/* =================================================================
   TEMA: GOLDEN ROMANCE (Versi Lengkap & Diperbaiki)
   Palet: #1f1f1f (BG), #C9B47F (Emas), #EAE7DC (Teks)
   ================================================================= */

/* --- 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.6;
    background-color: #1f1f1f; /* Charcoal Black */
    color: #EAE7DC; /* Soft Cream */
}

/* Kunci scroll halaman saat pertama kali dibuka */
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: #C9B47F; /* Warm Gold */
    margin-bottom: 40px;
    text-align: center;
}

/* Garis pembatas (opsional, jika Anda memakainya) */
.section-divider {
    height: 1px;
    width: 80px;
    background-color: #C9B47F;
    opacity: 0.7;
    margin: 0 auto 40px auto;
}

/* --- Hero Section Styling --- */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.guest-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

#guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.scroll-down-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #C9B47F; /* Warm Gold */
    border-radius: 50px;
    color: #C9B47F;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.scroll-down-btn:hover {
    background-color: #C9B47F;
    color: #1f1f1f;
}

/* --- Base Styling for Sections --- */
section {
    padding: 100px 0;
    border-bottom: 1px solid #333;
}

/* =================================================================
   Styling "Meet The Couple" (Versi Foto Estetik)
   [DISESUAIKAN UNTUK GOLDEN ROMANCE]
   ================================================================= */

.profile-section h2 {
    color: #C9B47F; /* Warm Gold */
}
.profile-section .section-divider {
    background-color: #C9B47F; /* Warm Gold */
}

.profile-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: normal;
    text-align: center;
    color: #C9B47F; /* Warm Gold */
    margin-bottom: 20px;
}
.groom-title {
    margin-top: 80px; 
}

.profile-card {
    background-color: #2a2a2a; /* Warna kartu Golden Romance */
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 500px; 
    width: 100%;
    margin: 0 auto; 
    text-align: center;
    padding: 40px 30px;
}

.profile-photo { 
    width: 200px;
    height: 200px; 
    border-radius: 50%;
    border: 3px solid #C9B47F; /* Warm Gold */
    overflow: hidden; 
    margin: 0 auto 25px auto; 
    background-color: #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.profile-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.profile-name { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    color: #C9B47F; /* Warm Gold */
    margin-bottom: 25px;
    font-weight: normal;
}

.profile-parentage {
    text-align: center;
    color: #EAE7DC; /* Soft Cream */
    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: #EAE7DC; /* Soft Cream */
    font-weight: normal;
}
.parent-connector {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #C9B47F; /* Warm Gold */
    margin: 0;
}

/* Hapus styling sisa */
.profile-cards, .profile-heart, .profile-stats { 
    display: none; 
}

/* --- Story Section Styling --- */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 600px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background: #C9B47F; /* Warm Gold */
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: 0px;
    height: 22px;
    width: 22px;
    background: #1f1f1f;
    border: 2px solid #C9B47F; /* Warm Gold */
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.timeline-content img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #C9B47F; /* Warm Gold */
}

/* --- Event Section Styling --- */
.event-intro, .rsvp-intro, .gift-intro, .guestbook-intro {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px auto;
    color: #aaa;
}

/* Kartu Pembungkus Save The Date */
.event-main-wrapper {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 40px 20px;
    text-align: center;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.timer-box {
    background: transparent;
    border: 1px solid #444;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 90px;
}

.timer-box span:first-child {
    display: block;
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
}

.timer-box span:last-child {
    font-size: 0.9rem;
    color: #aaa;
}

.event-details {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.event-card {
    background: none;
    box-shadow: none;
    border: none;
    padding: 10px;
    max-width: 350px;
    flex-grow: 1;
    flex-basis: 300px;
    text-align: center;
}

.event-divider {
    width: 1px;
    background-color: #444;
}

.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;
    color: #C9B47F;
}

.event-card p {
    margin-bottom: 10px;
    color: #EAE7DC;
}

.event-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 0;
    background-color: transparent;
    color: #C9B47F;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid #C9B47F;
    border-radius: 0;
    transition: color 0.3s, border-color 0.3s;
}

.event-btn:hover {
    color: #dfc988;
    border-color: #dfc988;
    background-color: transparent;
}

/* --- Form Styling (RSVP) --- */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: #2a2a2a;
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group > label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: #333;
    color: #EAE7DC;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #C9B47F;
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.radio-group input[type="radio"] {
    margin-right: 12px;
    width: auto;
    flex-shrink: 0;
}
.radio-group label {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #C9B47F;
    color: #1f1f1f;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #dfc988;
}

/* --- Gift Section --- */
.gift-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gift-card {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 8px;
    width: 320px;
    text-align: center;
}
.bank-logo {
    max-height: 30px;
    margin-bottom: 15px;
    filter: invert(90%) sepia(15%) saturate(500%) hue-rotate(355deg) brightness(100%) contrast(90%);
}
.gift-card p {
    margin-bottom: 10px; 
    font-size: 1.1rem;
}
.account-number {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-radius: 5px; 
    padding: 10px 15px; 
    margin-top: 20px;
    background-color: #333;
    border: 1px dashed #555;
}
.account-number span {
    font-weight: 500; 
    font-size: 1.2rem;
}
.account-number button {
    background-color: #C9B47F;
    color: #1f1f1f;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

/* --- Guestbook --- */
.guestbook-container {
    max-width: 700px;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #2a2a2a;
}
.guestbook-card {
    padding: 15px;
    border-bottom: 1px solid #333;
}
.guestbook-card:last-child {
    border-bottom: none;
}
.guestbook-card h3 { 
    color: #C9B47F; 
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.guestbook-card p {
    font-size: 1rem; 
    font-style: italic;
}
/* =================================================================
   [FIX] STYLING GALERI (YANG TADI TERHAPUS)
   ================================================================= */

.gallery-grid {
    display: grid;
    /* Ini akan membuat kolom-kolom yang rapi */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    /* Pastikan linknya berprilaku baik */
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    /* Ini adalah kunci agar foto tidak 'kabur' */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.8);
}

.gallery-item img:hover {
    transform: scale(1.05);
    filter: saturate(1);
}

/* --- Footer Section Styling --- */
.footer-section {
    padding: 60px 0;
    background-color: #111;
    color: #fff;
    text-align: center;
    border-bottom: none;
}
.footer-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 15px;
    color: #C9B47F; /* Warm Gold */
}
.footer-section p { margin-bottom: 15px; }
.footer-section .date { font-size: 0.9rem; margin-bottom: 0; color: #ccc; }

/* =================================================================
   Music Control Button
   [DISESUAIKAN UNTUK GOLDEN ROMANCE]
   ================================================================= */

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #C9B47F; /* Warm Gold */
    color: #1f1f1f; /* Charcoal Black */
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    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);
}

.music-btn.is-playing {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =================================================================
   [FIX] KONDISI CSS UNTUK RASIO HP (TEMA GOLDEN ROMANCE)
   ================================================================= */

/* Aturan ini berlaku untuk layar di bawah 768px (Tablet & HP) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Kurangi padding container */
    }

    /* Kecilkan font judul utama & nama pasangan */
    .hero-content h1 { font-size: 4.5rem; } /* Kecilkan dari 6rem */
    h2 { font-size: 2.2rem; }
    #guest-name { font-size: 1.8rem; }
    .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) {
    /* Kecilkan font lebih jauh */
    .hero-content h1 { font-size: 3.5rem; } /* Kecilkan lagi */
    #guest-name { font-size: 1.5rem; }
    .profile-name { font-size: 1.5rem; }
    h2 { font-size: 2rem; }

    /* Kecilkan padding tombol utama */
    .scroll-down-btn { padding: 10px 25px; }

    /* Perbaikan Countdown Timer agar tidak kaku */
    #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;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Perbaikan pemisah akad & resepsi */
    .event-divider { display: none; }
    .event-card:first-child {
        border-bottom: 1px solid #444;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }
}