/* Falling Flowers Animation - LK Nails & Lashes */

.falling-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.flower {
    position: absolute;
    opacity: 0.8;
    animation: fall linear infinite;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cg fill="%23ff69b4" opacity="0.8"%3E%3Cpath d="M50 15c-8 0-15 7-15 15 0-8-7-15-15-15s-15 7-15 15c0 8 7 15 15 15-8 0-15 7-15 15s7 15 15 15c0-8 7-15 15-15s15 7 15 15c8 0 15-7 15-15s-7-15-15-15c8 0 15-7 15-15s-7-15-15-15z"/%3E%3Ccircle cx="50" cy="50" r="8" fill="%23ff1493"/%3E%3C/g%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

/* Different flower sizes */
.flower.small { 
    width: 15px; 
    height: 15px; 
    opacity: 0.6;
}

.flower.medium { 
    width: 20px; 
    height: 20px; 
    opacity: 0.7;
}

.flower.large { 
    width: 25px; 
    height: 25px; 
    opacity: 0.8;
}

/* Different flower colors */
.flower.pink {
    filter: hue-rotate(0deg) brightness(1.1);
}

.flower.light-pink {
    filter: hue-rotate(15deg) brightness(1.3) saturate(0.8);
}

.flower.rose {
    filter: hue-rotate(-15deg) brightness(0.9) saturate(1.2);
}

.flower.soft-pink {
    filter: hue-rotate(30deg) brightness(1.4) saturate(0.6);
}

/* Falling animation */
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Different animation speeds and delays */
.flower:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.flower:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.flower:nth-child(3) {
    left: 30%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.flower:nth-child(4) {
    left: 40%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.flower:nth-child(5) {
    left: 50%;
    animation-duration: 9s;
    animation-delay: 6s;
}

.flower:nth-child(6) {
    left: 60%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.flower:nth-child(7) {
    left: 70%;
    animation-duration: 13s;
    animation-delay: 7s;
}

.flower:nth-child(8) {
    left: 80%;
    animation-duration: 15s;
    animation-delay: 5s;
}

.flower:nth-child(9) {
    left: 90%;
    animation-duration: 10s;
    animation-delay: 8s;
}

.flower:nth-child(10) {
    left: 15%;
    animation-duration: 12s;
    animation-delay: 9s;
}

.flower:nth-child(11) {
    left: 35%;
    animation-duration: 8s;
    animation-delay: 11s;
}

.flower:nth-child(12) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 13s;
}

.flower:nth-child(13) {
    left: 75%;
    animation-duration: 9s;
    animation-delay: 15s;
}

.flower:nth-child(14) {
    left: 85%;
    animation-duration: 11s;
    animation-delay: 17s;
}

.flower:nth-child(15) {
    left: 25%;
    animation-duration: 13s;
    animation-delay: 19s;
}

/* Floating gentle animation for homepage hero */
.hero-flowers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-flower {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cg fill="%23ff69b4" opacity="0.6"%3E%3Cpath d="M50 15c-8 0-15 7-15 15 0-8-7-15-15-15s-15 7-15 15c0 8 7 15 15 15-8 0-15 7-15 15s7 15 15 15c0-8 7-15 15-15s15 7 15 15c8 0 15-7 15-15s-7-15-15-15c8 0 15-7 15-15s-7-15-15-15z"/%3E%3Ccircle cx="50" cy="50" r="8" fill="%23ff1493"/%3E%3C/g%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
}

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

.hero-flower.flower-1 {
    top: 20%;
    left: 10%;
    width: 30px;
    height: 30px;
    animation-delay: 0s;
}

.hero-flower.flower-2 {
    top: 40%;
    right: 15%;
    width: 25px;
    height: 25px;
    animation-delay: 2s;
}

.hero-flower.flower-3 {
    bottom: 30%;
    left: 20%;
    width: 35px;
    height: 35px;
    animation-delay: 4s;
}

.hero-flower.flower-4 {
    top: 60%;
    right: 30%;
    width: 20px;
    height: 20px;
    animation-delay: 1s;
}

.hero-flower.flower-5 {
    top: 80%;
    left: 60%;
    width: 28px;
    height: 28px;
    animation-delay: 3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flower {
        width: 15px;
        height: 15px;
    }
    
    .flower.small { 
        width: 12px; 
        height: 12px; 
    }
    
    .flower.large { 
        width: 18px; 
        height: 18px; 
    }
    
    .hero-flower {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Control visibility */
.flowers-enabled .falling-flowers {
    display: block;
}

.flowers-disabled .falling-flowers {
    display: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .falling-flowers,
    .hero-flowers {
        display: none;
    }
}