/* ======================================================= */
/* KODE CSS LENGKAP - VERSI RESPONSIVE DISEMPURNAKAN       */
/* ======================================================= */

:root {
    --primary-gold: #EABDA8; /* Rose Gold */
    --accent-silver: #E0E0E0;
    --deep-blue: #4A4E69; /* Lavender Deep */
    --dark-bg: #22223B; /* Dark Purple */
    --card-bg: rgba(74, 78, 105, 0.7);
    --text-light: #F2E9E4;
    --text-accent: #9A8C98;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
    overflow: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23EABDA8"><path d="M12 2l2.45 7.55h7.95l-6.4 4.65l2.45 7.55l-6.4-4.65l-6.4 4.65l2.45-7.55l-6.4-4.65h7.95z"/></svg>'), auto;
}

#loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; transition: opacity 1.5s ease-out; }
.loading-text { margin-top: 180px; font-size: 1.1rem; color: var(--primary-gold); opacity: 0; animation: fadeInText 3s forwards; animation-delay: 1s; }
@keyframes fadeInText { to { opacity: 0.8; } }
.soul-loader { position: relative; width: 200px; height: 200px; }
.soul-particle { position: absolute; width: 10px; height: 10px; background-color: var(--primary-gold); border-radius: 50%; box-shadow: 0 0 15px var(--primary-gold), 0 0 25px var(--primary-gold); animation-duration: 4s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.soul-particle:nth-child(1) { animation-name: soul-path-1; }
.soul-particle:nth-child(2) { animation-name: soul-path-2; }
@keyframes soul-path-1 { 0% { top: 0; left: 0; opacity: 0; } 25% { top: 150px; left: 150px; opacity: 1; } 50% { top: 100px; left: 100px; opacity: 1; transform: scale(1.5); } 75% { transform: scale(3.5) translate(1px, -13px); background-color: #ff5757; opacity: 1; } 100% { transform: scale(8) translate(1px, -13px); background-color: #ff5757; opacity: 0; } }
@keyframes soul-path-2 { 0% { top: 200px; left: 200px; opacity: 0; } 25% { top: 50px; left: 50px; opacity: 1; } 50% { top: 100px; left: 100px; opacity: 1; transform: scale(1.5); } 75% { transform: scale(3.5) translate(-1px, -13px); background-color: #ff5757; opacity: 1; } 100% { transform: scale(8) translate(-1px, -13px); background-color: #ff5757; opacity: 0; } }
.soul-loader::after { content: '❤'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1px; color: #ff5757; text-shadow: 0 0 15px #ff5757; opacity: 0; animation: heart-bloom 4s ease-in-out infinite; }
@keyframes heart-bloom { 0%, 50% { opacity: 0; font-size: 1px; } 75% { opacity: 1; font-size: 50px; } 100% { opacity: 0; font-size: 60px; } }

#enter-overlay { background-color: rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; transition: opacity 0.5s; position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 1000; }
#enter-button { padding: 15px 30px; font-size: 1.2rem; background: linear-gradient(45deg, var(--primary-gold), #ffcda8); color: var(--deep-blue); border: none; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; }
#enter-button:hover { transform: scale(1.05); }

#main-content { visibility: hidden; opacity: 0; transition: opacity 1.5s ease-in; }

section { text-align: center; background-color: var(--card-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid rgba(234, 189, 168, 0.2); }
h1, h2, h3 { font-family: var(--font-script); color: var(--primary-gold); text-shadow: 0 0 8px rgba(234, 189, 168, 0.5); }
h1 { font-size: clamp(2.8rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

.hero-image { width: clamp(180px, 35vw, 250px); height: clamp(180px, 35vw, 250px); border-radius: 50%; object-fit: cover; border: 8px solid var(--primary-gold); margin-bottom: 30px; }
#hero p { font-style: italic; color: var(--accent-silver); }

.image-wrapper { position: relative; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 12px; display: inline-block; }
.image-wrapper img { display: block; width: 100%; border-radius: 8px; }

.story-content { display: flex; align-items: center; gap: 40px; text-align: left; margin-top: 40px; max-width: 900px; margin-left: auto; margin-right: auto;}
.guide-points { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.point-item { background-color: rgba(255, 255, 255, 0.08); padding: 18px 25px; border-radius: 15px; border-left: 5px solid var(--primary-gold); }
.point-item p { color: var(--accent-silver); }

.gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.gallery-container .image-wrapper { cursor: pointer; }
#lightbox { display: none; position: fixed; z-index: 1001; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); }
.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: var(--accent-silver); font-size: 40px; cursor: pointer; }
.prev-slide, .next-slide { cursor: pointer; position: absolute; top: 50%; padding: 16px; margin-top: -22px; color: var(--primary-gold); font-size: 24px; }
.next-slide { right: 0; }

.creator-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid var(--primary-gold); }
#about-creator p { max-width: 450px; margin: 0 auto; color: var(--accent-silver); }
footer { text-align: center; padding: 25px; }

#music-player { position: fixed; bottom: 20px; left: 20px; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); border-radius: 50px; display: flex; align-items: center; padding: 10px; z-index: 999; transform: translateX(-200%); transition: transform 0.5s ease-in-out; }
#music-player.show { transform: translateX(0); }
#song-info { padding: 0 15px; max-width: 150px; }
.controls button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-gold); }

#secret-trigger { position: fixed; bottom: 30px; right: 30px; font-size: 2.5rem; cursor: pointer; animation: pulse 2s infinite; z-index: 999; color: var(--primary-gold); }
@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.8); }
.modal-content { background-color: var(--dark-bg); margin: 15% auto; padding: 30px; border: 2px solid var(--primary-gold); width: 80%; max-width: 450px; border-radius: 20px; text-align: center; animation: slide-down 0.5s; }
@keyframes slide-down { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }
.close-modal-btn { color: var(--accent-silver); float: right; font-size: 32px; cursor: pointer; }

/* SLIDE & ANIMASI */
main#main-content > section {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 5vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100%);
}
main#main-content section.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transform: translateX(0);
}

#section-navigation { position: fixed; top: 50%; width: 100%; transform: translateY(-50%); display: flex; justify-content: space-between; z-index: 100; pointer-events: none; }
.nav-btn { pointer-events: all; background: rgba(234, 189, 168, 0.2); border: none; color: var(--primary-gold); font-size: 2rem; cursor: pointer; padding: 15px; margin: 0 20px; border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; transition: all 0.3s; opacity: 0; visibility: hidden; }
.nav-btn.visible { opacity: 1; visibility: visible; }
.nav-btn:hover { background: rgba(234, 189, 168, 0.4); transform: scale(1.1); }
.anim-item { opacity: 0; }

/* LATAR BELAKANG & SECTION BARU */
#star-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -10; overflow: hidden; }
.stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-repeat: repeat; background-position: 0 0; }
#stars1 { background-image: radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)), radial-gradient(2px 2px at 90% 40%, #fff, rgba(0,0,0,0)); background-size: 300px 300px; animation: moveStars 150s linear infinite; }
#stars2 { background-image: radial-gradient(1px 1px at 50px 100px, #fff, rgba(0,0,0,0)); background-size: 400px 400px; animation: moveStars 100s linear infinite; }
#stars3 { background-image: radial-gradient(1px 1px at 150px 250px, #fff, rgba(0,0,0,0)); background-size: 600px 600px; animation: moveStars 50s linear infinite; }
@keyframes moveStars { from { transform: translateY(0); } to { transform: translateY(-1000px); } }
.shooting-star { position: absolute; top: 50%; left: 50%; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: shootingStar 15s linear infinite; }
@keyframes shootingStar { 0% { transform: translate(100vw, -100vh); opacity: 1; } 20% { transform: translate(-50vw, 50vh); opacity: 0; } 100% { opacity: 0; } }

#cursor-star { position: fixed; top: 0; left: 0; font-size: 2rem; pointer-events: none; z-index: 9999; transition: transform 0.1s ease-out; }
#creator-photo-container { position: relative; display: inline-block; }
.eye { position: absolute; width: 25px; height: 25px; background-color: white; border-radius: 50%; }
.eye:nth-of-type(1) { top: 35px; left: 25px; }
.eye:nth-of-type(2) { top: 35px; right: 25px; }
.pupil { position: absolute; width: 12px; height: 12px; background-color: #333; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.gallery-container .image-wrapper:hover { animation: jiggle 0.4s infinite; }
@keyframes jiggle { 0% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 100% { transform: rotate(-2deg); } }

.timeline-container { position: relative; max-width: 800px; width: 100%; margin-top: 40px; }
.timeline-container::after { content: ''; position: absolute; width: 4px; background-color: var(--primary-gold); top: 0; bottom: 0; left: 50%; margin-left: -2px; animation: drawLine 2s forwards; transform-origin: top; transform: scaleY(0); }
@keyframes drawLine { to { transform: scaleY(1); } }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--dark-bg); border: 4px solid var(--primary-gold); top: 25px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content { padding: 20px; background-color: rgba(255, 255, 255, 0.08); border-radius: 10px; }

.coupon-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; max-width: 1000px; perspective: 1000px; }
#coupons p { color: var(--accent-silver); }
.coupon-card { background: none; border: none; cursor: pointer; height: 150px; }
.coupon-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; }
.coupon-card.flipped .coupon-inner { transform: rotateY(180deg); }
.coupon-front, .coupon-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 15px; box-sizing: border-box; padding: 20px; border: 3px dashed var(--primary-gold); }
.coupon-front { background: linear-gradient(45deg, rgba(234, 189, 168, 0.1), rgba(234, 189, 168, 0.2)); }
.coupon-back { background: linear-gradient(45deg, #EABDA8, #ffc48c); color: var(--deep-blue); transform: rotateY(180deg); }
.coupon-front h3, .coupon-back h3 { color: var(--primary-gold); }
.coupon-back h3, .coupon-back p { color: var(--deep-blue); text-shadow: none; }
.coupon-front p { font-size: 0.9rem; color: var(--accent-silver); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
.visible.anim-fade-up { animation: fadeUp 0.8s forwards; }
.visible.anim-bounce { animation: bounceIn 0.8s forwards; }
.visible.anim-delay-1 { animation-delay: 0.2s; }
.visible.anim-delay-2 { animation-delay: 0.4s; }
.visible.anim-delay-3 { animation-delay: 0.6s; }

/* CSS UNTUK SECTION ALASAN */
#reasons p {
    color: var(--text-accent);
    margin-bottom: 40px;
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}
.reason-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.reason-card h3 {
    color: var(--primary-gold);
    margin-top: 0;
}

/* ======================================================= */
/* RESPONSIVE UNTUK TABLET                                 */
/* ======================================================= */
@media (max-width: 768px) {
    h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
    h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    h3 { font-size: 1.5rem; }
    
    main#main-content > section { 
        padding: 10vh 25px; /* Padding disesuaikan */
    }

    .story-content, .story-content.reverse { flex-direction: column; }
    .hero-image { width: 150px; height: 150px; }
    .creator-photo { width: 90px; height: 90px; }
    .eye { width: 22px; height: 22px; }
    .eye:nth-of-type(1) { top: 30px; left: 20px; }
    .eye:nth-of-type(2) { top: 30px; right: 20px; }
    .pupil { width: 10px; height: 10px; }
    .nav-btn { width: 45px; height: 45px; font-size: 1.5rem; margin: 0 10px; }
    #music-player { left: 50%; transform: translateX(-50%); width: 90%; bottom: 15px; }
    #secret-trigger { bottom: 20px; right: 20px; font-size: 2rem; }
    .modal-content { width: 90%; margin: 30% auto; }

    .timeline-container::after { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; padding-left: 50px; left: 0; }
    .timeline-item::after { left: 10px; }

    .coupon-container { grid-template-columns: 1fr; }
    .reasons-grid { grid-template-columns: 1fr; }
}

/* ======================================================= */
/* RESPONSIVE UNTUK HP KECIL                               */
/* ======================================================= */
@media (max-width: 480px) {
    h1 { font-size: 2.0rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    p { font-size: 0.95rem; }

    main#main-content > section { 
        padding: 8vh 15px; /* Padding diperkecil lagi */
    }
    
    .hero-image { width: 120px; height: 120px; }
    .point-item, .timeline-content, .reason-card, .coupon-front, .coupon-back {
        padding: 15px; /* Padding di dalam kartu diperkecil */
    }
    
    #enter-button { font-size: 1rem; padding: 12px 24px;}
}
