:root {
    --primary-color: #d35400; /* Warm dark orange/brown */
    --secondary-color: #8e44ad;
    --bg-warm: #fcf1e3; /* Warm off-white, sandy */
    --text-dark: #3e2723;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(211, 84, 0, 0.15);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        linear-gradient(rgba(252, 241, 227, 0.72), rgba(252, 241, 227, 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; }
.warm-text { color: var(--primary-color); }

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

/* Entrance Animation Overlay */
#entrance-doors {
    position: fixed;
    inset: 0;
    z-index: 9999;
    perspective: 1000px;
    display: flex;
    overflow: hidden;
    background:
        linear-gradient(rgba(121, 85, 72, 0.6), rgba(121, 85, 72, 0.74)),
        url('assets/bg.png') center/cover no-repeat;
}

.door {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    background: #5d4037;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1), box-shadow 1.5s;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.door-left {
    left: 0;
    transform-origin: left;
    border-right: 2px solid #3e2723;
}
.door-right {
    right: 0;
    transform-origin: right;
    border-left: 2px solid #3e2723;
}

.door.open.door-left { transform: rotateY(-110deg); box-shadow: inset 0 0 100px rgba(0,0,0,0.8); }
.door.open.door-right { transform: rotateY(110deg); box-shadow: inset 0 0 100px rgba(0,0,0,0.8); }

/* Door texture & handles */
.texture {
    width: 100%; height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,0,0,0.1) 40px, rgba(0,0,0,0.1) 42px);
}
.handle {
    position: absolute; width: 10px; height: 50px; background: #fb8c00; border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5); top: 50%; transform: translateY(-50%);
}
.l-handle { right: 20px; }
.r-handle { left: 20px; }

.door-content {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 2; text-align: center;
    background: rgba(255,255,255,0.8);
    padding: 2rem; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: opacity 0.5s;
}

.door-text { font-size: 3rem; color: #d35400; margin-bottom: 0.5rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }

#enter-btn {
    background: linear-gradient(135deg, #d35400, #e67e22); 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(211, 84, 0, 0.4); transition: transform 0.3s, box-shadow 0.3s;
}
#enter-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(211, 84, 0, 0.6); }

.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 1.5s ease;
}

.background-elements {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, #fde3a7, #f3c68f);
}

/* Hanging Decorations */
.hanging-decorations {
    position: absolute; top: 0; left: 0; width: 100%; height: 150px; z-index: 5; pointer-events: none;
}
.swinging-ketupat {
    position: absolute; width: 50px; top: -10px; transform-origin: top center;
    animation: swing 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
}
.ketupat-1 { left: 15%; animation-delay: 0s; }
.ketupat-2 { right: 15%; animation-delay: 1.5s; animation-duration: 5s; }
.ketupat-3 { left: 50%; top:-20px; animation-delay: 0.7s; width: 40px; }

@keyframes swing {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

/* Hero Section */
.hero { text-align: center; margin-top: 15vh; 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: #5a4030; }
.from-text { font-style: italic; color: #8d6e63; }

/* Memory / Gallery Section */
.memory-section { margin-bottom: 3rem; text-align: center; }
.memory-section h3 { margin-bottom: 1.5rem; font-size: 1.8rem; }
.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 4px 10px rgba(0,0,0,0.1); width: 150px; transform: rotate(-3deg);
    transition: transform 0.3s;
}
.polaroid:nth-child(2) { transform: rotate(5deg); }
.polaroid:hover { transform: scale(1.05) rotate(0deg); z-index: 2; }
.polaroid img { width: 100%; height: 130px; object-fit: cover; border-radius: 2px; }
.polaroid p { margin-top: 10px; font-family: 'Playfair Display', serif; font-size: 0.9rem; color: #555; }

/* Quote Section */
.quote-section { margin-bottom: 3rem; text-align: center; }
.quote-card { position: relative; background: rgba(255,255,255,0.7); }
.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; background: rgba(255,255,255,0.7); }
.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: white; border: 1px solid #e0e0e0; color: #5a4030; padding: 0.5rem 1rem;
    border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
.reply-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
textarea {
    width: 100%; background: white; border: 1px solid #ddd; 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;
}
.submit-btn:hover { background: #b03a00; }
.form-status { margin-top: 0.75rem; color: #5a4030; }
.form-status.is-error { color: #b91c1c; }
.form-status.is-success { color: #166534; }

/* 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: none; background: white;
    color: var(--primary-color); font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.share-btn:hover { color: white; transform: translateY(-3px); }
.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: 50px; height: 50px; border-radius: 50%; background: white;
    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.1); border: none;
    transition: transform 0.2s;
}
.glass-btn:hover { transform: scale(1.1); }

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