@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  scroll-behavior: smooth;
  scroll-margin-top: 100px;
}

body {
  background: #faf9f7;
  padding-top: 100px;
}

h2 {
  font-size: 35px;
}

h3 {
  font-size: 25px;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 30px;
  position: fixed;
  top: 0;
  background-color: #faf9f7;
  width: 100%;
}

nav > ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav > ul > a {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

li {
  font-size: 20px;
}

#abstract {
  width: 70%;
  margin-inline: auto;
}

#abstract > h2 {
  margin-block: 20px;
}

p {
  text-align: justify;
  font-size: 20px;
}

#home {
  height: 500px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

#home > h1 {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 6px;
  font-size: 50px;
  text-align: center;
  width: 60%;
  margin-block: 45px;
}

#work {
  width: 70%;
  margin-inline: auto;
  margin-block: 40px;
}

#work > h2 {
  margin-block: 20px;
}

#work > ol {
  padding: 20px;
  list-style: upper-roman inside;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#work > ol > li::marker {
  font-weight: bold;
}

#work > ol > li {
  margin-block: 10px;
}

#contributors {
  width: 70%;
  margin-inline: auto;
  margin-block: 40px;
}

#contributors > h2 {
  text-align: center;
}

#images {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

#work > ul {
  margin-block: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-evenly;
  list-style-position: inside;
}

#work > ul > div > h3 {
  margin-block: 10px;
}

#images > img {
  width: 20%;
  height: auto;
  object-fit: contain;
}

#diagram {
  margin-block: 40px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

#diagram > div {
  width: 52%;
}

#diagram > img {
  width: 40%;
}

ul.metrics-list {
  list-style: disc inside;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
}

ul.metrics-list li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

ul.styled-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
}

ul.styled-list li {
  /* position: relative; */
  margin-bottom: 5px;
}

ul.styled-list li::before {
  content: "";
  /* position: absolute; */
  left: 0;
  top: 0;
  font-size: 22px;
  line-height: 1;
  color: #000;
}

.image-title {
  margin-top: 10px;
  font-size: 18px;
  text-align: center;
  color: #333;
}

.git-btn {
  display: inline-flex;
  align-items: center;
  background-color: #000000;
  color: white;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.git-btn img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.git-btn:hover {
  background-color: white;
  color: black;
}

.ppr-btn {
  display: inline-flex;
  align-items: center;
  background-color: #000000;
  color: white;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.ppr-btn img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.ppr-btn:hover {
  background-color: white;
  color: black;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 28px;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.ppr-btn:hover .material-symbols-outlined {
  color: black;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.logo {
  height: 40px;
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: black;
  border-radius: 2px;
  transition: 0.3s ease;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.classification-list {
  list-style-type: decimal;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: #333;
  margin-top: 10px;
  margin-bottom: 30px;
  max-width: 1000px;
}

.classification-list li {
  margin-bottom: 0px;
}

@media only screen and (max-width: 770px) {
  nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  #home > h1 {
    font-size: 25px;
  }

  #diagram > div {
    width: 100%;
  }

  #diagram > img {
    width: 100%;
  }
}

@media screen and (max-width: 770px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  .hamburger {
    display: flex;
  }

  nav > ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
  }

  nav.nav-open > ul {
    display: flex;
  }

  nav > ul > a,
  li {
    font-size: 18px;
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
  }

  .git-btn,
  .ppr-btn {
    padding: 12px 18px;
    font-size: 16px;
  }

  .git-btn img,
  .ppr-btn img {
    width: 22px;
    height: 22px;
  }

  .material-symbols-outlined {
    font-size: 24px;
  }

  #diagram > div,
  #diagram > img {
    width: 100%;
  }

  #images > img {
    width: 40%;
  }

  #home > h1 {
    font-size: 24px;
    width: 90%;
  }
}

@media screen and (max-width: 600px) {
  .image-container {
    max-width: 90%;
  }

  .image-title {
    font-size: 14px;
  }

  .classification-list {
    font-size: 16px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 22px;
  }
}
