@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/NotoSerif-VariableFont_wdth,wght.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Serif", serif;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3 {
  font-weight: 600;
}

body,
html {
  background-color: rgb(255, 251, 255);
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section:nth-child(2n + 1) {
  background-color: rgb(246, 246, 246);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.me-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 100px;
  min-height: 100vh;
  padding: 100px 10vw 100px 10vw;
  width: 100%;
}

.me-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}

.pfp {
  border-radius: 50%;
  box-shadow: 2px 2px 8px 1px rgba(0, 0, 0, 0.082);
  max-width: 400px;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.resume-btn {
  background-color: black;
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 4px;
  width: fit-content;
}

.social-links {
  display: flex;
  gap: 5px;
  align-items: center;
}

.social-links a {
  text-decoration: none;
}

.navbar {
  display: flex;
  position: fixed;
  font-size: 16px;
  background-color: rgb(39, 39, 39);
  width: 100%;
  justify-content: center;
  transition: background-color 0.5s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(18, 18, 18, 0.482);
}

.navbar.scrolled {
  background-color: rgba(39, 39, 39, 0.9);
}

.navbar.scrolled a {
  padding: 10px 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  -webkit-user-select: none;
  user-select: none;
  padding: 20px 20px;
  transition: padding 0.2s;
}

.navbar .nav-links a {
  display: block;
}

.navbar .nav-links {
  display: flex;
  height: fit-content;
}

@media (max-width: 600px) {
  .navbar {
    border-bottom: none !important;
    min-height: 80px;
  }
  .navbar .nav-links {
    display: flex;
    flex-direction: column;
  }
  .navbar .nav-links {
    display: none;
    background-color: rgb(39, 39, 39);
  }
  .navbar.open .nav-links {
    display: flex;
    position: fixed;
    top: 80px;
    width: 100%;
  }

  .navbar .nav-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
  }

  .navbar.scrolled .nav-links a {
    padding: 20px 20px;
    background-color: rgba(39, 39, 39, 0.9) !important;
  }

  .navbar.scrolled {
    background-color: rgb(39, 39, 39);
  }

  .skill {
    width: 100% !important;
  }
}

.nav-btn {
  display: none;
}

/* .navbar.mobile .nav-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
} */

.nav-btn span {
  width: 24px;
  height: 3px;
  background-color: white;
  display: block;
  border-radius: 100px;
  transition: transform 0.2s;
}

.navbar.open .nav-btn .nav-burger-middle {
  display: none;
}

.navbar.open .nav-btn .nav-burger-top {
  transform: rotate(45deg);
}

.navbar.open .nav-btn .nav-burger-bottom {
  transform: rotate(-45deg);
  margin-top: -8px;
}

.umbc-link {
  color: black;
}

.projects-section {
  padding: 80px 15vw;
  width: 100vw;
}

.projects-title {
  margin-bottom: 20px;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* display: grid; */
  /* grid-template-columns: repeat(2, 1fr); */
  /* gap: 1.5rem; */
}

.project {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-left {
  flex: 1 0 200px;
}

.project-left a {
  color: black;
}

.project img {
  border-radius: 4px;
  width: 300px;
  min-width: 300px;
  height: 250px;
  object-fit: cover; /* crops to fill, no stretching */
}

.project-link {
  color: rgb(43, 43, 43);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 10px;
  overflow: hidden;
}

.project-tech p {
  background-color: rgb(32, 32, 32);
  padding: 5px 10px;
  border-radius: 3px;
  color: white;
}

.skills-section {
  width: 100vw;
  padding: 80px 15vw;
}

.skills-title {
  margin-bottom: 40px;
}

.skills-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  /* display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem; */
}

.skill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.072);
  width: fit-content;
  border-radius: 4px;
  /* background-color: rgb(255, 255, 255); */
  color: rgb(79, 79, 79);
  font-size: 21px;
  text-align: center;
  border: 1px solid rgba(128, 128, 128, 0.498);
  width: 230px;
  height: 90px;
  background-color: rgb(255, 255, 255);
}

.skill img {
  height: 48px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  background-color: #232323;
  color: rgb(231, 231, 231);
  width: 100vw;
  font-size: 20px;
  padding: 0 30px;
}

.certs-section {
  padding: 80px 15vw;
  width: 100vw;
}

.certs-title {
  margin-bottom: 40px;
}

.certs {
  display: flex;
  gap: 20px;
}

.cert {
  display: flex;
  justify-content: space-between;
  background-color: rgb(44, 44, 44);
  color: white;
  width: 300px;
  padding: 20px 10px;
  border-radius: 4px;
}

.education-section {
  padding: 80px 15vw;
  width: 100vw;
}

.education-title {
  margin-bottom: 40px;
}

.education {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 18px;
  background-color: rgb(211, 211, 211);
}

.edu:first-child {
  background-color: rgb(245, 203, 78);
}

.edu-title {
  font-size: 20px;
  font-weight: bold;
}

.edu-subtitle {
  color: rgb(44, 44, 44);
}

.experiences-section {
  padding: 80px 15vw;
  width: 100vw;
}

.experiences-title {
  margin-bottom: 40px;
}

.experiences {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-radius: 4px;
  font-size: 18px;
  border: 1px solid rgb(211, 211, 211);
  background-color: rgb(245, 245, 245);
}

.exp-left {
  min-width: 0;
}

.exp-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.exp-title {
  font-size: 20px;
  font-weight: bold;
}

.exp-subtitle {
  color: rgb(44, 44, 44);
}

.exp-right {
  white-space: nowrap;
}

.contact {
  padding: 80px 15vw;
  width: 100vw;
}

.contact-title {
  margin-bottom: 40px;
}

.contact-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-top-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}

.contact-field input {
  height: 32px;
  padding: 20px 10px;
  font-size: 18px;
}

.contact-message {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
}

.contact-message textarea {
  resize: none;
  height: 300px;
  font-size: 18px;
  padding: 10px;
}

.contact-submit {
  height: 45px;
  font-size: 16px;
  width: 170px;
  border-radius: 100px;
  border: none;
  background-color: rgb(100, 83, 229);
  color: white;
  cursor: pointer;
}

.footer-text {
  white-space: nowrap;
}
