/* ======================================================= */
/* KODE CSS LENGKAP - VERSI INTERAKTIF         */
/* ======================================================= */

:root {
    --primary-pink: #FF6B6B;
    --accent-yellow: #FFD166;
    --accent-teal: #4ECDC4;
    --dark-text: #3D405B;
    --light-bg: #FDFCFB;
    --paper-bg: #FFFFFF;
}

body {
    font-family: 'Nunito', sans-serif; /* Font body yang lebih mudah dibaca */
    background-color: var(--light-bg);
    background-image: radial-gradient(circle at top left, #FFF9E8, var(--light-bg));
    color: var(--dark-text);
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23FF6B6B"><path d="M12 4.248c-3.148-5.402-12-3.825-12 2.942 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.942z"/></svg>'), auto;
}

h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; font-weight: 700; color: var(--primary-pink); }
h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }

/* Loading & Enter Overlay */
#loading-screen, #enter-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 1000; }
#loading-screen { background-color: var(--light-bg); transition: opacity 1s ease-out; flex-direction: column; }
#enter-overlay { background-color: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.5s; }
.bouncy-heart { width: 80px; height: 80px; background-color: var(--primary-pink); position: relative; transform: rotate(-45deg); animation: bounce-beat 1.5s infinite; border-radius: 10px; }
.bouncy-heart::before, .bouncy-heart::after { content: ''; width: 80px; height: 80px; background-color: var(--primary-pink); border-radius: 50%; position: absolute; }
.bouncy-heart::before { top: -40px; left: 0; } .bouncy-heart::after { top: 0; left: 40px; }
.loading-text { margin-top: 80px; font-size: 1.2rem; color: var(--primary-pink); font-weight: bold; }
@keyframes bounce-beat { 0%{transform: scale(1) rotate(-45deg);} 25%{transform: scale(1.1) rotate(-45deg) translateY(-15px);} 50%{transform: scale(1) rotate(-45deg);} 75%{transform: scale(0.9) rotate(-45deg);} 100%{transform: scale(1) rotate(-45deg);} }
#enter-button { padding: 15px 30px; font-size: 18px; font-family: 'Baloo 2', cursive; font-weight: 700; background-color: var(--primary-pink); color: white; border: 3px solid white; border-radius: 50px; cursor: pointer; box-shadow: 0 5px 0 #c24747; animation: wiggle 2s infinite; transition: all 0.2s; }
#enter-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c24747; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* Konten Utama & Animasi Scroll */
#main-content { visibility: hidden; opacity: 0; transition: opacity 1.5s ease-in; }
.reveal-section { transition: opacity 0.8s, transform 0.8s; opacity: 0; transform: translateY(50px); }
.reveal-section.visible { opacity: 1; transform: translateY(0); }
section { padding: 5vw 8vw; max-width: 900px; margin: 40px auto; background-color: var(--paper-bg); border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.04), 0 10px 30px rgba(61, 64, 91, 0.08); text-align: center; border: 1px solid #f0f0f0; }
.hero-image { width: clamp(150px, 30vw, 200px); height: clamp(150px, 30vw, 200px); border-radius: 50%; object-fit: cover; border: 8px solid var(--accent-yellow); padding: 5px; background-color: var(--paper-bg); margin-bottom: 20px; }
#hero p { font-size: clamp(1rem, 2.5vw, 1.1rem); max-width: 500px; margin: auto; }

/* Efek Washi Tape */
.image-wrapper { position: relative; padding: 10px; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 8px; display: inline-block; }
.image-wrapper img { display: block; width: 100%; border-radius: 4px; }
.image-wrapper::before { content: ''; position: absolute; width: 80px; height: 25px; background-color: var(--accent-teal); opacity: 0.6; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.image-wrapper.tape-tl::before { top: -10px; left: -15px; transform: rotate(-45deg); }
.image-wrapper.tape-tr::before { top: -10px; right: -15px; transform: rotate(45deg); }
.image-wrapper.tape-bl::before { bottom: -10px; left: -15px; transform: rotate(45deg); }
.image-wrapper.tape-br::before { bottom: -10px; right: -15px; transform: rotate(-45deg); }

/* Layout Story & Guide */
.story-content { display: flex; align-items: center; gap: 40px; text-align: left; margin-top: 40px; }
.story-content > p { flex: 1; }
.story-content .image-wrapper { flex-shrink: 0; width: 40%; max-width: 300px; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.story-content .image-wrapper:hover { transform: scale(1.05) rotate(2deg); }
#her-guide { background-color: #f8fdfc; }
.guide-points { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.point-item { background-color: #fff; padding: 15px 20px; border-radius: 12px; border-left: 5px solid var(--accent-yellow); }
.point-item p { margin: 0; font-size: clamp(0.9rem, 2vw, 1rem); }

/* Galeri & Lightbox */
.gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.gallery-container .image-wrapper { width: 100%; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); cursor: pointer; }
.gallery-container .image-wrapper:hover { transform: scale(1.1) rotate(3deg); z-index: 10; }
#lightbox { display: none; position: fixed; z-index: 1001; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 80%; max-height: 80%; animation-name: zoom; animation-duration: 0.6s; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
.close-btn { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; }
.close-btn:hover, .close-btn:focus { color: #bbb; text-decoration: none; cursor: pointer; }
.prev-slide, .next-slide { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 20px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; }
.next-slide { right: 0; border-radius: 3px 0 0 3px; }
.prev-slide:hover, .next-slide:hover { background-color: rgba(0,0,0,0.8); }

/* Tentang Kreator & Footer */
#about-creator { background-color: var(--paper-bg); max-width: 600px; text-align: center; border-top: 5px solid var(--accent-yellow); }
.creator-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid var(--accent-yellow); }
#about-creator p { font-size: 1rem; line-height: 1.8; max-width: 450px; margin: 0 auto; }
footer { text-align: center; padding: 20px; margin-top: 40px; background-color: var(--dark-text); color: white; font-weight: bold; }

/* Music Player */
#music-player { position: fixed; bottom: 15px; left: 15px; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 50px; display: flex; align-items: center; padding: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 999; transform: translateX(-200%); transition: transform 0.5s ease-in-out; }
#music-player.show { transform: translateX(0); }
#song-info { padding: 0 15px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.controls button { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0 5px; }

/* Pesan Tersembunyi */
#secret-trigger { position: fixed; bottom: 25px; right: 25px; font-size: 2rem; cursor: pointer; animation: pulse 2s infinite; z-index: 999; }
@keyframes pulse { 0% {transform: scale(1);} 50% {transform: scale(1.2);} 100% {transform: scale(1);} }
#secret-modal { display: none; position: fixed; z-index: 1002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 400px; border-radius: 15px; text-align: center; position: relative; animation: slide-down 0.5s; }
@keyframes slide-down { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }
.close-modal-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }

/* Desain Responsif */
@media (max-width: 768px) {
    section { margin: 20px 15px; }
    .story-content { flex-direction: column; }
    .story-content.reverse { flex-direction: column-reverse; }
    .story-content .image-wrapper, .story-content > p, .guide-points { width: 100%; max-width: 100%; text-align: center; }
    .point-item, .story-content p { text-align: left; }
    .gallery-container { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
    #music-player { left: 50%; transform: translateX(-50%); width: 90%; justify-content: space-between; bottom: 10px; }
    #song-info { max-width: 120px; }
}
