/* Fonts:  
  font-family: 'Source Code Pro', monospace;
  font-family: 'JetBrains Mono', monospace;
  font-family: 'Nunito Sans', sans-serif;
*/

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #06121e;
  font-family: "Nunito Sans", sans-serif;
  color: #eee;
  min-height: 100%;
  padding-top: 4em;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 3.5rem;
  background-color: #050f19;
  border-bottom: 2px solid #749bff;
  box-shadow: 0 0 8px #62a1fe;
  z-index: 1;
}

.Nav-links {
  margin: auto;
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 100%;
}

.Nav-links a {
  display: inline-block;
  padding: 0 12px;
  color: #eee;
  font-size: 14pt;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.Nav-links a:hover {
  text-decoration: underline;
}

.github {
  z-index: 1;
  position: fixed;
  right: 0;
  bottom: 0;
}

.github a {
  font-size: 3.5rem;
  text-decoration: none;
  margin: 10px;
}

.github a:hover {
  color: white;
}

.github::before {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: "";
  right: 0;
  bottom: 0;
  width: 9rem;
  height: 9rem;
  background: #02304a;
  background: linear-gradient(315deg, rgba(2, 48, 74, 1) 0%, rgba(2, 48, 74, 1) 46%, rgba(116, 155, 255, 1) 46%, rgba(116, 155, 255, 1) 46.5%, rgba(98, 161, 254, 0.5) 47%, rgba(98, 161, 254, 0) 49%);
}

#Menu-button {
  font: var(--fa-font-solid);
  font-size: 2em;
  color: #eee;
  vertical-align: middle;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  position: fixed;
  top: 8px;
  right: 18px;
  display: none;
}

#Menu-button:active {
  background-color: #62a0fe49;
  box-shadow: 0 0 16px #62a0fe49;
}

@media (max-width: 652px) {
  .Nav-links a:not(:first-child) {
    display: none;
  }

  .expand .Nav-links a {
    display: flex !important;
    justify-content: start;
    height: 3.5rem;
    width: 100%
  }

  .Nav-links {
    flex-direction: column;
    align-items: start;
    width: 100%
  }

  #navbar.expand {
    height: unset;
  }

  #Menu-button {
    display: inline;
  }

  #overview li {
    width: 28ch;
    flex-grow: 1;
  }
}

h1 {
  font-family: 'Source Code Pro', monospace;
  font-size: 2.5rem;
  text-shadow: 0 0 12px #eeea;
}

.caret {
  animation: 1.5s blink step-end infinite;
  text-shadow: 0 0 12px #eeea;
  user-select: none;
}

@keyframes blink {

  from,
  to {
    visibility: hidden;
  }

  50% {
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: unset;
  }

  .caret {
    animation: none;
  }
}

h2 {
  font-family: 'Fira Code', monospace;
  font-size: 2rem;
  margin: 0.5em 0;
  display: inline-block;
}

h3 {
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem;
  margin: 1em 0;
}

p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.167em;
  line-height: 1.4em;
  margin-top: 1em;
}

section {
  scroll-margin-top: 3.5em;
  padding: 3em 1em;
  width: 100%;
  position: relative;
}

.angled-bg::before {
  content: "";
  background-color: #02304a;
  transform: skewY(-2deg);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  box-shadow: 0 0 12px #020507;
}

.tilt-right::before {
  transform: skewY(2deg);
}

.content {
  scroll-margin-top: 3.5em;
  width: 100%;
  max-width: 100ch;
  margin: auto;
  padding: 24px 0;
}

.content img {
  margin-bottom: 8px;
  max-width: 100%;
  height: auto;
}

#about {
  padding: 0 2rem;
  width: 100%;
  max-width: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.about-left {
  padding: 2em 2em 1em;
  max-width: 75ch;
}

.about-left h3 {
  font-size: 1.25em;
  margin: 32px 0;
  text-wrap-style: pretty;
}

.title-img {
  display: block;
  max-width: 35ch;
  min-width: 20ch;
  transform: translateY(10%);
  border: 2px solid #749bff;
  border-radius: 32px;
  box-shadow: 1px 2px 16px 1px #62a1feaa;
}

@media (max-width: 652px) {
  #about {
    flex-wrap: wrap;
    gap: 0;
  }

  .title-img {
    margin: 0;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transform: translateY(5%);
  }
}

#overview {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 24px;
  padding: 32px 0;
}

#overview a {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 32px;
}

#overview li {
  list-style: none;
  display: block;
  width: min(30ch, 100%);
}

.card {
  border: 2px solid #749bff;
  border-radius: 32px;
  box-shadow: 0 0 8px 1px #62a1feaa;
  background-color: #06121e;
  padding: 24px;
  flex-grow: 1;
  transition: box-shadow 0.1s ease-out;
}

.card:hover {
  box-shadow: 0 0 12px 3px #62a1feaa;
}

.card h3 {
  margin-top: 0;
}

h3 a {
  color: white;
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
}


figure {
  margin: 24px 0;
}

.github-link {
  margin-left: 1.5ch;
  font-size: 1.75em;
  display: inline-block;
  text-decoration: none;
  color: white;
}

.github-link:hover {
  color: #81c0ff;
}

a {
  color: #81c0ff;
}

#contact {
  margin-bottom: 3em;
}

#contact-info {
  list-style-type: none;
  margin: 18px 0 48px;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 32px;
}

#contact-info li {
  display: block;
}

#contact-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5em;
  padding: 0 2em 0 1.75em;
  border-radius: 32px;
  text-decoration: none;
  color: #eee;
  background-color: #06121e;
  border: 2px solid #749bff;
  box-shadow: 0 0 8px 1px #62a1feaa;
  transition: box-shadow 0.1s ease-out;
}

#contact-info a::before {
  font: var(--fa-font-brands);
  font-size: 1.35em;
  line-height: 1;
  padding-right: 1em;
  text-align: center;
}

#contact-info a:hover {
  box-shadow: 0 0 12px 3px #62a1feaa;
}

#contact-info a:focus-visible {
  outline: 3px solid #a9c2ff;
  outline-offset: 3px;
}

#email a::before {
  font: var(--fa-font-solid);
  content: "\f0e0";
}

#phone a::before {
  font: var(--fa-font-solid);
  content: "\f095";
}

#linkedin a::before {
  content: "\f08c";
}