/*
|--------------------------------------------------------------------------
| Enhanced Musical Effects for Language Dropdown
|--------------------------------------------------------------------------
*/

.musical-lang-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFD700 !important;
    transform: scale(1.05) translateX(5px) !important;
    animation: langItemPulse 0.5s ease-in-out !important;
}

@keyframes langItemPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Enhanced Musical Notes */
.floating-note {
    position: absolute;
    font-size: 20px;
    color: #FFD700;
    animation: floatAndFade 2s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes floatAndFade {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) rotate(180deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) rotate(360deg) scale(0.5);
    }
}

/* Language Dropdown Enhanced Animations */
.language-dropdown {
    animation: dropdownBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes dropdownBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Musical Stars Effect */
.musical-star {
    position: absolute;
    font-size: 12px;
    color: #FFD700;
    animation: starTwinkle 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Enhanced Navbar Link Effects */
.nav-link.musical-enhanced {
    position: relative;
    overflow: visible;
}

.nav-link.musical-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.3), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link.musical-enhanced:hover::before {
    opacity: 1;
    animation: borderPulse 1s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.7; }
}
