/* Quorela Animations Stylesheet */

/* ============================================
   Keyframe Animations
   ============================================ */

@keyframes qu-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes qu-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qu-fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qu-fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes qu-fade-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes qu-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes qu-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes qu-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes qu-scroll-bounce {
    0%, 100% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1.5);
        transform-origin: top;
    }
}

@keyframes qu-shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes qu-slide-in-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes qu-slide-in-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes qu-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

@keyframes qu-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    }
}

@keyframes qu-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   Animation Utility Classes
   ============================================ */

/* Fade Animations */
.qu-fade-in {
    animation: qu-fade-in 0.6s ease-out forwards;
}

.qu-fade-in-up {
    opacity: 0;
    animation: qu-fade-in-up 0.8s ease-out forwards;
}

.qu-fade-in-down {
    opacity: 0;
    animation: qu-fade-in-down 0.8s ease-out forwards;
}

.qu-fade-in-left {
    opacity: 0;
    animation: qu-fade-in-left 0.8s ease-out forwards;
}

.qu-fade-in-right {
    opacity: 0;
    animation: qu-fade-in-right 0.8s ease-out forwards;
}

/* Scale Animation */
.qu-scale-in {
    opacity: 0;
    animation: qu-scale-in 0.6s ease-out forwards;
}

/* Continuous Animations */
.qu-float {
    animation: qu-float 3s ease-in-out infinite;
}

.qu-pulse {
    animation: qu-pulse 2s ease-in-out infinite;
}

.qu-rotate {
    animation: qu-rotate 20s linear infinite;
}

.qu-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: qu-shimmer 2s infinite;
}

.qu-glow {
    animation: qu-glow 2s ease-in-out infinite;
}

.qu-gradient-shift {
    background-size: 200% 200%;
    animation: qu-gradient-shift 5s ease infinite;
}

/* ============================================
   Animation Delays
   ============================================ */

.qu-delay-1 {
    animation-delay: 0.2s;
}

.qu-delay-2 {
    animation-delay: 0.4s;
}

.qu-delay-3 {
    animation-delay: 0.6s;
}

.qu-delay-4 {
    animation-delay: 0.8s;
}

.qu-delay-5 {
    animation-delay: 1s;
}

/* ============================================
   Scroll-Triggered Animations
   ============================================ */

.qu-fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.qu-fade-on-scroll.qu-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Hover Effects
   ============================================ */

.qu-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qu-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.qu-hover-scale {
    transition: transform 0.3s ease;
}

.qu-hover-scale:hover {
    transform: scale(1.05);
}

.qu-hover-glow {
    transition: box-shadow 0.3s ease;
}

.qu-hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.qu-hover-rotate {
    transition: transform 0.3s ease;
}

.qu-hover-rotate:hover {
    transform: rotate(5deg);
}

/* ============================================
   Loading Animations
   ============================================ */

.qu-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: #00D9FF;
    border-radius: 50%;
    animation: qu-rotate 1s linear infinite;
}

.qu-loader-dots {
    display: inline-flex;
    gap: 0.5rem;
}

.qu-loader-dots span {
    width: 8px;
    height: 8px;
    background: #00D9FF;
    border-radius: 50%;
    animation: qu-bounce 1.4s ease-in-out infinite;
}

.qu-loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.qu-loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.qu-loader-dots span:nth-child(3) {
    animation-delay: 0s;
}

/* ============================================
   Transition Classes
   ============================================ */

.qu-transition-all {
    transition: all 0.3s ease;
}

.qu-transition-fast {
    transition: all 0.2s ease;
}

.qu-transition-slow {
    transition: all 0.5s ease;
}

.qu-transition-transform {
    transition: transform 0.3s ease;
}

.qu-transition-opacity {
    transition: opacity 0.3s ease;
}

.qu-transition-color {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* ============================================
   Stagger Animations
   ============================================ */

.qu-stagger-children > * {
    opacity: 0;
    animation: qu-fade-in-up 0.6s ease-out forwards;
}

.qu-stagger-children > *:nth-child(1) {
    animation-delay: 0.1s;
}

.qu-stagger-children > *:nth-child(2) {
    animation-delay: 0.2s;
}

.qu-stagger-children > *:nth-child(3) {
    animation-delay: 0.3s;
}

.qu-stagger-children > *:nth-child(4) {
    animation-delay: 0.4s;
}

.qu-stagger-children > *:nth-child(5) {
    animation-delay: 0.5s;
}

.qu-stagger-children > *:nth-child(6) {
    animation-delay: 0.6s;
}

/* ============================================
   Page Transitions
   ============================================ */

.qu-page-enter {
    animation: qu-fade-in 0.4s ease-out;
}

.qu-page-exit {
    animation: qu-fade-in 0.4s ease-out reverse;
}

/* ============================================
   Parallax Effect Base
   ============================================ */

.qu-parallax {
    transform: translateZ(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Responsive Animations
   ============================================ */

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

@media (max-width: 768px) {
    .qu-fade-on-scroll {
        transform: translateY(20px);
    }
    
    .qu-hover-lift:hover {
        transform: translateY(-4px);
    }
}
