.navbar {
    color: #1a1a1a;
    display: flex;
    position: fixed;
    z-index: 3;
    justify-content: space-between;
    align-items: center;
    top: 0;
    background-color: #ffffff70;
    width: 100%;
    font-family: Montserrat, sans-serif;
    padding: 1em;
    transition: 0.3s;
}

.navbar-logo {
    font-weight: bold;
    font-size: 1.25em;
    cursor: pointer;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-right ul {
    display: flex;
    gap: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-right a {
    padding: 0.4em 0.6em;
    border-radius: 4.75px;
    transition: background-color 0.3s;
    text-decoration: none;
    color: #1a1a1a;
}

.navbar-right a:hover {
    background-color: #01b3af;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #1a1a1a;
    margin: 2px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .navbar {
        align-items: center;
    }
    
    .hamburger {
        display: flex;
        z-index: 4;
        position: absolute;
        right: 1em;
        top: 1em;
    }
    
    .navbar-right {
        width: 100%;
    }
    
    .navbar-right ul {
        position: fixed;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        top: 0;
        left: 0;
        padding: 4em 0 1em 0;
        height: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .navbar-right ul.active {
        transform: translateY(0);
    }
    
    .navbar-right ul li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .navbar-right a {
        display: block;
        width: 100%;
        padding: 1em 0;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-right a:hover {
        background-color: #01b3af;
        color: white;
    }
    
    /* Animation for hamburger icon when menu is open */
    .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);
    }
}