
@font-face {
  font-family: 'Milkman';
  src: url('../fonts/milkman.woff2');
}

@font-face {
  font-family: 'Default Lingo';
  src: url('../fonts/DefaultLingo-Regular.woff2');
}

@font-face {
  font-family: 'Dreamer TM';
  src: url('../fonts/Dreamer\ TM.woff2');
}

@font-face {
  font-family: 'Cinema';
  src: url('../fonts/Cinema.woff2');
}

@font-face {
  font-family: 'Px Grotesk';
  src: url('../fonts/Px-Grotesk-Light.woff');
  font-weight: 300;
}

@font-face {
  font-family: 'Px Grotesk';
  src: url('../fonts/Px-Grotesk-Regular.woff');
  font-weight: 400;
}

@font-face {
  font-family: 'Px Grotesk';
  src: url('../fonts/Px-Grotesk-Bold.woff');
  font-weight: 700;
}

@font-face {
  font-family: 'Px Grotesk';
  src: url('../fonts/Px-Grotesk-Screen.woff2');
  font-weight: 1000;
}

:root {
  --black: rgba(0,0,0,1);
  --white: rgba(255,255,255,1);
  --title: 'Milkman', sans-serif;
  --main: 'Px Grotesk', sans-serif;
  --random-color: black;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, a, p, nav, li, ul, strong, span {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style-type: none;
}

a {
  display: inline-block;
  color: black;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--title);
  background-color: var(--black);
  font-size: 16px;
  user-select: none;
}

@keyframes fat {
  0% {transform: scale(100%);}
  50% {transform: scale(30%);}
  100% {transform: scale(100%);}
}

.circle {
  position: fixed;
  z-index: 5;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode:difference;
  animation: fat 3s infinite ease-in-out;
}

@media screen and (max-width: 500px) {
  .circle {
    display: none;
  }

}

.flex {
  display: flex;
}

header {
  color: white;
}

header h1 {
  font-size: clamp(24px, 5vw, 4em);
  font-weight: 900;
  width: 50vw;
  color: var(--white);
}

.projectsSection {
  position: relative;
  margin: 0vw 3vw;
  gap: 20px;
  flex-wrap: nowrap;
}


.projectsNav {

  width: 15vw;
  height: 94vh;
  position: sticky;
  top: 0px;
  color: var(--white);
  padding-top: 3vw;
  font-family: var(--main);
  /*border: 1px solid red;*/
}


.projectsNav nav {
  margin-bottom: 1.3em;
}


.contactSection p {
    color: var(--white);
    line-height: 1.3em;
    font-weight: 300;

}

.projectsInfo p {
  color: var(--white);
  line-height: 1.3em;
  font-weight: 300;
}

.backArrow {
  transform-origin: 50%, 50%;
  transform: rotate(180deg);
  margin-bottom: 3vw;
  
}

@keyframes backButton {
  0% { 
    transform: rotate(180deg);
  }  
  50% {
    transform: translate(-10%,-10%) rotate(180deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

.backArrow:hover {
  animation: backButton infinite 1s;
}

a .backArrow {
  width: 50px;
  height: 50px;
}
.projectsInfo {
  color: var(--white);
  width: 25%;
  height: 94vh;
  text-align: start;
  padding-top: 3vw;
  position: sticky;
  top: 0;
  /*border: 1px solid red;*/
}

.contactSection {
  color: var(--white);
  width: 75%;
  height: 94vh;
  text-align: start;
  padding-top: 3vw;
  position: sticky;
  top: 0;
}

.contactList {
  display: flex;
  flex-direction: column;
  justify-content:space-between;
  position: relative;
  z-index: 10;
}

.contactSection a {
  font-family: var(--main);
  font-size: clamp(2em, 2em, 4em);
  font-weight: 300;
  color: var(--white);
  border-bottom: 1px solid var(--white);
  display: inline;
  padding: .3em .5em;
  transition: all .4s ease;
}

.contactSection a:hover {
  border-bottom: 1px solid var(--random-color);
  color: var(--random-color);
}

.navContainer {
  display: block;
}

.topBox {
  display: block;
  height: 17vh;
}

.topBox2 {
  display: block;
  height: 10vh;
}


.projectsInfo .description {
  font-family: var(--main);
  font-weight: 300;
}

.contactSection .description {
  font-family: var(--main);
  font-weight: 300;
}

.contactSection h1 {
  font-size: clamp(24px, 5vw, 4em);
}

.projectsInfo h1 {
  font-size: clamp(24px, 5vw, 4em);
}

.title {
  margin-bottom: 1vh;
  transform: translateY(-11%);
  text-align:left;
}

.year {
  margin-bottom: 1vh;
  font-family: 'Px Grotesk', sans-serif;
  font-weight: 1000 !important;
  text-transform: uppercase;
  font-size: 1.5em;
  text-align:left;
}

.contactVideo {
  /*  width: 100vw;*/
    height: 100vh;
    position: relative;
  }

#contactBackground {
  position: fixed;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: cover;
  z-index: -1;
  margin: 0 auto;
}

.content {
  margin-top: -100vh;
}


.projectsImg {
  color: var(--white);
  width: 60%;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 3vw;
}

.projectsImg .horizontal {
  max-width: 90%;
  max-height: 90vh;
  margin-bottom: 5vh;
}

.projectsImg .nomargin {
  max-width: 600px;
  width: 100%;
  margin-bottom: 0;
}

.projectsImg .vertical {
  max-width: 400px;
  width: 100%;
  margin-bottom: 5vh;
}

.projectsImg::-webkit-scrollbar {
  display: none;
}

.projectsImg:last-child {
  margin-bottom: 15vh;
}

body::-webkit-scrollbar {
  background: black;
}

body::-webkit-scrollbar-thumb {
  background: var(--random-color);
}


body::-webkit-scrollbar-track {
  background: var(--black);
}

.navTitle {
  line-height: 1.3em;
  font-weight: 800;
  text-decoration: underline;
}

/*FOOTER */

footer {
  position: fixed;
  bottom: 0px;
  padding: 0 3vw;
  background: var(--black);
  color: var(--white);
  font-weight: 300;
  display: flex;
  width: 100%;
  z-index: 4;
}

.footerContainer {
  position: relative;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2vh;
}

.cr {
  font-size: clamp(14px, 14px, 2em);
  font-family: var(--main);
  font-weight: 300;
  position: relative;
}





.divider {
  width: 100%;
  border-bottom: .5px solid var(--white);
  margin-bottom: 2vh;
}

.up {
  min-height: 20px;
  transform: rotate(225deg);
  transition: all .5s ease;
}

.up:hover {
  transform: translateY(-10px) rotate(225deg);
}

.socials {
  justify-content: center;
  align-items: center;
  width: 40%;
}


.socialIcon {
  min-height: 15px;
  min-width: 15px;
}

.socials li {
  margin-left: 2vw;
}

.skillIcon {
  height: clamp(10px, 4vh, 6vh);
  margin: 0 auto;
}

nav li a {
  color: var(--white);
  line-height: 1.3em;
  font-weight: 300;
  transition: transform .4s ease-in-out;
}

nav li {
  display: flex;
}


.activeLink {
  color: var(--random-color);
  
}

.activeLink p::before {
    content: '❋ ';
    color: white;
    font-size: .8em;
}

.contact {
  color: var(--white);
  font-weight: 300;
  transition: transform .4s ease-in-out;
}


.fonetik-first-img {
  margin-top: -20px;
}

.navContainer a {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.navContainer a:hover {
  transform: translateX(10px);
}

.navContainer a::before {
 content: '';
  position: absolute;
  width: 100%;
  left: 0;
}
.navContainer a::before {
  background-color: var(--white);
  height: 1px;
  bottom: 0;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
}

.navContainer a:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}






@media screen and (max-width: 500px) {
  .projectsSection {
    gap: 0;
    flex-wrap: wrap;
  }

  .projectsNav {
    height: auto;
    width: 30%;
  }

  .projectsImg {
    width: 100%;
    z-index: 2;
    display: flex;
  }

  .projectsInfo {
    width: 70%;
    height: auto;
  
  }

  .contactSection h1 {
    font-size: 40px;
  }

  .projectsInfo h1 {
    font-size: 40px;
  }

  .projectsInfo .topBox {
    transform: translateY(50px);
  }

  .contactSection .topBox {
    transform: translateY(50px);
  }

  .topBox2 {
    height: 40px;
  }

  .navContainer {
    
  }

  .socials {
    width: auto;
  }

  .up {
    min-height: 10px;
  }

  .projectsImg .horizontal {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 0;
  }

  .projectsImg .vertical {
    max-width: 700px;
  }

  body {
    font-size: 14px;
  }

  .title {
    /*transform: translateY(100%);*/
  }

  .year {
    transform: translateY(20%);
  }

  .description {
    text-align: justify;

  }

  .fonetik-first-img {
    margin-top: 0px;
  }

  .contactSection {
    width: 70%;
  } 

  .contactVideo {
    opacity: 50%;
  }
}
