:root {
    --pink: #ffb6c1;
    --lavender: #e6e6fa;
    --peach: #ffdab9;
    --soft-pink: #ffe4e9;
    --soft-lavender: #f0e6ff;
    --soft-peach: #fff0e6;
    --text-dark: #4a4a4a;
    --text-light: #7a7a7a;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px rgba(255, 182, 193, 0.2);
    --shadow-medium: 0 16px 48px rgba(255, 182, 193, 0.3);
    --glow-pink: rgba(255, 182, 193, 0.6);
    --glow-lavender: rgba(230, 230, 250, 0.6);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    --radius-large: 28px;
    --radius-medium: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7 0%, #faf0ff 50%, #fff5ee 100%);
    z-index: -3;
}

.bg-flower {
    position: absolute;
    font-size: 8rem;
    opacity: 0.15;
    filter: blur(3px);
    animation: bg-flower-float 25s ease-in-out infinite;
    z-index: -2;
}

.bg-flower:nth-child(4) { top: 5%; left: 5%; font-size: 6rem; animation-delay: -5s; }
.bg-flower:nth-child(5) { top: 15%; right: 8%; font-size: 7rem; animation-delay: -10s; }
.bg-flower:nth-child(6) { bottom: 20%; left: 10%; font-size: 9rem; animation-delay: -15s; }
.bg-flower:nth-child(7) { bottom: 10%; right: 5%; font-size: 5rem; animation-delay: -20s; }
.bg-flower:nth-child(8) { top: 40%; left: 2%; font-size: 4rem; animation-delay: -8s; }
.bg-flower:nth-child(9) { top: 60%; right: 3%; font-size: 6rem; animation-delay: -12s; }

@keyframes bg-flower-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--pink), var(--soft-pink));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--lavender), var(--soft-lavender));
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--peach), var(--soft-peach));
    bottom: -150px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    opacity: 0.4;
    animation: particle-float 15s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-100px) translateX(30px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50px) translateX(-20px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-150px) translateX(10px);
        opacity: 0.5;
    }
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.music-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.music-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tap-to-play {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 60px;
    background: linear-gradient(135deg, var(--soft-pink), var(--soft-lavender));
    border: none;
    border-radius: var(--radius-large);
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    animation: pulse-soft 2s ease-in-out infinite;
}

.tap-to-play:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.4);
}

.tap-to-play .music-icon {
    font-size: 3rem;
    animation: bounce-note 1s ease-in-out infinite;
}

.tap-to-play span:last-child {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

@keyframes pulse-soft {
    0%, 100% {
        box-shadow: var(--shadow-medium);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 182, 193, 0.5);
    }
}

@keyframes bounce-note {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.music-toggle-icon {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.music-toggle.muted .music-toggle-icon {
    opacity: 0.5;
}

.card {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 30px;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-section {
    animation: fade-in-up 1s ease-out 0.2s both;
}

.image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--pink), var(--lavender), var(--peach));
    box-shadow: 
        0 0 30px var(--glow-pink),
        0 0 60px var(--glow-lavender),
        var(--shadow-medium);
    animation: float-image 6s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.image-wrapper:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes float-image {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.content-section {
    text-align: center;
    max-width: 600px;
}

.heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fade-in-up 1s ease-out 0.4s both;
    background: linear-gradient(135deg, var(--text-dark), #7a5c95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fade-in-up 1s ease-out 0.6s both;
}

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

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px var(--pink);
    animation: sparkle-float 4s ease-in-out infinite;
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@media (max-width: 600px) {
    .card {
        padding: 30px 15px;
    }

    .image-wrapper {
        width: 160px;
        height: 160px;
    }

    .heading {
        margin-bottom: 15px;
    }

    .message {
        margin-bottom: 25px;
    }

    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .tap-to-play {
        padding: 30px 40px;
    }

    .tap-to-play .music-icon {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .card {
        gap: 40px;
    }
}
