* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  a, a:visited, a:active {
    color: inherit;
    text-decoration: none !important;
  }
  :focus {
    outline: none;
  }
  p {
    padding-bottom: 0.8rem;
  }
}

:root {
  --cream: #F5F5F5;
  --orange: #FF5714;
  --darkblue: #1D4D78;
  --lightblue: #3A7CA5;
  --white: #ffffff;
}

body {
  background-color: var(--cream);
  font-size: 16px;
  font-family: "Numans", sans-serif;
  color: var(--lightblue);
  h2 {
    font-size: 2rem;
    color: var(--darkblue);
  }
  h3 {
    font-size: 1.5rem;
  }
}

.orange {
  color: var(--orange) !important;
}

.dark-blue {
  color: var(--darkblue);
}

.wrapper {
  padding: 0 3vw 0 3vw;
}

.nav {
  position: sticky;
  top: 0;
  padding: 2vw 0 2vw 0;
  z-index: 10;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  gap: 1.5rem;
  a:hover .mw {
    color: var(--orange);
    border: none !important;
  }
}

.links {
  display: flex;
  gap: 1.5rem;
  :hover {
    color: var(--orange);
  }
}

.main {
  margin-top: 2rem;
}

.sub-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  margin-top: 1rem;

}

.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding-top: 5rem;
  text-align: center;
  h1 {
    font-size: 3.5rem;
    color: var(--darkblue) !important;
    line-height: 3.5rem;
  }
}

.subtitle {
  opacity: 0;
  filter: blur(0.2rem);
  scale: 0.9;
}

.show {
  opacity: 1;
  transition: all 1.5s;
  filter: blur(0);
  scale: 1;
}

.subtitle:nth-child(2) {
  transition-delay: 0.8s;
}

.scroll {
  display: inline-block;
  animation: bounce 4s ease-in-out infinite;
}

.scroll:nth-child(1) {
  animation-delay: 4.0725s;
}
.scroll:nth-child(2) {
  animation-delay: 4.145s;
}
.scroll:nth-child(3) {
  animation-delay: 4.2175s;
}
.scroll:nth-child(4) {
  animation-delay: 4.29s;
}
.scroll:nth-child(5) {
  animation-delay: 4.3625s;
}
.scroll:nth-child(6) {
  animation-delay: 4.435s;
}

@keyframes bounce {
  0%, 10% {
    transform: none;
  }
  1%, 8% {
    transform: translateY(-3px);
  }
  4% {
    transform: translateY(4px);
  }
}

@keyframes fade-in {
  to {
    opacity: 100%;
  }
}

.header {
  margin: 20vh 0 2rem 0;
  font-size: 2rem !important;
  color: var(--darkblue) !important;
}

.hey {
  p {
    color: var(--lightblue);
    font-size: 1.1rem;
  }
  img {
    height: 100%;
  }
}

section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.btn-wrapper {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
}

.btn {
  background-color:inherit;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--orange);
  border-radius: 1rem;
  color: var(--lightblue) !important;
  font-size: 1.25rem;
  font-weight: bold;
}

.btn:hover {
  color: var(--orange) !important;
}

.skills {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.project-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 5rem 0;
}

.project-text {
  max-width: 50ch;
  li {
    padding-bottom: 0.8rem;
    list-style: none;
  }
}


.project-images {
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  img {
    max-height: 40vh;
    max-width: 90vw;
  }
}

.phone {
  opacity: 0;
  transform: translateY(70px);
}

.phone-in {
  opacity: 1;
  transition: all 0.75s;
  transform: translateY(0px);
}

.phone:nth-child(1) {
  transition-delay: 0s;
}
.phone:nth-child(2) {
  transition-delay: 0.2s;
}
.phone:nth-child(3) {
  transition-delay: 0.4s;
}
.phone:nth-child(4) {
  transition-delay: 0.6s;
}

.laptop {
  opacity: 0;
  filter: blur(0.5px);
}

.laptop-in {
  opacity: 1;
  filter: blur(0);
  transition: all 3s;
}

.lewagon:hover {
  color: var(--orange);
}

.footer {
  height: 10vh;
  color: var(--lightblue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  p {
    padding: 0 !important;
  }
}

@media (width < 435px) {
  h1 {
    font-size: 2.2rem;
  }
  .links {
    gap: 1rem;
  }
}

@media (width < 678px) {
  .btn-wrapper {
    justify-content: center;
  }
  .hero {
    h1 {
      display: flex;
      flex-direction: column;
      font-size: 2.4rem;
    }
  }
}

@media (677px < width < 1051px) {
  .skills {
    display: flex;
    justify-content: left;
    flex-grow: 0;
  }
  .hero {
    h1 {
      display: flex;
      flex-direction: column;
    }
  }
}
