:root{

  /*COLORS*/
  --bg: #1c1c1c;
  --text: #efefef;
  --jade: #c0ffea;

  /*TEXT*/
  --paragraphLS: 0.05em;
  --H1LS: 0.02em;
  --SectionLS: 0.04em;
  --H4LS: 0.06em;

  --paragraphSize: 20px;
  --H1Size: 80px;
  --SectionSize: 28px;
  --H4Size: 16px;

}

*{
  margin: 0;
  padding: 0;
  font-family: "Intercom";
  font-weight: lighter;
}

body{
  color: var(--text);
  background-color: var(--bg);
  letter-spacing: var(--H4LS);
  padding: 32px 60px;
}
html{
  scroll-behavior: smooth;
}
.background{
  height: 905px;
  width: 100%;
  background-image: url("Bilder/Untitled-6.png");
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -100;
}
p{
  font-size: var(--H4Size);
  letter-spacing: var(--H4LS);
}
h3{
  font-size: 40px;
  letter-spacing: 0.02em;
}
h4{
  font-size: 20px;
  letter-spacing: 0.05em;
  opacity: 80%;
}
.cursor{
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--text);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--text);
  transition-duration: 300ms;
  transition-timing-function: ease-out;
  animation-name: cursor;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  pointer-events: none;
  z-index: 1000;
}
@keyframes cursor{
  0%{
    width: 6px;
    height: 6px;
  }
  40%{
    width: 8px;
    height: 8px;
  }
  80%{
    width: 6px;
    height: 6px;
  }
  100%{
    width: 6px;
    height: 6px;
  }
}

/* NAV BAR */
nav{
  font-size: var(--H4Size);
  letter-spacing: var(--H4LS);
  display: flex;
  justify-content: space-between;
  height: 28px;
  align-items: center;
  width: 100%;
  
}
.navContainer{
  display: flex;
  gap: 25px;

}
.pfpContainer{
  display: flex;
  gap: 18px;
  align-items: center;
}
.pfp{
  height: 28px;
  width: 28px;
  background-color: var(--text);

}
.KontaktKnapp{
  background: var(--jade);
  width: 96px;
  height: 28px;
  padding: 0px 12px;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 2px 2px 12px 2px;
  box-shadow: 0px 0px 18.3px rgba(192, 255, 234, 0.1);
  position: relative;
}
.KontaktKnapp:hover{
  animation-name: kontakt;
  animation-duration: 0.4s;
  animation-fill-mode: forwards;

}
.KontaktKnapp:hover .kontaktPil{
  animation: pil 0.4s forwards;
}
.KontaktKnapp:not(:hover) .kontaktPil{
  animation: pilTillbaka 0.2s forwards;
}
.KontaktKnapp:not(:hover){
  animation: kontaktTillbaka 0.2s forwards;
}

@keyframes pil{
  from{

  }
  to{
    transform: rotate(45deg);
  }
}
@keyframes pilTillbaka{
  from{
    transform: rotate(45deg);
  }
  to{
    transform: rotate(0deg);
  }
}
@keyframes kontakt{
  0%{

  }
  100%{
    border-radius: 2px;
    width: 100px;
    height: 30px;
    margin-left: -4px;
    box-shadow: 0px 0px 25.3px rgba(192, 255, 234, 0.35);
  }
}
@keyframes kontaktTillbaka{
  0%{
    border-radius: 1px;
    width: 100px;
    margin-left: -4px;
    height: 30px;
  }
  100%{
    border-radius: 2px 2px 12px 2px;
    width: 96px;
    margin-left: 0px;
    height: 28px;
  }
}

.kontaktPil{
  width: 8px;
}
.opacity75{
  opacity: 75%;
}


/*HERO SECTION*/

.hero{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content:end;
  height: 361px;
}
h1{
  color: var(--text);
  letter-spacing: var(--H1LS);
  font-weight: 400;
  font-size: var(--H1Size);
}
.jade{
  color: var(--jade);
  font-size: var(--H1Size);
  transform: scale(2);
}
.gradient{
  position: absolute;
  bottom: 0px;
  z-index: 100;
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, rgba(28,28,28,0), rgb(28,28,28))
}


/*PROJECTS SECTION*/

.sectionHeaderContainer{
  width: 100%;
  display: flex;
  justify-content: start;
  margin-top: 400px;
  z-index: 200;
  align-items: center;
  position: relative;
}
.sectionHeader{
  letter-spacing: var(--SectionLS);
  font-size: var(--SectionSize);
  margin-left: 10px;
  opacity: 50%;
  z-index: 200;
  position: relative;
}
.projectsGrid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 370px 400px;
  width: 100%;
  gap: 20px;
}
.project{
  border: 1px solid #5b5b5b;
  border-radius: 2px;
  width: 100%;
  height: 100%
}
.kontaktPilVit{
  filter: brightness(0) invert(1);
  width: 8px;
  height: 8px;
}
.viewAllContainer{
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}


/* HOW I DESIGN SECTION */

.hidContainer{
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.hidContainer div{
  background-color: #252525;
  border-radius: 2px;
  width: 450px;
  height: 400px;
  color: var(--text);
  position: relative;
}
.hidHeader{
  position: absolute;
  top: 48px;
  left: 52px;
}
.number{
  position: absolute;
  top: 28px;
  right: 32px;
}
.hidP{
  left: 52px;
  top: 128px;
  position: absolute;
  line-height: 160%;
}

/*CONTACT SECTION*/
.contactSection h2 {
  font-size: 60px;
  letter-spacing: var(--H1LS);
}
.contactSection form{
  display: flex;
  flex-direction: column;
  width: 550px;
  gap: 28px;
  margin-top: 48px;
}
.contactSection form > *{
  background-color: #252525;
  color: #919191;
  border: none;
  height: 58px;
  border-radius: 2px;
  padding-left: 18px;
  font-size: var(--H4Size);
  letter-spacing: var(--H4LS);
}
form textarea{
  min-height: 140px;
  max-height: 140px;
  padding-top: 24px;
  resize: none;
  line-height: 160%;
}
form input:nth-child(5){
  color: var(--text);
  font-size: var(--H4Size);
  letter-spacing: var(--H4LS);
  border-bottom-right-radius: 32px;
  background: #2c3331;
}

 /*FOOTER*/
 
footer{
  background: #252525;
  max-width: 100%;
  margin-top: 250px;
  padding: 32px 38px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/*LOWER SECTION*/ 

footer div:nth-child(2){
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
footer div:nth-child(2) > img{
  width: 16px;
  height: 16px;
}
.social-icons{
  display: flex;
  gap: 16px;
  align-self: flex-end;
}
footer div:nth-child(2) p{
  opacity: 80%;
  line-height: 170%;
}

/*HIGHER SECTION*/

footer div:nth-child(1):not(.pfpContainer){
  display: flex;
  flex-direction: row;
  column-gap: 52px;
  align-items: center;
}

.line{
  flex: 1;
  background: var(--jade);
  opacity: 25%;
  height: 0.8px;
  align-self: center;
}
.footer-nav{
  display: flex;
  gap: 26px;
}
.footer-nav > *{
  letter-spacing: 0.08em;
  opacity: 80%;
}


/*PROJECT PAGE*/
.projectOverview{
  display: flex;
  align-items: center;
  margin-top: 150px;
}
.projectServices{
  display: flex;
  margin-left: 44px;
  align-items: center;
  gap: 12px;
}
.projectServices > *{

  border: 0.7px solid transparent;
  border-radius: 2px;
  color: rgba(192, 255, 234, 0.80);
  box-shadow: 0px 0px 16px rgba(192, 255, 234, 0.05);
  position: relative;
  background-color: #1c1c1c;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 143px;
  height: 27.5px;
  font-size: var(--H4Size);
  letter-spacing: var(--H4LS);
}
.projectServices > *::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(192, 255, 234, 0.5), rgba(192, 255, 234, 0.1));
  z-index: -1;
  width: 145px;
  height: 30px;
  border-radius: 2px;
}
.ux, .ui{
  width: 50px;
}
.ux::after, .ui::after{
  width: 52px;
}
.h2{
  font-size: 60px;
  letter-spacing: var(--H1LS);
  margin-top: 28px;
  margin-bottom: 114px;
}
.divider{
  height: 0.8px;
  width: 100%;
  background-color: rgba(192, 255, 234, 0.4);
  box-shadow: 0 0 16px rgba(192, 255, 234, 0.2);
}

/*RESULTS*/

.resultBorder{
  border: 1px solid gray;
  width: 200px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 2px;
}
.resultsWrapper{
  margin-top: 100px;
  display: flex;
  align-items: start;
  gap: 44px;
}
.resulth2{
  margin: 0;
}
.result{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.visitWebsite{
  align-self: flex-end;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  text-decoration-thickness: 0.3px;
  text-underline-offset: 3px;
  text-decoration-color:#919191;
}
.video{
  margin-top: 200px;
  width: 100%;
  height: 700px;
  background-color:#252525;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}
.playCircle{
  width: 76px;
  height: 76px;
  background-color: #5b5b5b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.playTriangle{

  height: 10px;
  background-color: transparent;
  border-top: 15px #252525 solid;
  border-left: 10px transparent solid;
  border-right: 10px transparent solid;
  transform: scale(1.5) rotate(-90deg);
  position: absolute;
  left: 38px;
}
a{
  text-decoration: none;
  color: var(--texts)
}
.opacity100{
  opacity: 100%;
}

