@font-face {
  font-family: "PlayfairDisplay";
  src: url("../assets/font/PlayfairDisplay.ttf"), url("../assets/font/PlayfairDisplay-Italic.ttf");
}
@font-face {
  font-family: "Lora";
  src: url("../assets/font/Lora.ttf"), url("../assets/font/Lora-Italic.ttf");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0rem 2.5rem;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #000000;
}

li {
  list-style-type: none;
}

h1,
h2,
h3 {
  font-family: "PlayfairDisplay", sans-serif;
}

h2 {
  text-align: center;
  margin-bottom: 3.125rem;
  font-size: 2.25rem;
  color: #e0dada;
  text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);
}

body {
  font-family: "Lora", sans-serif;
  font-size: 1.125rem;
  background: linear-gradient(rgba(255, 255, 255, 0.527), rgba(255, 255, 255, 0.411)), url(../assets/img/main/main9.jpg) no-repeat center center/cover;
}
@media (max-width: 680px) {
  body {
    font-size: 0.875rem;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 0.75rem;
  }
}
body .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.822);
}
body .header .container .nav .list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.625rem 0rem;
}
body .header .container .nav .list li .link {
  display: inline-block;
  font-family: "PlayfairDisplay", sans-serif;
  font-weight: 600;
  color: rgba(5, 20, 39, 0.9725490196);
  color: rgba(82, 80, 80, 0.9529411765);
  transition: all 0.5s ease;
}
body .header .container .nav .list li .link:hover {
  transform: scale(1.5);
  color: rgba(0, 4, 10, 0.9725490196);
  filter: drop-shadow(5px 5px 3px rgba(3, 3, 32, 0.7));
}
body .header .container .nav .list li .nav__transl {
  appearance: none;
  border: none;
  background-color: transparent;
  font-size: 1.125rem;
  font-family: "Lora", sans-serif;
  cursor: pointer;
  transition: all 0.5s ease;
  color: rgba(82, 80, 80, 0.9529411765);
}
@media (max-width: 680px) {
  body .header .container .nav .list li .nav__transl {
    font-size: 0.875rem;
  }
}
@media (max-width: 560px) {
  body .header .container .nav .list li .nav__transl {
    font-size: 0.75rem;
  }
}
body .header .container .nav .list li .nav__transl:focus {
  outline: none;
  border-color: transparent;
}
body .header .container .nav .list li .nav__transl:hover {
  color: rgba(0, 4, 10, 0.9725490196);
  filter: drop-shadow(5px 5px 3px rgba(3, 3, 32, 0.7));
}
body .header .container .nav .list li .nav__transl option {
  font-size: 1.125rem;
  font-family: "Lora", sans-serif;
}
@media (max-width: 680px) {
  body .header .container .nav .list li .nav__transl option {
    font-size: 0.875rem;
  }
}
@media (max-width: 560px) {
  body .header .container .nav .list li .nav__transl option {
    font-size: 0.75rem;
  }
}
body .main .container .hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 6.25rem 0rem;
}
@media (max-width: 800px) {
  body .main .container .hero {
    flex-direction: column;
    flex-direction: column-reverse;
  }
}
body .main .container .hero .hero__text h1 {
  color: rgba(5, 20, 39, 0.9725490196);
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
}
body .main .container .hero .hero__text p {
  color: rgba(5, 20, 39, 0.9725490196);
  font-size: 1.25rem;
}
body .main .container .hero .hero__img img {
  border-radius: 11.25rem;
  max-width: 25rem;
}
@media (max-width: 740px) {
  body .main .container .hero .hero__img img {
    margin-bottom: 3rem;
  }
}
@media (max-width: 450px) {
  body .main .container .hero .hero__img img {
    max-width: 20rem;
  }
}
body .main .container .about-me {
  scroll-margin-top: 3.125rem;
  margin-bottom: 6.25rem;
}
@media (max-width: 750px) {
  body .main .container .about-me {
    margin-bottom: 5rem;
  }
}
@media (max-width: 540px) {
  body .main .container .about-me {
    margin-bottom: 3.125rem;
  }
}
@media (max-width: 640px) {
  body .main .container .about-me .about-me__title {
    margin-bottom: 0;
  }
}
body .main .container .about-me .about-me__box {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row-reverse;
  overflow: hidden;
}
body .main .container .about-me .about-me__box .about-me__text {
  position: relative;
  z-index: 100;
}
@media (max-width: 680px) {
  body .main .container .about-me .about-me__box .about-me__text {
    position: absolute;
  }
}
body .main .container .about-me .about-me__box .about-me__text p {
  text-align: justify;
  text-indent: 10px;
  margin-bottom: 0.9375rem;
  font-size: 1.5625rem;
  line-height: 1.5;
  color: #e0dada;
  text-shadow: 6px 4px 4px rgba(0, 0, 0, 0.5);
}
body .main .container .about-me .about-me__box .about-me-img {
  flex: 0 0 50%;
}
body .main .container .about-me .about-me__box .about-me-img .about-me__photo {
  max-width: 15.625rem;
  object-fit: cover;
  transition: all 0.5 ease;
}
body .main .container .about-me .about-me__box .about-me-img .about-me__photo:nth-of-type(1) {
  position: relative;
  transform: rotate(25deg) translate(1.875rem, 0rem);
  z-index: 2;
}
@media (max-width: 680px) {
  body .main .container .about-me .about-me__box .about-me-img .about-me__photo:nth-of-type(1) {
    transform: rotate(25deg) translate(0rem, 7rem);
  }
}
body .main .container .about-me .about-me__box .about-me-img .about-me__photo:nth-of-type(2) {
  position: relative;
  z-index: 5;
  transform: rotate(-25deg) translate(-3.125rem, 3.125rem);
}
body .main .container .about-me .about-me__box .about-me-img .about-me__photo:nth-of-type(3) {
  position: relative;
  transform: rotate(25deg) translate(80px, -80px);
}
body .main .container .about-me .about-me__box .about-me-img .about-me__photo:nth-of-type(4) {
  position: relative;
  transform: rotate(-25deg) translate(120px, -40px);
}
body .main .container .about-me .about-me__box .about-me-img .about-me__photo:hover {
  cursor: pointer;
  z-index: 100;
}
body .main .container .skills {
  scroll-margin-top: 3.125rem;
  margin-bottom: 6.25rem;
}
@media (max-width: 750px) {
  body .main .container .skills {
    margin-bottom: 5rem;
  }
}
@media (max-width: 540px) {
  body .main .container .skills {
    margin-bottom: 3.125rem;
  }
}
body .main .container .skills .skills__box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid: 0.625rem;
}
@media (max-width: 600px) {
  body .main .container .skills .skills__box {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  body .main .container .skills .skills__box {
    grid-template-columns: repeat(2, 1fr);
  }
}
body .main .container .skills .skills__box .skills__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0px;
}
body .main .container .skills .skills__box .skills__item .skills__img {
  margin-bottom: 1.5625rem;
  max-width: 100px;
}
body .main .container .code {
  scroll-margin-top: 3.125rem;
  margin-bottom: 6.25rem;
}
@media (max-width: 750px) {
  body .main .container .code {
    margin-bottom: 5rem;
  }
}
@media (max-width: 540px) {
  body .main .container .code {
    margin-bottom: 3.125rem;
  }
}
body .main .container .code .code__box {
  padding: 6.25rem 0rem;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
}
body .main .container .code .code__box .code__video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  object-fit: cover;
  opacity: 0.5;
  width: 100%;
  height: 100%;
}
body .main .container .code .code__box .code__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .main .container .code .code__box .code__precode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body .main .container .code .code__box .code__precode .code__my-code {
  position: relative;
  z-index: 5;
  font-size: 1.5rem;
  color: #ffffff;
}
@media (max-width: 850px) {
  body .main .container .code .code__box .code__precode .code__my-code {
    font-size: 1rem;
  }
}
@media (max-width: 590px) {
  body .main .container .code .code__box .code__precode .code__my-code {
    font-size: 0.8rem;
  }
}
@media (max-width: 590px) {
  body .main .container .code .code__box .code__precode .code__my-code {
    font-size: 0.7rem;
  }
}
@media (max-width: 435px) {
  body .main .container .code .code__box .code__precode .code__my-code {
    font-size: 0.6rem;
  }
}
body .main .container .projects {
  scroll-margin-top: 3.125rem;
  margin-bottom: 6.25rem;
}
@media (max-width: 750px) {
  body .main .container .projects {
    margin-bottom: 5rem;
  }
}
@media (max-width: 540px) {
  body .main .container .projects {
    margin-bottom: 3.125rem;
  }
}
body .main .container .projects .projects__box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}
@media (max-width: 850px) {
  body .main .container .projects .projects__box {
    grid-template-columns: minmax(12.5rem, 1fr);
  }
}
body .main .container .projects .projects__box .projects__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0.625rem;
  background-color: rgba(193, 209, 231, 0.768627451);
  box-shadow: 0px 2px 4px black;
}
body .main .container .projects .projects__box .projects__item:has(.projects__link:hover) .projects__img {
  filter: brightness(1.2);
}
body .main .container .projects .projects__box .projects__item .projects__img {
  width: 100%;
  height: 80%;
  object-fit: fill;
  transition: all 0.5s ease;
}
body .main .container .projects .projects__box .projects__item .projects__subtitle {
  color: rgba(7, 31, 59, 0.9725490196);
  text-align: center;
}
body .main .container .projects .projects__box .projects__item .projects__link {
  display: block;
  max-width: 9.375rem;
  height: auto;
  align-self: flex-end;
  padding: 0.625rem 1.25rem;
  background-color: rgba(23, 72, 131, 0.9725490196);
  text-align: center;
  border-radius: 25px;
  color: rgba(245, 239, 239, 0.8352941176);
  transition: all 0.5s ease;
  box-shadow: 0px 2px 3px black;
}
body .main .container .projects .projects__box .projects__item .projects__link:hover {
  background-color: rgba(110, 151, 201, 0.9725490196);
}
body .main .container .education {
  margin-bottom: 6.25rem;
  scroll-margin-top: 3.125rem;
}
@media (max-width: 750px) {
  body .main .container .education {
    margin-bottom: 5rem;
  }
}
@media (max-width: 540px) {
  body .main .container .education {
    margin-bottom: 3.125rem;
  }
}
body .main .container .education .education__table {
  width: 100%;
  margin-bottom: 1.875rem;
}
body .main .container .education .education__table thead {
  text-align: center;
}
body .main .container .education .education__table thead tr {
  background-color: rgba(141, 166, 194, 0.4941176471);
}
body .main .container .education .education__table thead tr th {
  font-size: 2rem;
  color: rgba(41, 71, 109, 0.9725490196);
  padding: 10px 0px;
}
body .main .container .education .education__table tbody tr {
  background-color: rgba(141, 166, 194, 0.4941176471);
}
body .main .container .education .education__table tbody tr td {
  padding: 10px 15px;
  color: #121c2b;
  font-size: 20px;
}
body .main .container .education .education__table tbody .education__year {
  text-align: center;
}
body .footer .container .contact {
  scroll-margin-top: 3.125rem;
  margin-bottom: 6.25rem;
}
@media (max-width: 750px) {
  body .footer .container .contact {
    margin-bottom: 5rem;
  }
}
@media (max-width: 540px) {
  body .footer .container .contact {
    margin-bottom: 3.125rem;
  }
}
body .footer .container .contact .contact__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 450px) {
  body .footer .container .contact .contact__list {
    grid-template-columns: repeat(1, 1fr);
  }
}
body .footer .container .contact .contact__list .contact__item {
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
}
body .footer .container .contact .contact__list .contact__item span {
  margin-top: 1.25rem;
  display: block;
  font-size: 1.5rem;
}
body .footer .container .contact .contact__list > li:nth-child(-n+2) {
  justify-self: center;
  text-align: center;
  margin-bottom: 3.125rem;
}
body .footer .container .contact .contact__list > li:nth-child(3) {
  justify-self: start;
}
@media (max-width: 450px) {
  body .footer .container .contact .contact__list > li:nth-child(3) {
    justify-self: center;
  }
}
body .footer .container .contact .contact__list > li:nth-child(3) img {
  width: 12.5rem;
}
body .footer .container .contact .contact__list > li:nth-child(4) {
  justify-self: end;
}
@media (max-width: 450px) {
  body .footer .container .contact .contact__list > li:nth-child(4) {
    justify-self: center;
  }
}
body .footer .container .contact .contact__list > li:nth-child(-n+3):hover {
  transform: scale(1.3);
  filter: drop-shadow(5px 5px 3px rgba(3, 3, 32, 0.7));
}