/* Animations - All @keyframes definitions */

/* Loading and Skeleton Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hero Animation Styles */
@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

@keyframes floatIn {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}

/* Rocket and Orbit Animations */
@keyframes rocketFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(-1deg); }
    50% { transform: translate(-50%, -50%) translateY(-12px) rotate(1deg); }
}

@keyframes flameFlicker {
    0% { transform: scaleY(1) scaleX(1); opacity: 1; }
    100% { transform: scaleY(1.2) scaleX(0.9); opacity: 0.9; }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes orbit1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(60deg); }
    to { transform: rotate(420deg); }
}

@keyframes orbit3 {
    from { transform: rotate(120deg); }
    to { transform: rotate(480deg); }
}

@keyframes orbit4 {
    from { transform: rotate(180deg); }
    to { transform: rotate(540deg); }
}

@keyframes orbit5 {
    from { transform: rotate(240deg); }
    to { transform: rotate(600deg); }
}

@keyframes orbit6 {
    from { transform: rotate(300deg); }
    to { transform: rotate(660deg); }
}

@keyframes counterRotate1 {
    from { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(0deg); }
    to { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-360deg); }
}

@keyframes counterRotate2 {
    from { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-60deg); }
    to { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(300deg); }
}

@keyframes counterRotate3 {
    from { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-120deg); }
    to { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-480deg); }
}

@keyframes counterRotate4 {
    from { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-180deg); }
    to { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(180deg); }
}

@keyframes counterRotate5 {
    from { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-240deg); }
    to { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-600deg); }
}

@keyframes counterRotate6 {
    from { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(-300deg); }
    to { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) rotate(60deg); }
}

/* Floating Task Animations */
@keyframes floatTask1 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatTask2 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes floatTask3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

/* Data Flow and Particle Animations */
@keyframes dataFlow {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}

@keyframes particleRise {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(calc(-50% + var(--x-offset, 0px))) translateY(60px); opacity: 0; }
}

/* Star Twinkle */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* Scroll Indicator */
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(14px); opacity: 0.9; }
}

/* Scrolling Features */
@keyframes scrollFeatures {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(-3deg); }
    75% { transform: translateY(-6px) rotate(3deg); }
}

/* Celebrate Icon */
@keyframes celebrateIcon {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Menu and Modal Animations */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes calendarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Task Animations */
@keyframes taskSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Count Badge Bump */
@keyframes countBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Alexa Pulse */
@keyframes alexaPulse {
    0% { box-shadow: 0 0 0 0 rgba(49, 196, 243, 0.6); }
    50% { box-shadow: 0 0 20px 10px rgba(49, 196, 243, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(49, 196, 243, 0); }
}

/* Toast Animations */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* Notes Panel Animation */
@keyframes notesSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typing Animation */
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Spin Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Hero Animations */
@keyframes titleGradientShift {
    0% { filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.4)) hue-rotate(0deg); }
    50% { filter: drop-shadow(0 0 50px rgba(16, 185, 129, 0.6)) hue-rotate(15deg); }
    100% { filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.4)) hue-rotate(0deg); }
}

@keyframes titleGradientShift2 {
    0% { filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.4)) hue-rotate(0deg); }
    50% { filter: drop-shadow(0 0 50px rgba(245, 158, 11, 0.6)) hue-rotate(-15deg); }
    100% { filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.4)) hue-rotate(0deg); }
}

@keyframes widgetGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 20px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 40px rgba(99, 102, 241, 0.4);
    }
}

@keyframes widgetFloat {
    0%, 100% { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) scale(1); }
    50% { transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) scale(1.05); }
}

@keyframes energyPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes rocketGlow {
    0%, 100% { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(249, 115, 22, 0.3)); }
    50% { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 50px rgba(249, 115, 22, 0.5)); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

@keyframes shootingStar {
    0% { transform: translateX(0) translateY(0); opacity: 1; }
    100% { transform: translateX(100px) translateY(100px); opacity: 0; }
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringRotateReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes taskCardGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 20px rgba(16, 185, 129, 0.3); }
}

@keyframes magneticFloat {
    0%, 100% { transform: translateY(0) translateX(0) rotate(-1deg); }
    25% { transform: translateY(-8px) translateX(3px) rotate(0deg); }
    50% { transform: translateY(-12px) translateX(0) rotate(1deg); }
    75% { transform: translateY(-6px) translateX(-3px) rotate(0deg); }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; border-color: rgba(99, 102, 241, 0.3); }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; border-color: rgba(99, 102, 241, 0.5); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; border-color: rgba(99, 102, 241, 0.3); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}
