/* Custom Sound Cursor Styles */
.mouse-cursor-sound {
    position: fixed;
    width: 85px;
    height: 85px;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.mouse-cursor-sound.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Light Semi-Transparent Inner Circle */
.mouse-cursor-sound::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* Lighter transparency */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: -1;
    transition: background 0.3s ease;
}

/* Central Play Icon */
.mouse-cursor-sound .play-icon {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid white;
    margin-left: 5px;
    transition: all 0.3s ease;
}

/* Close Icon (X) - Smaller scale */
.mouse-cursor-sound .close-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.mouse-cursor-sound .close-icon::before,
.mouse-cursor-sound .close-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.6); /* Transparent white cross */
    top: 50%;
    left: 0;
}

.mouse-cursor-sound .close-icon::before { transform: rotate(45deg); }
.mouse-cursor-sound .close-icon::after { transform: rotate(-45deg); }

/* Toggle Visibility based on Mute State */
.mouse-cursor-sound.muted .play-icon {
    opacity: 1;
    transform: scale(1);
}

.mouse-cursor-sound.muted .close-icon {
    opacity: 0;
    transform: scale(0.5);
}

.mouse-cursor-sound:not(.muted) .play-icon {
    opacity: 0;
    transform: scale(0.5);
}

.mouse-cursor-sound:not(.muted) .close-icon {
    opacity: 1;
    transform: scale(1);
}

/* Even Lighter when sound is ON */
.mouse-cursor-sound:not(.muted)::after {
    background: rgba(255, 255, 255, 0.08);
}

/* Rotating Text Wrapper */
.mouse-cursor-sound .text-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
    transition: opacity 0.3s ease;
}

/* Hide rotating text when sound is ON (X showing) */
.mouse-cursor-sound:not(.muted) .text-circle {
    opacity: 0;
}

.mouse-cursor-sound .text-circle svg {
    width: 100%;
    height: 100%;
}

.mouse-cursor-sound .text-circle svg text {
    fill: rgba(255, 255, 255, 0.9);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 8px; /* Expand text to cover more space */
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#section-hero {
    cursor: none !important;
}

/* Hide custom cursor when hovering buttons */
#section-hero .btn-main, 
#section-hero a, 
#section-hero button {
    cursor: pointer !important;
}

/* When hovering links, the cursor should either disappear or change 
   For now, making it fade out to avoid blocking clicks and visual clutter */
#section-hero .btn-main:hover ~ .mouse-cursor-sound,
#section-hero a:hover ~ .mouse-cursor-sound,
#section-hero button:hover ~ .mouse-cursor-sound {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.2);
}

/* Hide custom cursor when hovering buttons */
#section-hero .btn-main, 
#section-hero a, 
#section-hero button {
    cursor: pointer !important;
}

#section-hero .btn-main:hover ~ .mouse-cursor-sound,
#section-hero a:hover ~ .mouse-cursor-sound {
    opacity: 0 !important;
}

/* For mobile devices, hide this and show a normal button if needed */
@media (max-width: 992px) {
    .mouse-cursor-sound {
        display: none !important;
    }
    #section-hero {
        cursor: pointer !important;
    }
    
    /* Mobile sound button */
    .mobile-sound-toggle {
        position: absolute;
        bottom: 20px;
        right: 20px;
        z-index: 10;
        background: rgba(0,0,0,0.5);
        color: white;
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Stats Split Reveal Animation */
@keyframes slideToLeft {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0.1;
        filter: blur(5px);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideToRight {
    0% {
        transform: translateX(-100%) scale(0.8);
        opacity: 0.1;
        filter: blur(5px);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.slide-left {
    animation-name: slideToLeft;
    animation-duration: 1.5s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.slide-right {
    animation-name: slideToRight;
    animation-duration: 1.5s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.pop-center {
    animation-name: popIn;
    animation-duration: 1s;
    animation-fill-mode: both;
    z-index: 10;
}


