* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.header {
    position: fixed;
    display: grid;
    width: 100%;
    height: 50px;
    text-align: center;
    transition: background-color 0.5s ease;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 78, 19, 0.104);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.header.scrolled { 
    background-color: rgb(14, 47, 11);
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.header .bi {
    position: fixed; 
    top: 0;
    right: 2%;
    color: #fff;
    margin: 12px;   
    font-size: 22px;
    cursor: pointer;  
    display: inline-flex;
}

.header .bi-x {
    display: none;
}

.logo-text {
    display: flex;
    margin-left: 5%;
    text-decoration: none;
    color: white;
}

.nav-links {
    position: absolute;
     top: -440%;
    left: 0;
    width: 100%;
    height: 10.5rem;
    background: rgba(24, 78, 19, 0.3);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    z-index: 99;
}

.nav-links a {
    display: block;
    margin: 1.5rem 0;
    text-align: center;
}

.nav-links.active {
    top: 49px; 
}

.nav-links ul li {
    list-style: none;
}

.nav-links ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .header {
        background: transparent;
        height: 60px;
    }

    #check {
        display: none;
    }
    .header::before {
        background: rgba(24, 78, 19, 0.104);
        backdrop-filter: blur(0px);
    }

    .nav-links {
        position: static;
        display: block; 
        flex: 1;
        text-align: right;
        background: transparent;
        min-width: 300px;
        padding-right: 50px;
        height: auto;
        backdrop-filter: none; 
        box-shadow: none; 
    }

    .nav-links a {
        margin: 0;
    }

    .nav-links ul li {
        list-style: none;
        display: inline-block;
        padding: 8px 12px;
        position: relative;
    }

    .nav-links ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.5s ease, color 0.3s ease;
    }

    .nav-links ul li a:hover {
        color: rgb(203, 236, 199);   
    }

    .nav-links ul li::after {
        content: '';
        width: 0%;
        height: 2px;
        background: rgb(30, 144, 20);
        display: block;
        margin: auto;
        transition: 0.5s;
    }

    .nav-links ul li:hover::after {
        width: 100%;
    }

    .header .bi {
        display: none;
    }
}

@media (min-width: 1024px) {
    .header {
        height: 70px;
    }

    .nav-links ul li a {
        font-size: 17px; 
    }
}
