:root {
  --header-height: 7rem;
  --footer-height: 20rem;
  --background-color: rgb(15, 15, 15);
  --primary-color: rgb(18, 27, 34);
  --text-white: rgb(245, 245, 245);
  --link-color: rgb(68, 147, 248);
  --link-bg-color: rgb(65, 85, 105);
}

* {
  padding: 0px;
  margin: 0px;
  font-family: "Lato", serif;
}

body {
  background-color: var(--background-color);
}

header {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  flex: 0 0 var(--header-height);
  flex-direction: column;
  max-height: var(--header-height);
  align-items: center;
  justify-content: center;
}

footer {
  position: relative;
  background-color: var(--background-color);
  min-height: var(--footer-height);
  flex: 0 1 auto;
}

footer p {
  position: absolute;
  bottom: 0px;
  width: 100%;
  color: gray;
  font-style: italic;
  font-weight: bold;
  text-align: center;
  padding-bottom: 1rem;
}

footer::after {
  background-color: var(--background-color);
  position: fixed;
  flex-shrink: 0;
  content: "";
  bottom: 0;
  width: 100%;
  height: 10rem;
  z-index: -1;
}

main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  background-color: var(--background-color);
}

.page-title {
  font-size: 2.5rem;
  padding: 0rem 0 0.5rem 0;
  color: var(--text-white);
  font-weight: 700;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
}

.button-link {
  display: inline-flex;
  height: 1.7rem;
  background-color: var(--link-bg-color);
  color: var(--link-color);
  align-items: center;
  padding: 0.05rem 0.3rem;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 0.15rem;
  font-weight: bold;
  transition: all 0.3s ease-out;
}

.button-link img {
  width: 2rem;
  height: auto;
}

.button-link:hover {
  transform: scale(1.05);
  background-color: var(--link-color);
  color: black;
}

.showcase-link {
  color: goldenrod;
}

.pre-content {
  background-color: var(--background-color);
  height: calc(1.7 * var(--header-height));
  width: 100%;
  position: relative;
  justify-content: center;
}

.pre-content-blur {
  width: 100%;
  height: calc(var(--header-height) - 1rem);
  position: sticky;
  top: 0;
  backdrop-filter: blur(4px);
}

.pre-content p {
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--text-white);
  position: absolute;
  text-align: center;
  padding: 0px 1rem;
  max-width: 52rem;
  min-width: 21rem;
  bottom: 0px;
  margin: 0 auto;
  left: 0;
  right: 0;
  animation: move-down 2s ease-in-out;
}

@keyframes move-down {
  0% {
    bottom: 13rem;
  }
  100% {
    bottom: 0px;
  }
}

@media (max-width: 768px) {
  .pre-content p {
    bottom: 0.5rem;
    font-weight: 400;
  }
}

.header-background-pushed {
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  opacity: 0.94;
  height: var(--header-height);
}

@media (max-width: 768px) {
  .header-background-pushed {
    opacity: 1;
  }
}

.page-section {
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
}

.container {
  color: var(--text-white);
  width: 60rem;
  min-width: 20rem;
  padding: 1rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.grid-box {
  background: var(--primary-color);
  padding: 1.2rem;
  border-radius: 0.5rem;
}

.img-container img {
  height: auto;
  border-radius: 0.7rem;
  box-shadow: 0 0 32px 8px black;
}

.grid-box p {
  letter-spacing: 0.03rem;
}

.paragraph {
  font-size: 1.05rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

ul.dashed-list {
  list-style-type: "- ";
  li {
    padding: 0.3rem 0px;
    font-size: 1.028rem;
    letter-spacing: 0.02rem;
  }
}

.date-range {
  color: gray;
  font-weight: bold;
  font-size: 1rem;
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.subsection-title {
  font-size: 1.6rem;
  color: var(--text-white);
}

.subsection-subtitle {
  font-style: italic;
  font-size: 1.1rem;
  color: cornflowerblue;
}

.img-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  image-rendering: smooth;
}

.img-container {
  display: flex;
  width: 42rem;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .img-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .img-notes {
    display: none;
  }
}

a.inline-link {
  color: cyan;
  font-weight: bold;
  text-underline-offset: 2px;
  transition: all 0.3s ease-out;
}

a.inline-link:hover {
  text-underline-offset: 4px;
}

.education {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  letter-spacing: 0.03rem;
}

@media (max-width: 768px) {
  .education {
    flex-direction: column;
    gap: 1rem;
  }
}

ul .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

ul .badges .badge {
  color: black;
  font-weight: bold;
  background: var(--link-color);
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
}
