/* Sakura (Cherry Blossom) Animation */
.sakura-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.sakura {
    position: absolute;
    top: -10px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #ffb7d5, #ff9fc9);
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    animation: fall linear infinite, spin linear infinite, sway ease-in-out infinite;
    transform-origin: center;
}

/* Individual petals with different animations */
.sakura:nth-child(1) {
    left: 5%;
    width: 12px;
    height: 12px;
    animation-duration: 15s, 3s, 4s;
    animation-delay: 0s, 0s, 0s;
}

.sakura:nth-child(2) {
    left: 15%;
    width: 18px;
    height: 18px;
    animation-duration: 18s, 4s, 5s;
    animation-delay: 0.3s, 0.2s, 0.1s;
}

.sakura:nth-child(3) {
    left: 25%;
    width: 14px;
    height: 14px;
    animation-duration: 20s, 3.5s, 4.5s;
    animation-delay: 0.6s, 0.4s, 0.2s;
}

.sakura:nth-child(4) {
    left: 35%;
    width: 16px;
    height: 16px;
    animation-duration: 17s, 3.2s, 5.5s;
    animation-delay: 0.2s, 0.1s, 0.3s;
}

.sakura:nth-child(5) {
    left: 45%;
    width: 13px;
    height: 13px;
    animation-duration: 19s, 4.5s, 4s;
    animation-delay: 0.5s, 0.3s, 0.4s;
}

.sakura:nth-child(6) {
    left: 55%;
    width: 17px;
    height: 17px;
    animation-duration: 16s, 3.8s, 5s;
    animation-delay: 0.8s, 0.5s, 0s;
}

.sakura:nth-child(7) {
    left: 65%;
    width: 15px;
    height: 15px;
    animation-duration: 21s, 3.3s, 4.8s;
    animation-delay: 0.4s, 0.3s, 0.2s;
}

.sakura:nth-child(8) {
    left: 75%;
    width: 14px;
    height: 14px;
    animation-duration: 18s, 4.2s, 5.2s;
    animation-delay: 0.7s, 0.2s, 0.5s;
}

.sakura:nth-child(9) {
    left: 85%;
    width: 16px;
    height: 16px;
    animation-duration: 17s, 3.6s, 4.3s;
    animation-delay: 0.3s, 0.4s, 0.2s;
}

.sakura:nth-child(10) {
    left: 95%;
    width: 13px;
    height: 13px;
    animation-duration: 19s, 4s, 5.5s;
    animation-delay: 1s, 0.6s, 0.4s;
}

/* More petals for richer effect */
.sakura:nth-child(11) {
    left: 10%;
    width: 15px;
    height: 15px;
    animation-duration: 22s, 3.7s, 4.6s;
    animation-delay: 1.2s, 0.3s, 0.6s;
}

.sakura:nth-child(12) {
    left: 30%;
    width: 14px;
    height: 14px;
    animation-duration: 16s, 3.9s, 5.3s;
    animation-delay: 0.6s, 0.5s, 0.3s;
}

.sakura:nth-child(13) {
    left: 50%;
    width: 17px;
    height: 17px;
    animation-duration: 20s, 4.1s, 4.9s;
    animation-delay: 0.5s, 0.1s, 0.1s;
}

.sakura:nth-child(14) {
    left: 70%;
    width: 12px;
    height: 12px;
    animation-duration: 18s, 3.4s, 5.1s;
    animation-delay: 0.9s, 0.4s, 0.6s;
}

.sakura:nth-child(15) {
    left: 90%;
    width: 16px;
    height: 16px;
    animation-duration: 17s, 4.3s, 4.4s;
    animation-delay: 0.7s, 0.5s, 0.2s;
}

/* Falling animation */
@keyframes fall {
    0% {
        top: -10%;
        opacity: 0.8;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Swaying side to side */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(30px);
    }
    75% {
        transform: translateX(-30px);
    }
}

/* Reduce animation on mobile for performance */
@media (max-width: 768px) {
    .sakura:nth-child(n+11) {
        display: none;
    }
    
    .sakura {
        width: 12px;
        height: 12px;
    }
}

/* Pause animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sakura {
        animation: none;
        display: none;
    }
}
