/* Global */
:root {
  --parent-bg: hsl(258, 8%, 34%);
  --color: hsl(69, 44%, 77%);
  --bg: hsl(249, 17%, 23%);
  --border: hsl(17, 12%, 40%);
}
html {
  font-size: 16px;
  box-sizing: border-box;
  color: var(--color);
  background-color: var(--parent-bg);
  font-family: "MondaReg", Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  line-height: 2rem;
  overflow-x: hidden;
}
body {
  padding: 0;
  margin: 0;
  background-image: url(../images/nathan-anderson-NAV4nIjgwPk-unsplash.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
main {
  position: relative;
  top: 5rem;
}
h1,
h2 {
  font-family: "JuliusSans", sans-serif;
}
#center {
  text-align: center;
}
@media only screen and (max-width: 820px) {
  html {
    font-size: 12px;
  }
}
/* Waves */
.wave1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave1 svg {
  position: relative;
  display: block;
  width: calc(114% + 1.3px);
  height: 76px;
}

.wave1 .shape-fill {
  fill: #343145;
}

.wave2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave2 svg {
  position: relative;
  display: block;
  width: calc(262% + 1.3px);
  height: 52px;
}

.wave2 .shape-fill {
  fill: #343145;
}

.wave3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave3 svg {
  position: relative;
  display: block;
  width: calc(105% + 1.3px);
  height: 17px;
}

.wave3 .shape-fill {
  fill: #54505e;
}

.wave4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave4 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 151px;
}

.wave4 .shape-fill {
  fill: #54505e;
}

.wave {
  display: block;
  position: relative;
}

/* Header Section */
header {
  background-color: var(--bg);
  width: 100%;
  position: fixed;
  z-index: 5;
  border-bottom: 1px solid var(--border);
}
header .container {
  background-color: var(--bg);
  display: flex;
  align-items: center;
  height: 5rem;
  padding: 0 2rem;
}
header .logo {
  color: var(--color);
  display: block;
  font-family: "JuliusSans", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  flex: 1;
}
header nav {
  color: var(--color);
  display: block;
}
header nav ul {
  display: flex;
  padding-left: 1.5rem;
  list-style-type: none;
}
header nav li {
  padding-left: 5rem;
}
header a {
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.5s ease-out;
  padding: 0.5rem;
  border-radius: 5px;
}
header nav a:link {
  color: var(--color);
}
header nav a:visited {
  color: var(--color);
}
header nav a:hover {
  cursor: pointer;
  color: white;
  border: 2px solid var(--border);
}
header nav a:active {
  font-size: 0.95rem;
  border: 2px solid var(--border);
}
#icon {
  color: var(--color);
  font-size: 2rem;
  float: right;
  cursor: pointer;
  display: none;
}
@media only screen and (max-width: 768px) {
  #icon {
    display: block;
    margin-left: 2rem;
  }
  header .logo {
    padding: 0;
  }
  header nav ul {
    opacity: 0;
    position: fixed;
    width: 100%;
    height: fit-content;
    background: var(--parent-bg);
    top: -100%;
    left: 0;
    text-align: center;
    display: block;
    padding: 0;
    margin: 0;
    z-index: -1;
    transition: all 0.6s ease-out;
  }
  header nav li {
    padding: 0;
    margin: 3rem 0;
  }
  header nav ul.show {
    opacity: 0.8;
    top: 5rem;
  }
}

/* Page Hero */
.page-hero {
  position: relative;
  display: flex;
  height: 80vh;
  align-items: center;
  justify-content: center;
}
.page-hero h1 {
  font-family: "JuliusSans", sans-serif;
  font-size: 3.5rem;
}
.page-hero img {
  height: 7rem;
  width: 7rem;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 0.5rem white;
  border-radius: 50%;
}
.page-hero .container {
  border-radius: 5%;
  background-color: hsla(249, 17%, 23%, 0.5);
  text-align: center;
  width: fit-content;
  height: fit-content;
  padding: 2rem 3rem;
}
.page-hero a {
  color: var(--color);
  font-size: 1.2rem;
}
.page-hero .medias {
  display: flex;
  justify-content: space-evenly;
}
/* About */
#about {
  padding: 0 10vw 3vh 10vw;
  width: 80vw;
  background-color: var(--bg);
}
#about h2 {
  margin-top: 0;
  text-decoration: underline;
  text-underline-position: under;
}
/* Project */
.project {
  margin: 3rem 0 1.2rem 0;
  text-align: center;
}
.project i {
  margin: 0 1rem;
  color: white;
}
#projects {
  background-color: var(--parent-bg);
  text-align: center;
  padding: 0 3rem 2rem 3rem;
}
#projects h3 {
  margin-bottom: 0;
  text-align: center;
}
.proj-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2.5rem;
}
#projects .box {
  background-color: var(--bg);
  margin: 0 2rem 2rem 2rem;
  padding: 0 1rem 2rem 1rem;
  border-radius: 0.5rem;
  max-width: 70%;
}
#projects .text {
  margin-bottom: 1.5rem;
  max-height: 10rem;
  overflow: scroll;
  padding: 1rem;
  text-align: left;
}
#projects a {
  padding: 0.5rem;
  text-decoration: none;
  color: var(--color);
  background-color: var(--border);
  border-radius: 1rem;
  transition: all 0.5s linear;
}
#projects a:hover {
  background-color: hsl(17, 12%, 20%);
  color: white;
}
@media only screen and (min-width: 768px) {
  #projects .box {
    width: 25vw;
    margin: 0;
  }
  #projects .text {
    height: 10rem;
  }
  .proj-display {
    justify-content: center;
  }
}
/* Timeline Section */
#journey {
  text-align: center;
}
#journey h3 {
  background-color: hsla(258, 8%, 34%, 0.75);
  margin-bottom: 0;
  padding-top: 3rem;
  text-transform: capitalize;
}
.tl-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.tl-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 6rem 0;
  background-color: hsla(258, 8%, 34%, 0.75);
}
.timeline {
  width: 80%;
  height: auto;
  max-width: 50rem;
  margin: 0 auto;
  position: relative;
}

.timeline ul {
  list-style: none;
}
.timeline ul li {
  padding: 1.25rem;
  background-color: var(--bg);
  color: var(--color);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.timeline ul li:last-child {
  margin-bottom: 5rem;
}
.timeline-content h1 {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.85rem;
  margin-bottom: 0.8rem;
}
.timeline-content p {
  font-size: 1rem;
  line-height: 1.7rem;
  font-weight: 300;
}
.timeline-content .date {
  text-transform: capitalize;
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 1s;
}
.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}
@media only screen and (min-width: 768px) {
  .timeline:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: white;
  }
  .timeline ul li {
    width: 50%;
    position: relative;
    margin-bottom: 3rem;
  }
  .timeline ul li:nth-child(odd) {
    float: left;
    clear: right;
    transform: translateX(-30px);
    border-radius: 1.25rem 0px 1.25rem 1.25rem;
  }
  .timeline ul li:nth-child(even) {
    float: right;
    clear: left;
    transform: translateX(30px);
    border-radius: 0px 1.25rem 1.25rem 1.25rem;
  }
  .timeline ul li::before {
    content: "";
    position: absolute;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 50%;
    background-color: white;
    top: 0px;
    transition: background-color ease-out 0.5s;
  }
  .timeline ul li:nth-child(odd)::before {
    transform: translate(50%, -50%);
    right: -30px;
  }
  .timeline ul li:nth-child(even)::before {
    transform: translate(-50%, -50%);
    left: -30px;
  }
  .timeline-content .date {
    position: absolute;
    top: -30px;
  }
  .timeline ul li:hover::before {
    background-color: var(--border);
  }
}

/* footer */
footer {
  padding: 2rem 0 0 0;
  position: absolute;
  background-color: var(--bg);
  width: 100vw;
  height: fit-content;
}
footer h2 {
  text-transform: capitalize;
  font-family: "JuliusSans", sans-serif;
  font-size: 2rem;
  margin: 1rem;
}
footer h3 {
  font-family: "JuliusSans", sans-serif;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.contact {
  width: fit-content;
  margin-left: 7vw;
}
.contact p {
  margin: 0;
}
.skills i {
  font-size: 1.5rem;
  padding: 0 1vw;
}
#copyright {
  margin: 0;
  font-family: "JuliusSans", sans-serif;
  font-weight: 300;
  font-size: 0.5rem;
  line-height: 0.5rem;
}
