/* Assessment Page Animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body {
    font-family: 'Inter', sans-serif;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.animate-float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Pulse Glow Effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
        transform: scale(1.02);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Gradient Border Animation */
@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient-border {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 300%;
    animation: gradient-border 4s ease infinite;
}

/* Card Hover Effects */
.assessment-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.assessment-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.assessment-card:hover .card-glow {
    opacity: 1;
    transform: scale(1.1);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 24px;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

/* Button Hover Effects */
.btn-assessment {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-assessment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-assessment:hover::before {
    left: 100%;
}

/* Sparkle Animation */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; left: 80%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 80%; left: 40%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 60%; left: 10%; animation-delay: 1.5s; }

/* Morphing Background */
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%; }
    75% { border-radius: 40% 70% 60% 30% / 70% 40% 50% 60%; }
}

.morph-bg {
    animation: morph 8s ease-in-out infinite;
}

/* Stats Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
    animation: countUp 0.6s ease-out forwards;
}

/* Icon Bounce */
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.icon-bounce:hover {
    animation: icon-bounce 0.6s ease-in-out;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .assessment-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card-glow {
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
