/**
 * Animation Styles for Fizik Tedavi Theme
 * @package FizikTedavi
 * ANIMATIONS DISABLED FOR SEO OPTIMIZATION
 */

/* All animations disabled for better SEO performance */
* {
    animation: none !important;
    transition: none !important;
}

/* Keep only essential accessibility animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scroll-animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   HOVER ANIMATIONS
   ========================================================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-bounce {
    transition: transform 0.3s ease;
}

.hover-bounce:hover {
    animation: bounce 0.6s;
}

.hover-pulse {
    transition: transform 0.3s ease;
}

.hover-pulse:hover {
    animation: pulse 1s infinite;
}

/* ==========================================================================
   LOADING ANIMATIONS
   ========================================================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 40px;
}

.loading-dots div {
    position: absolute;
    top: 13px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading-dots3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loading-dots2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

/* ==========================================================================
   CARD ANIMATIONS
   ========================================================================== */

.service-card,
.team-card,
.testimonial-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.service-card:hover,
.team-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card .service-icon,
.team-card .team-photo,
.testimonial-card .testimonial-avatar {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

/* ==========================================================================
   BUTTON ANIMATIONS
   ========================================================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32, 178, 170, 0.3);
}

/* ==========================================================================
   FORM ANIMATIONS
   ========================================================================== */

.form-field {
    position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-field.focused label {
    animation: fadeInUp 0.3s ease;
    color: var(--primary-color);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    animation: shake 0.5s ease-in-out;
}

/* ==========================================================================
   MODAL ANIMATIONS
   ========================================================================== */

.modal {
    animation: fadeInUp 0.3s ease;
}

.modal.closing {
    animation: fadeInDown 0.3s ease reverse;
}

.modal-content {
    animation: slideIn 0.3s ease;
}

/* ==========================================================================
   NAVIGATION ANIMATIONS
   ========================================================================== */

.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu.active {
    animation: slideIn 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   STATISTICS COUNTER ANIMATIONS
   ========================================================================== */

.stat-number {
    transition: all 0.3s ease;
}

.stat-number.counting {
    animation: countUp 0.6s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* ==========================================================================
   FAQ ANIMATIONS
   ========================================================================== */

.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    transition: max-height 0.4s ease-in, padding 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   HERO SECTION ANIMATIONS
   ========================================================================== */

.hero-content h1 {
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-content p {
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* ==========================================================================
   RESPONSIVE ANIMATIONS
   ========================================================================== */

@media (max-width: 768px) {
    .scroll-animate,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-scale {
        transform: none;
        opacity: 1;
    }

    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }

    .service-card:hover,
    .team-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   UTILITY ANIMATION CLASSES
   ========================================================================== */

.animate-fade-in {
    animation: fadeInUp 0.6s ease;
}

.animate-slide-in-left {
    animation: fadeInLeft 0.6s ease;
}

.animate-slide-in-right {
    animation: fadeInRight 0.6s ease;
}

.animate-bounce {
    animation: bounce 1s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Animation delays for staggered effects */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }