:root {
  --special: #00aaff;
  --purplesub: #b069db;
  --purple: #3c0061;
  --primary: #2e2e2e;
  --primarysub: #3e3e3e;
  --secondary: #5a5a5a;
  --bg: #f2f2f4;
  --bgsub: #d5d5d5;
  --black: #000;
  --white: #fff;
  --hl: #569cd6;
  --hlsub: #dcdcaa;
}

@font-face {
  font-display: swap;
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 300;
  src: url("../assets/fonts/fira-code-v27-latin-300.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/fira-code-v27-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 500;
  src: url("../assets/fonts/fira-code-v27-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 700;
  src: url("../assets/fonts/fira-code-v27-latin-700.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/fira-sans-v18-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 400;
  src: url("../assets/fonts/fira-sans-v18-latin-italic.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  src: url("../assets/fonts/fira-sans-v18-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 500;
  src: url("../assets/fonts/fira-sans-v18-latin-500italic.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/special-elite-v20-latin-regular.woff2")
    format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
*:focus-visible {
  outline: 2px solid #115da9;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Fira Code", monospace;
  background-color: var(--bg);
  color: var(--primary);
  margin: auto;
}
#vw {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}
#skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  color: var(--black);
  z-index: 8;
}
#skip-link:focus {
  top: 0;
  left: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 0;
  position: relative;
}
.nav-logo {
  font-family: "Special Elite", papyrus;
  font-size: 3rem;
}
.nav-logo a {
  color: var(--secondary);
  transition: color 0.5s ease;
}

.nav-logo a:hover,
.nav-logo a:focus {
  color: var(--primary);
}

.nav-menu {
  margin-left: auto;
}
.nav-menu a {
  color: var(--secondary);
  display: inline-block;
  font-size: 2rem;
  padding: 0 8px;
  transition: color 0.5s ease;
  cursor: pointer;
}
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu button:hover,
.nav-menu button:focus {
  color: var(--primary);
}

.lang-switch {
  display: inline-block;
  font-size: 2rem;
  padding: 0 8px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  background-color: var(--primary);
  color: var(--bg);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.lang-switch:hover,
.lang-switch:focus {
  background-color: var(--bg);
  color: var(--primary);
}

.nav-ex {
  background-color: var(--primary);
}
.nav-ex button {
  background: none;
  font-size: 2rem;
  color: var(--bg);
  padding: 0 8px 4px;
  cursor: pointer;
  font-family: inherit;
}
#menu {
  display: none;
}

.the-title {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "Fira Sans", sans-serif;
  color: var(--secondary);
  margin-bottom: 2px;
}

.hero {
  margin: 16vh 0 0;
  display: flex;
  flex-direction: column;
}
.hero-header {
  display: flex;
  align-items: stretch;
}

.hero-picture {
  background-color: var(--black);
  display: grid;
  place-items: center;
  padding: 0.6rem;
}
.hero-picture img {
  padding: 0.4rem;
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

.hero-right {
  display: flex;
  background-color: var(--purple);
  padding: 2rem 1rem 1rem;
  flex: 1;
  color: var(--bgsub);
  text-align: left;
  flex-direction: column;
  justify-content: center;
}
.hero-right h1 {
  font-size: 1.4rem;
  font-weight: 300;
}
.hero-right h1 span {
  font-weight: 400;
  color: var(--bg);
  font-family: "Fira Sans", sans-serif;
  font-size: 3.4rem;
}
.hero-right h2 {
  font-weight: 700;
  font-size: 2rem;
  color: var(--purplesub);
  text-transform: uppercase;
}
hr {
  border: none;
  height: 4px;
  background-color: var(--bgsub);
  width: 50%;
  margin: 10vh auto;
}
.hero-right hr {
  height: 2px;
  background-color: var(--purplesub);
  width: 75%;
  min-width: 16rem;
  max-width: 80%;
  margin: 1vh 0;
}
.hero-right-links {
  display: flex;
  gap: 1rem;
}
.hero-right-link {
  display: flex;
  font-size: 2rem;
  aspect-ratio: 1/1;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  transition: color 0.5s ease, background-color 0.5s ease, border 0.5s ease;
}
#hrl-mail {
  background-color: var(--white);
  border: 4px solid var(--white);
  color: var(--black);
}
#hrl-mail:hover,
#hrl-mail:focus {
  background-color: var(--black);
  border-color: var(--white);
  color: var(--white);
}
#hrl-linkedin {
  background-color: #0077b5;
  border: 4px solid #0077b5;
  color: var(--white);
}
#hrl-linkedin:hover,
#hrl-linkedin:focus {
  background-color: var(--white);
  border-color: #0077b5;
  color: #0077b5;
}
#hrl-github {
  background-color: var(--black);
  border: 4px solid var(--black);
  color: var(--white);
}
#hrl-github:hover,
#hrl-github:focus {
  background-color: var(--white);
  color: var(--black);
}

.hero-content {
  display: flex;
  background-color: var(--primary);
  padding: 2rem 2rem;
  color: var(--bg);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 400;
}

.project-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-preview {
  display: flex;
  flex-direction: column;
  color: var(--bg);
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease;
}

.preview-main {
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  padding: 0.4rem 0.6rem;
  overflow: hidden;
  flex: 1;
}
.preview-main h3 {
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;
  font-size: 2rem;
}
.preview-main p {
  background-color: var(--primarysub);
  font-weight: 300;
  font-size: 1.2rem;
  flex: 1;
  padding: 0.4rem;
  margin: 0.4rem 0;
  align-items: center;
  gap: 0.3rem;
}
.inline-badge {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

.preview-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.5s ease;
}

.preview-image:hover {
  transform: scale(1.02);
}

.preview-wrapper {
  overflow: hidden;
}

.preview-footer {
  background-color: var(--purple);
  padding: 0 0 0 0.4rem;
  color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
}
.preview-footer time {
  flex: 1;
  font-size: 1rem;
}
.pftss {
  display: flex;
  gap: 1rem;
  margin: 0 1rem;
}
.pfts {
  display: flex;
  padding: 4px;
}
.pfts img {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.5s ease, filter 0.5s ease;
  object-fit: contain;
}
.pfts img:hover {
  transform: scale(1.2);
}
.preview-footer a {
  display: flex;
  background-color: var(--black);
  border: 2px solid var(--black);
  border-radius: 2px;
  color: var(--white);
  font-size: 2rem;
  aspect-ratio: 1/1;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.preview-footer a:hover {
  background-color: var(--white);
  color: var(--black);
}

.about-content {
  /* background-color: var(--primary); */
  /* padding: 0.2rem 0; */
  justify-content: center;
  align-items: center;
}
.about-content p {
  background-color: var(--bgsub);
  border: 2px solid var(--primary);
  border-radius: 2px;
  color: var(--primary);
  padding: 0.4rem;
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
}

.tl-left,
.tl-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0rem;
  z-index: 1;
}

.tl-left {
  justify-content: flex-end;
  text-align: center;
  margin: 0 2.4rem;
}
.tl-left h3 {
  background-color: var(--primary);
  color: var(--bg);
  justify-content: center;
  text-align: center;
  padding: 0 4px;
  font-weight: 400;
  font-size: 1rem;
}

.tl-middle {
  background-color: var(--primary);
  width: 4px;
  height: 100%;
  margin: 0 auto;
}

.tl-right {
  justify-content: flex-start;
  text-align: left;
  margin-left: -2.1rem;
}
.tl-icon {
  background-color: var(--bg);
  border-radius: 50%;
  padding: 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-right img {
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  transition: transform 0.5s ease;
}
#tlib {
  margin: 8px 0;
}
.tl-right img:hover {
  transform: scale(1.1);
}
.tl-right h4 {
  border-left: 2px solid var(--primarysub);
  padding-left: 6px;
  color: var(--primary);
  font-weight: 400;
  font-size: 1rem;
}

#quote {
  margin: 10vh 0;
  text-align: center;
  color: var(--secondary);
  font-weight: 700;
}

footer {
  display: flex;
  margin: 2rem 0;
  align-items: stretch;
}
.footer-left {
  background-color: var(--primary);
  display: flex;
  flex: 1;
  font-size: 1rem;
  color: var(--bg);
  padding: 0.8rem;
  align-items: center;
  /* gap: 8px; */
}
.footer-left span {
  display: inline-flex;
  justify-content: start;
  gap: 0;
  align-items: center;
}
.footer-right {
  border: 2px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.footer-link {
  display: flex;
  background-color: var(--purple);
  font-size: 2rem;
  color: var(--bg);
  padding: 0.4rem;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.footer-link:hover,
.footer-link:focus {
  background-color: var(--bg);
  color: var(--purple);
}

/* @media (max-width: 1366px) {} */
@media (max-width: 768px) {
  .nav-menu a,
  .nav-menu button {
    padding: 0;
  }

  .hero-header {
    flex-direction: column;
  }

  .hero-right {
    text-align: center;
    align-items: center;
  }
  .hero-right h1 {
    font-size: 1.2rem;
  }
  .hero-right h1 span {
    font-size: 2.6rem;
  }

  .hero-content p {
    font-size: 1.4rem;
  }

  .project-previews {
    grid-template-columns: 1fr;
  }

  .skills {
    padding: 1rem;
    margin: 0 0;
  }
}

@media (max-width: 450px) {
  #menu {
    display: inline-block;
  }
  .nav-menu {
    position: absolute;
    right: 0;
    top: 10vh;
    transform: translateX(200%);
    transition: transform 0.5s ease;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
}
