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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc3a0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

body.dark-theme {
    background: linear-gradient(135deg, #2c1a3d 0%, #4a1942 100%);
}

body.red-theme {
    background: linear-gradient(135deg, #c31432 0%, #240b36 100%);
}

/* Floating Hearts */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 20px;
    animation: float 6s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Landing Page */
.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.main-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.form-card {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ff6b9d;
    font-weight: 600;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffc3a0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255,107,157,0.3);
}

.create-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,107,157,0.4);
}

/* Love Page */
.love-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hidden {
    display: none !important;
}

.love-content {
    max-width: 700px;
    width: 100%;
    position: relative;
}

.back-btn, .music-toggle, .theme-toggle {
    position: fixed;
    top: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    z-index: 100;
}

.back-btn {
    left: 20px;
}

.music-toggle {
    right: 80px;
}

.theme-toggle {
    right: 20px;
}

.back-btn:hover, .music-toggle:hover, .theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.love-card {
    background: rgba(255,255,255,0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.heart-burst {
    font-size: 5rem;
    position: relative;
    display: inline-block;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.love-title {
    font-size: 2rem;
    color: #ff6b9d;
    margin: 20px 0;
}

.love-message {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
}

.quote-box {
    background: linear-gradient(135deg, #ffeef5, #fff5f8);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #ff6b9d;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
}

.share-section h3 {
    color: #ff6b9d;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: white;
}

.copy-btn { background: #6c757d; }
.whatsapp-btn { background: #25d366; }
.twitter-btn { background: #1da1f2; }
.download-btn { background: #ff6b9d; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Confetti */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b9d;
    top: -10px;
    animation: confettiFall 3s linear;
}

@keyframes confettiFall {
    to { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* New Animations */
.rose-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    font-size: 25px;
    animation: petalFall 8s linear infinite;
    opacity: 0.7;
}

@keyframes petalFall {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkleAnim 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px white;
}

@keyframes sparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.love-card {
    animation: fadeIn 1s ease, cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 20px 80px rgba(255,107,157,0.5); }
}

.love-title {
    animation: titleSlide 1s ease, colorShift 4s ease-in-out infinite;
}

@keyframes titleSlide {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes colorShift {
    0%, 100% { color: #ff6b9d; }
    50% { color: #ff1744; }
}

.love-message {
    animation: messageFloat 1.2s ease;
}

@keyframes messageFloat {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-box {
    animation: quoteSlide 1.5s ease, quotePulse 3s ease-in-out infinite;
}

@keyframes quoteSlide {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes quotePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.share-section {
    animation: shareAppear 2s ease;
}

@keyframes shareAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-card {
    animation: formBounce 0.8s ease;
}

@keyframes formBounce {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.main-title {
    animation: pulse 2s infinite, titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 2px 2px 10px rgba(0,0,0,0.2); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 2px 2px 10px rgba(0,0,0,0.2); }
}

.heart-burst {
    animation: heartBeat 1.5s infinite, heartRotate 4s linear infinite;
}

@keyframes heartRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .main-title { font-size: 1.8rem; }
    .form-card { padding: 30px 20px; }
    .love-card { padding: 30px 20px; }
    .love-title { font-size: 1.5rem; }
    .love-message { font-size: 1.1rem; }
    .share-buttons { flex-direction: column; }
    .share-btn { width: 100%; }
}
