﻿/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade Up Animation */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

    .animate-fade-up[data-delay="100"] {
        animation-delay: 0.1s;
    }

    .animate-fade-up[data-delay="200"] {
        animation-delay: 0.2s;
    }

    .animate-fade-up[data-delay="300"] {
        animation-delay: 0.3s;
    }

    .animate-fade-up[data-delay="400"] {
        animation-delay: 0.4s;
    }

    .animate-fade-up[data-delay="500"] {
        animation-delay: 0.5s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Left Animation */
.animate-fade-left {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeLeft 0.8s ease forwards;
}

    .animate-fade-left[data-delay="300"] {
        animation-delay: 0.3s;
    }

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

    .stagger-children > *:nth-child(1) {
        animation-delay: 0.1s;
    }

    .stagger-children > *:nth-child(2) {
        animation-delay: 0.2s;
    }

    .stagger-children > *:nth-child(3) {
        animation-delay: 0.3s;
    }

    .stagger-children > *:nth-child(4) {
        animation-delay: 0.4s;
    }

    .stagger-children > *:nth-child(5) {
        animation-delay: 0.5s;
    }

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

/* Gradient Border Animation */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
}

    .gradient-border::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 18px;
        background: var(--accent-gradient);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gradient-border:hover::before {
        opacity: 1;
    }

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

    .shimmer::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.05), transparent );
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Glow Pulse */
.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    }
}

/* Text Gradient Animation */
.text-gradient-animated {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient( 90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75% );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    to {
        background-position: -200% 0;
    }
}

/* Bounce In */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In From Bottom */
.slide-in-bottom {
    animation: slideInBottom 0.5s ease forwards;
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rotate In */
.rotate-in {
    animation: rotateIn 0.6s ease forwards;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Scale In */
.scale-in {
    animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
