/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    margin: 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #006838, #9ce63f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    background: transparent;
    border: none;
    margin-left: auto;
}

.hamburger div {
    width: 20px;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin: 0;
    padding: 0;
}

.hamburger.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #006838;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #006838, #9ce63f);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    html {
        font-size: 16px; /* Reset to default for better visibility */
    }
    
    .hamburger {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #ffffff !important; /* Force white background */
        display: flex;
        flex-direction: column;
        padding: 80px 20px 40px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: right 0.3s ease;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: transparent !important; /* Ensure no background on ul */
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.3s ease;
        width: 100%;
        text-align: left;
        margin: 5px 0;
        padding: 0;
        background: transparent !important; /* Ensure no background on li */
    }

    .nav-menu a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
        color: #1a1a1a;
        border-radius: 6px;
        transition: all 0.2s ease;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.4;
        text-decoration: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(0, 104, 56, 0.08);
        color: #006838;
    }
    
    .nav-menu a.active {
        background: rgba(0, 104, 56, 0.1);
        color: #006838;
        font-weight: 500;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(0, 104, 56, 0.1);
        color: #006838;
    }

    .nav-menu a::after {
        display: none;
    }

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

    .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu li:nth-child(6) { transition-delay: 0.35s; }
    
    /* Ensure content doesn't get hidden behind fixed header */
    body {
        padding-top: 70px;
    }
    
    /* Center align content in mobile view */
    .container {
        padding: 0 1.25rem;
    }
    
    .page-header,
    .section-header {
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Adjust form elements for mobile */
    form {
        width: 100%;
        max-width: 100%;
    }
    
    input,
    textarea,
    button {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Card and grid adjustments */
    .card,
    .grid-item {
        width: 100%;
        margin: 0 0 1.5rem 0;
    }
}

/* Button styles for the navigation */
.nav-menu .btn-outline {
    background: transparent;
    border: 2px solid #006838;
    color: #006838;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.nav-menu .btn-outline:hover {
    background: linear-gradient(135deg, #006838, #9ce63f);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(156, 230, 63, 0.2);
}

.nav-menu .btn-outline::after {
    display: none; /* Remove the underline effect for the button */
}

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

    .nav-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-menu li {
        margin: 0.25rem 0;
    }

    .nav-menu .btn-outline {
        margin-top: 0.5rem;
    }
}
