/*
 * Animations & Effects - Kasetidea Theme
 */

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-animation {
    opacity: 0;
}

.stagger-animation.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-animation:nth-child(1).animated { animation-delay: 0.1s; }
.stagger-animation:nth-child(2).animated { animation-delay: 0.2s; }
.stagger-animation:nth-child(3).animated { animation-delay: 0.3s; }
.stagger-animation:nth-child(4).animated { animation-delay: 0.4s; }
.stagger-animation:nth-child(5).animated { animation-delay: 0.5s; }
.stagger-animation:nth-child(6).animated { animation-delay: 0.6s; }

/* ============================================
   HOVER EFFECTS
   ============================================ */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.plant-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.plant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.2) !important;
}

.article-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.image-zoom {
    overflow: hidden;
    border-radius: 10px;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

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

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

/* ============================================
   UTILITIES
   ============================================ */
.transition-all {
    transition: all 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
