/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Variabel Warna & Font */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --color-bg: #fdfaf6;
    --color-text: #5c4033;
    --color-heading: #4a3728;
    --color-accent: #a87b62;
}

/* Reset & Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    text-align: center;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 300;
}

section, header, footer {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ornament {
    width: 150px;
    margin: 20px 0;
}
.ornament.flip {
    transform: scaleX(-1);
}

/* 1. Cover */
.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('images/cover-bg.jpg') no-repeat center center/cover; /* Ganti path gambar cover */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.cover-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    border-radius: 10px;
}

.cover h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cover h2 {
    font-size: 1.5rem;
    color: white;
    font-weight: 400;
    margin-bottom: 2rem;
}

#open-invitation {
    padding: 12px 25px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#open-invitation:hover {
    background-color: #8c624d;
}

/* Sembunyikan konten utama */
#main-content {
    display: none;
    overflow-x: hidden; /* Mencegah scroll horizontal karena AOS */
}

/* 2. Hero Section */
.hero {
    min-height: 100vh;
    background: url('images/cover-bg.jpg') no-repeat center center/cover; /* Gambar yang sama atau berbeda */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 3rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
}

#countdown {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.timer-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.timer-box span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.timer-box span:last-child {
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
}

/* 3. Pembukaan */
.opening h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 4. Detail Mempelai */
.bride-groom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile {
    flex: 1;
    min-width: 250px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-accent);
    margin-bottom: 1rem;
}

.profile h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.ampersand {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
}

/* 5. Detail Acara */
.event-details h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.event-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.event-card {
    background: #fff;
    border: 1px solid #e0d5c8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
}

.event-card h3 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.event-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-event {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-heading);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-event:hover {
    background-color: var(--color-accent);
}

/* 6. Galeri Foto */
.gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* 7. Hadiah Pernikahan */
.wedding-gift h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 8. RSVP */
.rsvp h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#rsvp-form {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
}

#rsvp-form input, #rsvp-form textarea, #rsvp-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
}

#rsvp-form button {
    width: 100%;
    font-size: 1.1rem;
}

.wishes-list {
    margin-top: 40px;
    text-align: left;
}

.wish-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 5px solid var(--color-accent);
}

.wish-item h4 {
    color: var(--color-heading);
}

.wish-item span {
    font-size: 0.8rem;
    background: var(--color-accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

/* 9. Penutup */
.closing {
    background: var(--color-heading);
    color: #fdfaf6;
}

.closing h2, .closing h3 {
    color: #fff;
}

.closing h2 { font-size: 2rem; }
.closing h3 { font-size: 1.5rem; font-weight: 400; }

/* Tombol Musik */
.music-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none; /* Awalnya disembunyikan */
}
.music-toggle-btn.playing .fa-volume-mute { display: none; }
.music-toggle-btn.playing .fa-volume-up { display: block; }
.music-toggle-btn .fa-volume-up { display: none; }


/* Modal Hadiah */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: var(--color-bg);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.bank-account {
    border: 1px dashed var(--color-accent);
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.copy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f4f4;
    padding: 5px 5px 5px 15px;
    border-radius: 5px;
    margin: 5px 0;
}

.copy-container p {
    margin: 0;
}

.btn-copy {
    padding: 6px 12px;
    font-size: 0.8rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-copy:hover {
    background-color: var(--color-heading);
}
/* Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .cover h1 { font-size: 2rem; }
    .profile { margin-bottom: 2rem; }
    .ampersand { display: none; }
    .event-container { flex-direction: column; }
    .modal-content { margin: 25% auto; }
}