/* Navigation Bar */
.navbar {
    width: 100% !important;
    max-width: 100vw !important;
    background: linear-gradient(45deg, #002413, #003a20);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-sizing: border-box !important;
    position: relative;
    z-index: 999;
    margin: 0 !important;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 45px;
    width: auto;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;

}

.brand {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Desktop Menu */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 0.97rem;
    padding: 8px 10px;
    transition: 1s;
    border-radius: 4px;
}

.nav-links a:hover {
    background: linear-gradient(45deg, #00b327, #ff9900);
    color: #ffffff;
}

.btn-login {
    background: #d49100;
    padding: 8px 18px;
    font-weight: 600;
    transition: 0.5s scale ease-in-out;
}


/* Hamburger */
/* Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: 0.4s;
    z-index: 999;
}

.nav-toggle span {
    width: 30px;
    height: 5px;
    background: white;
    border-radius: 20px;
    transition: 0.2s ease;
}

/* --- Animation when ACTIVE (turns into X) --- */
.nav-toggle.active .line1 {

    transform: translateY(12px)
}

.nav-toggle.active .line2 {
    opacity: 0;
    transform: translateY(40px)
}

.nav-toggle.active .line3 {
    opacity: 0;
    transform: translateY(20px)
}

/* Mobile Menu */
@media (max-width: 850px) {
    .nav-links {
        position: absolute;
        top: 80px;
        right: 0px;
        height: 160px;
        width: 100px;
        background: rgba(0, 50, 0, 0.411);
        flex-direction: column;
        padding: 20px 10px 5px 0px;
        margin-left: -15px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.2s ease;
        gap: 20px;
    }

    .nav-links.active {
        transform: scaleY(1);
    }

    .nav-toggle {
        display: flex;
    }
}

/* Custom Scrollbar - Global */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #003a20;
}

::-webkit-scrollbar-thumb {
    background: #3bb78f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00b327;
}

/* Dark Mode Overrides */
[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #0f172a, #112d20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links a {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-links a:hover {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
}

[data-theme="dark"] .btn-login {
    background: #b45309;
    /* Darker orange/amber */
    color: white;
}

/* Mobile Menu Dark Mode */
@media (max-width: 850px) {
    [data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.95);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}