* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-family: "Lato", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #f8f9fa;
  color: #000;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.2rem;
}

h3 {
  padding-top: 10rem;
  padding-bottom: 5rem;
  font-size: 3.5rem;
  font-weight: 400;
  text-align: center;
}

h4 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

h5 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

p {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.5;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Header/Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 8vh;
  padding: 0rem 3rem;
  background-color: #f8f9fa;
}

.logo a {
  color: #000;
  letter-spacing: 0.2rem;
  font-size: 2rem;
  font-weight: 400;
  animation: drop 1.5s ease;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 30%;
}

.nav-links a {
  color: #000;
  letter-spacing: 0.2rem;
  font-size: 1.5em;
  font-weight: 500;
  animation: drop 1.5s ease;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero */
.hero-container {
  min-height: 90vh;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container h2 {
  display: block;
  width: fit-content;
  font-size: 4rem;
  position: relative;
  color: transparent;
  animation: text_reveal 0.5s ease forwards;
  animation-delay: 1s;
}

.hero-container h2:nth-child(1) {
  animation-delay: 1s;
}

.hero-container h2:nth-child(2) {
  animation-delay: 2s;
}

.hero-container h2:nth-child(3) {
  animation-delay: 3s;
}

.hero-container h2 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #374457;
  animation: text_reveal_box 1s ease;
  animation-delay: 0.5s;
}

.hero-container h2:nth-child(1) span {
  animation-delay: 0.5s;
}

.hero-container h2:nth-child(2) span {
  animation-delay: 1.5s;
}

.hero-container h2:nth-child(3) span {
  animation-delay: 2.5s;
}

/* `Projects */
#projects {
  background: #222935;
  color: #e0e5eb;
}

#projects h3 span {
  color: #e0e5eb;
}

.projects-container {
  min-height: 60vh;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.project {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 80%;
  margin: 4rem auto;
}

.project p {
  margin-bottom: 0.5rem;
}

.project-info {
  padding: 2rem;
  flex-basis: 50%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(60deg, #404b5a 0%, #202833 100%);
}

.project-info div {
  padding-top: 2rem;
}

.project-info div a {
  background: transparent;
  border: 1px solid#F8F9FA;
  padding: 0.5rem 2rem;
  color: #f8f9fa;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.project-info div a:hover {
  background: #222935;
  color: #fff;
  border: 1px solid#fff;
}

.project-img {
  flex-basis: 50%;
  height: 100%;
  position: relative;
}

.project-img:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(60deg, #404b5a 0%, #202833 100%);
  opacity: 0.25;
}

/* About */
.about-container {
  min-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 80%;
  margin: 2rem auto;
}

.about-img {
  flex-basis: 50%;
  padding: 2rem;
}

.about-img img {
  max-height: 100vh;
}

.about-info {
  flex-basis: 50%;
  padding: 2rem;
}

.about-info span {
  font-weight: 400;
}

.about-info p {
  padding-bottom: 1.25rem;
}

.about-info a {
  text-decoration: underline;
  color: #000;
}

.about-info button {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: transparent;
  color: #222935;
  border: 1px solid #222935;
  margin: 2rem 0;
  padding: 2rem 5rem;
  transition: background 0.25s;
}

.about-info button:hover {
  background: #222935;
  color: #f8f9fa;
  border: 1px solid #222935;
  cursor: pointer;
}

/* Contact */
.contact-container {
  min-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact-container div {
  padding: 4rem 2rem;
  text-align: center;
}

.contact-container div ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container div ul li {
  margin: 0 1.25rem;
}

.contact-container div ul li a {
  font-size: 2rem;
  color: #000;
}

.contact-container div ul li a:hover {
  color: #63799c;
}

.email {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: #222935;
  color: #f8f9fa;
  border: 1px solid #222935;
  padding: 2rem 6rem;
  transition: background 0.25s;
}

.email:hover {
  background: transparent;
  color: #222935;
  border: 1px solid #222935;
  cursor: pointer;
}

/* Footer */
footer {
  background: #e0e5eb;
  min-height: 8vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 2rem;
}

footer p {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }
  /* Header / Nav */
  .nav-links {
    position: absolute;
    right: 0px;
    height: 92vh;
    top: 8vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }
  .nav-links li {
    opacity: 0;
  }
  .nav-links li a {
    color: #000;
  }
  .hamburger {
    display: block;
  }
  /* Projects */
  .project {
    flex-direction: column;
  }
  /* About */
  .about {
    flex-direction: column;
    width: 100%;
  }
}

.nav-active {
  transform: translateX(0%);
}

/* Keyframes */
@keyframes drop {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

@keyframes text_reveal {
  100% {
    color: #222935;
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
