* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;
    background: linear-gradient(135deg, #fff0f8 0%, #ffe8f4 15%, #ffe0f0 30%, #ffd8ec 45%, #ffd0e8 60%, #ffc8e4 75%, #ffc0e0 90%, #ffb8dc 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(5deg) brightness(1.05); }
}

/* Cute floating hearts in background */
body::before {
    content: '💕 💖 💗 💝 💓 💞 🌸 🎀 ✨ 🦋 🌺 🌷 💕 💖 💗 💝 💓 💞 🌸 🎀 ✨ 🦋 🌺 🌷 💕 💖 💗 💝 💓 💞 🌸 🎀 ✨ 🦋 🌺 🌷 💕 💖 💗 💝 💓 💞 🌸 🎀 ✨ 🦋 🌺 🌷';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    font-size: 3em;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: floatHearts 30s linear infinite;
    word-spacing: 80px;
    line-height: 3.5;
    text-align: justify;
    white-space: normal;
    overflow: hidden;
}

@keyframes floatHearts {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Additional cute floating elements */
body::after {
    content: '🎀 ✨ 💫 🌟 ⭐ 💖 🎀 ✨ 💫 🌟 ⭐ 💖 🎀 ✨ 💫 🌟 ⭐ 💖 🎀 ✨ 💫 🌟 ⭐ 💖 🎀 ✨ 💫 🌟 ⭐ 💖';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    font-size: 2em;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: floatHearts 40s linear infinite reverse;
    word-spacing: 100px;
    line-height: 4;
    text-align: justify;
    white-space: normal;
    overflow: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 253, 0.98) 100%);
    border-radius: 50px;
    padding: 60px 40px;
    box-shadow: 0 25px 80px rgba(255, 105, 180, 0.4), 0 0 0 5px rgba(255, 179, 217, 0.3), 0 0 100px rgba(255, 105, 180, 0.2);
    border: 5px solid #ffb3d9;
    position: relative;
    z-index: 1;
    animation: containerGlow 3s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% { box-shadow: 0 25px 80px rgba(255, 105, 180, 0.4), 0 0 0 5px rgba(255, 179, 217, 0.3), 0 0 100px rgba(255, 105, 180, 0.2); }
    50% { box-shadow: 0 30px 90px rgba(255, 105, 180, 0.5), 0 0 0 5px rgba(255, 105, 180, 0.4), 0 0 120px rgba(255, 105, 180, 0.3); }
}

/* Sparkles decoration */
.container::before {
    content: '✨🦋💕🦋✨';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2em;
    animation: sparkleTop 2s ease-in-out infinite;
}

.container::after {
    content: '🌸💖🌺💖🌸';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    animation: sparkleBottom 2s ease-in-out infinite 1s;
}

@keyframes sparkleTop {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.15) rotate(5deg); }
}

@keyframes sparkleBottom {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.15) rotate(-5deg); }
}

.title {
    font-size: 4em;
    text-align: center;
    background: linear-gradient(120deg, #ff69b4 0%, #ff1493 20%, #ffb6c1 40%, #ff1493 60%, #ff69b4 80%, #ff1493 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite, gradientShift 5s ease infinite;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 2px 2px 20px rgba(255, 105, 180, 0.4);
    filter: drop-shadow(0 6px 20px rgba(255, 105, 180, 0.6)) drop-shadow(0 0 30px rgba(255, 182, 193, 0.4));
    position: relative;
}

.title::before {
    content: '🦋';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    animation: butterflyFloat 3s ease-in-out infinite;
}

.title::after {
    content: '🦋';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    font-size: 0.6em;
    animation: butterflyFloat 3s ease-in-out infinite 1.5s;
}

@keyframes butterflyFloat {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-70%) rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); }
    50% { transform: translateY(-18px) rotate(1deg) scale(1.02); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.love-message {
    font-size: 1.5em;
    line-height: 2.1;
    background: linear-gradient(135deg, #ffe5f1 0%, #ffd6e8 50%, #ffe5f1 100%);
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
    margin-top: 40px;
    font-weight: 600;
    padding: 35px 40px;
    border-radius: 30px;
    border: 4px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.5);
    position: relative;
    animation: messageGlow 3s ease-in-out infinite;
    text-shadow: 2px 2px 8px rgba(255, 105, 180, 0.6), 0 0 20px rgba(255, 105, 180, 0.4);
}

.love-message::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4, #ff1493);
    background-size: 300% 300%;
    border-radius: 30px;
    z-index: -1;
    animation: borderGradient 4s ease infinite;
}

@keyframes messageGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.5); }
    50% { transform: scale(1.01); box-shadow: 0 18px 50px rgba(255, 105, 180, 0.4), inset 0 2px 15px rgba(255, 255, 255, 0.6); }
}

@keyframes borderGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.4), 0 0 20px rgba(255, 182, 193, 0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 6px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ff69b4, #ff1493, #ffb6c1, #ff69b4) border-box;
    filter: brightness(1.03) saturate(1.15);
    position: relative;
}

.gallery-img::before {
    content: '💕';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    opacity: 0;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
}

.gallery-img:hover {
    transform: scale(1.12) rotate(4deg) translateY(-8px);
    box-shadow: 0 25px 60px rgba(255, 20, 147, 0.7), 0 0 40px rgba(255, 105, 180, 0.5);
    filter: brightness(1.08) saturate(1.25);
}

.gallery-img:hover::before {
    opacity: 1;
    transform: scale(1.3) rotate(20deg);
}

.date-message {
    font-size: 1.9em;
    text-align: center;
    background: linear-gradient(90deg, #ff1493 0%, #ff69b4 50%, #ff1493 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    padding: 20px;
    margin-bottom: 35px;
    border-radius: 20px;
    background-color: rgba(255, 182, 193, 0.25);
    animation: pulse 2.5s ease-in-out infinite, textShimmer 3s ease infinite;
    filter: drop-shadow(0 2px 10px rgba(255, 105, 180, 0.4));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); background-color: rgba(255, 182, 193, 0.25); }
    50% { transform: scale(1.06); background-color: rgba(255, 182, 193, 0.35); }
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Cursor Heart */
#cursor-heart {
    position: fixed;
    font-size: 2em;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    animation: heartBeat 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
}

@keyframes heartBeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.cursor-trail-line {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: trailLineFade 0.8s ease-out forwards;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

@keyframes trailLineFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 253, 0.95) 100%);
    padding: 20px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.4), 0 0 0 3px rgba(255, 179, 217, 0.3);
    z-index: 1000;
    border: 3px solid #ffb3d9;
    animation: playerFloat 3s ease-in-out infinite;
    min-width: 280px;
}

@keyframes playerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.music-info {
    text-align: center;
    margin-bottom: 15px;
}

.now-playing {
    font-size: 0.9em;
    color: #ff69b4;
    font-weight: 600;
    margin-bottom: 5px;
}

.song-title {
    font-size: 0.85em;
    color: #d81b60;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.control-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.control-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control span {
    font-size: 1.2em;
}

#volume {
    flex: 1;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffe5f1 0%, #ff69b4 100%);
    outline: none;
    -webkit-appearance: none;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff1493;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.5);
}

#volume::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff1493;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.5);
    border: none;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 182, 193, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
    cursor: default !important;
}

.modal * {
    cursor: default !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.6);
    border: 5px solid #ff69b4;
    animation: modalZoomIn 0.4s ease;
    display: block;
    object-fit: contain;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7) !important;
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 50px;
    font-size: 50px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer !important;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
    transition: all 0.3s ease;
    z-index: 10002;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: #ff1493;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .title {
        font-size: 2.2em;
        letter-spacing: 1px;
    }

    .love-message {
        font-size: 1.2em;
        padding: 20px;
        line-height: 1.8;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .gallery-img {
        height: 150px;
        border: 3px solid #ffb3d9;
    }

    .date-message {
        font-size: 1.6em;
    }

    .music-player {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 15px;
    }

    .song-title {
        font-size: 0.75em;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    #cursor-heart {
        font-size: 1.5em;
    }

    .cursor-trail-line {
        width: 6px;
        height: 6px;
    }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 20px;
        border: 3px solid #ff69b4;
    }
}
