/* animations.css - High Performance GPU-Accelerated Visual Motion */

/* Fixed Morphing & Floating Glowing Blobs */
.morph-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: strict;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    -webkit-filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blob-1, #60a5fa) 0%, rgba(96, 165, 250, 0) 70%);
    top: -50px;
    left: -50px;
    animation: float1 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--blob-2, #818cf8) 0%, rgba(129, 140, 248, 0) 70%);
    bottom: -80px;
    right: -60px;
    animation: float2 22s ease-in-out infinite alternate;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--blob-3, #c084fc) 0%, rgba(192, 132, 252, 0) 70%);
    top: 40%;
    left: 50%;
    animation: float3 20s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(40px, 50px, 0) scale(1.08); }
    100% { transform: translate3d(20px, 80px, 0) scale(0.96); }
}

@keyframes float2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-50px, -40px, 0) scale(1.06); }
    100% { transform: translate3d(-30px, -70px, 0) scale(0.95); }
}

@keyframes float3 {
    0% { transform: translate3d(-50%, -50%, 0) scale(1); }
    50% { transform: translate3d(-40%, -60%, 0) scale(1.1); }
    100% { transform: translate3d(-60%, -40%, 0) scale(0.92); }
}

/* Perspective & 3D Cards */
.perspective-container {
    perspective: 1000px;
}

.tilt-card {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.15s ease-out;
}

/* Stagger & Fade Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-stagger-1 { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; opacity: 0; }
.animate-stagger-2 { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; }
.animate-stagger-3 { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; opacity: 0; }
.animate-stagger-4 { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.hover-lift:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 10px 24px var(--shadow-color);
}

/* Shake Animation for Invalid Inputs */
.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}
