﻿/* Navbar Styles */
.navbar {
    background-color: white;
    backdrop-filter: blur(0.375rem);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-logo,
.navbar-logo-sticky {
    width: 3rem;
    height: 3rem;
}

.navbar-toggler {
    border: none;
    background: #006400;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.navbar-inner {
    display: flex;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.navbar-nav li {
    margin-left: 1rem;
}

.nav-link {
    color: green;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff9800;
}

.no-scroll {
    overflow: hidden;
}

.containerr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 3rem;
}

.hello {
    display: flex;
}

/* Desktop - Hide hamburger */
.navbar-toggler {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar-inner {
        display: block;
    }

    /* Hamburger Icon */
    .navbar-toggler {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        height: 28px;
        position: relative;
        z-index: 1002;
    }

    .navbar-toggler div {
        background-color: #fff;
        width: 1.6rem;
        height: 4px;
        transition: all 0.3s ease;
    }

    /* Transform hamburger to X when active */
    .navbar-toggler.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggler.active div:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hello {
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 1002;
        transition: opacity 0.3s ease;
    }

    /* Hide logo and site name when menu is open */
    .hello.hide-brand .navbar-brand {
        opacity: 0;
        visibility: hidden;
    }

    /* Mobile Navigation Menu - Hidden by default */
    .navbar-nav {
        margin-top: -15px;
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 0rem 4rem 0rem;
        align-items: center;
        justify-content: flex-start;
        z-index: 1001;
        overflow-y: auto;
    }

    /* Show navigation when visible */
    .navbar-nav.visibility {
        display: flex;
    }

    .navbar-nav li {
        margin-left: 0;
        width: 100%;
        padding-left: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        font-size: 1.5rem;
        padding: 1rem 0;
        width: 100%;
    }

    /* Powered by section at bottom right */
    .navbar-nav::after {
        content: '';
        position: absolute;
        bottom: 2rem;
        right: 2rem;
        width: 120px;
        height: 40px;
        background-image: url('../assets/northholdings.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.6;
    }

    /* Alternative: If you want text "Powered by" with logo */
    .navbar-nav-footer {
        position: absolute;
        bottom: 2rem;
        right: 2rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .navbar-nav-footer img {
        width: 1.5rem;
        height: 1.5rem;
        opacity: 0.6;
    }
}