/* Navigation Styles */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    z-index: var(--z-fixed);
    transition: var(--transition-normal);
    border-bottom: 1px solid #eee;
}

.header.scrolled {

}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    z-index: var(--z-modal);
}

.logo:hover {
    color: var(--secondary-green);
}

.logo-img {
    height: 65px;
    width: auto;
    margin-right: var(--spacing-sm);
    background-color: white;
    border-radius: 4px;
    padding: 4px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    margin-left: var(--spacing-sm);
    background: linear-gradient(to right, #ADFF2F, #008000, #87CEEB, #0000FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .logo-subtitle {
    font-size: var(--fs-base);
    font-weight: 600;
    color: #000000;
    display: block;
    line-height: 1;
    margin-top: 2px;
}

/* Desktop Navigation */
.desktop-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-3xl);
}

.desktop-links .nav-link a {
    color: #000000;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.desktop-links .nav-link a:hover {
    background: rgba(44, 122, 44, 0.1);
    color: var(--primary-green);
}

/* Dropdown Menu */
.nav-link.has-dropdown {
    position: static;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    z-index: 1000;
}

.nav-link.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: var(--fs-base);
}

.dropdown-menu li a:hover {
    background-color: rgba(44, 122, 44, 0.1);
    color: var(--primary-green);
}

/* Hamburger Button */
.hamburger {
    display: none; /* Hidden by default */
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 890;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition-normal);
    transform-origin: center;
}

.hamburger-line:nth-child(1) {
    top: 6px;
}

.hamburger-line:nth-child(2) {
    top: 14px;
}

.hamburger-line:nth-child(3) {
    top: 22px;
}

/* Hamburger Animation - Active State */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Menu */
.nav-menu {
    display: flex; /* Changed from none to flex */
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 900;
    flex-direction: column;
    border-left: 1px solid rgba(44, 122, 44, 0.1);
    overflow: hidden;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    line-height: 1;
}

.nav-close-btn:hover {
    color: var(--primary-green);
}

.nav-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: var(--spacing-xl);
}

.mobile-links {
    list-style: none;
    padding: 0 var(--spacing-xl);
}

.mobile-links .nav-link {
    margin-bottom: var(--spacing-md);
}

.mobile-links .nav-link a {
    display: flex;
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.mobile-links .nav-link a:hover {
    background: rgba(44, 122, 44, 0.1);
    color: var(--primary-green);
    transform: translateX(8px);
}


.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-md);
}

.nav-footer {
    flex-shrink: 0;
    padding: var(--spacing-xl);
    border-top: 1px solid rgba(44, 122, 44, 0.1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.nav-footer-text {
    font-size: var(--fs-sm);
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
}

.nav-footer-slogan {
    font-weight: 600;
    color: var(--primary-green);
    margin-top: var(--spacing-sm);
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: 800;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile & Tablet Responsive */





@media (max-width: 1024px) {

    /* Hide desktop menu and show hamburger */
    .desktop-links {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    /* Hide mega menu on mobile */
    .mega-menu-container {
        display: none !important;
    }

    .nav {

        padding: 0 var(--spacing-lg);

    }



    .nav-menu {

        width: 100vw;

    }



    .logo {

        font-size: var(--fs-xl);

    }

    .logo-img {
        height: 55px;
    }



    .mobile-links {

        padding: 0 var(--spacing-lg);

    }



        .mobile-links .nav-link > a {



    



    



    



        }



    



        .nav-icon {



    



            width: 20px;



    



            height: 20px;



    



        }



    



    }



    



    



    



    @media (max-width: 480px) {







        .nav {







            padding: 0 var(--spacing-md);







        }















        .logo {







            font-size: var(--fs-lg);







        }

        .logo-img {
            height: 45px;
        }



    



    



    



        .hamburger {



    



            width: 25px;



    



            height: 25px;



    



        }



    



    



    



        .hamburger-line:nth-child(1) { top: 5px; }



    



        .hamburger-line:nth-child(2) { top: 12px; }



    



        .hamburger-line:nth-child(3) { top: 19px; }



    



    



    



        .nav-icon {



    



            width: 18px;



    



            height: 18px;



    



        }



    



    }



    



    



    



    /* Mega Menu Styles */



    .mega-menu-container {



        position: absolute;



        top: 100%;



        left: 50%;



        transform: translateX(-50vw);



        width: 100vw;



        background-color: rgba(230, 245, 230, 0.9); /* Light green transparent */



        box-shadow: 0 4px 8px rgba(0,0,0,0.1);



        padding: 4rem 0;



        display: none;



        z-index: 1000;



        position: absolute; /* For pseudo-element */



    }



    



    .mega-menu-container::before {



        content: '';



        position: absolute;



        top: 0;



        left: 0;



        bottom: 0;



        background-color: var(--primary-green);



        z-index: 0; /* Behind content */



    }



    



    /* Media queries for the width of the pseudo-element */



    @media (min-width: 1200px) {



        .mega-menu-container::before {



            width: calc((100vw - 1200px) / 2 + 250px + 2rem);



        }



    }



    



    @media (min-width: 768px) and (max-width: 1199.98px) {



        .mega-menu-container::before {



            width: calc(250px + 2rem);



        }



    }



    



    .mega-menu-content {



        max-width: 1200px;



        margin: 0 auto;



        padding: 0; /* Removed padding to shift left */



        display: flex;



        align-items: flex-start;



        position: relative; /* To be on top of pseudo-element */



        z-index: 1;



    }



    



    .mega-menu-container.visible {



        display: block;



    }



    



    .mega-menu-title {



        font-size: 2rem;



        font-weight: 700;



        color: #fff; /* Changed for dark background */



        margin-right: 2rem; /* Adjusted margin */



        min-width: 150px;



    }



    



    .mega-menu-links {



        display: flex;



        list-style: none;



        padding: 0;



        margin: 0;



        gap: 3rem;



        margin-left: 12rem; /* Adjusted margin */



    }



    



    .mega-menu-links li a {



        color: var(--text-primary);



        text-decoration: none;



        transition: var(--transition-normal);



        font-size: 1.125rem;



    }



    



    .mega-menu-links li a:hover {



        color: var(--primary-green);



    }



    



    /* Hide original dropdown */



    .nav-link.has-dropdown .dropdown-menu {



        display: none !important;



    }



    



    /* Submenu Styles */



    .nav-link-header {



        display: flex;



        justify-content: space-between;



        align-items: center;



        width: 100%;



    }



    



    .submenu-toggle {



        background: none;



        border: none;



        color: var(--text-primary);



        font-size: var(--fs-2xl);



        cursor: pointer;



        padding: var(--spacing-md);



        line-height: 1;



        flex-shrink: 0;



    }



    



    .submenu-placeholder {



        padding: var(--spacing-md);



        font-size: var(--fs-2xl);



        line-height: 1;



        flex-shrink: 0;



        visibility: hidden;



    }



    



    .nav-link-header > a {



        flex-grow: 1;



    }


.submenu-toggle:hover {
    color: var(--primary-green);
}

.submenu {
    list-style: none;
    padding-left: calc(var(--spacing-md) + 24px); /* Align with text, considering icon width */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.submenu.active {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.submenu li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--fs-sm) !important;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.submenu li a:hover {
    background: rgba(44, 122, 44, 0.1);
    color: var(--primary-green);
}
