/* ==========================================
   CUSTOM DUAL-RING ANIMATED CURSOR
   ========================================== */

/* Hide default cursor on desktop only */
@media (hover: hover) and (pointer: fine) {
    body,
    body * {
        cursor: none !important;
    }
}

/* Small Dot - follows cursor instantly */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #D4AF37;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    will-change: transform;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Big Ring - follows cursor with delay */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid #1B4B8C;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    will-change: transform;
    opacity: 0.8;
}

/* Hover state - when over buttons, links, cards */
.cursor-ring.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    border-width: 2px;
}

.cursor-dot.cursor-hover {
    width: 12px;
    height: 12px;
    background: #1B4B8C;
    box-shadow: 0 0 15px rgba(27, 75, 140, 0.6);
}

/* Click state - squeeze effect */
.cursor-ring.cursor-click {
    width: 30px;
    height: 30px;
    background: rgba(27, 75, 140, 0.2);
}

.cursor-dot.cursor-click {
    width: 6px;
    height: 6px;
}

/* Hide cursor when window loses focus */
.cursor-dot.cursor-hidden,
.cursor-ring.cursor-hidden {
    opacity: 0;
}

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* Disable custom cursor on small screens */
@media (max-width: 1024px) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    body,
    body * {
        cursor: auto !important;
    }
}
