#navbar {
    overflow: hidden;
    padding: 20px 10px;
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid rgba(128,128,128,.2);
    transition: padding 0.35s ease;
}

#logo {
    width:100px;
    transition: width 0.35s ease;
}

#navbar ul {
    width:50%;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:30px;
}

#navbar li,
#navbar a{
    list-style:none;
    text-decoration:none;
    color:#444;
}

#navbar a{
    position:relative;
    text-decoration:none;
    color:#444;
    display:inline-block;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: .9rem;
}

#navbar a::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-4px;
    width:100%;
    height:2px;
    background:var(--text-gray);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .35s ease;
}

#navbar a:hover::after{
    transform:scaleX(1);
}

#navbar.shrink{
    padding:5px 10px;
}

#navbar.shrink #logo{
    width:70px;
}
