/* ==================== GLOBAL ANIMATIONS & TRANSITIONS ==================== */

/* ========== 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(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 ANIMATIONS ========== */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* ========== SCALE ANIMATIONS ========== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* ========== ROTATION ANIMATIONS ========== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotatePlus {
    from {
        transform: rotate(-5deg);
    }
    to {
        transform: rotate(5deg);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ========== PULSE ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulseShadow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 119, 182, 0);
    }
}

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

@keyframes shineEffect {
    0% {
        background-position: -1200px;
    }
    100% {
        background-position: 1200px;
    }
}

/* ========== GRADIENT ANIMATIONS ========== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========== GLOW ANIMATIONS ========== */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 119, 182, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 119, 182, 1);
    }
}

@keyframes boxGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 119, 182, 0.3), inset 0 0 5px rgba(0, 119, 182, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 119, 182, 0.6), inset 0 0 10px rgba(0, 119, 182, 0.2);
    }
}

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

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

/* ========== WIGGLE ANIMATIONS ========== */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-1deg);
    }
    75% {
        transform: rotate(1deg);
    }
}

/* ========== ANIMATION UTILITY CLASSES ========== */
.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

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

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

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

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

.animate-slide-in-down {
    animation: slideInDown 0.6s ease;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease;
}

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

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease;
}

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

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

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

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

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

.animate-wiggle {
    animation: wiggle 0.5s ease infinite;
}

/* ========== TRANSITION HELPERS ========== */
.transition-fast {
    transition: all 150ms ease;
}

.transition-base {
    transition: all 300ms ease;
}

.transition-slow {
    transition: all 500ms ease;
}

.transition-smooth {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== TRANSFORM ORIGIN HELPERS ========== */
.origin-center {
    transform-origin: center;
}

.origin-top {
    transform-origin: top;
}

.origin-bottom {
    transform-origin: bottom;
}

.origin-left {
    transform-origin: left;
}

.origin-right {
    transform-origin: right;
}

/* ========== DELAY UTILITIES ========== */
.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;
}
