#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(33, 33, 33, 0.2); 
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    z-index: 1000;
    box-sizing: border-box; 
    margin: 0;
}
#navbar.solid-bg {
    background-color: rgba(33, 33, 33, 0.95);
}
#navbar.hidden {
    transform: translateY(-100%);
}
#navbar .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}
#navbar ul.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
#navbar ul.nav-list li {
    margin-left: 20px;
}
#navbar ul.nav-list li:last-child {
    margin-right: 20px; 
}
#navbar ul.nav-list li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}
#navbar ul.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}
.dropdown-toggle {
    cursor: pointer;
    position: relative;
}
#navbar ul.nav-list li a:hover {
    color: #ddd;
}
#navbar ul.nav-list li a:hover::after {
    width: 100%;
}
#navbar ul.nav-list li a.active::after {
    width: 100%;
    background-color: #fff;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(200, 200, 200, 0.7);
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: rgba(200, 200, 200, 0.9);
}
@media (max-width: 768px) {
    #navbar {
        padding: 10px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    #navbar ul.nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        width: 100%;
        background-color: rgba(33, 33, 33, 0.9);
        transform: translateY(-100%);
        transition: transform 0.3s;
        opacity: 0;
        pointer-events: none;
        padding: 20px 0;
    }
    #navbar ul.nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    #navbar ul.nav-list li {
        margin: 10px 0;
        text-align: center;
    }
    .dropdown {
        position: static;
    }
    .dropdown-toggle::after {
        display: none;
    }
    .dropdown > .dropdown-toggle {
        display: none;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        display: block;
    }
    .dropdown-menu li {
        margin: 10px 0;
    }
    .dropdown-menu li a {
        padding: 12px 20px;
        font-size: 0.9rem;
        color: #fff;
        background-color: transparent;
        border-radius: 0;
        margin: 0;
        display: block;
        text-align: center;
        position: relative;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
        transition: color 0.2s;
    }
    .dropdown-menu li a:hover {
        color: #ddd;
    }
    .dropdown-menu li a::before {
        content: '• ';
        margin-right: 8px;
        color: #bbb;
        font-size: 1rem;
    }
}
@media (max-width: 1200px) {
    #navbar ul.nav-list li a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    #navbar ul.nav-list li {
        margin-left: 15px;
    }
}
@media (max-width: 1024px) {
    #navbar ul.nav-list li a {
        font-size: 0.75rem;
        padding: 5px 6px;
    }
    #navbar ul.nav-list li {
        margin-left: 10px;
    }
}
.dropdown {
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
    position: relative;
}
.dropdown-toggle::after {
    display: none; 
}
.dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
    right: 20px; 
}
.dropdown-toggle:hover::before,
.dropdown-toggle.active::before {
    width: calc(100% - 20px);
}
.dropdown-toggle:after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.dropdown.active .dropdown-toggle:after {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(33, 33, 33, 0.95);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s;
    border-bottom: none;
}
.dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.dropdown-menu li a::after {
    display: none;
}