body{
    margin: 0px;
    font-family: "Raleway", sans-serif;
}
.navbar{
    background-color: white;
    left: 0;
    right: 0;
    height: 5rem;
    position: fixed;
    align-items: center;
    display: flex;
    justify-content: space-between;
    box-shadow: none;
    top: 0;
    transition: box-shadow 0.3s ease;
    z-index: 1000;
    will-change: box-shadow;
}

.navbar.scrolled{
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.logo-div{
    padding-left: 20px;
    padding-top: 5px;
    float: left;
}
.logo-div:hover{
    transform: scale(1.005);
    transition: transform 0.3s ease;
}
.logo{
    height: 4.2rem;
    width: auto;
    align-self: center;
    cursor: pointer;

}

.nav-links{
    float: right;
    padding-right: 90px;
    padding-top: 15px;
    align-items: center;
    display: flex;
}
.nav-links a{
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
    margin-left: 30px;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}
.nav-links a:hover {
    color: #F58634; /* Using the variable from sect1.css */
    transition: color 0.3s ease;
    border-bottom: 2px solid #F58634;
    padding-bottom: 5px;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    padding-right: 20px;
    font-size: 1.5rem;
    color: #333;
    z-index: 1002; /* Ensure it's above the overlay */
}
@media(min-width: 769px){
    .nav-links a i{
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hide desktop links and prepare for overlay */
    .nav-links {
        display: flex; /* Keep it as a flex container */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 0vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        z-index: 1001; /* Above navbar, below hamburger */
        /* Initial state for transition */
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        width: 100vw;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 15px; /* Space between icon and text */
        font-size: 1.5rem; /* Slightly smaller font for the new layout */
        margin: 15px 0;
        padding: 12px 25px;
        border-radius: 50px;
        color: #333;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        /* Staggered animation setup */
        opacity: 0;
        transform: translateX(20px); /* Animate from the right */
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
        transition-property: opacity, transform;
        transition-duration: 0.4s;
        transition-timing-function: ease-out;
    }

    /* Fade in the background overlay */
    .nav-links.active::before {
        opacity: 1;
    }

    /* Stagger the animation for each link */
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a:hover {
        background-color: var(--secondary-color);
        color: #1a1a1a;
        transform: scale(1.05);
        border-bottom: 1px #66eeb83c solid; /* Override desktop hover */
        padding-bottom: 12px; /* Keep padding consistent */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }
}
