:root {
    --primary: #d65a78;
    --secondary: #8e44ad;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(214, 90, 120, 0.15);
    --font-heading: 'Pinyon Script', cursive;
    --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: #fceef2;
    color: #4a4a4a;
    font-family: var(--font-body);
    line-height: 1.6;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, #ffe3ec, #f3e5f5, #e0f7fa);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; opacity: 0.7; }
.blob-1 { top: -50px; left: -50px; width: 300px; height: 300px; background: #ffc2d1; }
.blob-2 { bottom: 20%; right: -50px; width: 250px; height: 250px; background: #e0b0ff; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative; z-index: 2;

    width: 100%;
    text-align: center;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--secondary); font-weight: 400; }
.section-title { font-size: 2.5rem; margin-bottom: 25px; text-align: center; }

.hero {
    height: 100vh; width: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 30px;
    position: absolute; top: 0; left: 0; z-index: 100;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
    background-size: cover; background-position: center;
}
.hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); z-index: -1;
}
.hero.open { transform: translateY(-100%); }

.hero-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px 20px;
    border-radius: 150px 150px 20px 20px;
    border: 2px solid white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 100%;
}

.hero-names {
    font-size: 3rem; line-height: 1.1; margin: 10px 0;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.btn-open {
    margin-top: 20px; padding: 12px 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white; border: none; border-radius: 50px;
    font-weight: 500; cursor: pointer;
    box-shadow: 0 10px 20px rgba(214, 90, 120, 0.3);
    transition: 0.3s;
}
.btn-open:hover { transform: scale(1.05); }

.hero-inside {
    height: 80vh;
    width: 100%;
    position: relative;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    margin-bottom: -50px;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-inside img { width: 100%; height: 100%; object-fit: cover; }
.hero-inside-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 80px 20px 60px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
    text-align: center;
}

.section {
    padding: 40px 20px;
    position: relative;
    z-index: 2;

    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.couple-img {
    width: 140px; height: 140px; object-fit: cover;
    border-radius: 50%; border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 10px;
}

.timeline { position: relative; padding-left: 20px; border-left: 2px solid rgba(214, 90, 120, 0.3); margin-left: 10px; }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-dot {
    position: absolute; left: -29px; top: 0;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--primary); border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(214, 90, 120, 0.2);
}
.story-year { font-weight: bold; color: var(--primary); font-size: 1.1rem; }
.story-title { font-family: var(--font-heading); font-size: 1.5rem; margin: 5px 0; color: var(--secondary); }

.event-item {
    border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 20px; margin-bottom: 20px; text-align: center;
}
.btn-map {
    display: inline-block; padding: 8px 25px;
    background: rgba(255,255,255,0.9); color: var(--secondary);
    border-radius: 20px; text-decoration: none; font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-top: 10px;
}

.countdown-box { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.timer-item {
    background: rgba(255,255,255,0.6); width: 60px; height: 60px; border-radius: 15px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    border: 1px solid rgba(255,255,255,0.8);
}
.timer-item span { font-weight: bold; color: var(--secondary); font-size: 1.1rem; }
.timer-item small { font-size: 0.6rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; border: 2px solid white; }

.bank-container {
    background: linear-gradient(135deg, #ffffff, #fceef2);
    padding: 20px; border-radius: 15px; border: 1px solid white; text-align: center;
}

.form-control { width: 100%; padding: 12px; border-radius: 30px; border: 1px solid white; margin-bottom: 10px; background: rgba(255,255,255,0.8); }
.btn-submit { width: 100%; padding: 12px; background: var(--secondary); color: white; border: none; border-radius: 30px; }
.music-box { position: fixed; bottom: 25px; right: 25px; width: 45px; height: 45px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 99; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; }
.spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.petal { position: absolute; background: rgba(255, 192, 203, 0.6); border-radius: 150% 0 150% 0; animation: falling linear infinite; z-index: 1; pointer-events: none; }
@keyframes falling { 0% { transform: translate(0, 0) rotate(0deg); opacity: 1; } 100% { transform: translate(100px, 100vh) rotate(360deg); opacity: 0; } }
.badge-hadir { background: var(--secondary); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; }
.badge-absen { background: #eee; color: #555; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; }