/* AI Guru - Animations */
/* All animations, transitions, and visual effects */

/* Progress Bar Animations */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(50px); }
}

/* Floating Animation */
.melancholic-image::before {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Slide In Animation */
.quiz-section {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Loading Progress Animation */
.analysis-fill {
    animation: loadingProgress 3s ease-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 75%; }
    100% { width: 100%; }
}

/* Loading Message Animation */
.loading-message {
    animation: fadeInOut 1s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Social Proof Pulse */
.social-proof {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Dramatic Reveal */
.dramatic-reveal.show {
    display: block;
    animation: dramaticReveal 1.5s ease forwards;
}

@keyframes dramaticReveal {
    0% { opacity: 1; }
    50% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* Results Screen Animation */
.results-screen {
    animation: fadeIn 0.8s ease;
}

/* Intro Screen Animation */
.intro-screen {
    animation: fadeIn 0.8s ease;
}

/* Scroll Section Animation */
.scroll-section {
    animation: fadeIn 0.5s ease;
}

/* Loading Screen Animation */
.loading-screen {
    animation: fadeIn 0.5s ease;
}

/* Results Title Glow */
.results-title {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(255,255,255,0.3); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.6); }
}

/* Critical Level Blink */
.critical-level {
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Lock Icon Shake */
.lock-icon {
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* CTA Section Rotation */
.cta-section::before {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CTA Button Pulse */
.cta-button {
    animation: pulseCTA 2s ease-in-out infinite;
}

@keyframes pulseCTA {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Live Update Fade */
.live-update {
    animation: fadeInOut 3s ease-in-out infinite;
}

/* Base Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hover Transitions */
.quiz-option,
.btn-primary,
.continue-btn,
.cta-button {
    transition: all 0.3s ease;
}

/* Transform Transitions */
.quiz-option:hover,
.btn-primary:hover,
.continue-btn:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Progress Fill Transition */
.progress-fill {
    transition: width 0.5s ease;
}

/* Chart Fill Transition */
.chart-fill {
    transition: width 1s ease;
}

/* Wisdom Text Transition */
.wisdom-text {
    transition: opacity 0.5s ease;
}

/* Scroll Content Transition */
.scroll-content {
    transition: transform 0.3s ease;
}

/* Continue Button Show Animation */
.continue-btn {
    transition: all 0.3s ease;
}

.continue-btn.show {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Quiz Option Before Element Transition */
.quiz-option::before {
    transition: left 0.3s ease;
}
