.navbar {
    background: linear-gradient(to right, rgba(0, 30, 60, 0.95), rgba(0, 78, 137, 0.95), rgba(0, 150, 200, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 217, 255, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    transition: opacity 0.3s;
    cursor: pointer;
    z-index: 101;
    min-width: 150px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.nav-links-center {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    margin-right: 8rem;
}

.nav-profile-link {
    margin-left: auto;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.nav-link.active {
    color: var(--text-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: #00d9ff;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.5;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
    background-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    color: var(--text-light);
}

.nav-dropdown-toggle svg {
    transition: transform 0.3s;
}

.nav-dropdown.active .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 78, 137, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.3);
    min-width: 150px;
    margin-top: 0.5rem;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s;
    cursor: pointer;
}

.nav-dropdown-item:hover {
    background-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: row-reverse;
    }

    .nav-logo {
        font-size: 1.5rem;
        order: 2;
        min-width: 100px;
    }

    .nav-logo-img {
        height: 60px;
    }

    .nav-hamburger {
        display: flex;
        order: 1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 78, 137, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 217, 255, 0.4), -2px 0 10px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(0, 217, 255, 0.3);
        justify-content: flex-start;
    }

    .nav-links-center {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
    }

    .nav-profile-link {
        margin-left: 0;
        margin-top: 1rem;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 1rem !important;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    .nav-link:hover {
        background-color: rgba(0, 217, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }

    .nav-link.active {
        background-color: rgba(0, 217, 255, 0.25);
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 2rem;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 0;
    }

    .nav-dropdown-item {
        padding: 0.75rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.3rem;
        min-width: 80px;
    }

    .nav-logo-img {
        height: 65px;
    }

    .nav-menu {
        width: 80%;
    }
}
