:root {
    --primary-color: #06d6a0; /* Bright Green */
    --secondary-color: #ffd166; /* Joyful Yellow */
    --accent-color: #ef476f; /* Cheerful Pink/Red */
    --bg-light: #f8f9fa;
    --text-dark: #1b4332;
    --glass-bg: rgba(255, 255, 255, 0.85); /* Frosty light glass */
    --glass-border: rgba(6, 214, 160, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        linear-gradient(rgba(248, 249, 250, 0.72), rgba(248, 249, 250, 0.84)),
        url('assets/bg.png') center/cover fixed no-repeat;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

.arabic-font { font-family: 'El Messiri', sans-serif; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

.festive-title { color: #008148; font-size: 2.5rem; margin-bottom: 0.5rem; }
.festive-title-small { color: #008148; font-size: 1.8rem; margin-bottom: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.block { display: block; }
.text-dark { color: #333; }
.text-gray { color: #666; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
}

.festive-border {
    position: relative;
    overflow: hidden;
}
.festive-border::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #06d6a0, #ffd166, #ef476f);
}

/* Entrance */
#entrance-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background:
        linear-gradient(rgba(0, 129, 72, 0.66), rgba(0, 129, 72, 0.82)),
        url('assets/bg.png') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: transform 1.5s cubic-bezier(0.86, 0, 0.07, 1), opacity 1.5s;
}

.sampul-container {
    text-align: center;
}

.sampul {
    position: relative; width: 280px; height: 180px;
    background: #40916c; border-radius: 8px; margin: 0 auto 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.sampul-body {
    position: absolute; inset: 0; border: 2px solid #ffd166; border-radius: 8px;
    display: flex; justify-content: center; align-items: center; z-index: 2;
    background: repeating-linear-gradient(45deg, #40916c, #40916c 10px, #2d6a4f 10px, #2d6a4f 20px);
}

.sampul-text { color: #ffd166; font-size: 2.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.flap {
    position: absolute; top: 0; left: 0; width: 100%; height: 100px;
    background: #52b788; clip-path: polygon(0 0, 50% 100%, 100% 0);
    z-index: 3; transform-origin: top; transition: transform 0.8s ease-in-out;
}

.flap.open { transform: rotateX(180deg); }

#enter-btn {
    background: #ffd166; color: #1b4332; border: none; padding: 1rem 2rem;
    font-size: 1.2rem; border-radius: 50px; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.4); transition: transform 0.3s;
}
#enter-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 209, 102, 0.6); }

.hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* Main Content */
#main-content {
    padding: 2rem; max-width: 650px; margin: 0 auto;
    position: relative; z-index: 10; transition: opacity 2s ease;
}

.background-elements { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #e9ecef; }
.bg-pattern {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,209,102,0.3) 0%, transparent 70%); filter: blur(30px);
}
.box-1 { top: -100px; left: -100px; }
.box-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(6,214,160,0.2) 0%, transparent 70%); }

/* Hanging Lanterns */
.top-decorations { position: absolute; width: 100%; height: 150px; top: 0; left: 0; pointer-events: none; z-index: 5; }
.swinging-lantern {
    position: absolute; width: 45px; transform-origin: top center;
    animation: swing-lantern 3s ease-in-out infinite alternate;
}
@keyframes swing-lantern { 0% { transform: rotate(-10deg); } 100% { transform: rotate(10deg); } }
.l1 { left: 10%; animation-delay: 0s; }
.l2 { right: 10%; animation-delay: 1.5s; }
.l3 { left: 45%; top: -20px; animation-delay: 0.5s; width: 35px; }

/* Hero Section */
.hero { text-align: center; margin-top: 10vh; margin-bottom: 3rem; background: #fff; }
.emoji { font-size: 2rem; margin: 0 5px; animation: bounce 3s infinite; display: inline-block; }
.emoji:nth-child(2) { animation-delay: 0.2s; }
.emoji:nth-child(3) { animation-delay: 0.4s; }
.emoji:nth-child(4) { animation-delay: 0.6s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.subtitle { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: #2d6a4f; }

/* Quote Section */
.quote-section { margin-bottom: 3rem; text-align: center; }
.quote-card { position: relative; background: #fdfcdc; }
.quote-icon { font-size: 2rem; color: var(--primary-color); opacity: 0.5; margin-bottom: 1rem; }
.quote-card p { font-size: 1.15rem; font-style: italic; line-height: 1.6; color: #1b4332; font-weight: 500;}

/* Gallery Section */
.memory-section { margin-bottom: 3rem; text-align: center; }
.polaroid-container { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.polaroid {
    background: #fff; padding: 10px 10px 30px 10px; border-radius: 4px; border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); width: 140px; transform: rotate(-2deg); transition: transform 0.3s;
}
.polaroid:nth-child(2) { transform: rotate(4deg); }
.polaroid:hover { transform: scale(1.1) rotate(0deg); z-index: 2; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.polaroid img { width: 100%; height: 120px; object-fit: cover; border-radius: 2px; }
.polaroid p { margin-top: 10px; font-family: 'Playfair Display', serif; font-size: 0.9rem; color: #555; }

/* Ucapan Section */
.ucapan-section { margin-bottom: 3rem; text-align: center; background: #fff; }
.message-text { line-height: 1.8; font-size: 1.1rem; }

/* Interaction Section */
.interaction-section { margin-bottom: 3rem; text-align: center; background: #fff; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.reply-btn {
    background: #f8f9fa; border: 1px solid #d8f3dc; color: #1b4332; padding: 0.5rem 1rem;
    border-radius: 20px; cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.reply-btn:hover { background: #d8f3dc; color: #081c15; border-color: #74c69d; }
textarea {
    width: 100%; background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 8px;
    padding: 1rem; color: #333; font-family: inherit; min-height: 100px; margin-bottom: 1rem; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--primary-color); }
.submit-btn {
    background: var(--primary-color); color: white; border: none; padding: 0.8rem 2rem;
    border-radius: 25px; font-weight: 600; cursor: pointer; width: 100%; transition: opacity 0.3s; font-size: 1.1rem;
}
.submit-btn:hover { background: #008148; }
.form-status { margin-top: 0.75rem; color: #2d6a4f; }
.form-status.is-error { color: #b00020; }
.form-status.is-success { color: #2d6a4f; }

/* Share Section */
.share-section { text-align: center; padding: 1rem 0; margin-bottom: 2rem; }
.share-buttons { display: flex; justify-content: center; gap: 1rem; }
.share-btn {
    width: 50px; height: 50px; border-radius: 50%; border: none; background: white;
    color: #40916c; font-size: 1.4rem; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.share-btn:hover { transform: translateY(-5px); color: white; }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.telegram:hover { background: #0088cc; }
.share-btn.copy-link:hover { background: var(--primary-color); }

/* Music Control */
.music-control { position: fixed; bottom: 20px; right: 20px; z-index: 100; }
.glass-btn {
    width: 55px; height: 55px; border-radius: 50%; background: #ffd166;
    color: #008148; font-size: 1.2rem; cursor: pointer; display: flex;
    justify-content: center; align-items: center; border: 2px solid white;
    transition: all 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.glass-btn:hover { transform: scale(1.1) rotate(10deg); }

@media (max-width: 600px) {
    .festive-title { font-size: 2rem; }
    .subtitle { font-size: 1.2rem; }
}
