:root {
    --primary-color: #ffd700; /* Golden yellow */
    --secondary-color: #ff8c00; /* Orange glow */
    --bg-dark: #090a0f; /* very dark blue/black */
    --bg-gradient: radial-gradient(circle at top, #1c1c3c 0%, #090a0f 80%);
    --text-light: #e0e0e0;
    --glass-bg: rgba(16, 18, 27, 0.4);
    --glass-border: rgba(255, 215, 0, 0.1);
}

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

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

.arabic-font { font-family: 'El Messiri', sans-serif; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
.warm-text { color: var(--primary-color); }
.text-white { color: white; }
.text-light { color: #aaa; }
.text-gray { color: #888; }

.glow-text-soft { text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255,215,0,0.02);
    opacity: 0;
}

/* Entrance */
#entrance-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.72)),
        url('assets/bg.png') center/cover no-repeat;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; transition: background 2s ease, opacity 2s ease;
}

.pelita-container {
    display: flex; gap: 2rem; margin-bottom: 3rem; height: 100px; align-items: flex-end;
}
.pelita {
    width: 30px; display: flex; flex-direction: column; align-items: center;
}
.flame {
    color: #ffd700; font-size: 2.5rem; filter: drop-shadow(0 0 15px #ff8c00);
    animation: flicker 0.5s infinite alternate; transition: opacity 1s; opacity: 1;
}
.hidden-flame { opacity: 0; }
.base { width: 40px; height: 15px; background: #333; border-radius: 20px 20px 5px 5px; margin-top: -5px; }

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 10px #ff8c00); }
    100% { transform: scale(1.1) rotate(2deg); filter: drop-shadow(0 0 20px #ff8c00); }
}

.entrance-content { text-align: center; z-index: 2; transition: opacity 1s; }
.door-text { font-size: 3rem; margin-bottom: 0.5rem; }

#enter-btn {
    background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color);
    padding: 1rem 2rem; font-size: 1.2rem; border-radius: 50px; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 400;
    transition: all 0.3s;
}
#enter-btn:hover { background: rgba(255,215,0,0.1); box-shadow: 0 0 20px rgba(255,215,0,0.3); }

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

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

.background-elements { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stars-bg {
    width: 100%; height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
    background-repeat: repeat; background-size: 200px 200px; animation: starTwinkle 5s infinite linear;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Background pelitas */
.bg-pelita {
    position: absolute; width: 50px; height: 50px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,0,0.4) 0%, transparent 70%);
    filter: blur(5px); animation: pulse Glow 4s infinite alternate;
}
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0.8; } }
.bp1 { bottom: 10%; left: 10%; animation-delay: 0s; }
.bp2 { bottom: 30%; right: 5%; animation-delay: 1s; }
.bp3 { top: 40%; left: 5%; animation-delay: 2s; }
.bp4 { top: 20%; right: 15%; animation-delay: 3s; }

/* Hero Section */
.hero { text-align: center; margin-top: 10vh; margin-bottom: 3rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.subtitle { font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: #ccc; }
.from-text { font-style: italic; }

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

/* Ucapan Section */
.ucapan-section { margin-bottom: 3rem; text-align: center; }
.ucapan-section h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.message-text { line-height: 1.8; font-size: 1.05rem; }

/* Interaction Section */
.interaction-section { margin-bottom: 3rem; text-align: center; }
.interaction-section h3 { margin-bottom: 1.5rem; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.reply-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #ddd; padding: 0.5rem 1rem;
    border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
.reply-btn:hover { background: rgba(255,215,0,0.1); color: var(--primary-color); border-color: var(--primary-color); }
textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    padding: 1rem; color: white; font-family: inherit; min-height: 100px; margin-bottom: 1rem; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--primary-color); }
.submit-btn {
    background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color);
    padding: 0.8rem 2rem; border-radius: 25px; font-weight: 400; cursor: pointer; width: 100%; transition: all 0.3s;
}
.submit-btn:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(255,215,0,0.5); }
.form-status { margin-top: 0.75rem; color: #d1d5db; }
.form-status.is-error { color: #fca5a5; }
.form-status.is-success { color: #bbf7d0; }

/* 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: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); background: transparent;
    color: #aaa; font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
}
.share-btn:hover { border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 0 10px rgba(255,215,0,0.2); }

/* Music Control */
.music-control { position: fixed; bottom: 20px; right: 20px; z-index: 100; }
.glass-btn {
    width: 50px; height: 50px; border-radius: 50%; background: var(--glass-bg);
    color: var(--primary-color); font-size: 1.2rem; cursor: pointer; display: flex;
    justify-content: center; align-items: center; border: 1px solid var(--glass-border);
    transition: all 0.3s; backdrop-filter: blur(10px);
}
.glass-btn:hover { transform: scale(1.1); box-shadow: 0 0 15px rgba(255,215,0,0.3); }

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