/* ===================================
   PREMIUM CUSTOM CURSOR ANIMATION
   Center Dot with Surrounding Circle
   =================================== */

/* Hide default cursor */
* {
    cursor: none !important;
}

/* Custom Cursor Container */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
}

/* Center Dot */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    z-index: 99999;
    pointer-events: none;
}

/* Surrounding Circle */
.cursor-circle {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.3s ease,
                opacity 0.3s ease;
    z-index: 99998;
    pointer-events: none;
    animation: pulse-circle 2s ease-in-out infinite;
}

/* Pulse Animation for Circle */
@keyframes pulse-circle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

/* Hover State - Expand on Links/Buttons */
body.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: #E63946;
}

body.cursor-hover .cursor-circle {
    width: 60px;
    height: 60px;
    border-color: rgba(230, 57, 70, 0.8);
    animation: none;
}

/* Active/Click State */
body.cursor-active .cursor-dot {
    width: 6px;
    height: 6px;
}

body.cursor-active .cursor-circle {
    width: 35px;
    height: 35px;
    border-width: 3px;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-dot,
    .cursor-circle {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
}

/* Special states for different elements */
body.cursor-text .cursor-circle {
    width: 50px;
    height: 50px;
    border-color: rgba(255, 255, 255, 0.6);
}

body.cursor-text .cursor-dot {
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

/* Smooth trailing effect */
.cursor-circle {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cursor-dot {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glowing effect on special elements */
body.cursor-special .cursor-circle {
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5),
                0 0 40px rgba(230, 57, 70, 0.3);
    border-color: #E63946;
}

body.cursor-special .cursor-dot {
    background: #E63946;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.8);
}
