.navbar {
    position: relative;
    z-index: 1000;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1000px;
}

.navbar_div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.navbar_div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s ease;
}

.navbar_div:hover::before {
    left: 100%;
}

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

.navbar_div.flag {
    background: rgba(33, 33, 33, 0.818);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    z-index: 2;
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: logo-pulse 2s ease-in-out infinite;
}

.img_logo {
    max-width: 40px;
    margin-right: 10px;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.brand_text {
    color: white;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255,255,255,0.2);
}  

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    z-index: 2;
    position: relative;
}

@media (min-width: 993px) {
    .navbar-nav {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        flex-direction: row !important;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}   

.nav-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    
    .navbar_div {
        overflow: visible;
    }

    .burger {
        display: block;
        user-select: none;
        cursor: pointer;
        font-size: 28px;
        color: white;
        transition: transform 1s ease;
    }

    .burger.open {
        transform: rotate(360deg);
    }

    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgb(0, 0, 0);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        max-height: 0;     
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        z-index: 1000;
    }

    .navbar-nav.open {
        max-height: 500px;   
        opacity: 1;
    }

    .navbar_div.open {
        background: rgb(0, 0, 0);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .navbar_div {
        position: relative;
    }

    .nav-link {
        color: white;
        display: block;
        padding: 10px 16px;
        text-decoration: none;
    }
}
