:root {
    --bg: #0d0015;
    --pink: #ff6b9d;
    --pink-light: #ffb8d0;
    --purple: #c44dff;
    --purple-light: #d9a0ff;
    --text: #f0e0ff;
    --text-muted: #c0a0d0;
    --glass: rgba(255,255,255,0.03);
    --glass-border: rgba(255,107,157,0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at center, #1a0030, #0d0015, #050010);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

/* Custom Cursor */
.cursor { width: 8px; height: 8px; background: var(--pink); border-radius: 50%; position: fixed; pointer-events: none; z-index: 99999; mix-blend-mode: difference; }
.cursor-follower { width: 30px; height: 30px; border: 2px solid var(--pink-light); border-radius: 50%; position: fixed; pointer-events: none; z-index: 99998; transition: transform 0.15s; }

/* Sparkles */
.sparkles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.sparkle { position: absolute; width: 3px; height: 3px; background: var(--pink-light); border-radius: 50%; animation: sparkleFloat 4s ease-in forwards; }
@keyframes sparkleFloat { 0% { opacity: 0; transform: translateY(0) scale(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-100px) scale(1); } }

/* Nav Dots */
.nav-dots { position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 20px; }
.nav-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--glass); border: 1.5px solid var(--glass-border); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); backdrop-filter: blur(10px); }
.nav-dot span { font-size: 1.2rem; transition: transform 0.3s; }
.nav-dot:hover, .nav-dot.active { background: rgba(255,107,157,0.2); border-color: var(--pink); box-shadow: 0 0 30px rgba(255,107,157,0.4); transform: scale(1.1); }
.nav-dot:hover span { transform: rotate(15deg); }

/* Music Player */
.music-player { position: fixed; left: 30px; top: 30px; z-index: 100; display: flex; align-items: center; gap: 12px; }
.music-btn { width: 45px; height: 45px; border-radius: 50%; background: var(--glass); border: 1.5px solid var(--glass-border); color: var(--pink-light); cursor: pointer; transition: var(--transition); backdrop-filter: blur(10px); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.music-btn:hover { border-color: var(--pink); box-shadow: 0 0 25px rgba(255,107,157,0.3); }
.music-info { display: flex; flex-direction: column; gap: 6px; }
.song-name { font-size: 0.8rem; color: var(--pink-light); font-weight: 500; }
.music-bar { width: 60px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.music-bar::after { content: ''; display: block; width: 40%; height: 100%; background: var(--pink); border-radius: 2px; animation: musicProgress 2s ease-in-out infinite; }
@keyframes musicProgress { 0%, 100% { width: 30%; } 50% { width: 80%; } }

/* Main Container */
.main-container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* Hero */
.hero-section { text-align: center; padding: 80px 20px 50px; position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ornament { position: absolute; color: var(--pink-light); opacity: 0.3; font-size: 1.5rem; animation: ornamentFloat 6s ease-in-out infinite; }
.ornament-1 { top: 15%; left: 10%; animation-delay: 0s; }
.ornament-2 { top: 20%; right: 12%; animation-delay: -2s; }
.ornament-3 { bottom: 30%; left: 8%; animation-delay: -4s; }
.ornament-4 { bottom: 25%; right: 10%; animation-delay: -1s; }
@keyframes ornamentFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(20deg); } }
.hero-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,107,157,0.1); border: 1px solid rgba(255,107,157,0.3); border-radius: 50px; padding: 8px 20px; margin-bottom: 25px; font-size: 0.85rem; color: var(--pink-light); }
.hero-name { font-family: 'Great Vibes', cursive; font-size: clamp(4rem, 10vw, 9rem); background: linear-gradient(45deg, #ff6b9d, #d4a0ff, #ffb8d0, #ff6b9d); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 4s ease infinite, nameFloat 4s ease-in-out infinite; margin-bottom: 15px; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes nameFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-subtitle { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.subtitle-line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink-light), transparent); }
.hero-subtitle p { font-family: var(--font-display); font-size: 1.4rem; color: var(--pink-light); font-style: italic; }
.typewriter-box { font-size: 1.1rem; color: var(--purple-light); min-height: 30px; margin-bottom: 30px; }
.cursor-blink { animation: blink 0.7s infinite; color: var(--pink); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-quote { max-width: 600px; margin: 25px 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--text-muted); font-style: italic; line-height: 1.8; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.btn { padding: 16px 38px; border-radius: 50px; text-decoration: none; font-weight: 500; font-size: 1rem; transition: var(--transition); display: flex; align-items: center; gap: 10px; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, #ff6b9d, #c44dff); color: white; box-shadow: 0 10px 40px rgba(255,107,157,0.3); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(255,107,157,0.5); }
.btn-outline { background: transparent; border: 2px solid var(--pink); color: var(--pink); }
.btn-outline:hover { background: rgba(255,107,157,0.1); transform: translateY(-4px); }
.btn-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; }
.btn:hover .btn-shine { left: 100%; }
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 40px; color: var(--text-muted); font-size: 0.8rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Love Stats */
.love-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin: 80px 0; }
.stat-card { background: rgba(255,255,255,0.02); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 35px 25px; text-align: center; transition: var(--transition); }
.stat-card:hover { border-color: var(--pink); background: rgba(255,107,157,0.05); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(255,107,157,0.2); }
.stat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.stat-number { font-size: 3.5rem; font-weight: 700; font-family: var(--font-display); background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* Floating Messages */
.floating-messages { margin: 80px 0; text-align: center; }
.section-title { font-family: var(--font-display); font-size: 2.5rem; color: var(--pink-light); margin-bottom: 40px; }
.section-title span { color: var(--purple-light); }
.message-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.message-card { background: rgba(255,255,255,0.02); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 35px 25px; position: relative; overflow: hidden; transition: var(--transition); }
.message-card:hover { border-color: var(--pink); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(255,107,157,0.15); }
.card-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,107,157,0.08), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.message-card:hover .card-glow { opacity: 1; }
.card-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.message-card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--pink); margin-bottom: 10px; }
.message-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* Page Header (sorry.html, surprise.html) */
.page-header { text-align: center; padding: 80px 20px 50px; }
.page-title { font-family: 'Great Vibes', cursive; font-size: 3.5rem; color: var(--pink-light); margin-bottom: 10px; }
.page-subtitle { color: var(--text-muted); font-size: 1rem; }
.back-btn { position: fixed; left: 30px; top: 90px; z-index: 100; padding: 10px 20px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 30px; color: var(--text); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.back-btn:hover { border-color: var(--pink); background: rgba(255,107,157,0.1); }

/* Letters */
.letters-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.envelope { background: linear-gradient(135deg, rgba(255,107,157,0.05), rgba(212,160,255,0.05)); border: 1px solid var(--glass-border); border-radius: 20px; padding: 35px; transition: var(--transition); position: relative; overflow: hidden; }
.envelope::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--pink)); }
.envelope:hover { transform: translateY(-8px); border-color: var(--pink); box-shadow: 0 20px 60px rgba(255,107,157,0.2); }
.letter-content h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--pink); margin-bottom: 15px; }
.letter-content p { color: var(--text-muted); line-height: 1.8; font-size: 0.9rem; }
.signature { font-family: 'Dancing Script', cursive; color: var(--pink-light) !important; font-size: 1.2rem !important; margin-top: 15px !important; }

/* Interactive */
.interactive-section { text-align: center; margin: 60px 0; }
.interactive-section h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 20px; }
.sorry-accept-btn { padding: 20px 50px; font-size: 1.2rem; background: linear-gradient(135deg, #ff6b9d, #c44dff); border: none; border-radius: 50px; color: white; cursor: pointer; box-shadow: 0 15px 50px rgba(255,107,157,0.4); transition: var(--transition); }
.sorry-accept-btn:hover { transform: scale(1.05); box-shadow: 0 25px 70px rgba(255,107,157,0.6); }

/* Gifts */
.gifts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.gift-card { background: rgba(255,255,255,0.02); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 35px 25px; text-align: center; transition: var(--transition); }
.gift-card:hover { border-color: var(--pink); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(255,107,157,0.2); }
.gift-icon { font-size: 3rem; margin-bottom: 15px; }
.gift-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--pink); margin-bottom: 10px; }
.gift-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Photo Upload */
.photo-upload-container { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.photo-preview { width: 100%; height: 200px; background: rgba(255,255,255,0.03); border: 2px dashed var(--glass-border); border-radius: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); overflow: hidden; }
.photo-preview:hover { border-color: var(--pink); background: rgba(255,107,157,0.08); }
.upload-placeholder { text-align: center; color: var(--text-muted); }
.upload-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; animation: bounce 2s infinite; }
#uploadedPhoto { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.btn-upload, .btn-remove { padding: 10px 22px; border-radius: 30px; font-size: 0.85rem; cursor: pointer; font-weight: 500; transition: var(--transition); border: none; font-family: var(--font-body); }
.btn-upload { background: linear-gradient(135deg, #ff6b9d, #c44dff); color: white; }
.btn-upload:hover { transform: translateY(-2px); }
.btn-remove { background: rgba(255,68,68,0.2); color: #ff6b6b; border: 1px solid rgba(255,68,68,0.4); }
.btn-remove:hover { background: rgba(255,68,68,0.3); }
#photoInput { display: none; }

/* Love Timer */
.love-timer { display: flex; gap: 15px; justify-content: center; }
.timer-unit { text-align: center; min-width: 55px; }
.timer-number { display: block; font-size: 2.5rem; font-weight: 700; font-family: var(--font-display); background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.timer-label { font-size: 0.7rem; color: var(--text-muted); }

/* Message Box */
.message-box { background: rgba(255,255,255,0.02); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; max-width: 650px; margin: 0 auto; text-align: center; line-height: 1.8; color: var(--text-muted); }

/* Big Heart */
.big-heart-btn { font-size: 5rem; background: transparent; border: none; cursor: pointer; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.click-hint { color: var(--text-muted); margin-top: 10px; font-size: 0.85rem; }
.final-heart { text-align: center; margin: 60px 0; position: relative; }
.heart-explosion { position: absolute; top: 50%; left: 50%; pointer-events: none; }

@media (max-width: 768px) {
    .nav-dots { right: 15px; gap: 15px; } .nav-dot { width: 40px; height: 40px; }
    .music-player { left: 15px; top: 15px; } .back-btn { left: 15px; top: 70px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-name { font-size: 3.5rem; }
}
