/* Reset some default styles */
body, ul {
    margin: 0;
    padding: 0;
}

.fixed-navbar .container{
    padding-left:0px;
}

/* Apply styles to navbar */
.fixed-navbar {
    background-image: linear-gradient(90deg, #fabe5e 19.42%, #ffd058 75%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.2em;
    position: fixed; /* Make the navbar fixed */
    top: 0; /* Stick it to the top of the viewport */
    width: 100%; /* Make it full-width */
    z-index: 100; /* Ensure it's above other content */
}

/* Style for the logo */
.logo {
    width: 220px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Add some space between the logo and the menu items */
}

/* Adjust the positioning of the list items */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin-left: auto; /* Push the menu items to the right side */
}

/* Style the list items */
nav ul li {
    margin: 0 0.5em; /* Increase the spacing between links */
    position: relative;
}

/* Style the links */
nav ul li a {
    color: #FBEEC9;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 24px; /* Increase the font size */
    display: inline-block;
    transition: color 0.3s, transform 0.3s;
    z-index: 1;
    position: relative; /* Add this for proper positioning of pseudo-element */
}

/* Add an underlined pseudo-element */
nav ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0); /* Initially hide the line */
    transform-origin: center bottom; /* Set the transform origin to the middle bottom */
    width: 0;
    height: 3px;
    background-image: linear-gradient(90deg, #FFC971 19.42%, #ffd900 100%);
    /* Initial gradient color for the line */
    transition: transform 0.3s, width 0.3s, background-image 0.3s;
    /* Add transitions */
    z-index: -1;
}

/* Animate the underlined effect on hover */
nav ul li a:hover::before {
    transform: translateX(-50%) scaleX(1); /* Expand from the middle */
    width: 100%;
    background-image: linear-gradient(90deg, #FFC971 19.42%, #ffd900 100%);
    /* Gradient effect on line hover, matches text color */
}

/* Add zoom effect on hover */
nav ul li a:hover {
    transform: scale(1.15);
    /* Enlarge the text when hovered */
    background-image: linear-gradient(90deg, #FFC971 19.42%, #ffd900 100%);
    /* Gradient effect on text hover */
    -webkit-background-clip: text;
    background-clip: text; /* Add the standard property */
    color: transparent;
}

/* Style the submenu */
.submenu {
    display: none;
    position: absolute;
    top: calc(135%); /* Adjust the submenu positioning to be below the menu item */
    left: -50%; /* Position submenu at the center of the menu item */
    transform: translate(-50%, 0); /* Horizontally align and center the submenu box */
    background-image: linear-gradient(135deg, #ffcc00, #d96625);
    padding: 0.5em;
    list-style: none;
    z-index: 2;
    width: auto;
    height: auto;
    border-radius: 10px;

    /* Center align submenu text */
    text-align: center;

    /* Add fade-in animation */
    opacity: 0;
    animation: fade-in 0.3s ease forwards;
}

/* Adjust submenu styles for Human Practices */
.fixed-navbar .measurement .submenu {
    top: calc(135%); /* Adjust the submenu positioning to be below the menu item */
    left: -2%;
    transform: translateX(-50%);
}

.fixed-navbar .project .submenu {
    top: calc(135%); /* Adjust the submenu positioning to be below the menu item */
    left: -68%;
    transform: translateX(-50%);
}

.fixed-navbar .lab .submenu {
    top: calc(135%); /* Adjust the submenu positioning to be below the menu item */
    left: -68%;
    transform: translateX(-50%);
}

.fixed-navbar .impact .submenu {
    top: calc(135%); /* Adjust the submenu positioning to be below the menu item */
    left: -100%;
    transform: translateX(-50%);
}

/* Show submenu on hover */
.has-submenu:hover .submenu {
    display: block;
}

/* Keyframes animation for fade-in */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu li {
    margin-bottom: 1em;
}

.submenu li a {
    color: #fffae1 ;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    transition: color 0.3s;
}

/* Add hover effect for submenu items */
.fixed-navbar .submenu li a:hover {
    background-image: linear-gradient(135deg, #ffcc00, #d96625); /* Change the color on hover */
}

.progress-bar {
    position: fixed;
    top: 88px;
    left: 0;
    width: 0;
    height: 8px;
    background: #F9A962; /*linear-gradient(to right, #5b7323, #a4ac42);*/
    z-index: 9999;
    transition: width 0.3s ease;
}

.navbar-toggler{
    margin: 5px 0px;
}
