/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 6px;
    z-index: 1000;
    background: rgba(237, 237, 237, 0.742);
    backdrop-filter: blur(10px);
    color: rgb(39, 37, 37);
    border: 2px solid rgba(0, 0, 0, 0.055);
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(147, 145, 145, 0.1);
}

.logo {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
    color: #000000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1rem;
}

/* Hamburger menu and nav toggle for screen width less than 1023px */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: rgba(237, 237, 237, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 0 0 30px 30px;
        box-shadow: 0 4px 8px rgba(147, 145, 145, 0.1);
        padding: 1rem 2rem;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateY(0);
        display: flex;
    }

    .navbar {
        justify-content: space-between;
    }

    /* Show hamburger menu icon on mobile and tablet */
    #Menu-bar {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 24px;
        cursor: pointer;
       color: radial-gradient(#2196f3 0%, #21cbf3 100%, #000000, #000000);
        border-radius: 0; /* No circle */
        border: none;
        padding: 0;
        box-sizing: border-box;
    }

    #Menu-bar .bar {
        width: 100%;
        height: 4px;
        color: radial-gradient(#2196f3 0%, #21cbf3 100%, #000000, #000000);
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        transform-origin: center;
    }

    /* Hamburger menu animation for cross icon */
    #Menu-bar.open .bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        transform-origin: 20%;
    }

    #Menu-bar.open .bar:nth-child(2) {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    #Menu-bar.open .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        transform-origin: 18%;
    }
}



/* Make dark mode toggle circular and visible on all screen sizes */
#theme-switch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(250, 245, 245, 0.823);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060872;
}

/* Hide hamburger menu icon on desktop and laptop */
@media (min-width: 1024px) {
    #Menu-bar {
        display: none;
    }
}

/* Scroll progress bar container */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    z-index: 1100;
}

/* Scroll progress bar */
#scroll-progress-bar {
    height: 5px;
    width: 0%;
    background-color: black;
    transition: width 0.25s ease-out;
}

/* Dark mode scroll progress bar color */
body.dark-mode #scroll-progress-bar {
    background-color: white;
}

/* Responsive adjustments for scroll progress bar height */
@media (max-width: 600px) {
    #scroll-progress-container {
        height: 3px;
    }
    #scroll-progress-bar {
        height: 3px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    #scroll-progress-container {
        height: 4px;
    }
    #scroll-progress-bar {
        height: 4px;
    }
}

@media (min-width: 1025px) {
    #scroll-progress-container {
        height: 5px;
    }
    #scroll-progress-bar {
        height: 5px;
    }
}
