* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html,
body {
  overflow: hidden;
}
body {
  position: relative;
  background-color: #0d0d0d;
  color: #fff;
  padding: 30px 10%;
  overflow-x: hidden;
  font-family: "Satoshi", sans-serif;
}
.head {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.head h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 51px;
}
nav {
  display: flex;
  width: max-content;
  gap: 1em;
  margin-right: 25px;
}
nav a {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0em;
  text-align: left;
  text-decoration: none;
  color: #ffffff52;
}
nav a.selected {
  color: #fff;
}
nav a:hover {
  transition: color 500ms ease;
  color: #fff;
}
.flexContainer {
  display: grid;
  grid-template-columns: 60% 30%;
  gap: 1rem;
}
.flexContainer > * {
  margin-top: 20px;
  width: 90%;
  max-width: 500px;
}
.image-container .img-bg {
  background-color: #6350da;
  width: fit-content;
  transform: translate(
    20px,
    20px
  ); /*this value has to be the same as the top and right positioning of the image*/
}
.image-container img {
  right: 20px;
  top: 20px;
  position: relative;
  width: 100%;
  min-width: 380px;
  max-width: 471px;
}
.content {
  font-family: "Satoshi", sans-serif;
  text-align: left;
}
.content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.content h2 {
  font-size: 52px;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: -0.035em;
}
.content .link-container {
  margin-top: 30px;
}

.content .link-container a {
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
  text-decoration: none;
  margin-right: 10px;
}
a.contact-link {
  background-color: #6350da;
  border: 2px solid #6350da;
  color: #fff;
  padding: 10px;
}
a.project-link {
  background-color: transparent;
  border: 2px solid #6350da;
  color: #fff;
  padding: 10px;
}
.tech-used {
  margin-top: 35px;
}
.tech-used h2 {
  font-family: "Satoshi", sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0em;
  text-align: left;
  margin-bottom: 10px;
}
.tech-used ul {
  display: flex;
  gap: 1rem;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 20px;
  margin: 0px -60px;
  background-color: #6350da;
  box-shadow: 0 0 0 100vmax #6350da;
  clip-path: inset(0 -100vmax);
  list-style-type: none;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes marquee {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.tech-used ul * {
  font-family: "Satoshi", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: -0.035em;
  text-align: left;
}

ul.hidden li:nth-child(even) {
  font-size: 30px;
  margin-top: -3px;
}

.menu-icon {
  visibility: hidden;
  position: absolute;
  right: 30px;
  top: 30px;
  width: 42px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon span {
  background: #fff;
  border-radius: 10px;
  height: 6px;
  margin: 4px 0;
  transition: 300ms cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-icon > span:nth-of-type(1) {
  width: 50%;
}

.menu-icon > span:nth-of-type(2) {
  width: 100%;
}

.menu-icon > span:nth-of-type(3) {
  width: 75%;
}

.menu-icon > input[type="checkbox"] {
  display: none;
}

.menu-icon > input[type="checkbox"]:checked ~ span:nth-of-type(1) {
  transform-origin: bottom;
  transform: rotatez(45deg) translate(8px, 0px);
}

.menu-icon > input[type="checkbox"]:checked ~ span:nth-of-type(2) {
  transform-origin: top;
  transform: rotatez(-45deg);
}

.menu-icon > input[type="checkbox"]:checked ~ span:nth-of-type(3) {
  transform-origin: bottom;
  width: 50%;
  transform: translate(30px, -11px) rotatez(45deg);
}
.menu-icon > input[type="checkbox"]:checked ~ nav {
  visibility: visible;
}

@media screen and (width <= 1024px) {
  html {
    overflow-y: auto;
  }

  .flexContainer {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .image-container {
    grid-row: 1 / span 1;
  }

  .image-container img {
    max-width: 100%;
    min-width: unset;
  }

  .tech-used {
    margin-top: 50px;
  }

  .tech-used ul {
    margin: 0px -20px;
    animation: marquee 8s linear infinite;
  }

  .li-hide {
    display: none;
  }

  .menu-icon {
    visibility: visible;
  }
  nav,
  nav a {
    display: block;
  }
  nav {
    visibility: hidden;
    position: absolute;
    top: 50px;
    right: -70px;
    z-index: 1000;
    background-color: #0d0d0d;
    padding: 10px 20px;
  }
  nav a {
    font-size: 1.8em;
    margin-top: 15px;
    padding: 5px;
  }
  nav.nav-desktop {
    visibility: hidden;
  }
}

/* for on scroll animation */
.hidden {
  opacity: 0.01;
  transition: all 1s;
  filter: blur(5px);
  transform: translateX(-100%);
}
.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}
@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

@media screen and (width <= 350px){
   .li-hide {
    display: block;
  }
}

@media screen and (width >= 768px) and (width <= 1024px) {
  .li-hide {
    display: block;
  }

  .menu-icon {
    right: 80px;
    width: 68px;
  }

  .menu-icon span {
    margin: 7px 0;
  }
}

@media screen and (width >= 912px) and (width <= 1024px) {
  html {
    overflow-y: auto;
  }

  body {
    padding: 30px 18%;
  }

  .head h1 {
    font-size: 50px;
  }

  .flexContainer > * {
    margin-top: 40px;
    width: 100%;
    max-width: 850px;
  }
  
  .content p {
    font-size: 26px;
    line-height: 32px;
    margin-top: 30px;
  }
  .content h2 {
    font-size: 62px;
  }
  
  .content .link-container {
    margin-top: 50px;
  }

  .content .link-container a {
    font-size: 28px;
  }

  .tech-used {
    margin-top: 55px;
  }

  .tech-used h2 {
    font-size: 31px;
    margin-bottom: 20px;
  }
  .tech-used ul {
    padding: 30px;
    margin: 0px -150px;
    animation: marquee 22s linear infinite;
  }
  
  .tech-used ul * {
    font-size: 30px;
  }
  
  ul.hidden li:nth-child(even) {
    font-size: 40px;
  }
  
  .menu-icon {
    right: 200px;
    top: 30px;
    width: 78px;
  }
  
  .menu-icon span {
    height: 10px;
    margin: 9px 0;
  }

  nav a {
    font-size: 2.8em;
    margin-top: 25px;
    padding: 8px;
  }
}