/* animations.css - VMAV Micro-Animations */

/* ===== FADE IN UP ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== FADE IN ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

/* ===== SCALE IN ===== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* ===== FLOAT (for device mockups) ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== PULSE GLOW (for CTAs) ===== */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ===== TYPING (for terminal) ===== */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    50% { border-color: transparent; }
}

.animate-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation: typing 2s steps(40) forwards, blinkCaret 0.75s step-end infinite;
}

/* ===== SLIDE IN LEFT ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

/* ===== SLIDE IN RIGHT ===== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

/* ===== PREMIUM HOVER EFFECTS ===== */

/* Glass Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}
.hover-shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
    pointer-events: none;
}
.hover-shine:hover::after {
    left: 125%;
}

/* Premium Lift with Dynamic Shadow */
.hover-lift-premium {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.hover-lift-premium:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Magnetic subtle attraction */
.hover-magnetic-sm:hover {
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}

/* ===== INTERSECTION OBSERVER TRIGGERS ===== */
/* Elements with .animate-on-scroll start invisible and animate when visible */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger support via inline animation-delay */
.animate-on-scroll[style*="animation-delay"] {
    transition-delay: inherit;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

