/* Custom scrollbar styling for a premium feel */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4; 
}

::-webkit-scrollbar-thumb {
    background: #a8a29e; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #78716c; 
}

/* Ensure images don't drag */
img {
    user-drag: none;
    -webkit-user-drag: none;
}

/* WhatsApp Floating Button Ripple Wave Effect */
@keyframes whatsapp-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.3);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 0 0 30px rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn-ripple {
    animation: whatsapp-ripple 2s infinite;
}

/* Custom Cursor styling */
body, html, a, button, [onclick], input, textarea, select, .cursor-pointer {
    cursor: none !important;
}

#custom-cursor {
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease, opacity 0.2s ease;
    opacity: 0; /* hidden by default, shown on mousemove */
}

#custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(2);
}

/* Cursor Watercolor Trail Effect */
.cursor-trail {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    z-index: 99998; /* just below the main dot */
    mix-blend-mode: difference;
    filter: blur(2px);
    animation: trail-fade 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes trail-fade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
        filter: blur(1.5px);
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5); /* expands like watercolor drop bleeding on paper */
        opacity: 0;
        filter: blur(8px); /* gets softer and dissolves */
    }
}

/* Fallback to default cursor on touchscreens (mobile/tablet) */
@media (hover: none) and (pointer: coarse) {
    #custom-cursor, .cursor-trail {
        display: none !important;
    }
    body, html, a, button, [onclick], input, textarea, select, .cursor-pointer {
        cursor: auto !important;
    }
}