*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}
.nav-land{
    min-height: 80vh;
    background-size: cover; /* scale to cover entire viewport */
    background-position: center; /* center the image */
    background-repeat: no-repeat; /* no tiling */
    position: relative;
    display: block;
}
.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 80px;
    width: 100%;
    top: 0;
    /* background: transparent; */
    background: rgba(0,0,0,0.5); /* semi-transparent black */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
}
.navbar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}
.navbar-logo a{
    font-size: 1.7rem;
    font-weight: 600;
    color: goldenrod;
    text-decoration: none;
    cursor: pointer;
}
.navbar-menu{
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;
    
}
.navbar-menu li a {
    position: relative;
    text-decoration: none;
    color: #fff;  /* FIXED: was 'columns: #fff;' before */
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 0;  /* ✅ remove left/right padding to keep text tight */
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;
    display: inline-block; /* ✅ makes width fit text only */
}

.navbar-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px; /* adjust as needed */
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
    width: 100%;
}
.navbar-menu li {
    padding: 0 0.5rem;  /* ✅ spacing between links */
}

.navbar-menu li a:hover{
    color: #162530;
}
.navbar-toggle{
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
}
.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #fff;
    transition: all 0.3s ease-in-out;
}



@media (max-width: 1000px) {
    .navbar{
        backdrop-filter: none;
    }
    .navbar-menu{
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }
    .navbar-toggle{
        display: block;
        z-index: 999;
    }
    .navbar-menu.active{
        display: flex;
    }
    .navbar-toggle.active .bar:nth-child(2){
        opacity: 0;
    }
    .navbar-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .navbar-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
    .navbar-menu li a{
        background-color: rgba(10, 10, 10, 0.3);
        font-size: 1.2rem;
        padding: 3px 15px;
        color: #fff;
        background-color: rgba(10, 10, 10, 0.3);
    }
    .navbar-menu li a::after{
        display: none;
    }
    .navbar-logo a{
        font-size: 1.4rem;
    }

}

@media (max-width: 480px) {
    .navbar-container{
        padding: 0 1rem;
    }
    .navbar-logo a{
        font-size: 1.3rem;
    }
    .navbar-menu li a{
        font-size: 1.2rem;
        padding: 3px 15px;
        color: #fff;
        background-color: rgba(10, 10, 10, 0.3);
    }
    .nav-land{
    min-height: 50vh;
    }
    .navbar-menu li a::after{
        display: none;
    }
    
}


/* When scrolling, hide navbar */
.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* When scrolled down but visible, add background */
.navbar.nav-scrolled {
    background: rgba(128, 128, 128, 0.5); /* or any color you like */
}

.navbar {
    transition: transform 0.3s ease, background 0.3s ease;
}