/* ====================================
   Doctor Demo - Animations Stylesheet
   ==================================== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

/* Slide In Animations */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Zoom Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Slide Left Animation */
@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Slide Right Animation */
@keyframes slideRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Flip Animation */
@keyframes flip {
    from {
        transform: perspective(400px) rotateY(0);
    }
    to {
        transform: perspective(400px) rotateY(360deg);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.8);
    }
}

/* Slider Glow Animation */
@keyframes sliderGlow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(7, 194, 185, 0.5), 
                    0 0 20px rgba(7, 194, 185, 0.3),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(7, 194, 185, 0.7), 
                    0 0 30px rgba(7, 194, 185, 0.5),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Slider Container Entrance */
@keyframes sliderEntrance {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Animation Classes */

.animate-fadeIn {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-in-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-in-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-in-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-in-out;
}

.animate-slideInUp {
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-slideInDown {
    animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-slideLeft {
    animation: slideLeft 0.5s ease-in-out;
}

.animate-slideRight {
    animation: slideRight 0.5s ease-in-out;
}

.animate-flip {
    animation: flip 0.6s ease-in-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-glow {
    animation: glow 1.5s ease-in-out infinite;
}

.animate-slider-glow {
    animation: sliderGlow 2s ease-in-out infinite;
}

.animate-slider-entrance {
    animation: sliderEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease-out;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-out;
}

.hover-shadow:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-out;
}

.hover-color-primary:hover {
    color: #0066cc;
    transition: color 0.3s ease-out;
}

/* Delay Classes for Staggered Animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Fade Scroll Animation */
@keyframes fadeInOnScroll {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    animation: fadeInOnScroll 0.6s ease-in-out forwards;
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s ease-in-out;
}

.smooth-transition-slow {
    transition: all 0.6s ease-in-out;
}

.smooth-transition-fast {
    transition: all 0.15s ease-in-out;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Mobile-Friendly Animation Adjustments */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideInUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}
