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

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 50%, #f8f5ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content */
.content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 70%);
}

.birthday-message {
    text-align: center;
    z-index: 10;
    max-width: 600px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    outline: 1px solid rgba(255, 182, 193, 0.3);
    outline-offset: 2px;
    box-shadow: 0 0 30px rgba(255, 182, 193, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Typography */
.title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(45deg, #ffb3d9, #ffd4a3, #dda0dd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 2px 2px 20px rgba(255, 182, 193, 0.3);
}

.name {
    font-family: 'Pacifico', cursive;
    font-size: clamp(3rem, 10vw, 5rem);
    background: linear-gradient(45deg, #ffb3d9, #ffd4a3, #dda0dd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(255, 182, 193, 0.3);
}

.message, .wishes {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #8b5a8c;
    line-height: 1.8;
    margin: 20px 0;
    font-weight: 600;
}

.from {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #d8a7ca;
    margin-top: 30px;
    font-weight: 600;
}


/* Cake */
.cake-emoji {
    font-size: 4rem;
    margin: 20px 0;
}

/* Balloons */
.balloon-left {
    position: absolute;
    left: 15px;
    top: 45%;
    transform: translateY(-50%) rotate(-15deg);
    z-index: -1;
    opacity: 0.6;
}

.balloon-right {
    position: absolute;
    right: 15px;
    top: 55%;
    transform: translateY(-50%) rotate(15deg);
    z-index: -1;
    opacity: 0.6;
}

.balloon-string {
    animation: string-sway 4s ease-in-out infinite;
    transform-origin: 30px 47px;
}

@keyframes string-sway {
    0%, 100% {
        transform: scaleX(1);
    }
    25% {
        transform: scaleX(1.02) translateX(1px);
    }
    50% {
        transform: scaleX(0.98) translateX(-1px);
    }
    75% {
        transform: scaleX(1.01) translateX(0.5px);
    }
}

/* Falling Petals */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.petal {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 100;
}

.petal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
}

@keyframes petal-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes petal-sway {
    0%, 100% {
        transform: translateX(0);
    }
    33% {
        transform: translateX(30px);
    }
    66% {
        transform: translateX(-30px);
    }
}

/* Animations */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02) rotate(2deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-3px) scale(1.02);
    }
}

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

@keyframes balloon-float-left {
    0%, 100% {
        transform: translateY(-50%) rotate(-15deg);
    }
    25% {
        transform: translateY(calc(-50% - 8px)) rotate(-12deg);
    }
    50% {
        transform: translateY(calc(-50% - 5px)) rotate(-17deg);
    }
    75% {
        transform: translateY(calc(-50% - 10px)) rotate(-13deg);
    }
}

@keyframes balloon-float-right {
    0%, 100% {
        transform: translateY(-50%) rotate(15deg);
    }
    25% {
        transform: translateY(calc(-50% - 6px)) rotate(13deg);
    }
    50% {
        transform: translateY(calc(-50% - 10px)) rotate(18deg);
    }
    75% {
        transform: translateY(calc(-50% - 4px)) rotate(14deg);
    }
}


/* Animation Classes */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.bounce {
    animation: bounce 2s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.fade-in-more-delayed {
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.balloon-left {
    animation: balloon-float-left 6s ease-in-out infinite;
}

.balloon-right {
    animation: balloon-float-right 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .birthday-message {
        padding: 50px 30px;
        margin: 20px;
    }

    .cake-emoji {
        font-size: 3rem;
    }

}

@media (max-width: 480px) {
    .birthday-message {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .content {
        padding: 10px;
    }
}