/* ============================================
   Dr.Wellness - Animations
   ============================================ */

/* Scroll-triggered animations */
.dw-animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dw-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.dw-reason__grid .dw-animate-target:nth-child(1) { transition-delay: 0s; }
.dw-reason__grid .dw-animate-target:nth-child(2) { transition-delay: 0.15s; }
.dw-reason__grid .dw-animate-target:nth-child(3) { transition-delay: 0.3s; }

.dw-stats__grid .dw-animate-target:nth-child(1) { transition-delay: 0s; }
.dw-stats__grid .dw-animate-target:nth-child(2) { transition-delay: 0.1s; }
.dw-stats__grid .dw-animate-target:nth-child(3) { transition-delay: 0.2s; }
.dw-stats__grid .dw-animate-target:nth-child(4) { transition-delay: 0.3s; }

.dw-products__grid .dw-animate-target:nth-child(1) { transition-delay: 0s; }
.dw-products__grid .dw-animate-target:nth-child(2) { transition-delay: 0.15s; }

/* Hero entrance animation */
@keyframes dw-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dw-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dw-slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dw-hero__heading {
    animation: dw-fadeInUp 0.8s ease forwards;
}

.dw-hero__subheading {
    animation: dw-fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.dw-hero__cta {
    animation: dw-fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.dw-hero__products {
    animation: dw-slideInRight 0.8s ease 0.3s forwards;
    opacity: 0;
}

.dw-hero__badges {
    animation: dw-fadeIn 0.6s ease 0.6s forwards;
    opacity: 0;
}

/* Button hover animation */
.dw-btn {
    position: relative;
    overflow: hidden;
}

.dw-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.dw-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.dw-reason__card,
.dw-products__card,
.dw-guide-page__card,
.dw-column-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Loading state */
@keyframes dw-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dw-loading {
    animation: dw-pulse 1.5s ease-in-out infinite;
}

/* Diagnose page transitions */
.dw-diagnose__q {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dw-diagnose__option {
    transition: all 0.2s ease;
}

.dw-diagnose__option:active {
    transform: scale(0.98);
}
