/**
 * Animation Library V2 - Subtle & Professional
 * Modern animations with gentle movements and professional feel
 */

/* ==========================
   KEYFRAME ANIMATIONS
   ========================== */

/* Gentle Entrance Animations */
@keyframes gentleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Subtle Hover Effects */
@keyframes gentleLift {
    from {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    to {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }
}

@keyframes softGlow {
    from {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    to {
        box-shadow: 0 4px 20px rgba(40, 46, 121, 0.2);
    }
}

/* Smooth Parallax */
@keyframes smoothFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Cursor Blink for Loader */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ==========================
   ANIMATION CLASSES
   ========================== */

/* Base animated class */
.animated {
    animation-fill-mode: both;
}

/* Gentle Reveal - Default entrance animation */
.gentle-reveal {
    animation-name: gentleReveal;
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
}

/* Soft Fade In */
.soft-fade-in {
    animation-name: softFadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
}

/* Slide From Left */
.slide-from-left {
    animation-name: slideFromLeft;
    animation-duration: 0.7s;
    animation-timing-function: ease-out;
}

/* Slide From Right */
.slide-from-right {
    animation-name: slideFromRight;
    animation-duration: 0.7s;
    animation-timing-function: ease-out;
}

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

/* Gentle Lift Hover */
.hover-gentle-lift {
    transition: all 0.3s ease;
}

.hover-gentle-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Soft Glow Hover */
.hover-soft-glow {
    transition: box-shadow 0.3s ease;
}

.hover-soft-glow:hover {
    box-shadow: 0 4px 20px rgba(40, 46, 121, 0.2);
}

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

/* Smooth Float */
.smooth-float {
    animation: smoothFloat 3s ease-in-out infinite;
}

/* Remove animations on mobile for performance */
@media (max-width: 768px) {
    .animated {
        animation: none !important;
    }

    .hover-gentle-lift:hover,
    .hover-soft-glow:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animated {
        animation: none !important;
        transition: none !important;
    }

    .hover-gentle-lift:hover,
    .hover-soft-glow:hover {
        transform: none;
    }
}
