.nav-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, color;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #1E90FF, #32CD32);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.nav-link:hover {
    transform: translateY(-1px);
    color: #1E90FF;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:active {
    transform: translateY(0);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top;
    will-change: transform, opacity;
}

.dropdown-menu[data-show="true"] {
    animation: dropdownEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background-color;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 144, 255, 0.1), rgba(50, 205, 50, 0.1));
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.dropdown-item:hover::before {
    transform: translateX(0);
}

.dropdown-item:hover {
    transform: translateX(8px);
    color: #1E90FF;
}

body {
    overflow-x: hidden;
}

body.mobile-nav-open {
    overflow: hidden;
}

.new-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #333333 0%, #1E90FF 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    visibility: hidden;
    transform: translateX(100%);
    will-change: transform;
}

.new-mobile-nav.active {
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.group:hover .nav-arrow,
.group-data-[expanded=true] .nav-arrow {
    transform: rotate(180deg);
}

.logo-group {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.logo-group:hover {
    transform: translateY(-2px);
}

.logo-group:hover .logo-image {
    transform: scale(1.1) rotate(8deg);
}

.logo-group:active {
    transform: translateY(0);
}

.logo-image {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    transform-origin: center;
}

.menu-button {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, color;
    position: relative;
}

.menu-button::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(50, 205, 50, 0.2));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.menu-button:hover {
    transform: scale(1.05);
    color: #1E90FF;
}

.menu-button:hover::after {
    opacity: 1;
    transform: scale(1);
}

.menu-button:active {
    transform: scale(0.95);
}

.footer-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #1E90FF, #32CD32);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    transform: translateX(4px);
    color: #FFFFFF;
}

.social-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.social-icon:hover {
    transform: scale(1.15) rotate(8deg);
    color: #1E90FF !important;
}

.footer-brand {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.footer-brand:hover {
    transform: translateY(-4px);
}

.footer-brand img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.footer-brand:hover img {
    transform: rotate(8deg);
}

.footer-discord-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.footer-discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.mobile-nav-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding-left: 0;
    will-change: transform, padding-left, color;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: linear-gradient(to right, #1E90FF, #32CD32);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-link:hover {
    padding-left: 12px;
    color: #32CD32;
    transform: translateX(4px);
}

.mobile-nav-link:hover::before {
    transform: scaleX(1);
}

.mobile-nav-link:active {
    transform: translateX(0);
}

.header-modern {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-modern.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
