/* ============================================
   CUSTOM CURSOR ANIMATIONS
   Kangaroo-themed interactive cursor
   ============================================ */

/* === CUSTOM CURSOR === */
* {
    cursor: none !important;
}

/* Custom cursor dot */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 3px solid #FFD700;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
    transform: translate(-50%, -50%);
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 107, 53, 0.4);
    animation: cursorPulse 2s ease-in-out infinite;
}

/* Cursor trail/follower */
.cursor-follower {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

/* Cursor pulse animation */
@keyframes cursorPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 107, 53, 0.6);
    }
}

/* Hover state - cursor grows */
.custom-cursor.hover,
.cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 20, 147, 0.3);
    border-color: #FF1493;
}

.custom-cursor.hover {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8), 0 0 50px rgba(255, 107, 53, 0.6);
}

/* Click effect */
.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 107, 53, 0.8);
}

/* Kangaroo emoji cursor on special elements */
.custom-cursor.kangaroo::after {
    content: '🦘';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: kangarooBounceSmall 0.6s ease-in-out infinite;
}

@keyframes kangarooBounceSmall {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-5px); }
}

/* Hide kangaroo emoji on mobile */
@media (max-width: 767px) {
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* Cursor trail particles */
.cursor-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
    animation: particleFade 0.8s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-30px);
    }
}

/* Glow effect on text hover */
a:hover, button:hover, .btn:hover, .copy-btn:hover {
    cursor: none !important;
}

/* Special cursor states for different elements */
body.cursor-link .custom-cursor {
    border-color: #FF1493;
    background: rgba(255, 20, 147, 0.4);
}

body.cursor-button .custom-cursor {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.4);
}

/* Sparkle effect */
.cursor-sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99996;
    animation: sparkle 1s ease-out forwards;
}

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Rocket cursor for "Buy Now" buttons */
.custom-cursor.rocket::after {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 28px;
}

/* Diamond cursor for special elements */
.custom-cursor.diamond::after {
    content: '💎';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    animation: diamondSpin 3s linear infinite;
}

@keyframes diamondSpin {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

/* Fire cursor for hot sections */
.custom-cursor.fire::after {
    content: '🔥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    animation: fireFlicker 0.5s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Lightning cursor for special sections */
.custom-cursor.lightning::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

/* Hide default cursor elements */
input, textarea, select {
    cursor: none !important;
}

/* Text cursor for inputs */
input:focus ~ .custom-cursor,
textarea:focus ~ .custom-cursor {
    width: 2px;
    height: 24px;
    border-radius: 2px;
    border: none;
    background: #FFD700;
    animation: textCursorBlink 1s step-end infinite;
}

@keyframes textCursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
