/* style.css */
:root {
    --cream: #FAF9F6;
    --beige: #F5EBE1;
    --dusty-pink: #E4C0BA;
    --dusty-rose: #D19C97;
    --light-brown: #B59B88;
    --dark-brown: #665042;
    --text-main: #4A3B32;
    --text-muted: #8E7A6E;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--cream);
    color: var(--text-main);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cinematic Background - Tangan saling memegang/senja */
.cinematic-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1518133910546-b6c2fb7d79e3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px) brightness(0.9);
    z-index: -3;
    animation: softZoom 25s infinite alternate ease-in-out;
}

@keyframes softZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    /* Soft cream gradient to ensure text readability over image */
    background: linear-gradient(to bottom, rgba(250, 249, 246, 0.75), rgba(245, 235, 225, 0.9));
    z-index: -2;
}

/* Background Bokeh Elements */
.bokeh {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 15s infinite alternate ease-in-out;
}

.bokeh-1 { width: 300px; height: 300px; background: rgba(209, 156, 151, 0.3); top: -50px; left: -100px; }
.bokeh-2 { width: 400px; height: 400px; background: rgba(181, 155, 136, 0.2); bottom: 10%; right: -150px; animation-duration: 20s; }
.bokeh-3 { width: 250px; height: 250px; background: rgba(245, 235, 225, 0.4); top: 40%; left: 20%; animation-duration: 18s; animation-direction: alternate-reverse; }
.bokeh-4 { width: 200px; height: 200px; background: rgba(228, 192, 186, 0.3); top: 10%; right: 15%; animation-duration: 25s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Typography & Utilites */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-brown);
    font-weight: 600;
}

.text-center { text-align: center; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.container-sm { max-width: 800px; }
.section { padding: 90px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; color: var(--dark-brown); }
.section-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; }

/* Buttons & Glow Effect */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--dusty-rose);
    color: #fff;
    box-shadow: 0 5px 15px rgba(209, 156, 151, 0.4);
}
.btn-primary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-brown);
    border: 1px solid var(--dusty-rose);
}
.btn-secondary:hover {
    background-color: rgba(209, 156, 151, 0.1);
}

.glow-button {
    animation: glowing 2.5s infinite ease-in-out;
}
@keyframes glowing {
    0% { box-shadow: 0 0 10px rgba(209, 156, 151, 0.4); }
    50% { box-shadow: 0 0 25px rgba(209, 156, 151, 0.8); }
    100% { box-shadow: 0 0 10px rgba(209, 156, 151, 0.4); }
}

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--dark-brown);
    border: 1px solid var(--dusty-pink);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer; z-index: 100;
    transition: all 0.3s;
}
.pulse-glow { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(209, 156, 151, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(209, 156, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(209, 156, 151, 0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 60px;
}
.hero-title {
    font-size: 4rem; margin-bottom: 1.5rem; color: var(--dark-brown);
    letter-spacing: 1px;
}
.hero-quote {
    font-size: 1.35rem; font-style: italic; color: var(--text-main);
    max-width: 750px; margin: 0 auto 50px; line-height: 1.8;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 40px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

/* Paper Card (Sebab) */
.paper-card {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(181, 155, 136, 0.15);
    position: relative; line-height: 1.8; font-size: 1.15rem; color: var(--text-main);
}
.paper-card::before {
    content: ''; position: absolute; left: 20px; top: -15px;
    width: calc(100% - 40px); height: 100%; border-radius: 12px;
    background: rgba(255, 255, 255, 0.6); z-index: -1; transform: rotate(-2deg);
}
.paper-card p { margin-bottom: 1.5rem; }
.paper-card p:last-child { margin-bottom: 0; }

/* Penjelasan */
.penjelasan { background: linear-gradient(to bottom, transparent, rgba(245, 235, 225, 0.5), transparent); }
.letter-box {
    border-left: 4px solid var(--dusty-rose); padding-left: 20px;
    font-size: 1.15rem; color: var(--text-main); line-height: 1.9;
}
.letter-box p { margin-bottom: 1.2rem; }
.letter-box p:last-child { margin-bottom: 0; }

/* Perasaan Grid */
.feelings-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; margin-top: 2rem;
}
.feeling-item {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 20px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.3s;
}
.feeling-item:hover { transform: translateY(-5px); }
.feeling-icon { font-size: 2.5rem; color: var(--dusty-rose); margin-bottom: 1.5rem; }
.feeling-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feeling-item p { color: var(--text-muted); font-size: 1rem; }

/* Kenangan / Polaroids */
.gallery-wrapper {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 2rem;
}
.polaroid {
    background: rgba(255,255,255,0.9); padding: 15px 15px 25px 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); width: 300px;
    border: 1px solid #eee; transition: transform 0.4s;
}
.polaroid:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 5; }
.polaroid.rotate-right { transform: rotate(4deg); }
.polaroid:nth-child(1) { transform: rotate(-3deg); }
.img-placeholder {
    width: 100%; height: 280px; background: #ddd; overflow: hidden;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.caption {
    text-align: center; font-family: 'Handlee', var(--font-body);
    font-size: 1.15rem; margin-top: 15px; color: var(--dark-brown); font-style: italic;
}

/* Harapan Promise List */
.promise-list { max-width: 600px; margin: 0 auto; }
.promise-item {
    display: flex; align-items: flex-start; margin-bottom: 25px;
    background: rgba(255,255,255,0.75); padding: 25px; border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.promise-num {
    background: var(--dusty-pink); color: #fff; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-family: var(--font-heading); font-size: 1.2rem;
    margin-right: 20px; flex-shrink: 0; flex-grow: 0;
}
.promise-item p { font-size: 1.1rem; margin-top: 5px; color: var(--text-main); }

/* Penutup */
.penutup { background: rgba(245, 235, 225, 0.4); padding: 120px 0; border-top: 1px solid var(--beige); }
.penutup-icon { font-size: 3rem; color: var(--dusty-rose); margin-bottom: 20px; }
.penutup-title { font-size: 2.8rem; margin-bottom: 20px; }
.penutup-text { font-size: 1.25rem; max-width: 700px; margin: 0 auto 20px; line-height: 1.8; text-align: justify; text-align-last: center; }
.penutup-text-bold { font-size: 1.3rem; font-family: var(--font-heading); font-weight: 600; color: var(--dark-brown); margin-bottom: 40px; }
.action-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Floating Petals CSS */
.floating-petals {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    background-color: var(--dusty-pink);
    border-radius: 15px 0 15px 0;
    opacity: 0.6;
    animation: fallDown linear forwards;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes fallDown {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { transform: translateY(110vh) rotate(360deg) scale(0.8); opacity: 0; }
}

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-content {
    background: #fff; margin: 15vh auto; padding: 40px; border-radius: 20px;
    width: 90%; max-width: 450px; text-align: center; position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
}
.close-modal { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: #555; }
#modalMessage img { width: 150px; margin-bottom: 20px; border-radius: 10px; }
#modalMessage h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--dark-brown); }
#modalMessage p { font-size: 1.1rem; color: var(--text-muted); }

@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsiveness */
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-quote { font-size: 1.1rem; padding: 20px; margin: 0 10px 40px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .penutup-title { font-size: 2.2rem; }
    .penutup-text { font-size: 1.1rem; }
    .action-buttons { flex-direction: column; width: 80%; margin: 0 auto; gap: 15px; }
    .action-buttons button { width: 100%; }
}
