:root {
    --bg-color: #F9F6F0; /* Cream / Bone White */
    --primary: #8A9A86; /* Sage Green */
    --primary-dark: #647361;
    --accent: #CBA135; /* Gold */
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #E0E0E0;
    display: flex;
    justify-content: center;
}

.app-container, .cover-envelope {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
    position: relative;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: none; /* Sembunyi sebelum cover dibuka */
}

/* ================== COVER ENVELOPE ================== */
.cover-envelope {
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(249, 246, 240, 0.9), rgba(249, 246, 240, 0.9)), url('images/hero.jpg') center/cover no-repeat;
    text-align: center;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.cover-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 20px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    width: 85%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.subtitle-cover { font-size: 14px; letter-spacing: 3px; color: var(--text-light); text-transform: uppercase; }
.title-cover { font-family: 'Great Vibes', cursive; font-size: 46px; color: var(--primary-dark); margin: 15px 0; font-weight: normal; }
.date-cover { font-size: 14px; color: var(--text-dark); margin-bottom: 30px; font-weight: bold; }

.guest-box { margin-bottom: 25px; }
.guest-box p { font-size: 12px; color: var(--text-light); }
.guest-box h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--text-dark); margin: 8px 0; }
.guest-box .mohon-maaf { font-size: 10px; font-style: italic; margin-top: 5px; }

.btn-buka {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 154, 134, 0.4);
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
}
.btn-buka:active { transform: scale(0.95); }
.btn-buka i { margin-right: 8px; }

.cover-envelope.open {
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
}

/* ================== FLOATING MUSIC ================== */
.floating-music {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(203, 161, 53, 0.5);
    z-index: 100;
    cursor: pointer;
    font-size: 18px;
    display: none; /* Sembunyi sebelum cover dibuka */
}
.fa-spin { animation: fa-spin 3s infinite linear; }
.paused { animation-play-state: paused !important; }

/* ================== MAIN CONTENT ================== */
.hero {
    position: relative;
    height: 100vh;
    max-height: 800px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.wed-text { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; }
.couple-name { font-family: 'Great Vibes', cursive; font-size: 54px; font-weight: normal; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.date-text { font-size: 16px; letter-spacing: 2px; margin-top: 15px; font-weight: bold; }

/* REVEAL ANIMATION (AOS) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
section { padding: 50px 25px; text-align: center; }
.section-title { font-family: 'Great Vibes', cursive; font-size: 38px; color: var(--primary-dark); margin-bottom: 30px; font-weight: normal; }

/* Quotes */
.quotes-section { background-color: white; padding: 40px 30px; }
.quote-icon { font-size: 30px; color: var(--accent); margin-bottom: 15px; opacity: 0.5; }
.quote-text { font-size: 13px; line-height: 1.8; color: var(--text-light); font-style: italic; margin-bottom: 15px; }
.quote-surah { font-size: 12px; font-weight: bold; color: var(--text-dark); }

/* Profile */
.couple-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.profile-box h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--text-dark); margin-bottom: 8px; }
.profile-box p { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.ig-link { font-size: 12px; color: var(--primary-dark); text-decoration: none; font-weight: bold; }
.and-symbol { font-family: 'Great Vibes', cursive; font-size: 40px; color: var(--accent); margin: 25px 0; }

/* Event */
.event-section { background-color: var(--primary); color: white; }
.event-section .section-title { color: white; }
.event-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); padding: 30px 20px; border-radius: 12px; margin-bottom: 20px; }
.event-icon { font-size: 30px; color: var(--accent); margin-bottom: 15px; }
.event-card h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 15px; }
.event-date { font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.event-time { font-size: 13px; margin-bottom: 15px; }
.event-place { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.btn-map { display: inline-block; background: white; color: var(--primary-dark); padding: 10px 20px; border-radius: 30px; text-decoration: none; font-size: 12px; font-weight: bold; }

/* Countdown */
.countdown-box { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.cd-item { background: white; width: 65px; height: 75px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #eee; }
.cd-item h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--primary-dark); }
.cd-item p { font-size: 10px; color: var(--text-light); text-transform: uppercase; margin-top: 5px; }

/* Gallery */
.gallery-section { background-color: white; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.gallery-grid img:first-child { grid-column: span 2; height: 220px; }

/* Gift */
.gift-text { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 25px; }
.bank-card { background: white; border: 1px solid var(--accent); padding: 25px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.bank-icon { font-size: 24px; color: var(--primary); margin-bottom: 15px; }
.bank-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 5px; }
.rekening { font-size: 20px; font-weight: bold; color: var(--text-dark); letter-spacing: 2px; margin-bottom: 5px; }
.rek-name { font-size: 12px; color: var(--text-light); margin-bottom: 20px; }
.btn-copy { background: var(--bg-color); border: 1px solid #ccc; padding: 8px 15px; border-radius: 20px; font-size: 12px; cursor: pointer; color: var(--text-dark); }

/* RSVP */
.rsvp-section { background-color: var(--primary-dark); color: white; }
.rsvp-section .section-title { color: var(--accent); }
.rsvp-text { font-size: 13px; margin-bottom: 25px; opacity: 0.9; line-height: 1.5; }
.form-rsvp { display: flex; flex-direction: column; gap: 15px; }
.form-rsvp input, .form-rsvp select, .form-rsvp textarea { width: 100%; padding: 12px 15px; border-radius: 8px; border: none; font-family: 'Lora', serif; font-size: 13px; outline: none; }
.btn-kirim { background: var(--accent); color: white; border: none; padding: 15px; border-radius: 8px; font-family: 'Playfair Display', serif; font-size: 16px; cursor: pointer; font-weight: bold; }
.btn-kirim i { margin-right: 8px; }

/* Footer */
footer { text-align: center; padding: 40px 20px; background: white; }
footer p { font-size: 12px; color: var(--text-light); }
footer h2 { font-family: 'Great Vibes', cursive; font-size: 32px; color: var(--primary-dark); margin: 15px 0; font-weight: normal; }
footer .cr { font-size: 10px; margin-top: 30px; }

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 30px;
    animation: bounce 2s infinite;
    z-index: 50;
    text-shadow: 0px 3px 15px rgba(0, 0, 0, 0.9), 0px 0px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-down p {
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}
