/* ==============================================================================
 * SmartERA Solutions Private Limited - Animations & Cursor
 * Inspired by Umano Design Studio
 * ============================================================================== */

/* Lenis smooth scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Custom Magnetic Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background: var(--um-text-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease,
                border-radius 0.3s ease,
                transform 0.1s ease-out;
    mix-blend-mode: exclusion;
    display: none;
}

@media (pointer: fine) {
    .custom-cursor {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.custom-cursor.hovering {
    width: 64px;
    height: 64px;
    background: #ffffff;
    mix-blend-mode: difference;
}

.cursor-text {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.custom-cursor.hovering .cursor-text {
    opacity: 1;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse animation for live indicators */
@keyframes ringPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 118, 71, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 118, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 118, 71, 0);
    }
}

.live-badge-glow {
    animation: ringPulse 2s infinite;
}

/* Sanitization spray mist effect */
@keyframes mistSpray {
    0% { opacity: 0; transform: scale(0.8) translateY(-10px); }
    50% { opacity: 0.8; transform: scale(1.1) translateY(0); }
    100% { opacity: 0; transform: scale(1.3) translateY(10px); }
}

.anim-mist {
    animation: mistSpray 1.5s ease-in-out infinite;
}
