:root {
  --bg-color: #FBEBD9;
  --primary: #0D2167;
  --secondary: #FFCB00;
  --grey: #8D8686;
  --white: #fff;
}

/* Setup */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--primary);
  font-family: "Judson" ,"Times New Roman", Times, serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto Mono", monospace;
}

h1 {
  font-family: "Roboto Mono", monospace;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  text-transform: uppercase;
}

h2 {
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

h4 {
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
}

p {
  line-height: 1.6;
  color: #555;
}

/* Header */
header {
  z-index: 1000;
  padding: 24px;
  position: sticky;
  top: 0;
}
header.contrasted {
  color: var(--white);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-title a {
  text-decoration: none;
}

.nav-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}
@media (max-width: 600px) {
  .nav-menu {
    display: none;
  }
}

.nav-menu li:after {
  content: "|";
  padding: 0 24px;
}
.nav-menu li:last-child:after {
  content: "";
  padding: 0;
}
.nav-menu li a {
  text-decoration: none;
}
.nav-menu a.active {
  font-weight: bold;
  text-decoration: underline;
}
.nav-menu a:hover {
  text-decoration: underline;
}

#about {
  display: flex;
  flex-wrap: wrap;
  padding: 20vh 2rem;
  gap: 5rem;
  justify-content: center;
  align-items: center;
}

#about > div.text {
  max-width: 500px;
}

#experience {
  background-color: var(--primary);
  color: var(--white);
}

.timeline {
  position: relative;
  max-width: 930px;
  margin: 0 auto;
  padding: 8rem 2rem;
  --timeline-progress: 0%;
}
.timeline::before, .timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: var(--grey);
  left: calc(10px + 2rem);
  margin-left: -3px;
}
.timeline::after {
  background-color: var(--bg-color);
  top: 0;
  height: var(--timeline-progress);
  transition: height 0.10s ease-in-out;
}
.timeline > .content {
  padding: 5rem 0px;
  position: relative;
  max-width: calc(100vw - 40px);
}
.timeline > .content p {
  color: var(--white);
}
.timeline > .content ul {
  font-size: 14px;
}
.timeline > .content::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: 85px;
  background-color: var(--primary);
  border: 1px solid var(--secondary);
  border-radius: 50%;
  z-index: 1;
}
.timeline > .content.active::after {
  background-color: var(--secondary);
  border: 1px solid var(--primary);
}
.left, .right {
  left: 40px;
  color: var(--white);
  position: relative;
  width: 70vw;
  filter: blur(5px);
  transition: filter 0.25s ease-in-out;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}
.left {
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
}

.timeline > .content.active > .right, .timeline > .content.active > .left {
  filter: none;
}
@media (min-width: 900px) {
  .timeline::before, .timeline::after {
    left: 200px;
  }
  .timeline > .content::after {
    left: calc(200px - 10px - 2rem);
  }
  .timeline > .content {
    width: max-content;
  }
  .left {
    left: auto;
  }
  .right {
    left: 200px;
    top: -30px;
    width: max-content;
  }
  .right > * {
    width: max-content;
  }
}

#skills {
  padding: 20vh 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#skills > div.text {
  /* max-width: 50vw; */
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skills-list {
  margin-top: 16px;
  margin-left: 16px;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 8px;
}
.skills-list > li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
@media (min-width: 600px) {
  #skills {
    padding: 20vh 2rem;
    flex-direction: row;
  }
  #skills > h2 {
    transform: rotate(-90deg);
  }
  #skills > div.text {
    max-width: 50vw;
  }
  .skills-list {
    grid-template-columns: 1fr 1fr 1fr;
    margin-left: 0;
  }
}

footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

footer > .contact {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 4px;
}

footer > p {
  color: var(--white);
}