@media screen and (max-width: 820px) {

  #logo-top{
    height: 100px;
  }
  .subtitle{
    font-size: 1.4rem;
    margin: 1.5rem;
    text-align: center;
  }

  p, a, li{
    font-size: 1.2rem;
    line-height: 1.2;
  }

  h1{
    font-size: 2.5rem;
  }

  h3, #projects .content-wrap h3{
    font-size: 1.5rem;
  }

  #nav-menu{
      padding: 0 0.8rem;
      height: 65px;
      }

  #nav-menu ul{
      display: none;
  }

  #nav-menu.open-navmenu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    text-align: center;
    padding-top: 0.35rem;
    background-color: var(--color-code-aliceblue) !important;
  }
  #nav-menu.open-navmenu #logo {
    transform: scale(1) !important;
  }

  #nav-menu #menu-head{
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #nav-menu.open-navmenu ul{
    display: flex;
    flex-direction: column;
    margin-top: 7rem;
  }

  #nav-menu.open-navmenu ul li a{
    font-size: 2rem;
  }

  @keyframes fadeUp {
    0% {opacity: 0; transform: translateY(40px);}
    100% {opacity: 1; transform: translateY(0px);}
  }
  
  #nav-menu a:hover::before, #nav-menu li:hover > a::before, #nav-menu ul li a.active::before {
    visibility: hidden;
    width: 0%;
  }

  /* MENU CLASSES optionally used in JS */
  .visible{
    display: block;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    animation: fadeUp 200ms linear 200ms 1 forwards;
  }
  .rotate {
	transform: rotate(-180deg);
  }
  .noscroll {
    overflow: hidden;
  }

/* MENU-BUTTON */
#menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    line-height: 1rem;
    position: relative;
    z-index: 32;
    right: 0;
    top: 0;
    width: 65px;
    height: 60px;
    padding: 1.2rem;
    transition: transform 0.3s linear;
    outline: none;
    background-color: transparent;
  }

  /* NAV-ICON */
  #nav-icon {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    transform: rotate(0deg);
  }

  #nav-icon span {
    position: absolute;
    left: 0;
    display: block;
    width: 95%;
    height: 3px;
    margin: 0 auto;
    transition: transform 0.25s ease-in-out;
    transform: rotate(0deg);
    opacity: 1;
    border-radius: 0;
    background-color: var(--color-code-blue);
  }

  #nav-icon span:nth-child(1) {
    top: 0;
  }

  #nav-icon span:nth-child(2),
  #nav-icon span:nth-child(3) {
    top: 10px;
    width: 68%;
  }

  #nav-icon span:nth-child(4) {
    top: 20px;
  }

  #nav-icon.open span:nth-child(1) {
    top: 10px;
    left: 50%;
    width: 0;
  }

  #nav-icon.open span:nth-child(2) {
    width: 100%;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  #nav-icon.open span:nth-child(3) {
    width: 100%;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  #nav-icon.open span:nth-child(4) {
    top: 10px;
    left: 50%;
    width: 0;
  }

  /* SECTIONS */
  .section-wrap{
    width: 100%;
    margin-top: 2.5rem auto;
  }

  .content-wrap {
    min-width: 85%;
    max-width: 85%;
    margin: 2.5rem auto;
  }

  .project-wrap {
    flex-direction: column;
  }

  .project-wrap .img-box{
    max-width: 100%;
  }

  .person h4 a{
    font-size: 1rem;
  }


  .servicelist-wrap li{
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
  }

  #about{
    padding-top: 6rem;
  }

  #about-wrap p{
  font-size: 1.5rem;
  }

  address{
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  #contact{
    padding-bottom: 5rem;
  }

  footer{
    min-height: auto;
  }

}

@media screen and (min-width: 821px) and (max-width: 1475px){

  .content-wrap {
    min-width: 80%;
    max-width: 90%;
    margin: 2.5rem auto;
}
  
  #expertise h1{
    text-align: left;
    margin-bottom: 0;
    margin-right: 1.5rem;
  }

  .grid-wrap{
    max-width: 85%;
  }

  .area{
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-left: 1rem;
    margin-right: 1.5rem;
  }
  .area p{
    text-align: left;
    font-size: 1.5rem;
  }

  .nr-title-wrap{
    align-self: flex-start;
  }

  #contact{
    padding-bottom: 5rem;
  }
}


@media screen and (min-width: 821px) and (max-width: 1800px) {
   /* SECTIONS */
   .row-wrapper:first-child{
    padding-top: 250px;
  }
  .row-wrapper:last-child{
    padding-bottom: 15%;
  }
  .row-wrapper{
    flex-direction: column;
    max-width: 100%;
  }
}
