:root{
  --home-bg-width: 10000px;
  --color-primary-white: #ffffff;
  --color-primary-black: #000000;
  --color-secondary-gray-01: #6c6c6c;
  --color-secondary-gray-02: #c5c5c5;
  --color-secondary-gray-03: #d7d6d6;
  --color-secondary-beige-01: #f9f7ee;
  --color-secondary-beige-02: #f3f1e8;
}

*{
  scroll-behavior: smooth;
  scrollbar-color: lightgray transparent;
  scrollbar-width: thin;
}

html{
  box-sizing: border-box;
}

*, *::before, *::after {
  margin: 0;
  box-sizing: inherit;
}

h1, h2, h3, h4{
  font-family: 'Boska', serif;
  font-weight: 400;
}

h1{
  color: var(--color-primary-white);
  font-size: clamp(2.8rem, 4vw, 10rem);
  text-align: center;
}

h2, .--header-2{
  font-size: clamp(2.5rem, 4vw, 8rem);
  margin-bottom: 20px;
}

.--header-3{
  font-size: clamp(1.5rem, 2.5vw, 7rem);
}

.--body-2{
  font-size: 12px;
}

p, a{
  font-family: 'General sans', sans-serif;
}

p{
  font-size: clamp(0.75rem, 1vw, 1rem);
}

a{
  text-decoration: none;
}

.flex{
  display: flex;
}

.grid{
  display: grid;
  grid-gap: 30px;
}

.position-absolute{
  position: absolute;
}

.position-relative{
  position: relative;
}

.bg-grey{
  background-color: #f4f3f1;
}

.br-5{
  border-radius: 5px;
}

.fw-600{
  font-weight: 600;
}

.loader{
  width: 100vw;
  height: 100vh;
  background-color: var(--color-secondary-beige-02);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  z-index: 3;
  transition: all 2s ease-in-out;
}

.loader-container{
  height: 15vh;
  overflow: hidden;
}

.logo{
  position: relative;
  top: 60%;
}

.logo-loaded{
  transform: translate(0, -5rem);
  transition: all 2s;
}

.header-wrapper{
  color: var(--color-primary-white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  transition: all .3s ease-in-out;
}

.header-logo{
  padding: 20px 40px;
}

.header-wrapper.scrolled {
  background-color: var(--color-secondary-beige-01);
  transition: all .3s ease-in-out;
  z-index: 2;
  stroke: var(--color-primary-black);
  fill: var(--color-primary-black);
  border-bottom: 1px solid var(--color-secondary-gray-02);
}

.header-wrapper.scrolled .nav-link{
  color: var(--color-primary-black);
  --underline-color: var(--color-primary-black);
}

svg #hero-text{
  fill: transparent;
  stroke: var(--color-primary-white);
  stroke-width: 1;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  -webkit-animation: fillSvg 4s ease-in-out 8s forwards;
          animation: fillSvg 4s ease-in-out 8s forwards;
}

.links a{
  position: relative;
}

a::after{
  content: "";
  background-color: var(--underline-color);
  width: 100%;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform .3s ease;
}

 a:hover::after{
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar{
  justify-content: flex-end;
}

nav{
  width: 20vw;
  justify-content: space-evenly;
}

.nav-link{
  color: var(--color-primary-white);
  --underline-color: var(--color-primary-white);
}

.nav-toggle, .header-flyout-menu, .header-menu-social-accounts{
  display: none;
}

.name-title{
    position: relative;
    margin-left: 0.6rem;
    top: 1.2rem;
    height: 1.2em;
}

  .hero-subtitle{
    padding-top: 5px;
  }

.home{
  height: 100vh;
  background: linear-gradient(90deg, hsla(1, 61%, 72%, 1) 0%, hsla(8, 28%, 57%, 1) 7%, hsla(17, 16%, 47%, 1) 14%, hsla(138, 5%, 43%, 1) 22%, hsla(177, 10%, 42%, 1) 33%, hsla(169, 12%, 44%, 1) 40%, hsla(99, 7%, 48%, 1) 48%, hsla(71, 12%, 45%, 1) 55%, hsla(56, 21%, 41%, 1) 61%, hsla(30, 21%, 46%, 1) 72%, hsla(7, 37%, 49%, 1) 80%, hsla(5, 37%, 55%, 1) 88%, hsla(1, 61%, 72%, 1) 99%);
  background-size: var(--home-bg-width) 100%;
  -webkit-animation: gradient 15s linear infinite;
          animation: gradient 15s linear infinite;
}

.home::after{
  content: "";
  position: absolute;
  width: 100%; 
  height: 100%;
  min-height: 100vh;
  background-image: url(https://arc.net/noise-light.png);
  mix-blend-mode: screen;
  pointer-events: none; 
}

.welcome-section{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary-white);
}

.line{
  width: 25rem;
  height: 1px;
  background-color: var(--color-primary-white);
}

.welcome-section p{
  text-align: center;
}

section:not(:first-child){
 padding: 40px 40px 100px 40px;
 background-color: var(--color-secondary-beige-01);
 z-index: -1;
}

.about-section{
  align-items: center;
}

.parallax-container{
  width: 40%;
  z-index: 1;
}

.about-photo{
  max-width: 100%;
  height: 1300px;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
}

.parallax-inner{
  overflow: hidden;
  max-width: 700px;
  height: 1000px;
}

.container p{
  width: 100%;
  color: var(--color-secondary-gray-01);
}

.about-description{
  width: 50%;
  padding: 0 60px 0 100px;
  white-space: break-spaces;
}

.resume-link{
  align-items: center;
}

.resume-link a, svg{
  color: var(--color-secondary-gray-01);
  --underline-color: var(--color-primary-black);
  transition: transform 0.2s ease;
}

.resume-link a:hover{
  color: var(--color-primary-black);
}

.resume-link:hover svg{
  transform: translateX(5px);
}

.projects{
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.card{
  width: 100%;
  height: 60vh;
  background-color: var(--color-secondary-beige-02);
}

.card-img{
  display: grid;
  place-items: center; 
  width: 100%;
  height: 90%;
}

.project-img{
  -o-object-fit: cover;
     object-fit: cover;
  max-width: 80%;
  transition: all .3s ease-out;
  box-shadow: 0px 10px 30px var(--color-secondary-gray-03);
  margin: 0 50px;
}

.project-img:hover{
  translate: 0 -8%;
  box-shadow: 0px 30px 30px var(--color-secondary-gray-03);
}

.card-info{
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}

.card-info > a{
  color: var(--color-primary-black);
}

.card-text{
  flex-shrink: 0;
}

.card-text:hover{
  font-weight: 500;
}

.card-info:hover svg{
  transform: translate(3px, -3px);
}

footer{
  position: relative;
  text-align: center;
  color: white;
  background: linear-gradient(90deg, hsla(18, 27%, 46%, 1) 0%, hsla(26, 34%, 53%, 1) 24%, hsla(30, 34%, 70%, 1) 67%, hsla(39, 86%, 86%, 1) 95%);
}

footer::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  background-image: url(https://arc.net/noise-light.png);
  mix-blend-mode: screen;
  pointer-events: none; 
}

.footer-info{
    width: 100%;
    border: 1px solid var(--color-primary-white);
    border-left: none;
    border-right: none;
    padding: 50px 0;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: center;
}

.footer-info > svg{ margin: 0 auto; }

.profiles{
  grid-template-columns: repeat(2, minmax(0, 20px));
  justify-content: center;
}

.footer-mail, .footer-description{
  font-size: 12px;
}

.footer-description{
  padding: 20px;
}

/* Small to larger screens */
@media (min-width: 1025px) and (max-width: 1500px) {
  
  .header-logo{
    padding: 15px 40px;
  }
  .header-logo > svg{
    height: 2.5em;
  }

  .parallax-inner{
    height: 800px;
  }

  .about-photo{
    height: 1100px;
  }
}

/* Tablet layout */
@media (min-width: 601px) and (max-width: 1024px) {
  
  .card{
    height: 100%;
  }

  .project-img{
    margin: 50px;
  }
}

/* Shared layout (mobile-tablet) */
@media (max-width: 1024px) {
   .p-20{
    padding: 20px;
  }

   .header-wrapper{
    width: 100%;
    padding: 15px 20px;
    z-index: 1;
  }

  .header-logo, .footer-logo{
    padding: 0;
  }

  .nav-toggle{
    display: unset;
    background: none;
    border: none;
  }

  .nav-toggle > svg{
    width: 2.5em;
    height: 2.5em;
  }

  .header-logo > svg{
    height: 2.5em;
  }

  .header-flyout-menu{
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--color-primary-black);
    z-index: 2;
  }

  .menu{
    font-size: 1rem;
  }

  .close-btn{
    display: inline-block;
    background-color: transparent;
    padding: 5px 15px;
    color: var(--color-primary-black);
    text-align: center;
    border: 1px solid var(--color-primary-black);
    border-radius: 50px;
    font-size: 1rem;
    margin: 0 0 0 auto;
    font-family: 'General sans', sans-serif;
  }

  .close-btn:active{
    color: var(--color-secondary-beige-01);
    background-color: var(--color-primary-black);
  }

  .navbar{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background-color: var(--color-secondary-beige-01);
    transition: all 1s ease;
  }

  .nav-items{
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
  }

  .nav-link{
    padding: 10px 0;
    font-family: 'Boska', serif;
    font-weight: 400;
    font-size: 40px;
    color: var(--color-primary-black);
    --underline-color: var(--color-primary-black);
  }

  .header-menu-social-accounts{
    display: inherit;
    border-top: 1px solid var(--color-secondary-gray-02);
    padding: 10px 0 0 10px;
  }

  .navbar.active{
    right: 0;
  }

  .navbar.active .nav-link{
    opacity: 0;
    -webkit-animation: fadeIn 0.5s ease-in 1s forwards;
            animation: fadeIn 0.5s ease-in 1s forwards;
  }

  .name-title{
    top: 0.9rem;
    height: 1.1em;
  }

  section:not(:first-child){
    padding-bottom: 80px;
  }

  .parallax-inner{
    height: 500px;
  }

  .about-photo{
    height: 800px;
  }

  .about-description{
    padding: 0 0 0 50px;
  }
  
  .projects, .footer-info{
    grid-template-columns: repeat(1, minmax(0,1fr));
  }
}

/* Mobile layout */
@media (max-width: 600px) {

  .header-logo > svg{
    width: 60px;
    height: 30px;
  }

  .home{
    width: 100%;
  }

  .welcome-section{
    width: 70%;
  }

  .line{
    width: 100%;
  }

  .greeting{
    padding: 5px 0;
  }

  .name-title{
    margin-left: 0.6rem;
    top: 0.8rem;
  }

  section:not(:first-child){
    padding: 40px 20px;
  }

  .section-title{
    text-align: center;
  }

  .about-section{
    flex-direction: column-reverse;
  }

  .parallax-container{
    width: 100%;
  }

  .parallax-inner{
    height: 400px
  }

  .about-photo{
    height: 900px;
  }

  .about-description{
    width: 100%;
    padding: 0;
    text-align: center;
 }
 
  .resume-link{
      justify-content: center;
  }

  .resume-link > svg{
    width: 18px;
    height: 18px;
  }

  .footer-description{
    padding: 10px;
  }
}

@-webkit-keyframes gradient{
  0% {
		background-position-x: 0;
	}
	100% {
		background-position-x: var(--home-bg-width);
	}
}

@keyframes gradient{
  0% {
		background-position-x: 0;
	}
	100% {
		background-position-x: var(--home-bg-width);
	}
}

@-webkit-keyframes fillSvg{
  0%{
    stroke-dashoffset: 500;
  }
  80%{
    fill: transparent;
  }
  100%{
    stroke-dashoffset: 0;
    fill: var(--color-primary-white);
  }
}

@keyframes fillSvg{
  0%{
    stroke-dashoffset: 500;
  }
  80%{
    fill: transparent;
  }
  100%{
    stroke-dashoffset: 0;
    fill: var(--color-primary-white);
  }
}

@-webkit-keyframes fadeIn{
  from {
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

@keyframes fadeIn{
  from {
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

