nav {
  width: 100%;
  height: var(--navbar-height);
  
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  transition: all 0.75s cubic-bezier(0.26, -0.01, 0, 1.01);
  display: flex;
  z-index: var(--index-navbar);
  background-color: var(--color-navbar);
}

.currentLocation {
  border-bottom: thick double var(--color-highlight);
}

nav .nav-section {
  padding: 3rem 2rem;
  display: flex;
  gap: 1rem;
  border-left: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
}

nav button {
  width: 55px;
  height: 55px;
  color: var(--color-dark);
  background-color: var(--hover-grey);
  border: none;
  padding: 5px 0px;
  font-size: large;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  transition-duration: 0.4s;
  cursor: pointer;
}

nav .hovered {
  color: var(--hover-grey) !important;
  background-color: var(--color-highlight) !important;
  opacity: 1.0 !important;
}

nav #p-tail{
  position: absolute;
  width: 8px;
  height: 50px;
  top: calc(50% );
  background-color: var(--hover-grey);
  transition-duration: 0.4s;
  cursor: pointer;
  border-top-right-radius: 100%;
  opacity: 0.75;
}

nav .container{
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  align-self: center;
  height: 100px;
}

nav #n-container {
  cursor: pointer;
  display: flex;
}

nav #n-left {
  width: 8px;
  height: 50px;
  background-color: var(--hover-grey);
  transition-duration: 0.6s;
}
nav #n-mid {
  margin-top: 18px;
  width: 50px;
  height: 8px;
  background-color: var(--hover-grey);
  transform: rotate(45deg);
  transition-duration: 0.7s;
}
nav #n-right {
  width: 8px;
  height: 50px;
  background-color: var(--hover-grey);
  transition-duration: 0.8s;
}

#nav-logo-section {
  flex-basis: var(--size-logo);
  justify-content: flex-start;
}

#nav-logo-section > a > i {
  font-size: 2.5rem;
}

#nav-logo-section img {
  filter: brightness(0) invert(1);
  width: 80px;
}

#nav-logo-section img:hover {
  filter: invert(54%) sepia(53%) saturate(5971%) hue-rotate(236deg) brightness(81%) contrast(85%);
  cursor: pointer;
}

#nav-mobile-section {
  display: flex;
  z-index: calc(var(--index-navbar) + 1);
  position: fixed;
  top: 0%;
  left: 0%;
}

#nav-toggle-button {
  padding: 0%; 
  align-self: center;
  align-items: center;
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  justify-content: center;
  outline: none;
  z-index: calc(var(--index-navbar) + 2);
  transition: cubic-bezier(0.075, 0.82, 0.165, 1);
  align-content: center;
  visibility: hidden;
  margin-right: 25px;
  display: flex;
  flex-direction: column;
}

#nav-toggle-button svg {
  width: 50px;
  height: 50px;
}

#menuContainer {
  display: inline-block;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
  justify-content: center;
  align-content: center;
  padding: 5px;
}

#nav-social-section,
#nav-contact-section {
  flex-grow: 1;
}

#nav-links {
  gap: 6rem; 
}

#nav-social-section {
  gap: 3rem;
}

#typeContainer{
  cursor: auto;
  width: 250px;
  visibility: visible;
}

  #container-navButton{
    display: none;
  }
  

@media(max-width: 1360px) {    
  #typeContainer{
    display: none;
    visibility: hidden;
  }

  #nav-mobile-section {
    flex-basis: calc(100% * 0.75);
  }

  #nav-logo-section {
    flex-basis: calc(100% * 0.25);
  }
  
  #nav-links {
    gap: 3rem;
  }
}

@media(max-width: 1000px){
  nav {
    justify-content: space-between;  
  }
  
  nav[data-toggled="true"] > #nav-mobile-section {  
    transform: translateY(0%);
  }

  nav[data-transitionable="true"] > #nav-mobile-section {
    transition: transform 400ms ease;
  }
  
  nav .nav-section {
    border-left: none;
    padding: 1.5rem 1rem;
  }

  #container-navButton{
    display: flex;
  }
  
  #nav-logo-section > a > i {
    font-size: 1.5rem;
    margin-left: 1rem;
  }
  
  #nav-mobile-section {
    background-color: var(--color-highlight);
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: fixed;
    transform: translateY(-100%);
  } 
  
  #nav-toggle-button {
    display: flex;
    visibility: visible;
  }  

  #nav-links {
    flex-basis: 100%;
    flex-direction: column;
    gap: 4rem;
  }
  
  #nav-links > a {
    font-size: 3rem; 
    padding-bottom: 4rem;
  }
  
  #nav-social-section > a {
    font-size: 2rem; 
  }  
  
  #nav-contact-section {
    width: 100%;
    padding-bottom: 4rem;
  }

  #n-container, #p-container {
    visibility: hidden;
  }
}

/* -- Animation -- */
.typewrite > .wrap { 
  border-right: 0.08em solid #fff;
  animation: blinkTextCursor 500ms steps(44) infinite normal;
}

@keyframes blinkTextCursor{
  from{border-right-color: rgba(255,255,255,.75);}
  to{border-right-color: transparent;}
}

@keyframes blinkBorder{
  from{border-left-color: rgba(255,255,255,.55);}
  to{border-left-color: transparent;}
}
