/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    width: 100%; height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a;
    overflow: hidden; /* Default lock */
}

/* SCROLL CONTROL */
body.lock-scroll { overflow: hidden; height: 100vh; }
body.allow-scroll { overflow-y: auto; height: auto; }

/* BACKGROUND BLUR (DESKTOP) */
.desktop-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    transform: scale(1.1);
    z-index: 0;
}

/* CONTAINER UTAMA */
#app-container {
    width: 100%;
    max-width: 550px; /* Lebar HP di Desktop */
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    min-height: 100vh;
}

/* HERO SECTION */
#hero {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: white;
}

.overlay-gradient {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 75%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 100%);
    z-index: 1; pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px;
    padding-bottom: 60px;
}

.intro-text {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* TOMBOL */
.btn-open {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: #ffffff; color: #222; border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 35px;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}
.btn-open:hover { transform: translateY(-3px) scale(1.05); }

/* PENERIMA TAMU */
.recipient-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 10px;
}
.to-label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; margin-bottom: 5px; }
.guest-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.disclaimer { font-size: 0.7rem; font-style: italic; opacity: 0.7; margin-top: 5px; }

/* KONTEN */
#main-content { background-color: #fff; color: #333; padding-bottom: 50px; }
.content-card { padding: 60px 20px; text-align: center; }
.bismillah-img { max-width: 200px; margin-bottom: 20px; opacity: 0.8; }
.salam-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; font-style: italic; color: #555; }
.surah-name { font-weight: bold; font-size: 0.9rem; color: #888; }
.section-title { font-family: 'Great Vibes', cursive; font-size: 3rem; color: #d4af37; margin-bottom: 40px; }

.couple-info { margin-bottom: 30px; }
.photo-frame { width: 150px; height: 150px; background: #eee; border-radius: 50%; margin: 0 auto 15px; overflow: hidden; border: 3px solid #d4af37; padding: 3px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.couple-info h3 { font-family: 'Great Vibes', cursive; font-size: 2rem; margin-bottom: 5px; }
.dan-icon { font-family: 'Great Vibes', cursive; font-size: 3rem; color: #ddd; margin: 20px 0; }

/* MUSIC BTN */
#music-control { position: fixed; bottom: 20px; left: 20px; z-index: 999; }
#music-control button { width: 45px; height: 45px; border-radius: 50%; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; color: #555; font-size: 1.2rem; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* RESPONSIF */
@media (max-width: 550px) {
    #app-container { max-width: 100%; box-shadow: none; }
    .desktop-bg { display: none; }
    .couple-names { font-size: 3.2rem; }
}