/* Base animations for sections */
.animate-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered children animations */
.animate-stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-stagger-children.animate-in > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section animations */
.psychology-hero {
    position: relative;
    overflow: hidden;
}

.psychology-hero h6 {
    animation: fadeInDown 1s ease-out;
}

.psychology-hero h2 {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.psychology-hero p {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.psychology-buttons {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.psychology-hero img {
    animation: fadeIn 1s ease-out 0.8s both, floatImage 6s ease-in-out infinite;
}

/* Service cards animations */
.service__item-3 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stats section animations */
.stats-section .stat-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stats-section.animate-in .stat-card {
    opacity: 1;
    transform: translateY(0);
}

/* Psychologist section animations */
.psychologist-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* FAQ section animations */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.faq-section.animate-in .faq-item {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Enhanced floating shapes animations */
.floating-shapes .shape,
.floating-shapes-service .shape-service {
    transition: transform 0.2s ease-out;
}

/* Hover animations for service cards */
.service__item-3:hover {
    transform: translateY(-10px);
}

.service__item-3:hover .service-icon {
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    .animate-section,
    .animate-stagger-children > *,
    .service__item-3,
    .psychologist-card,
    .faq-item {
        transition: none !important;
        animation: none !important;
    }

    .floating-shapes,
    .floating-shapes-service {
        display: none;
    }
}
