/* ======= HAPPY BIRTHDAY WEBSITE - MAIN STYLES ======= */
:root {
    --primary: #e91e63;
    --primary-light: #f48fb1;
    --primary-dark: #c2185b;
    --secondary: #ff9800;
    --bg-gradient-start: #fff0f5;
    --bg-gradient-end: #ffe4e1;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(233,30,99,0.15);
    --shadow-hover: 0 20px 60px rgba(233,30,99,0.25);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.theme-rose { --primary: #e91e63; --primary-light: #f48fb1; --primary-dark: #c2185b; --bg-gradient-start: #fff0f5; --bg-gradient-end: #ffe4e1; }
.theme-purple { --primary: #9c27b0; --primary-light: #ce93d8; --primary-dark: #7b1fa2; --bg-gradient-start: #f3e5f5; --bg-gradient-end: #e1bee7; }
.theme-blue { --primary: #2196f3; --primary-light: #90caf9; --primary-dark: #1976d2; --bg-gradient-start: #e3f2fd; --bg-gradient-end: #bbdefb; }
.theme-gold { --primary: #ff9800; --primary-light: #ffcc80; --primary-dark: #f57c00; --bg-gradient-start: #fff8e1; --bg-gradient-end: #ffecb3; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ======= FLOATING ELEMENTS ======= */
.hearts-container, .balloons-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1000; overflow: hidden;
}
.heart {
    position: absolute; font-size: 20px;
    animation: floatUp linear infinite; opacity: 0.6;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; } 90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1.2) rotate(360deg); opacity: 0; }
}
.balloon {
    position: absolute; width: 40px; height: 50px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: balloonFloat linear infinite; opacity: 0.7;
}
.balloon::after {
    content: ''; position: absolute; bottom: -20px; left: 50%;
    width: 1px; height: 20px; background: rgba(0,0,0,0.3); transform: translateX(-50%);
}
@keyframes balloonFloat {
    0% { transform: translateY(100vh) rotate(-5deg); }
    50% { transform: translateY(50vh) rotate(5deg); }
    100% { transform: translateY(-10vh) rotate(-5deg); }
}
#confetti-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 999;
}

/* ======= MUSIC PLAYER ======= */
.music-player { position: fixed; bottom: 25px; right: 25px; z-index: 1001; }
.music-toggle {
    width: 55px; height: 55px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 5px 20px rgba(233,30,99,0.4); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.music-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(233,30,99,0.5); }
.music-toggle.playing .music-icon { animation: musicPulse 1s ease infinite; }
@keyframes musicPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ======= HERO SECTION ======= */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, transparent 70%),
                linear-gradient(135deg, #ffebee 0%, #f8bbd0 50%, #fce4ec 100%);
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 50px 50px; animation: sparkleMove 20s linear infinite; opacity: 0.5;
}
@keyframes sparkleMove { 0% { transform: translate(0,0); } 100% { transform: translate(50px,50px); } }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-title { margin-bottom: 20px; }
.title-small {
    display: block; font-size: 1.5rem; color: var(--primary-dark); font-weight: 300;
    letter-spacing: 8px; text-transform: uppercase; animation: fadeInDown 1s ease;
}
.title-name {
    display: block; font-family: 'Dancing Script', cursive; font-size: 5rem;
    color: var(--primary); font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease 0.3s both; line-height: 1.2;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-light); margin-bottom: 30px; animation: fadeInUp 1s ease 0.6s both; font-weight: 300; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: 20px; margin: 30px 0; animation: fadeInUp 1s ease 0.9s both; flex-wrap: wrap; }
.countdown-item { background: white; border-radius: var(--radius); padding: 20px 15px; min-width: 80px; box-shadow: var(--shadow); border: 2px solid var(--primary-light); transition: var(--transition); }
.countdown-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.countdown-num { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.countdown-label { display: block; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.scroll-hint { margin-top: 50px; animation: fadeInUp 1s ease 1.2s both, bounce 2s infinite 2s; }
.scroll-text { display: block; font-size: 0.9rem; color: var(--text-light); margin-bottom: 5px; }
.scroll-arrow { font-size: 1.5rem; color: var(--primary); }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* ======= LOVE MESSAGE ======= */
.love-message { padding: 100px 0; background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); }
.message-card { max-width: 700px; margin: 0 auto; background: white; border-radius: 30px; padding: 60px 40px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; animation: fadeInUp 1s ease; }
.message-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)); }
.envelope-icon { font-size: 3rem; margin-bottom: 20px; animation: envelopeShake 2s ease infinite; }
@keyframes envelopeShake { 0%,100% { transform: rotate(0deg); } 10% { transform: rotate(-10deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-5deg); } 40% { transform: rotate(0deg); } }
.section-title { font-family: 'Dancing Script', cursive; font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.section-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 30px; text-align: center; }
.message-text { font-size: 1.1rem; line-height: 2; color: var(--text); margin-bottom: 20px; }
.love-note { font-family: 'Dancing Script', cursive; font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 30px; }
.signature { font-size: 1.1rem; color: var(--text-light); font-style: italic; }

/* ======= GALLERY ======= */
.gallery { padding: 100px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 40px; }
.gallery-item { animation: fadeInUp 0.6s ease both; cursor: pointer; }
.gallery-img-wrapper { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); aspect-ratio: 1; }
.gallery-img-wrapper:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-hover); }
.gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-img-wrapper:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; opacity: 0; transition: opacity 0.3s; height: 100%; }
.gallery-img-wrapper:hover .gallery-overlay { opacity: 1; }
.gallery-heart { font-size: 2rem; animation: heartbeat 1s ease infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.gallery-caption { color: white; font-size: 0.9rem; margin-top: 10px; text-align: center; }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-content p { color: white; margin-top: 15px; font-size: 1.1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; color: white; font-size: 2.5rem; cursor: pointer; transition: color 0.3s; user-select: none; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--primary-light); }
.lightbox-close { top: 20px; right: 30px; }
.lightbox-prev { left: 20px; top: 50%; }
.lightbox-next { right: 20px; top: 50%; }

/* ======= WISHES ======= */
.wishes { padding: 100px 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6), transparent); }
.wishes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.wish-card { background: white; border-radius: var(--radius); padding: 40px 30px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); animation: fadeInUp 0.6s ease both; border-top: 4px solid var(--primary); }
.wish-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.wish-icon { font-size: 3rem; margin-bottom: 15px; }
.wish-title { font-family: 'Dancing Script', cursive; font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.wish-text { color: var(--text-light); line-height: 1.8; font-size: 0.95rem; }

/* ======= CAKE SECTION ======= */
.cake-section { padding: 100px 0; text-align: center; }
.cake-container { display: flex; flex-direction: column; align-items: center; }
.cake { position: relative; width: 200px; height: 180px; margin-bottom: 30px; cursor: pointer; }
.cake-base { position: absolute; bottom: 0; left: 10px; width: 180px; height: 70px; background: linear-gradient(135deg, #d2691e, #a0522d); border-radius: 10px; }
.cake-middle { position: absolute; bottom: 65px; left: 25px; width: 150px; height: 60px; background: linear-gradient(135deg, #f4a460, #d2691e); border-radius: 10px; }
.cake-top { position: absolute; bottom: 120px; left: 40px; width: 120px; height: 50px; background: linear-gradient(135deg, #ffe4c4, #f4a460); border-radius: 10px; }
.candle { position: absolute; bottom: 165px; left: 90px; width: 20px; height: 50px; background: linear-gradient(180deg, #ff69b4, #ff1493); border-radius: 3px; cursor: pointer; }
.flame { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 16px; height: 30px; background: radial-gradient(ellipse at bottom, #fff 0%, #ffeb3b 30%, #ff9800 60%, transparent 100%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: flameFlicker 0.5s ease infinite alternate; transition: opacity 0.5s; }
.flame.blow-out { opacity: 0; animation: none; }
@keyframes flameFlicker { 0% { transform: translateX(-50%) scale(1) rotate(-2deg); } 100% { transform: translateX(-50%) scale(1.1) rotate(2deg); } }
.cake-text { font-family: 'Dancing Script', cursive; font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.cake-hint { color: var(--text-light); font-size: 0.9rem; }

/* ======= FOOTER ======= */
.site-footer { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 40px 0; text-align: center; }
.footer-text { font-size: 1rem; margin-bottom: 10px; opacity: 0.9; }
.footer-heart { font-size: 1.2rem; font-weight: 600; }

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .title-name { font-size: 3rem; }
    .title-small { font-size: 1rem; letter-spacing: 4px; }
    .countdown-item { min-width: 60px; padding: 15px 10px; }
    .countdown-num { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .message-card { padding: 40px 25px; }
    .section-title { font-size: 2rem; }
    .wish-card { padding: 30px 20px; }
}
@media (max-width: 480px) {
    .title-name { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .countdown { gap: 10px; }
    .countdown-item { min-width: 55px; padding: 10px 8px; }
}
