/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body, a, button, input, textarea, select, [role="button"], .clickable {
        cursor: none !important;
    }
}

/* Custom Cursor Container */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Main Cursor Dot */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: #ff6b81; /* bright pink */
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-radius 0.3s ease;
    box-shadow: 0 0 8px #ff6b81, 0 0 20px #ff6b81;
}

/* Outer Morphing Shape */
.cursor-shape {
    width: 40px;
    height: 40px;
    border: 2px solid #ff6b81;
    border-radius: 50%; /* changes to hexagon-like on hover */
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, transform 0.2s ease;
}

/* Hover State on Interactive Elements */
.custom-cursor.hover .cursor-shape {
    border-radius: 20%; /* hexagon-ish shape */
    transform: translate(-50%, -50%) rotate(20deg);
    border-color: #ff4757;
}

.custom-cursor.hover .cursor-dot {
    width: 16px;
    height: 16px;
}

/* Click State */
.custom-cursor.click .cursor-dot {
    width: 6px;
    height: 6px;
}

.custom-cursor.click .cursor-shape {
    width: 30px;
    height: 30px;
}

/* Trail Effect */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffa502; /* yellow/orange trail */
    pointer-events: none;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear, opacity 0.2s ease;
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-shape,
    .cursor-trail {
        transition: none !important;
        animation: none !important;
    }
}
