/* animations.css - Global Animation System for Pragathisheeli Labs */

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --anim-duration: 0.8s;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page Load Animation Classes */
.animate-on-load {
    opacity: 0;
}

.fade-up {
    animation: fadeInUp var(--anim-duration) var(--ease-out-expo) forwards;
}

.fade-scale {
    animation: fadeInScale var(--anim-duration) var(--ease-out-expo) forwards;
}

/* Staggered Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Interactive Transitions */
.btn-pulse, .lab-card, .tech-tag {
    transition: all 0.4s var(--ease-out-expo);
}

.btn-pulse:active {
    transform: scale(0.96);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 3D Floating Animation */
@keyframes float3D {
    0% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
    33% { transform: translate3d(10px, -20px, 50px) rotateX(10deg) rotateY(15deg); }
    66% { transform: translate3d(-10px, -15px, 20px) rotateX(-10deg) rotateY(-5deg); }
    100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
}

.floating-icon {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: float3D 15s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.3s ease-out; /* Smooths out parallax/mouse movement */
}

/* Scroll Reveal Utility (to be used with JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
