:root {
    --primary: #C5A059; /* Gold */
    --bg-paper: #FDFBF7; /* Cream Paper */
    --text-dark: #3E2723; /* Cokelat Tua */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: #222; 
    font-family: var(--font-sans);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; 
}

/* Container HP */
.container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: var(--bg-paper);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* --- LAYER 1: TEXTURE KERTAS --- */
.paper-texture {
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

/* --- LAYER 2: ORNAMEN --- */
.ornament-songket {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px; 
    background-image: url('songket.png');
    background-size: contain; 
    background-repeat: repeat-x; 
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
}

.ornament-bunga {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 220px; 
    background-image: url('bunga.png');
    background-size: cover;
    background-position: center bottom;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* --- LAYER 3: KONTEN --- */

/* Cover Opening */
#opening-cover {
    position: absolute;
    inset: 0;
    background-image: url("cover.jpg"); 
    background-size: cover;
    background-position: center bottom;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 80px;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    background-color: var(--bg-paper);
}

#opening-cover.open {
    transform: translateY(-100%);
}

.title-main {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: #3E2723;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.8);
    margin: 10px 0;
    line-height: 1;
}

.guest-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid rgba(62, 39, 35, 0.2);
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-buka {
    margin-top: 20px;
    background: #5D4037;
    color: white;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* STYLING UMUM HALAMAN */
.section-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 110px 20px 140px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.5s ease;
    z-index: 10;
    overflow-y: auto; 
}
.section-content::-webkit-scrollbar { width: 0px; }

.section-content.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* BACKGROUND HALAMAN */
#home {
    background-image: url("cover.jpg");
    background-size: cover;
    background-position: center bottom;
    padding-top: 100px; 
    z-index: 15; 
}

#quote, #couple, #gallery, #gift, #rsvp, #thanks {
    background: transparent; 
}

/* Kartu Kaca Standard */
.card-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(197, 160, 89, 0.3); 
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

/* --- STYLE QUOTES --- */
.quote-img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 4px solid var(--primary); padding: 4px; background: white; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- STYLE COUPLE --- */
.couple-block { text-align: center; margin-bottom: 30px; position: relative; z-index: 10; }
.couple-img-lg { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); padding: 3px; background: white; margin: 0 auto 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.couple-name { font-family: var(--font-script); font-size: 2.5rem; color: var(--primary); margin: 0; line-height: 1.2; text-shadow: 2px 2px 2px rgba(255,255,255,1); }
.couple-parents { font-family: var(--font-sans); font-size: 0.9rem; color: #555; margin-bottom: 15px; font-weight: bold; text-shadow: 1px 1px 0px rgba(255,255,255,0.8); }
.couple-ampersand { font-family: var(--font-script); font-size: 3rem; color: var(--primary); margin: -15px 0 15px 0; }
.btn-ig { display: inline-flex; align-items: center; gap: 8px; background-color: #8D6E63; color: white; text-decoration: none; padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s; border: 1px solid rgba(255,255,255,0.5); }

/* --- STYLE EVENT --- */
.date-container { background: white; padding: 20px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 30px; width: 100%; position: relative; border-top: 4px solid var(--primary); }
.date-day { font-family: var(--font-sans); font-size: 1.5rem; letter-spacing: 3px; color: #555; text-transform: uppercase; margin-bottom: 10px; font-weight: 300; text-align: center; }
.date-row { display: flex; justify-content: center; align-items: center; gap: 15px; border-top: 1px solid #eee; padding-top: 15px; }
.date-month-year { font-family: var(--font-sans); font-size: 0.9rem; font-weight: bold; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.date-number { font-family: var(--font-serif); font-size: 4rem; font-weight: bold; color: var(--primary); line-height: 0.8; }
.event-item { margin-bottom: 40px; position: relative; z-index: 10; text-align: center; }
.event-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: bold; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.event-time, .event-place { font-weight: bold; color: #333; margin-bottom: 5px; font-size: 1rem; }
.event-address { font-size: 0.85rem; color: #666; margin-bottom: 15px; line-height: 1.5; padding: 0 10px; }
.btn-map { display: inline-flex; align-items: center; gap: 8px; background-color: #6D4C41; color: white; text-decoration: none; padding: 10px 25px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s; }

/* --- STYLE GALERI --- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; margin-top: 20px; }
.gallery-item { background: white; padding: 6px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: rotate(0deg); transition: transform 0.3s; }
.gallery-item:nth-child(odd) { transform: rotate(-2deg); }
.gallery-item:nth-child(even) { transform: rotate(2deg); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; filter: grayscale(100%); }

/* --- STYLE GIFT --- */
.atm-card { background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%); border-radius: 15px; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 20px; position: relative; border: 1px solid rgba(0,0,0,0.05); text-align: left; width: 100%; }
.atm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.atm-chip { width: 40px; height: 30px; background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%); border-radius: 5px; position: relative; overflow: hidden; }
.atm-chip::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(0,0,0,0.2); }
.atm-chip::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,0.2); }
.bank-logo { height: 25px; object-fit: contain; }
.atm-number { font-family: 'Courier New', monospace; font-size: 1.4rem; font-weight: bold; color: #333; letter-spacing: 2px; margin-bottom: 20px; text-shadow: 1px 1px 0px rgba(255,255,255,1); }
.atm-footer { display: flex; justify-content: space-between; align-items: center; }
.atm-name { font-family: var(--font-sans); font-size: 0.8rem; color: #666; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.btn-copy { background-color: #5D4037; color: white; border: none; padding: 6px 15px; border-radius: 5px; font-size: 0.7rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.2s; }
.btn-copy:hover { background-color: var(--primary); }

/* --- STYLE RSVP --- */
.rsvp-polaroid-box { position: relative; height: 200px; width: 100%; margin-top: 30px; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; }
.rsvp-polaroid { position: absolute; background: white; padding: 8px 8px 25px 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); width: 140px; transition: transform 0.3s; }
.rsvp-polaroid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: sepia(20%); }
.rsvp-polaroid:nth-child(1) { transform: rotate(-10deg) translateX(-40px) translateY(10px); z-index: 1; }
.rsvp-polaroid:nth-child(2) { transform: rotate(5deg) translateX(40px) translateY(-5px); z-index: 2; }
.rsvp-title { font-family: var(--font-script); font-size: 3rem; color: #8D6E63; margin-bottom: 20px; text-shadow: 1px 1px 0px rgba(255,255,255,0.8); }
.rsvp-form-container { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 100%; text-align: left; border-top: 5px solid #8D6E63; }
.form-label { font-family: var(--font-sans); font-size: 0.85rem; font-weight: bold; color: #8D6E63; margin-bottom: 8px; display: block; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid #eee; background-color: #f9f9f9; border-radius: 12px; font-family: var(--font-sans); font-size: 0.9rem; color: #555; margin-bottom: 15px; outline: none; transition: 0.3s; }
.form-input:focus { background-color: white; border-color: #8D6E63; box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1); }
.btn-kirim { width: 100%; background-color: #8D6E63; color: white; border: none; padding: 14px; border-radius: 50px; font-weight: bold; font-size: 1rem; cursor: pointer; margin-top: 10px; box-shadow: 0 5px 15px rgba(141, 110, 99, 0.3); transition: 0.3s; }
.btn-kirim:hover { transform: translateY(-2px); background-color: #6D4C41; }

/* --- STYLE THANKS (MENU TERAKHIR) --- */
.thanks-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.thanks-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
    font-weight: 300;
}
.thanks-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #8D6E63;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.thanks-couple {
    font-family: var(--font-script);
    font-size: 3rem;
    color: #3E2723;
    margin-bottom: 50px;
    line-height: 1;
}
.footer-copyright {
    font-size: 0.7rem;
    color: #999;
    margin-top: 50px;
    letter-spacing: 1px;
}

/* NAVBAR 8 ITEM (ADJUSTMENT) */
.navbar { position: absolute; bottom: -100px; left: 0; right: 0; height: 60px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 0; display: flex; justify-content: space-around; padding: 0 5px; align-items: center; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 900; transition: bottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-top: 1px solid rgba(255,255,255,0.4); }
.navbar.show { bottom: 0; }
/* Perkecil icon sedikit karena ada 8 menu */
.nav-item { font-size: 0.85rem; color: #999; width: auto; height: 40px; flex: 1; display: flex; justify-content: center; align-items: center; border-radius: 0; transition: 0.3s; cursor: pointer; }
.nav-item.active { color: var(--primary); transform: translateY(-3px); }
.nav-item i { font-size: 1.1rem; }

/* MUSIC & FORMS */
.music-box { position: absolute; top: 90px; right: 20px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 2px solid var(--primary); color: var(--primary); display: flex; justify-content: center; align-items: center; z-index: 950; cursor: pointer; display: none; }
.spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }