/* DESKTOP NAV */

#desktop-nav {
position: sticky;
top: 0;
}

nav,
.nav-links {
display: flex;
}

nav {
justify-content: space-between;
margin: 0 5%;
align-items: center;
height: 14vh;
backdrop-filter: blur(5px);
z-index: 9999!important;
}

.nav-links {
gap: 2rem;
list-style: none;
font-size: 1.5rem;
}

a {
color: var(--dark-color);
text-decoration: none;
text-decoration-color: var(--soft-color);
}

a:hover {
color: var(--accent-color);
text-decoration: underline;
text-underline-offset: 1rem;
text-decoration-color: var(--soft-color);
}

.logo {
font-size: 2rem;
}

.logo:hover {
cursor: default;
}

#desktop-nav,
#hamburger-nav {
transition: top 0.3s ease;
}

.smooth-transition {
transition: top 0.5s ease !important;
}


/* HAMBURGER MENU */

#hamburger-nav {
display: none;
position: sticky;
top: 0;
margin: 0 5% 5% 5%;
}

.hamburger-menu {
position: relative;
display: inline-block;
}

.hamburger-icon {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 24px;
width: 30px;
cursor: pointer;
}

.hamburger-icon span {
width: 100%;
height: 0.15rem;
background-color: var(--dark-color);
transition: all 0.3 ease-in-out;
}

.menu-links {
position: absolute;
top: 100%;
right: 0;
background-color: var(--light-color);
width: fit-content;
max-height: 0;
overflow: hidden;
transition: all 0.3 ease-in-out;
}

.menu-links a {
display: block;
padding: 10px;
text-align: center;
font-size: 1.5rem;
color: var(--dark-color);
text-decoration: none;
transition: all 0.3 ease-in-out;
}

.menu-links li {
list-style: none;
}

.menu-links.open {
max-height: 300px;
}

.hamburger-icon.open span:first-child {
transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
opacity: 0;
}

.hamburger-icon.open span:last-child {
transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
transform: none;
}

.hamburger-icon span:first-child {
opacity: 1;
}

.hamburger-icon span:first-child {
transform: none;
}
