@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Slab:ital,wght@0,700;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans';
  background-color: #0d0d0d;
  color: #78cafc;
  font-size: 80%;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Comfortaa';
}

.logo {
  letter-spacing: -0.3em;
  font-family: 'IBM Plex Mono';
  color: #9fb3bf;
}

.logo span {
  font-size: 1.35em;
  color: #638ca6;
}

.highlight {
  color: #ffc473;
}

#astronaut {
  position: fixed;
  left: calc(50vw - 80px);
  top: calc(50vh - 80px);
  width: 160px;
  height: auto;
}

#earth {
  width: 100%;
  height: auto;
  position: fixed;
  bottom: 0;
  transform: translate(0, 20vw);
}

#welcome-container {
  height: 100vh;
  background-color: black;
  position: relative;
  z-index: -1;
}

#welcome-container h1 {
  position: fixed;
  font-size: 4em;
  right: 0;
  margin-right: 10px;
  bottom: 2vw;
  text-align: right;
  font-family: 'Orbitron';
  color: #4b7ba6;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  line-height: 0.95;
  animation: inleft 0 1s ease-in;
  z-index: -1;
}

#welcome-container h1 .midlight {
  color: #638ca6;
}

#welcome-container p {
  transform: rotate(180deg);
  position: fixed;
  left: 0;
  top: 50vh;
  font-size: 2.6em;
  color: #4b7ba6;
  font-family: 'Josefin Slab';
  writing-mode: vertical-rl;
  transform-origin: center;
  text-align: left;
}

#content {
  background-color: #0d0d0d;
}

.main-container {
  margin: 0 10vw;
}

nav {
  position: fixed;
  top: 1em;
  left: 1em;
  width: max-content;
  font-family: 'IBM Plex Mono';
  background-color: #0d0d0d;
  color: #78cafc;
  border-radius: 5px;
  z-index: 100;
  transition: max-width 1s;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 1.5em;
}

nav li:first-child {
  font-size: 1.4em;
  padding: 0.5em 1em;
  overflow: hidden;
  min-width: 3ch;
}

nav li:nth-child(n + 2) {
  transition: max-height 0.3s ease-in, padding-top 0.3s ease-in, padding-bottom 0.3s ease-in, max-width 0.3s;
  padding: 1em;
  max-width: 19ch;
  white-space: nowrap;
}

nav li:nth-child(n + 2):hover {
  background-color: white;
}

.minimized li:nth-child(n + 2) {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  max-width: 0;
}

.section-title {
  text-align: center;
  font-family: 'Orbitron';
  color: #0d0d0d;
  background-color: #9fb3bf;
  line-height: 2;
  border-bottom: 6px solid #a66000;
  text-shadow: 1px 1px 4px white;
  transition: all 0.5s ease-in-out;
  position: relative;
  margin-bottom: 1em;
}

* + .section-title {
  margin-top: 3em;
}

.section-title:before, .section-title:after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 0px;
  height: 5px;
  margin: 5px 0 0;
  transition: all 0.5s ease-in-out;
  transition-duration: 1s;
  opacity: 0;
  left: 0;
  background-color: #e69500;
}

.section-title:hover {
  cursor: pointer;
}

.section-title:hover:before, .section-title:hover:after {
  width: 100%;
  opacity: 1;
}

#skills {
  text-align: center;
  color: #2dacfa;
}

#skills p::before {
  content: '<\A0';
  color: #ff990d;
}

#skills p::after {
  color: #ff990d;
  content: '\A0>';
}

.circle {
  border-radius: 50%;
  height: 0.6ch;
  width: 0.6ch;
  background-color: #ff990d;
  display: inline-block;
  margin: 0 0.5ch;
  margin-bottom: 0.3ch;
}

#about-container {
  margin-top: 4em;
  line-height: 1.5;
  display: flex;
  font-size: 1.2em;
}

#about-container > div:first-of-type {
  width: 70%;
  margin-right: 2.5em;
}

#about-container > div:nth-child(2) {
  width: 30%;
}

#about-container p:first-of-type {
  text-indent: 2em;
}

#about-container p + p {
  margin-top: 2em;
}

#about-container img {
  height: auto;
  width: 100%;
  border-bottom: 6px solid #4b7ba6;
  border-radius: 5px;
}

#about-container p {
  max-width: 60ch;
}

#about-container a {
  font-size: 3em;
  color: #9fb3bf;
  transition: 0.3s;
  margin-right: 0.75em;
}

#about-container a:hover {
  color: #ffae40;
}

#about-container .contact {
  margin-top: 1em;
  padding: 0 3em;
  width: 100%;
  max-width: 60ch;
  display: flex;
  justify-content: space-around;
}

#projects-container {
  display: grid;
  align-items: top;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  grid-gap: 3rem;
}

.project-card {
  background-color: #1a1a1a;
  color: #9fb3bf;
  transition: 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card .project-text {
  padding: 0 2em 2em;
}

.project-card .project-text p + p {
  margin-top: 1em;
}

.project-card .project-title {
  margin-bottom: 1.5em;
  padding: 1em 1em;
  background-color: #638ca6;
  color: black;
  position: relative;
  height: 6em;
  text-shadow: 1px 1px 4px #9fb3bf;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card .project-title img {
  width: 90px;
  height: 90px;
  border-radius: 80px;
  position: relative;
  top: 3em;
  right: 1em;
  border: 4px solid #1a1a1a;
  transition: all 0.3s;
}

.project-card .project-title img:hover {
  width: 140px;
  height: 140px;
  border: 4px solid #a66000;
}

.project-card .project-headline {
  font-style: italic;
  color: #a66000;
  width: 70%;
}

.project-card ul {
  margin-left: 1em;
  margin-top: 1em;
  list-style-type: none;
  font-size: 0.8em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.project-card li {
  padding: 0.4em;
  border: 1px solid #023859;
  border-radius: 4px;
  margin: 0.4em;
}

.project-card .project-links {
  bottom: 0;
  font-size: 3em;
  margin-top: auto;
  padding: 0.5em 1em;
  display: flex;
  justify-content: space-between;
}

.project-card .project-links a {
  color: #a66000;
}

#contact-container {
  display: flex;
  align-items: center;
}

#contact-container img {
  width: 100%;
  height: auto;
}

#contact-container > div:first-of-type {
  width: 40%;
}

#contact-container > div:nth-child(2) {
  width: 40%;
  margin: 2em auto;
  padding: 2em;
  line-height: 2.5;
}

#contact-container a {
  text-decoration: none;
  color: #638ca6;
}

#contact-container a:hover {
  color: #9fb3bf;
}

footer {
  margin-top: 3em;
  width: 100%;
  background-color: #023859;
  color: #638ca6;
  padding: 0.6em 2em;
}

.come-in {
  transform: translateY(150px);
  animation: come-in 0.8s ease forwards;
}

.come-in:nth-child(odd) {
  animation-duration: 0.6s;
}

@keyframes come-in {
  to {
    transform: translateY(0);
  }
}

.clearfix::after {
  content: '';
  clear: both;
  display: table;
}

@media screen and (max-width: 700px) {
  #skills {
    font-size: 0.8em;
  }
  #about-container {
    flex-direction: column;
  }
  #about-container div:first-of-type {
    width: 100%;
    margin-right: 2.5em;
  }
  #about-container div:nth-child(2) {
    margin-top: 1em;
    width: 100%;
  }
  #contact-container {
    flex-direction: column-reverse;
  }
  #contact-container div:first-of-type {
    width: 90%;
  }
  #contact-container div:nth-child(2) {
    margin: 1em;
    width: 90%;
  }
}

@media screen and (max-width: 600px) {
  .main-container {
    margin: 0 3vw;
  }
}
