/* ===== FUZO ANIMATIONS - "DON'T BE CONSTANT" ===== */
/* Fluid transitions and dynamic animations */

/* ===== KEYFRAME ANIMATIONS ===== */

/* Gradient Shift Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Gradient Pulse for Hero Background */
@keyframes gradientPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Bubble Rise Animation */
@keyframes bubbleRise {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }

    10% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        bottom: 110vh;
        opacity: 0;
        transform: translateX(100px) scale(0.5);
    }
}

/* Wheel Scroll Animation */
@keyframes wheelScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 18px);
        opacity: 0;
    }
}

/* Blob Morph Animation - Creates organic, liquid-like movement */
@keyframes blobMorph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg) scale(1.05);
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 60% 50%;
        transform: rotate(180deg) scale(0.95);
    }

    75% {
        border-radius: 60% 40% 60% 40% / 70% 30% 50% 60%;
        transform: rotate(270deg) scale(1.02);
    }
}

/* Can Float Animation */
@keyframes canFloat {

    0%,
    100% {
        transform: translateY(0px) rotateY(-5deg);
    }

    50% {
        transform: translateY(-25px) rotateY(5deg);
    }
}

/* Globe Rotate Animation */
@keyframes globeRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ring Rotate Animation */
@keyframes ringRotate {
    0% {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
    }
}

/* Shimmer Effect for Can Shine */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Flicker Animation for Neon Effects */
@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    41.99% {
        opacity: 1;
    }

    42% {
        opacity: 0;
    }

    43% {
        opacity: 0;
    }

    43.01% {
        opacity: 1;
    }

    47.99% {
        opacity: 1;
    }

    48% {
        opacity: 0;
    }

    49% {
        opacity: 0;
    }

    49.01% {
        opacity: 1;
    }
}

/* Variable Font Weight Shift */
@keyframes fontWeightShift {

    0%,
    100% {
        font-variation-settings: 'wght' 400;
    }

    50% {
        font-variation-settings: 'wght' 900;
    }
}

/* Liquid Morph Button Animation */
@keyframes liquidMorph {

    0%,
    100% {
        border-radius: 50px;
    }

    25% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    }

    50% {
        border-radius: 55% 45% 40% 60% / 60% 40% 60% 40%;
    }

    75% {
        border-radius: 40% 60% 50% 50% / 45% 55% 55% 45%;
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Slide In from Bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Glow Pulse */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    }

    50% {
        box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
    }
}

/* ===== APPLIED ANIMATION CLASSES ===== */

/* Liquid Morph Effect for Buttons */
.liquid-morph {
    animation: liquidMorph 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.liquid-morph::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.liquid-morph:hover::before {
    width: 300px;
    height: 300px;
}

/* Can Shine Effect */
.can-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-15deg);
    animation: shimmer 3s infinite;
}

/* Parallax Effect */
.parallax-bg {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Variable Font Pulse */
.variable-font-pulse {
    animation: fontWeightShift 4s ease-in-out infinite;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Hover Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    animation: slideInBottom 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Rotate on Hover */
.rotate-hover {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-hover:hover {
    transform: rotate(5deg) scale(1.05);
}

/* 3D Flip Effect */
.flip-3d {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-3d:hover {
    transform: rotateY(180deg);
}

/* Neon Glow Text */
.neon-glow {
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 80px currentColor;
    animation: flicker 5s infinite alternate;
}

/* Liquid Button */
.liquid-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.liquid-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Blob SVG Animation Support */
.blob-svg {
    animation: blobMorph 10s ease-in-out infinite;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Floating Animation */
@keyframes floatGentle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-gentle {
    animation: floatGentle 4s ease-in-out infinite;
}

/* Fade In on Scroll (used with JS) */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clip Path Liquid Transition */
@keyframes liquidTransition {

    0%,
    100% {
        clip-path: polygon(0% 45%,
                15% 44%,
                33% 50%,
                54% 60%,
                70% 61%,
                84% 59%,
                100% 52%,
                100% 100%,
                0% 100%);
    }

    50% {
        clip-path: polygon(0% 60%,
                16% 65%,
                34% 66%,
                51% 62%,
                67% 50%,
                84% 45%,
                100% 46%,
                100% 100%,
                0% 100%);
    }
}

.liquid-clip {
    animation: liquidTransition 8s ease-in-out infinite;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration hints */
.hw-accelerate {
    transform: translateZ(0);
    will-change: transform;
}

/* ===== TRANSITION UTILITIES ===== */

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-smooth {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-bounce {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.transition-elastic {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */

.scroll-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scale.active {
    opacity: 1;
    transform: scale(1);
}