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

body {
    background: linear-gradient(135deg, #ff6b9d, #ffc0cb, #ff91a4, #ffa8cc);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Fredoka One', cursive;
}

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

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Main Text Styling */
.main-text {
    text-align: center;
    z-index: 10;
}

.word {
    display: inline-block;
    font-size: 4rem;
    font-weight: 400;
    color: #fff;
    text-shadow:
        3px 3px 0px #ff1493,
        6px 6px 0px #ff69b4,
        9px 9px 0px #ffc0cb;
    margin: 0 15px;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    animation-fill-mode: forwards;
}

/* Bounce Animation for each word */
.word1 {
    animation: bounceIn 0.8s ease 0.5s forwards;
}

.word2 {
    animation: bounceIn 0.8s ease 1s forwards;
}

.word3 {
    animation: bounceIn 0.8s ease 1.5s forwards;
}

.word4 {
    animation: bounceIn 0.8s ease 2s forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }
    70% {
        transform: translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Background Hearts */
.hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.heart1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.heart2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.heart3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}

.heart4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.heart5 {
    top: 60%;
    left: 80%;
    animation-delay: 4s;
}

.heart6 {
    top: 80%;
    left: 50%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

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

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatUp 4s linear infinite;
}

.floating-heart:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    left: 40%;
    animation-delay: 1s;
}

.floating-heart:nth-child(3) {
    left: 60%;
    animation-delay: 2s;
}

.floating-heart:nth-child(4) {
    left: 80%;
    animation-delay: 3s;
}

@keyframes floatUp {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0px) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(50px) scale(1.2);
    }
}

/* Sparkles */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: twinkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: 25%;
    left: 25%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 35%;
    right: 30%;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    bottom: 40%;
    left: 30%;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    bottom: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .word {
        font-size: 2.5rem;
        margin: 0 8px;
    }

    .main-text {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .word {
        font-size: 2rem;
        margin: 0 5px;
    }
}
