/* ============================================
   MODERN ANIMATIONS & TRANSITIONS
   ============================================ */

/* === ENTRANCE ANIMATIONS === */

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

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

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

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

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

@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* === INTERACTIVE ANIMATIONS === */

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(241, 62, 34, 0.4);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 40px rgba(241, 62, 34, 0.8);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

/* === STAGGER ANIMATIONS === */

@keyframes staggerIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HOVER ANIMATIONS === */

@keyframes lift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-8px);
    }
}

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

/* === UTILITY CLASSES === */

.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-down {
    animation: slideInDown 0.8s ease-out forwards;
}

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

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

.animate-fade-scale {
    animation: fadeInScale 0.8s ease-out forwards;
}

.animate-fade-blur {
    animation: fadeInBlur 0.8s ease-out forwards;
}

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

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

.animate-shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #ffffff 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-rotate {
    animation: rotate-circle 4s linear infinite;
}

/* === STAGGER DELAYS === */

.animate-stagger-1 {
    animation: staggerIn 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.animate-stagger-2 {
    animation: staggerIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-stagger-3 {
    animation: staggerIn 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-stagger-4 {
    animation: staggerIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-stagger-5 {
    animation: staggerIn 0.6s ease-out 0.5s forwards;
    opacity: 0;
}

/* === CARD HOVER EFFECTS === */

.card-hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(241, 62, 34, 0.2);
}

/* === BUTTON ANIMATIONS === */

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

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease-out;
}

.btn-animate:hover::before {
    left: 100%;
}

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

/* === SCROLL REVEAL === */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.visible {
    animation: slideInUp 0.8s ease-out forwards;
}

/* === GLASSMORPHISM === */

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === GRADIENT ANIMATIONS === */

.gradient-animated {
    background: linear-gradient(
        -45deg,
        #f13e22,
        #09a292,
        #ff9e2a,
        #f13e22
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

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

/* === TEXT ANIMATIONS === */

.text-shimmer {
    background: linear-gradient(90deg, #333, #09a292, #f13e22, #333);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 3s infinite;
}

@keyframes shimmer-text {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* === BORDER ANIMATIONS === */

.border-animated {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #f13e22, #09a292) border-box;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        background: linear-gradient(#fff, #fff) padding-box,
                    linear-gradient(90deg, #f13e22, #09a292) border-box;
    }
    50% {
        background: linear-gradient(#fff, #fff) padding-box,
                    linear-gradient(90deg, #09a292, #ff9e2a) border-box;
    }
}

/* === ICON ANIMATIONS === */

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

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

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

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

/* === PROGRESS ANIMATIONS === */

.progress-bar-animated {
    background: linear-gradient(90deg, #f13e22, #09a292, #ff9e2a);
    background-size: 200% 100%;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* === TRANSITION UTILITIES === */

.transition-all-smooth {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-fade {
    transition: opacity 0.3s ease-out;
}

.transition-slide {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESPONSIVE ANIMATIONS === */

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