/* =====================================================
   ANIMATIONS & KEYFRAMES - ULTRA MODERN
   ===================================================== */

/* FADE ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

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

/* SCALE ANIMATIONS */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* SLIDE ANIMATIONS */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

/* FLOAT & BOUNCE */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* GLOW ANIMATIONS */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(8, 139, 194, 0.5), 0 0 10px rgba(8, 139, 194, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(8, 139, 194, 0.8), 0 0 30px rgba(8, 139, 194, 0.6);
    }
}

@keyframes glow-text {
    0%, 100% {
        text-shadow: 0 0 5px rgba(8, 139, 194, 0.5), 0 0 10px rgba(8, 139, 194, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(8, 139, 194, 0.8), 0 0 30px rgba(8, 139, 194, 0.6);
    }
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 5px rgba(8, 139, 194, 0.5), 0 0 20px rgba(8, 139, 194, 0.3), inset 0 0 5px rgba(8, 139, 194, 0.1);
    }
    to {
        box-shadow: 0 0 20px rgba(8, 139, 194, 0.8), 0 0 40px rgba(8, 139, 194, 0.6), inset 0 0 10px rgba(8, 139, 194, 0.2);
    }
}

/* GRADIENT ANIMATIONS */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ROTATION ANIMATIONS */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-y {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* LOADER ANIMATIONS */
@keyframes loader-wave {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

@keyframes typing-dots {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes progress-bar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* SHIMMER EFFECT */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* APPEAR & DISAPPEAR */
@keyframes appear {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes disappear {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ANIMATION UTILITY CLASSES */

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

.animate-fade-out {
    animation: fadeOut 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

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

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

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

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

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

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

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

.animate-shimmer {
    animation: shimmer 2s infinite linear;
}

/* DELAY UTILITIES FOR STAGGER EFFECTS */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* ANIMATION DURATION */
.duration-300 {
    animation-duration: 300ms;
}

.duration-500 {
    animation-duration: 500ms;
}

.duration-700 {
    animation-duration: 700ms;
}

.duration-1000 {
    animation-duration: 1000ms;
}

/* WILL-CHANGE FOR PERFORMANCE */
.will-animate {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* HOVER EFFECTS */
.hover-lift {
    transition: var(--transition-soft);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.hover-lift-sm {
    transition: var(--transition-soft);
}

.hover-lift-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.hover-glow {
    transition: var(--transition-soft);
}

.hover-glow:hover {
    box-shadow: var(--shadow-neon);
}

.hover-scale {
    transition: var(--transition-soft);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-sm {
    transition: var(--transition-soft);
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

/* MOBILE REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
