:root {
    --bg-color: #FAFAFA;
    --primary: #D4BFA5; /* Warm Sand */
    --primary-dark: #A68A64;
    --accent: #B05B3A; /* Terracotta */
    --text-dark: #3E3E3E;
    --text-light: #7A7A7A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-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: var(--bg-color);
    text-align: center;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}
.cover-envelope::before {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
}
.cover-envelope::after {
    content: "";
    position: absolute;
    bottom: -50px; left: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
}

.cover-content {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    width: 85%;
    box-shadow: 0 15px 35px rgba(166, 138, 100, 0.15);
    z-index: 10;
    position: relative;
    border-top: 5px solid var(--primary-dark);
}

.subtitle-cover { font-size: 13px; letter-spacing: 2px; color: var(--text-light); text-transform: uppercase; font-weight: 600; }
.title-cover { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--accent); margin: 15px 0 30px 0; font-weight: 700; line-height: 1.2; }

.guest-box { margin-bottom: 35px; border-top: 1px dashed var(--primary); padding-top: 20px;}
.guest-box p { font-size: 11px; color: var(--text-light); }
.guest-box h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--text-dark); margin-top: 8px; }

.btn-buka {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(166, 138, 100, 0.4);
    transition: 0.3s;
    width: 100%;
}
.btn-buka:active { transform: scale(0.95); }
.btn-buka i { margin-right: 8px; }

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

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

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

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

.wed-text { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 15px; }
.couple-name { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.4); line-height: 1.1; }
.date-text { font-size: 14px; letter-spacing: 1px; margin-top: 20px; font-weight: 300; }

/* 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: 60px 25px; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--accent); margin-bottom: 30px; font-weight: 700; }

/* Quotes */
.quotes-section { background-color: white; padding: 50px 30px; border-bottom: 1px solid #EEE; }
.quote-text { font-family: 'Playfair Display', serif; font-size: 16px; line-height: 1.8; color: var(--text-dark); font-style: italic; margin-bottom: 25px; }
.quote-surah { font-size: 13px; color: var(--text-light); line-height: 1.6;}

/* Profile */
.text-pengantar { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 30px; }
.parents-box h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--primary-dark); margin-top: 10px; }

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

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

/* Gift */
.gift-text { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 30px; }
.bank-card { background: white; border: 1px solid #EEE; padding: 30px; border-radius: 15px; margin-bottom: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.03); }
.bank-icon { font-size: 28px; color: var(--primary-dark); margin-bottom: 15px; }
.bank-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 8px; color: var(--text-dark);}
.rekening { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.rek-name { font-size: 13px; color: var(--text-light); margin-bottom: 25px; }
.btn-copy { background: var(--bg-color); border: none; padding: 10px 20px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-dark); transition: 0.2s;}
.btn-copy:active { background: #E0E0E0; }

/* RSVP */
.rsvp-section { background-color: var(--bg-color); }
.rsvp-text { font-size: 13px; margin-bottom: 30px; color: var(--text-light); line-height: 1.6; }
.form-rsvp { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.form-rsvp input, .form-rsvp select, .form-rsvp textarea { width: 100%; padding: 15px; border-radius: 8px; border: 1px solid #DDD; font-family: 'Inter', sans-serif; font-size: 13px; outline: none; background: white;}
.form-rsvp input:focus, .form-rsvp select:focus, .form-rsvp textarea:focus { border-color: var(--primary-dark); }
.btn-kirim { background: var(--accent); color: white; border: none; padding: 16px; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 600; margin-top: 10px; }
.btn-kirim i { margin-right: 8px; }

/* Footer */
footer { text-align: center; padding: 50px 20px; background: white; border-top: 1px solid #EEE;}
footer i { font-size: 24px; color: var(--primary-dark); margin-bottom: 15px; }
footer p { font-size: 12px; color: var(--text-light); }
footer h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--accent); margin: 15px 0; font-weight: 700; }
footer .cr { font-size: 10px; margin-top: 30px; }
