:host {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: transform 0.3s ease, background-color 0.3s ease;
}


.navbar-container {
    background-color: black;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.nav-link {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

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

.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: black;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 100;
}
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.75rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background-color: black;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index:100;
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    padding: 1rem 0;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown {
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
}

.mobile-dropdown.active {
    display: block;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.w-contacts{
    width: 1.5rem;
}
.h-contacts{
    height: 1.5rem;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
    }
    .hamburger {
        display: none;
    }
}

@media (max-width: 1023px) {
    .desktop-menu {
        display: none;
    }
}