/* Navbar Styles */
.navbar {
    background-color: #fff;
    padding: 20px 0 !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

body {
    padding-top: 90px; /* Adjust this value based on navbar height */
}

.container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
}

/* Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 70px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s;
    position: relative;
}

/* Hover Effect with Underline */
.nav-links li {
    position: relative;
}

.nav-links li a {
    color: #333;
    position: relative;
    text-decoration: none;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.4s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background-color: #f57c00;
    left: 0;
    bottom: 0;
    transition: width 0.4s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #f57c00;
}

/* Active State (For the current page) */
.nav-links li a.active {
    color: #f57c00; /* Orange color for the active text */
}

.nav-links li a.active::after {
    width: 100%; /* Keep underline constant */
}


/* Hamburger Menu (Hidden by Default) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px;
    transition: all 0.3s ease;
}

/* Media Query for Mobile View */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        display: none;
        transition: all 0.5s ease;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

