.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.music-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.music-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.music-icon {
    font-size: 18px;
    margin-right: 8px;
    animation: pulse 2s infinite ease-in-out;
}

.music-text {
    font-weight: 500;
}

/* Playing state */
.music-button.playing {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.music-button.playing .music-icon {
    animation: musicPlaying 1s infinite ease-in-out;
}

@keyframes musicPlaying {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.cosmic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cosmic-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    z-index: 1;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -30px);
    }

    50% {
        transform: translate(-20px, -50px);
    }

    75% {
        transform: translate(-40px, -20px);
    }
}

.firework-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.firework-particle.with-trail {
    box-shadow: 0 0 6px 2px currentColor;
}

/* Main styles */
:root {
    --primary: #ff3e9d;
    --secondary: #6b3dff;
    --accent: #ffca3a;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #120d34, #291d6b, #6a2191, #9c2895);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 71, 191, 0.15) 0%, rgba(0, 0, 0, 0) 25%),
        radial-gradient(circle at 85% 25%, rgba(105, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 202, 58, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 20% 80%, rgba(105, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 25%),
        radial-gradient(circle at 80% 75%, rgba(255, 71, 191, 0.15) 0%, rgba(0, 0, 0, 0) 25%);
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544v-2.26zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.214 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V.283zm0 5.657L34.26 30.313l1.414 1.413L60 8.2V5.374zm0 5.656L37.088 32.97l1.414 1.414L60 13.86v-2.83zm0 5.657l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.414L60 42.143v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.floating-balloon {
    position: fixed;
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    animation: floatBalloon 30s linear infinite;
}

.floating-balloon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes floatBalloon {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100vh) translateX(calc(var(--drift) * 1vw)) rotate(var(--rotation));
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    filter: blur(1px);
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), #ff71bc, #9f7fff, gold);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(255, 62, 157, 0.5));
    animation: gradientMove 8s ease infinite;
    position: relative;
    -webkit-text-stroke: 1px #fff;
}

.title::before,
.title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    z-index: -1;
}

.title::before {
    background: linear-gradient(45deg, #ff47bf33, #ffb3f733, #6900ff33);
    filter: blur(20px);
    opacity: 0.7;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

.title::after {
    background: radial-gradient(circle at 30% 50%, rgba(255, 71, 191, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 70% 50%, rgba(105, 0, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    filter: blur(15px);
    opacity: 0.5;
    animation: shimmer 7s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        filter: blur(20px);
    }

    100% {
        opacity: 0.8;
        filter: blur(25px);
    }
}

@keyframes shimmer {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    box-shadow:
        0 0 4px 2px #fff,
        0 0 8px 4px rgba(255, 71, 191, 0.8),
        0 0 12px 6px rgba(255, 71, 191, 0.4);
    animation: sparkleAnimation 3s linear infinite;
}

@keyframes sparkleAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    10% {
        transform: scale(1.2);
        opacity: 1;
    }

    20% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 60px 0;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

.celebration-section {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.celebration-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.memory-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.memory-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.memory-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 62, 157, 0.5);
}

.memory-item:hover img {
    transform: scale(1.1);
}

.memory-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 62, 157, 0.2), rgba(107, 61, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-item:hover::after {
    opacity: 1;
}

.interactive-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.big-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 202, 58, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.birthday-cake {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.birthday-cake:hover {
    transform: scale(1.05);
}

.cake-base {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.cake-layer-1 {
    width: 180px;
    height: 60px;
    bottom: 0;
    background: linear-gradient(to right, var(--primary), #ff71bc);
}

.cake-layer-2 {
    width: 160px;
    height: 50px;
    bottom: 60px;
    background: linear-gradient(to right, var(--secondary), #9f7fff);
}

.cake-layer-3 {
    width: 140px;
    height: 40px;
    bottom: 110px;
    background: linear-gradient(to right, var(--accent), #ffe066);
}

.candle {
    position: absolute;
    width: 8px;
    height: 40px;
    background: linear-gradient(to top, #fff, #eaeaea);
    border-radius: 4px;
    bottom: 150px;
}

.flame {
    position: absolute;
    width: 20px;
    height: 30px;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at bottom, #ffef8f, #ffbb00);
    border-radius: 50% 50% 35% 35%;
    box-shadow: 0 0 20px #ffbb00, 0 0 40px #ffbb00;
    animation: flicker 0.8s infinite ease-in-out alternate;
}

@keyframes flicker {

    0%,
    100% {
        height: 30px;
        opacity: 1;
    }

    50% {
        height: 25px;
        opacity: 0.8;
    }
}

.cake-instruction {
    margin-top: 30px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.light-candle-btn {
    margin-top: 20px;
    background: linear-gradient(45deg, #ffca3a, #ff9e2a);
    display: none;
    animation: pulse 2s infinite ease-in-out;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 202, 58, 0.4);
}

.light-candle-btn:hover {
    background: linear-gradient(45deg, #ffda5a, #ffae4a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 202, 58, 0.6);
}

button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 62, 157, 0.4);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 62, 157, 0.6);
}

.role-info {
    max-width: 300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 40px;
}

.role-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.video-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.video-caption {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
    text-align: center;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    display: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    top: -20px;
}

.message-modal,
.celebration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.message-modal.show,
.celebration-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.message-content,
.celebration-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.message-modal.show .message-content,
.celebration-modal.show .celebration-content {
    transform: scale(1);
}

.special-message,
.celebration-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.firework {
    position: absolute;
    z-index: 3;
}

.firework-particle {
    position: absolute;
    background: linear-gradient(to right, gold, white);
    border-radius: 50%;
    transform-origin: center;
}

.celebration-fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.random-wish {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    font-style: italic;
    line-height: 1.6;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .interactive-section {
        padding: 20px;
    }

    .big-title {
        font-size: 2rem;
    }
}

/* Comet Trails */
.comet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.comet {
    position: absolute;
    width: var(--comet-width, 200px);
    height: 4px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 202, 255, 0.9) 30%,
            rgba(173, 216, 230, 0.7) 70%,
            rgba(255, 255, 255, 0) 100%);
    transform-origin: left center;
    animation: cometFly 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: blur(2px);
    box-shadow: 0 0 15px rgba(255, 202, 255, 0.5);
}

.comet::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 1) 20%,
            rgba(255, 202, 255, 0.5) 60%,
            rgba(255, 255, 255, 0) 80%);
    transform: translateY(-50%);
    border-radius: 50%;
    animation: cometGlow 0.5s ease-in-out infinite alternate;
}

.comet::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    animation: cometSparkle 1s ease-in-out infinite;
}

@keyframes cometFly {
    0% {
        transform: translateX(-100%) rotate(var(--angle, -45deg));
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: translateX(200vw) rotate(var(--angle, -45deg));
        opacity: 0;
    }
}

@keyframes cometGlow {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes cometSparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Floating Lanterns */
.lantern-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lantern {
    position: absolute;
    width: var(--lantern-width, 40px);
    height: var(--lantern-height, 60px);
    background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.3) 0%,
                rgba(255, 255, 255, 0) 100%);
        transform: translateX(-50%);
    animation: floatLantern 20s ease-in-out infinite;
    opacity: 0.9;
    filter: blur(5px);
}

.lantern::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 20%, rgba(255, 202, 58, 0.4), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lanternGlow 3s ease-in-out infinite;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-50%);
}

@keyframes floatLantern {
    0% {
        transform: translateY(110vh) translateX(calc(var(--lantern-start) * 1vw)) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-50vh) translateX(calc(var(--lantern-end) * 1vw)) rotate(calc(var(--sway) * 1deg));
        opacity: 0;
    }
}

@keyframes lanternGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes lanternFlicker {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}