/* ===================================
   SCROLL ANIMATION STYLES
   =================================== */

/* Base animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* Fade In Animations */
.fade-in-up {
    transform: translateY(60px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

.fade-in-down {
    transform: translateY(-60px);
}

.fade-in-down.animated {
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-60px);
}

.fade-in-left.animated {
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(60px);
}

.fade-in-right.animated {
    transform: translateX(0);
}

/* Scale Animations */
.scale-in {
    transform: scale(0.8);
}

.scale-in.animated {
    transform: scale(1);
}

/* Rotate Animations */
.rotate-in {
    transform: rotate(-10deg) scale(0.9);
}

.rotate-in.animated {
    transform: rotate(0deg) scale(1);
}

/* Flip Animations */
.flip-in {
    transform: perspective(1000px) rotateY(90deg);
}

.flip-in.animated {
    transform: perspective(1000px) rotateY(0deg);
}

/* Bounce Effect */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

/* Slide and Fade */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Text Reveal Animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.text-reveal {
    animation: textReveal 1s ease-out;
}

/* Stagger Animation Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Glow Effect on Scroll */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(94, 181, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(94, 181, 247, 0.6);
    }
}

.glow-on-scroll.animated {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Parallax Effect */
.parallax-slow {
    transition: transform 0.5s ease-out;
}

/* Image Zoom on Scroll */
.zoom-in-image {
    overflow: hidden;
}

.zoom-in-image img {
    transition: transform 1s ease-out;
    transform: scale(1.2);
}

.zoom-in-image.animated img {
    transform: scale(1);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-up {
    animation: countUp 0.6s ease-out;
}

/* Wave Animation for Sections */
@keyframes waveSlide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.wave-slide {
    animation: waveSlide 1.2s ease-out;
}

/* Card Hover Enhancement */
.animate-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Typing Effect for Text */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Underline Animation */
.underline-animate {
    position: relative;
    display: inline-block;
}

.underline-animate::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #56b4e9, #00acee);
    transition: width 0.8s ease-out;
}

.underline-animate.animated::after {
    width: 100%;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-animate.animated {
    animation: pulse 2s ease-in-out infinite;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake-animate.animated {
    animation: shake 0.8s ease-in-out;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

/* Blur to Focus */
@keyframes blurToFocus {
    0% {
        filter: blur(10px);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}

.blur-focus {
    animation: blurToFocus 1s ease-out;
}

/* Slide and Rotate */
.slide-rotate {
    transform: translateX(-100px) rotate(-15deg);
    opacity: 0;
}

.slide-rotate.animated {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
}

/* 3D Flip Card */
.flip-3d {
    transform: perspective(1000px) rotateX(-90deg);
    transform-origin: bottom;
}

.flip-3d.animated {
    transform: perspective(1000px) rotateX(0deg);
}

/* Neon Glow Text */
@keyframes neonGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(94, 181, 247, 0.5),
            0 0 20px rgba(94, 181, 247, 0.3),
            0 0 30px rgba(94, 181, 247, 0.2);
    }

    50% {
        text-shadow: 0 0 20px rgba(94, 181, 247, 0.8),
            0 0 30px rgba(94, 181, 247, 0.6),
            0 0 40px rgba(94, 181, 247, 0.4);
    }
}

.neon-glow.animated {
    animation: neonGlow 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .fade-in-up,
    .fade-in-down,
    .fade-in-left,
    .fade-in-right {
        transform: translateY(30px);
    }

    .fade-in-up.animated,
    .fade-in-down.animated,
    .fade-in-left.animated,
    .fade-in-right.animated {
        transform: translateY(0);
    }
}