header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #18263067;
    transition: 0.5s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    height: 80px;
}

header.scrolled {
    background: #182630;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.logo a {
    text-decoration: none;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s ease;
    position: relative;
}

.logo img{
    width: 50px;
    height: 50px;
}

.logo a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.logo a:hover::after {
    width: 100%;
}

.logo a:hover {
    color: #c2c2c2;
}

nav {
    flex-grow: 1;
    margin-left: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: #c2c2c2;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border-radius: 4px;
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    list-style: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: #ffffff;
    padding: 12px 20px;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #333;
}

.nav-links li:hover .dropdown-menu {
    display: block;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 40px;
}

.menu-toggle .menu-icon {
    width: 25px;
    height: 2px;
    background-color: #fff;
    display: block;
    position: relative;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    width: 25px;
    height: 2px;
    background-color: #fff;
    display: block;
    position: absolute;
    left: 0;
}

.menu-toggle .menu-icon::before {
    top: -8px;
}

.menu-toggle .menu-icon::after {
    top: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-header::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

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

.nav-header:hover {
    color: #c2c2c2;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 15px;
    cursor: pointer;
    display: block;
    text-align: left;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border-radius: 4px;
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    list-style: none;
    z-index: 1000;
    overflow-x: hidden;
}

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

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #333;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown {
        text-align: center;
    }

    .nav-header {
        width: 100%;
        text-align: center;
        padding: 15px;
        border: none;
        background: none;
        display: block;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        display: none;
        top: auto;
    }

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

    .dropdown-menu li a {
        padding: 15px;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        right: 40px;
    }
    .nav-header {
        position: relative;
    }

    .nav-header.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: width 0.3s;
    }
}

.nav-header:hover {
    cursor: pointer;
}

.nav-links.active {
    display: flex;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

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