:root {
    --bg-dark: #1f0b17;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-main: #fce4ec;
    --text-muted: #d4a5b9;
    --accent: #e57373;
}

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

html {
    overflow: hidden; 
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.85)), url('assets/foto/bg.jpg') center/cover fixed no-repeat;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; font-weight: normal; }

#cover-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 100;
    transition: opacity 1.5s ease;
}

.gift-box { font-size: 90px; cursor: pointer; animation: pulse 1.5s infinite; position: relative; z-index: 10; }
.tap-text { margin-top: 15px; font-size: 11px; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(229,115,115,0.4)); }
    100% { transform: scale(1); }
}

.burst-flower { position: absolute; font-size: 30px; opacity: 0; pointer-events: none; transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

#popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center;
    z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.4s ease;
}
#popup-overlay.show { opacity: 1; visibility: visible; }

#popup-box {
    background: var(--bg-dark); border: 2px solid var(--accent); padding: 40px 20px;
    border-radius: 15px; text-align: center; position: relative; width: 90%; max-width: 450px;
    min-height: 250px; box-shadow: 0 0 25px rgba(229,115,115,0.4);
}
#popup-box h3 { color: #fff; font-size: 26px; margin-bottom: 40px; }
.popup-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; }
.popup-btn {
    padding: 12px 24px; border: none; border-radius: 25px; font-family: 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.3s ease;
}
#btn-yes { background: var(--accent); color: #fff; }
#btn-yes:hover { background: #ef9a9a; }
#btn-no { background: #555; color: #fff; transition: top 0.2s ease, left 0.2s ease, background 0.3s ease; }

.petals { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.petal { position: absolute; background-color: #ffb7c5; border-radius: 50% 0 50% 0; opacity: 0.4; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; } 20% { opacity: 0.6; } 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; } }

#main-content { display: none; opacity: 0; transition: opacity 2s ease; position: relative; z-index: 10; }

section { 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; 
    padding: 5px 20px;
    max-width: 680px;
    margin: 0 auto; position: relative; 
    height: 100vh; scroll-snap-align: start; 
}
.hero-section { height: 100vh; justify-content: center; }

.subtitle { font-size: 10px; color: var(--text-muted); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 5px; }
.title-main { font-size: 38px; margin-bottom: 5px; color: #fff; line-height: 1.1; }
.title-sub { font-size: 28px; margin-bottom: 5px; color: #fff; }
.text-body { font-size: 13px; line-height: 1.5; color: #dcdcdc; max-width: 650px; font-weight: 300; }

.hero-section img { width: 100px !important; height: 100px !important; margin-bottom: 10px !important; }

.next-btn {
    margin-top: 10px; padding: 8px 25px; background: transparent; border: 2px solid var(--accent);
    color: var(--text-main); font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; border-radius: 25px; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 0 15px rgba(229, 115, 115, 0.2);
}
.next-btn:hover { background: var(--accent); color: #fff; box-shadow: 0 0 25px rgba(229, 115, 115, 0.6); transform: translateY(-3px); }

.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 15px; }
.card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); padding: 12px 10px; border-radius: 12px; backdrop-filter: blur(10px); transition: all 0.3s ease; text-align: center; }
.card:hover { transform: translateY(-5px); border-color: rgba(229,115,115,0.3); }
.card-icon { font-size: 18px; margin-bottom: 5px; }
.card h3 { font-size: 15px; margin-bottom: 5px; color: #fff; }
.card p { font-size: 11px; color: #bca0ad; line-height: 1.4; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; margin-top: 15px; }
.photo-item { position: relative; cursor: pointer; transition: transform 0.3s; }
.photo-item:hover { transform: scale(1.05); }
.photo-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; filter: grayscale(100%) sepia(30%) hue-rotate(290deg) brightness(0.8) contrast(1.2); transition: filter 0.5s ease; }
.photo-item img:hover { filter: grayscale(0%); }
.photo-caption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; margin-top: 5px; color: var(--text-muted); }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; margin-top: 15px; }
.video-container { width: 100%; max-width: 280px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.4); margin: 0 auto; }
.video-container video { width: 100%; display: block; }

.playlist-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; margin-top: 15px; }

.music-widget {
    position: fixed; bottom: 20px; left: 20px; background: rgba(15, 5, 10, 0.7); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px; padding: 12px; width: 240px; backdrop-filter: blur(15px); z-index: 50; display: flex; flex-direction: column;
    gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.3s;
}
.music-widget:hover { transform: translateY(-5px); }
.music-top { display: flex; align-items: center; gap: 12px; }
.music-top img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; }
.music-info { display: flex; flex-direction: column; gap: 2px; }
.music-info .title { font-size: 12px; font-weight: 500; color: #fff; }
.music-info .artist { font-size: 9px; color: var(--text-muted); letter-spacing: 1px; }

.progress-wrapper { width: 100%; margin-top: 3px; }
.time-display { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); margin-top: 5px; letter-spacing: 1px; }
#seek-bar { appearance: none; -webkit-appearance: none; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; outline: none; cursor: pointer; }
#seek-bar::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text-main); box-shadow: 0 0 10px rgba(229,115,115,0.5); transition: transform 0.2s; }
#seek-bar::-webkit-slider-thumb:hover { transform: scale(1.3); }

.controls { display: flex; justify-content: center; align-items: center; gap: 15px; font-size: 14px; cursor: pointer; color: var(--text-main); }
.controls span:hover { color: var(--accent); }

section > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
section.in-view > * { opacity: 1; transform: translateY(0); }
section.in-view > *:nth-child(1) { transition-delay: 0.1s; }
section.in-view > *:nth-child(2) { transition-delay: 0.2s; }
section.in-view > *:nth-child(3) { transition-delay: 0.3s; }
section.in-view > *:nth-child(4) { transition-delay: 0.4s; }
section.in-view > *:nth-child(5) { transition-delay: 0.5s; }
section.in-view > *:nth-child(6) { transition-delay: 0.6s; }
section.in-view > *:nth-child(7) { transition-delay: 0.7s; }

@media (max-width: 768px) {

    .music-widget { 
        bottom: 15px; left: 50%; transform: translateX(-50%); width: 85%; max-width: 300px; 
        padding: 10px 15px; border-radius: 12px; gap: 8px;
    }
    .music-widget:hover { transform: translate(-50%, -2px); }
    .music-top { gap: 10px; }
    .music-top img { width: 35px; height: 35px; }
    .music-info .title { font-size: 12px; }
    .music-info .artist { font-size: 9px; }
    .time-display { font-size: 9px; margin-top: 3px; }
    .controls { gap: 15px; font-size: 14px; }

    section { padding-bottom: 140px; padding-top: 30px; }

    .title-main { font-size: 38px; margin-bottom: 15px; line-height: 1.1; }
    .title-sub { font-size: 28px; margin-bottom: 15px; }
    .text-body { font-size: 11px !important; line-height: 1.5 !important; }
    .subtitle { font-size: 9px; margin-bottom: 10px; }
    .hero-section img { width: 100px !important; height: 100px !important; margin-bottom: 15px !important; }

    .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 15px; }
    .card { padding: 12px 10px; }
    .card-icon { font-size: 18px; margin-bottom: 5px; }
    .card h3 { font-size: 12px; margin-bottom: 5px; }
    .card p { font-size: 9px; line-height: 1.3; }
    
    .playlist-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
    .playlist-grid .photo-item,
    .playlist-grid .photo-item:nth-child(5) { 
        width: 28% !important; margin: 0 !important; 
    }
    .playlist-grid .photo-caption { font-size: 11px !important; margin-top: 6px !important; line-height: 1.2; }
    .playlist-grid p { font-size: 9px !important; }

    .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .photo-grid .photo-caption { font-size: 12px !important; margin-top: 5px !important; }
    
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
    .video-container { margin-top: 0 !important; border-radius: 8px; }

    section div[style*="border-left"] { padding: 15px 20px !important; margin-top: 10px !important; }
    section div[style*="border-left"] p { font-size: 12px !important; line-height: 1.6 !important; }
    section p[style*="made with love"] { margin-top: 20px !important; font-size: 14px !important; }
}