/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    --bg-color: #FFFDF5; 
    --primary: #8B5E3C;  
    --accent: #D4AF37;   
    --text: #4A4A4A;     
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #222; 
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-color);
    height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    overflow: hidden;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
}

/* Typography */
h1, h2, h3, .script-font {
    font-family: 'Great Vibes', cursive;
    color: var(--primary);
    font-weight: 400;
}

/* --- LOGIKA SECTION --- */
section {
    display: none;
    height: 100%; 
    width: 100%;
    padding: 25px;
    overflow-y: auto;
    scrollbar-width: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0; left: 0; 
    padding-bottom: 130px; 
    padding-top: 40px;
}
section::-webkit-scrollbar { display: none; }
section.active-section { display: flex; z-index: 10; }

/* Animasi */
[class*="animasi-"] {
    opacity: 0; filter: blur(10px);
    transition: all 2.5s cubic-bezier(0.25, 1, 0.3, 1);
}
[class*="animasi-"].muncul {
    opacity: 1; transform: translate(0,0) scale(1); filter: blur(0);
}
.animasi-up { transform: translateY(80px) scale(0.95); }
.animasi-left { transform: translateX(-100px); }
.animasi-right { transform: translateX(100px); }
.animasi-zoom { transform: scale(0.8); }

/* --- STYLE KHUSUS: GIFT (ATM) --- */
.atm-card {
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #e0e0e0 100%);
    border-radius: 15px; padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: left; margin-bottom: 20px;
    position: relative; border: 1px solid #ccc;
    transition: transform 0.3s; width: 100%; max-width: 350px;
}
.atm-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.bank-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; height: 40px; }
.bank-logo { max-height: 35px; width: auto; object-fit: contain; }
.chip-img {
    width: 45px; height: 35px;
    background: linear-gradient(135deg, #b8860b, #ffd700, #b8860b);
    border-radius: 6px; border: 1px solid #a07000;
}
.rek-number {
    font-family: 'Courier New', monospace; font-size: 1.4rem;
    font-weight: bold; color: #222; letter-spacing: 2px;
    margin-bottom: 5px; text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}
.rek-name { font-size: 0.8rem; color: #555; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.btn-copy {
    background: var(--primary); color: #fff; border: none;
    padding: 8px 15px; border-radius: 5px; font-size: 11px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
    text-transform: uppercase; font-weight: bold; float: right;
}

/* --- STYLE KHUSUS: RSVP POLAROID --- */
.polaroid-wrapper {
    position: relative; width: 100%; height: 280px;
    display: flex; justify-content: center; margin-bottom: 10px; margin-top: 20px;
}
.polaroid-img {
    position: absolute; width: 150px; height: 190px;
    background: #fff; padding: 8px 8px 25px 8px;
    object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.5s ease; border: 1px solid #eee;
}
.polaroid-img:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 50; }
.pola-1 { top: 0; transform: translateX(-15px) rotate(-6deg); z-index: 1; }
.pola-2 { top: 60px; transform: translateX(15px) rotate(6deg); z-index: 2; }
.btn-rsvp-trigger {
    background: #8B5E3C; color: #fff; padding: 14px 35px;
    border-radius: 50px; font-weight: 600; border: none;
    box-shadow: 0 5px 15px rgba(139, 94, 60, 0.3); cursor: pointer;
    font-size: 14px; letter-spacing: 0.5px; transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}
#form-container { display: none; width: 100%; margin-top: 10px; }

/* --- STYLE KHUSUS: THANKS & FOOTER --- */
.footer-credit {
    margin-top: 50px;
    font-size: 0.8rem;
    color: #999;
}
.brand-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

/* Komponen Umum */
#opening {
    display: flex; justify-content: center; z-index: 2000;
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    transition: transform 1.5s cubic-bezier(0.45, 0, 0.55, 1);
    overflow: hidden; padding-bottom: 0; padding-top: 60px;
}
.cover-img {
    width: 180px; height: 180px; border-radius: 50%;
    border: 3px solid var(--accent); object-fit: cover;
    margin: 15px auto; box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.tamu-box {
    background: rgba(255, 255, 255, 0.9); padding: 30px 25px;
    border-radius: 20px; margin-top: 30px; border: 1px solid var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); width: 90%; backdrop-filter: blur(5px);
}

/* Navbar (FLEX 1 AGAR MUAT BANYAK) */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%; max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    display: flex; justify-content: space-between; /* Space between biar rata */
    padding: 10px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); z-index: 3000;
    border-top: 1px solid #f0f0f0; backdrop-filter: blur(10px);
}
.nav-item {
    text-align: center; color: #ccc;
    font-size: 9px; cursor: pointer; transition: 0.4s;
    flex: 1; /* BAGI RATA LEBARNYA */
}
.nav-item i { font-size: 16px; display: block; margin-bottom: 5px; transition: 0.4s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: scale(1.3); font-weight: 900; text-shadow: 0 0 1px var(--primary); }

.music-btn {
    position: fixed; bottom: 110px; right: 25px;
    width: 50px; height: 50px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2500; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: putar 6s linear infinite;
}
.paused { animation-play-state: paused; }
@keyframes putar { 100% { transform: rotate(360deg); } }

.btn-gold {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 14px 35px; border-radius: 50px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    border: none; margin-top: 20px; cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
    transition: transform 0.3s; display: inline-block; letter-spacing: 1px;
}
.btn-gold:hover { transform: translateY(-3px); }

input, select, textarea {
    width: 100%; padding: 14px; margin: 10px 0;
    border: 1px solid #eee; border-radius: 10px;
    font-family: 'Montserrat'; background: #fcfcfc;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }