#menuToggle {
  display: none;
  position: relative;
  top: 0px;
  left: -17px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}
#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;

  -webkit-touch-callout: none;
}
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #D9D9D9;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.55s ease;
}
#menuToggle span.line1 {
  transform-origin: 0% 0%;
}
#menuToggle span.line2 {
  transform-origin: 0% 100%;
}
#menuToggle input:checked~span {
  opacity: 1;
  transform: rotate(45deg) translate(0px, -1px);
}
#menuToggle input:checked~span.line2 {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked~span.line3 {
  transform: rotate(-45deg) translate(-2px, -1px);
}
#menu{
  display: none;
  position: absolute;
  top: 90px;
  left: -200%;
  width: 100%;
  height: 100vh;
  background-color: #282C33;
  z-index: 7;
  transition: .5s;
}
#menu .icons{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
#menu .icons img.github{
  width: 66px;
}
#menu .icons img.insta{
  width: 46px;
}
#menu ul{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 47px 16px;
  margin-bottom: 107px;
}
#menu ul a{
  text-decoration: none;
}
#menu ul a li{
  font-weight: 400;
  font-size: 32px;
  line-height: 42px;
  color: #ABB2BF;
}
#menu ul a:hover li{
  font-weight: 500;
  color: #FFFFFF;
}



@media screen and (max-width: 1165px) {
  #projects>.top h2::after{
    width: 170px;
  }
}
@media screen and (max-width: 973px) {
  #contacts .wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .container{
    padding: 0 60px;
  }
}
@media screen and (max-width: 625px){
  #about .rightSide{
    display: none;
  }
  aside {
    display: none;
  }
  section#home {
    min-height: 703px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 258px;
    margin-bottom: 112px;
  }

  section#home .leftSide {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
  }


  section#home .leftSide a.btn {
    width: 165px;
    position: absolute;
    top: 50rem;
    left: 67px;
  }

  section#home .rightSide {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }
  #projects>.top h2::after {
    width: 40px;
  }
}
@media screen and (max-width: 830px) {
  .decor {
    display: none;
  }
  footer {
    width: 100%;
    min-height: 200px;
    padding: 0 10px;
  }
}
@media screen and (max-width: 590px) {
  .container {
    padding: 0 27px;
  }
  #menuToggle{
    display: block;
  }
  #menu{
    display: block;
  }
  nav>ul {
    display: none;
  }

}
@media screen and (max-width: 450px){
  section#home .leftSide a.btn{
    position: static;
  }
  #projects>.top h2::after {
    display: none;
  }
  .top h2::after{
    width: 40px;
  }
  section#home .rightSide{
    display: none;
  }
  section#home{
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .certs__card { flex-basis: calc((100% - var(--certs-gap)) / 2); }
}
@media (max-width: 600px) {
  .certs { padding: 40px 16px; }
  .certs__card { flex-basis: 85%; }
  .certs__btn { display: none; }   /* swipe on phones */
}

@media (prefers-reduced-motion: reduce) {
  .certs__track { scroll-behavior: auto; }
}