/**
 * Advanced Animations
 * Additional animation effects and keyframes
 * 
 * @package rprocess-child
 */

/* ============================================
   ADVANCED ANIMATIONS
   ============================================ */

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Rotate In Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
    to {
        transform: scale(1);
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flip Animation */
@keyframes flip {
    from {
        transform: perspective(400px) rotateY(0);
    }
    to {
        transform: perspective(400px) rotateY(360deg);
    }
}

/* Wobble Animation */
@keyframes wobble {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-25px) rotate(-5deg);
    }
    30% {
        transform: translateX(20px) rotate(3deg);
    }
    45% {
        transform: translateX(-15px) rotate(-3deg);
    }
    60% {
        transform: translateX(10px) rotate(2deg);
    }
    75% {
        transform: translateX(-5px) rotate(-1deg);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Gradient Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.8), 0 0 30px rgba(0, 123, 255, 0.6);
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 25px rgba(0, 123, 255, 0.8);
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-rotate-in {
    animation: rotateIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
    opacity: 0;
}

.animate-flip {
    animation: flip 1s ease-in-out;
}

.animate-wobble {
    animation: wobble 1s ease-in-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ============================================
   HOVER ANIMATIONS
   ============================================ */

.hover-float:hover {
    animation: float 2s ease-in-out infinite;
}

.hover-rotate:hover {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.hover-zoom:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hover-glow-effect:hover {
    animation: glow 1.5s ease-in-out infinite;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-on-scroll.fade-in {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in.animated {
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-right.animated {
    transform: translateX(0);
}

.animate-on-scroll.scale-in {
    transform: scale(0.8);
}

.animate-on-scroll.scale-in.animated {
    transform: scale(1);
}

/* ============================================
   CROSS-BROWSER PREFIXES
   ============================================ */

/* Webkit prefixes */
@-webkit-keyframes float {
    0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }
}

@-webkit-keyframes rotateIn {
    from {
        opacity: 0;
        -webkit-transform: rotate(-200deg);
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}

/* Mozilla prefixes */
@-moz-keyframes float {
    0%, 100% {
        -moz-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -moz-transform: translateY(-20px);
        transform: translateY(-20px);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Use GPU acceleration */
.animate-fade-in,
.animate-fade-in-up,
.animate-fade-in-down,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-scale-in,
.animate-slide-in,
.animate-float,
.animate-rotate-in,
.animate-zoom-in {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



