:root {
    --primary-color: #fca311;
    --bg-dark: #0a0f25;
    --text-light: #fefae0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        linear-gradient(rgba(10, 15, 37, 0.55), rgba(10, 15, 37, 0.78)),
        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; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0; /* for animation */
}

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

#fireworks-entrance {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.entrance-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.glow-text {
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(252, 163, 17, 0.8), 0 0 40px rgba(252, 163, 17, 0.5);
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(252, 163, 17, 0.8); }
    50% { transform: scale(1.05); text-shadow: 0 0 30px #fca311, 0 0 50px #fca311; }
}

#enter-btn {
    background: linear-gradient(135deg, #fca311, #e85d04);
    color: white;
    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(252, 163, 17, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

#enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 163, 17, 0.6);
}

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

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

/* Background Elements */
.background-elements {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at top, #151a30 0%, #050814 100%);
}

.moon {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fffdf2 0%, #f9e596 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px #fca311;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 5vh;
    margin-bottom: 3rem;
    position: relative;
}

.title-glow {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(252, 163, 17, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.from-text {
    font-style: italic;
    color: #b0b0b0;
}

/* Animations */
.decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-ketupat {
    position: absolute;
    width: 45px;
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.ketupat-1 {
    top: -20px;
    left: 0;
    animation-delay: 0s;
}

.ketupat-2 {
    top: -10px;
    right: 0;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

/* 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.5;
    margin-bottom: 1rem;
}
.quote-card p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
}

/* Ucapan Section */
.ucapan-section { margin-bottom: 3rem; text-align: center; }
.ucapan-section h3 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 1rem; }
.message-text { line-height: 1.8; font-size: 1.05rem; }
.mt-4 { margin-top: 1rem; }
.italic { font-style: italic; }
.text-sm { font-size: 0.875rem; }
.text-gray-300 { color: #d1d5db; }

/* Interaction Section */
.interaction-section { margin-bottom: 3rem; text-align: center; }
.interaction-section h3 { color: var(--primary-color); margin-bottom: 1.5rem; }
.quick-replies {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem;
}
.reply-btn {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
.reply-btn:hover { background: var(--primary-color); color: #000; }
textarea {
    width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.2);
    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: var(--primary-color); color: #000; border: none; padding: 0.8rem 2rem;
    border-radius: 25px; font-weight: 600; cursor: pointer; width: 100%; transition: opacity 0.3s;
}
.submit-btn:hover { opacity: 0.9; }
.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-section p { margin-bottom: 1rem; color: #a0a0a0; }
.share-buttons { display: flex; justify-content: center; gap: 1rem; }
.share-btn {
    width: 45px; height: 45px; border-radius: 50%; border: none; background: var(--glass-bg);
    color: white; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; border: 1px solid var(--glass-border);
}
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.telegram:hover { background: #0088cc; }
.share-btn.copy-link:hover { background: var(--primary-color); color: #000; }

/* 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);
    backdrop-filter: blur(10px); border: 1px solid var(--glass-border); color: var(--primary-color);
    font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.glass-btn:hover { transform: scale(1.1); }

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