/* Page Transition Animations */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) rotateZ(2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-5px) rotateX(2deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Page entry animation */
.page-enter {
    animation: pageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card animation */
.card-enter {
    animation: scaleIn 0.5s ease-out;
}

.card-enter:nth-child(1) {
    animation-delay: 0.1s;
}

.card-enter:nth-child(2) {
    animation-delay: 0.2s;
}

.card-enter:nth-child(3) {
    animation-delay: 0.3s;
}

.card-enter:nth-child(4) {
    animation-delay: 0.4s;
}

.card-float {
    animation: cardFloat 3s ease-in-out infinite;
}

/* Smooth transitions for all elements */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form elements */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Button animations */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Link animations */
a {
    transition: all 0.3s ease;
}

a:hover {
    transform: scale(1.05);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Pulse effect */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce in */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease;
}

/* Rotate in */
@keyframes rotateIn {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}

.rotate-in {
    animation: rotateIn 0.8s ease;
}

/* Flip animation */
@keyframes flip {
    from {
        transform: perspective(400px) rotateY(0);
    }
    40% {
        transform: perspective(400px) rotateY(-90deg);
    }
    to {
        transform: perspective(400px) rotateY(0);
    }
}

.flip {
    animation: flip 1s ease;
}

