/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --pink-bg: #FBEFF2; --pink-nav: #F8D7E3; --pink-active: #E4AEC5;
    --sage-green: #9CAF88; --sage-dark: #6B8E23; --text-color: #555;
    --bronze-title: #A06D46; --bronze-btn: #8B5A2B; 
    --font-script: 'Great Vibes', cursive; --font-serif: 'Cinzel', serif; --font-body: 'Nunito', sans-serif;
    --max-width: 420px; 
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { margin: 0; background-color: #222; font-family: var(--font-body); display: flex; justify-content: center; min-height: 100vh; }
.mobile-container { width: 100%; max-width: var(--max-width); background: var(--pink-bg); min-height: 100vh; position: relative; overflow-x: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.5); background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png'); background-blend-mode: multiply; }

/* COVER & DEKOR */
#opening { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-width); background-image: url('assets/home.jpg'); background-size: cover; background-position: center top; background-repeat: no-repeat; z-index: 9999; padding: 40px 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1); will-change: transform; }
.title-area { margin-top: 30px; text-align: center; }
.bottom-area { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; }
.small-tag { font-family: var(--font-serif); letter-spacing: 3px; font-size: 0.8rem; color: #444; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; text-shadow: 0 0 5px rgba(255,255,255,0.8); }
.couple-title { font-family: var(--font-script); font-size: 3.8rem; color: var(--pink-active); line-height: 0.9; margin: 0; text-shadow: 2px 2px 0px #fff, -1px -1px 0 #fff; }
.d-and { font-size: 2rem; color: #777; }
.guest-info { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); padding: 15px 25px; border-radius: 15px; width: 85%; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid var(--pink-active); }
.guest-name { font-weight: bold; font-size: 1.2rem; color: var(--sage-dark); margin-top: 5px; word-wrap: break-word; }
.btn-open { background: var(--sage-green); color: white; border: none; padding: 12px 40px; border-radius: 50px; font-family: var(--font-serif); cursor: pointer; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.2); font-size: 1rem; transition: transform 0.2s; animation: pulseBtn 2s infinite ease-in-out; }
.btn-open:active { transform: scale(0.95); }
@keyframes pulseBtn { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.decor-top { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-width); pointer-events: none; opacity: 0; animation: fadeDecor 1.5s ease-out 0.8s forwards; top: 0; height: 70px; background-image: url('assets/pattern-top.jpg'); background-repeat: repeat-x; background-position: center top; background-size: auto 100%; z-index: 5; mix-blend-mode: multiply; opacity: 0.9; }
.decor-bottom { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-width); pointer-events: none; opacity: 0; animation: fadeDecor 1.5s ease-out 0.8s forwards; bottom: 0; height: 300px; background-image: url('assets/bunga-bawah.jpg'); background-repeat: no-repeat; background-position: center bottom; background-size: 100% auto; z-index: 1; mix-blend-mode: multiply; opacity: 1; }
@keyframes fadeDecor { from { opacity: 0; } to { opacity: 1; } }
.music-box { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-width); z-index: 2000; pointer-events: none; display: flex; justify-content: flex-end; padding-right: 20px; }
#music-control { pointer-events: auto; width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); border: 2px solid var(--sage-green); color: var(--sage-green); font-size: 1.4rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease; }
.fa-spin { animation: fa-spin 5s infinite linear; } 
@keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* TAB ANIMATION */
.tab-section { display: none; padding: 80px 20px 120px 20px; text-align: center; position: relative; z-index: 10; }
.tab-section.active { display: block; }
.tab-section.active .content-wrap > * { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.tab-section.active .content-wrap > *:nth-child(1) { animation-delay: 0.1s; }
.tab-section.active .content-wrap > *:nth-child(2) { animation-delay: 0.3s; }
.tab-section.active .content-wrap > *:nth-child(3) { animation-delay: 0.5s; }
.tab-section.active .content-wrap > *:nth-child(n+4) { animation-delay: 0.7s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ELEMENT STANDARD */
.main-photo-frame { width: 200px; height: 200px; margin: 0 auto 25px auto; border-radius: 50%; border: 3px solid var(--sage-green); padding: 5px; background: white; box-shadow: 0 10px 25px rgba(0,0,0,0.15); overflow: hidden; position: relative; }
.main-photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid #eee; }
.verse-text { font-family: 'Nunito', sans-serif; font-weight: 600; color: #666; font-size: 0.95rem; line-height: 1.8; }
.couple-frame { display: inline-block; padding: 5px; border: 2px solid var(--sage-green); border-radius: 50%; margin-bottom: 15px; width: 140px; height: 140px; background: white; }
.couple-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.name-script { font-family: var(--font-script); color: var(--sage-green); font-size: 2.2rem; margin: 5px 0; }
.parents-info { font-size: 0.85rem; color: #666; margin-bottom: 10px; line-height: 1.4; }
.btn-ig { background: var(--sage-green); color: white; text-decoration: none; padding: 6px 18px; border-radius: 20px; font-size: 0.8rem; display: inline-block; }
.date-display { border-top: 2px solid var(--sage-green); border-bottom: 2px solid var(--sage-green); padding: 15px 0; margin: 30px 0; color: var(--text-color); background: rgba(255,255,255,0.6); }
.day-name { font-size: 2.5rem; margin: 0; color: #777; letter-spacing: 2px; }
.date-line { display: flex; justify-content: center; align-items: center; gap: 15px; font-weight: bold; color: var(--sage-green); font-size: 1.3rem; margin: 5px 0; }
.big-num { font-size: 4rem; line-height: 1; color: var(--sage-dark); }
.event-title { font-family: 'Cinzel', serif; font-weight: bold; color: var(--sage-dark); margin-bottom: 5px; }
.btn-location-sm { background: var(--sage-green); color: white; border: none; padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; text-decoration: none; display: inline-block; margin-top: 5px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-grid img { width: 100%; border-radius: 10px; height: 180px; object-fit: cover; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* =========================================
   STYLE GIFT CARD (NEW!!)
   ========================================= */
.gift-card {
    background: linear-gradient(135deg, #fdfdfd 0%, #f3f3f3 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    border: 1px solid #eee;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-chip-icon {
    font-size: 2rem;
    color: #DAA520; /* Warna Emas Chip */
    background: linear-gradient(45deg, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bank-logo {
    height: 25px;
    object-fit: contain;
}
.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px #fff;
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-holder {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
}
.btn-copy {
    background: var(--bronze-btn);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: bold;
}
.btn-copy:active { transform: scale(0.95); }

/* STYLE RSVP POLAROID */
.polaroid-wrapper { position: relative; width: 100%; height: 320px; margin-bottom: 10px; }
.polaroid-item { position: absolute; width: 170px; background: white; padding: 10px 10px 35px 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); border: 1px solid #ddd; left: 50%; overflow: hidden; }
.polaroid-item img { width: 100%; height: 190px; object-fit: cover; background: #f0f0f0; display: block; }
.p-back { top: 20px; transform: translateX(-75%) rotate(-6deg); z-index: 5; }
.p-front { top: 60px; transform: translateX(-25%) rotate(5deg); z-index: 6; }
.rsvp-title { font-family: var(--font-script); font-size: 3.2rem; color: var(--bronze-title); line-height: 1.2; margin: 20px 0 5px 0; text-shadow: 1px 1px 0px rgba(255,255,255,0.8); position: relative; z-index: 10; }
.rsvp-form-card { background: white; border-radius: 20px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: left; margin-bottom: 30px; border: 1px solid #fff; position: relative; z-index: 10; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--bronze-title); margin-bottom: 8px; margin-left: 5px; }
.form-input { width: 100%; background: #F5F5F5; border: 1px solid #eee; border-radius: 12px; padding: 12px 15px; font-family: var(--font-body); font-size: 0.95rem; color: #444; transition: 0.3s; outline: none; }
.form-input:focus { background: white; border-color: var(--bronze-title); box-shadow: 0 0 0 3px rgba(160, 109, 70, 0.1); }
.btn-brown-full { width: 100%; background: var(--bronze-btn); color: white; border: none; padding: 15px; border-radius: 50px; font-size: 1rem; font-weight: bold; cursor: pointer; box-shadow: 0 5px 15px rgba(139, 90, 43, 0.3); display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 15px; transition: transform 0.2s; }
.btn-brown-full:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139, 90, 43, 0.4); }

/* STYLE THANKS */
.thanks-title { font-family: var(--font-script); font-size: 3.5rem; color: var(--bronze-title); margin-bottom: 20px; line-height: 1.2; }
.thanks-text { font-family: var(--font-body); color: #555; font-size: 1rem; line-height: 1.8; margin-bottom: 30px; padding: 0 10px; }
.thanks-closing { font-family: var(--font-body); font-weight: 800; color: var(--bronze-title); text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 1px; }
.thanks-couple { font-family: var(--font-script); font-size: 4rem; color: var(--bronze-title); margin: 10px 0 50px 0; line-height: 1; }
.footer-credit { font-size: 0.75rem; color: #888; border-top: 1px solid #ddd; padding-top: 20px; margin-top: 20px; }
.footer-credit b { color: var(--bronze-btn); }

/* NAVBAR 8 MENU (UPDATED) */
.bottom-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 98%; max-width: 420px; background-color: var(--pink-nav); height: 65px; display: flex; justify-content: space-evenly; align-items: center; border-radius: 50px; z-index: 1000; box-shadow: 0 5px 20px rgba(0,0,0,0.15); padding: 0 2px; }
.nav-item { text-decoration: none; color: #888; display: flex; flex-direction: column; align-items: center; font-size: 0.5rem; width: 40px; padding: 6px 0; transition: all 0.3s ease; border-radius: 12px; }
.nav-item i { font-size: 1rem; margin-bottom: 3px; }
.nav-item.active { background: var(--pink-active); color: white; transform: translateY(-5px); box-shadow: 0 5px 10px rgba(0,0,0,0.1); }