/* ==========================================================================
   INTERACTION ANIMATIONS
   Hover effects, button animations, and user interaction feedback
   ========================================================================== */

/* Button Animations */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Hover Lift Effects */
@keyframes hoverLift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Icon Animations */
@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes iconBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes serviceIconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes teamIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes contactIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes socialIconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes portfolioIconGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
        transform: scale(1.05);
    }
}

@keyframes techIconFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-5px) rotateY(180deg);
    }
}

/* Technology-Specific Icon Animations */
@keyframes techIconSpecial {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

@keyframes htmlPulse {
    0%, 100% {
        color: #e34c26;
        transform: scale(1);
    }
    50% {
        color: #f06529;
        transform: scale(1.1);
    }
}

@keyframes cssWave {
    0%, 100% {
        color: #1572b6;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        color: #33a9dc;
        transform: translateY(-3px) rotate(5deg);
    }
}

@keyframes jsFlicker {
    0%, 100% {
        color: #f7df1e;
        text-shadow: 0 0 5px rgba(247, 223, 30, 0.5);
    }
    50% {
        color: #f0db4f;
        text-shadow: 0 0 15px rgba(247, 223, 30, 0.8);
    }
}

@keyframes reactSpin {
    0% {
        color: #61dafb;
        transform: rotate(0deg);
    }
    100% {
        color: #21d4fd;
        transform: rotate(360deg);
    }
}

@keyframes nodeGrow {
    0%, 100% {
        color: #68a063;
        transform: scale(1);
    }
    50% {
        color: #8cc84b;
        transform: scale(1.15);
    }
}

@keyframes phpBounce {
    0%, 100% {
        color: #777bb4;
        transform: translateY(0);
    }
    25%, 75% {
        color: #8892bf;
        transform: translateY(-2px);
    }
    50% {
        color: #9ca3d4;
        transform: translateY(-4px);
    }
}

@keyframes pythonSlither {
    0%, 100% {
        color: #3776ab;
        transform: translateX(0) rotate(0deg);
    }
    25% {
        color: #ffd43b;
        transform: translateX(2px) rotate(2deg);
    }
    75% {
        color: #4b8bbe;
        transform: translateX(-2px) rotate(-2deg);
    }
}

@keyframes wordpressRotate {
    0%, 100% {
        color: #21759b;
        transform: rotate(0deg) scale(1);
    }
    50% {
        color: #0073aa;
        transform: rotate(180deg) scale(1.1);
    }
}

/* Loading and Progress Animations */
@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

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

@keyframes progressRing {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 0;
    }
}

@keyframes progressGrow {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

/* Form Interaction Animations */
@keyframes inputFocus {
    0% {
        border-color: #e2e8f0;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    100% {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }
}

@keyframes labelFloat {
    0% {
        transform: translateY(0) scale(1);
        color: #64748b;
    }
    100% {
        transform: translateY(-20px) scale(0.85);
        color: #6366f1;
    }
}

/* Navigation Animations */
@keyframes navItemPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Floating Action Button */
@keyframes fabPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Utility Classes for Interactions */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

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

.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transition: box-shadow 0.3s ease;
}

.btn-animate {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-animate:active {
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}