@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-VariableFont.ttf");
  font-style: normal;
  font-weight: normal;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: 0;
}

html {
  font-size: 15px;
  font-family: "Roboto";
  color: #fff;
  background: #101329;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  line-height: 1.5;
}

img {
  object-fit: cover;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

.page {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  background: #111536;
}

section {
  padding: 55px;
}

section .heading {
  font-size: 1.7rem;
  margin-bottom: 15px;
}

.introduction {
  background: #171d4d;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(365px, 100%), 1fr));
}

.introduction p {
  font-size: min(3rem, 8vw);
}

.introduction i {
  display: block;
  margin-block: 15px;
  color: #cacaca;
}

.introduction a,
.contact .contact-link {
  display: inline-block;
  padding: 12px 14px;
  background: #322fb8;
  border-radius: 12px;
}

.introduction .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.introduction .avatar .image-box {
  border-radius: calc(infinity * 1px);
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #3937aa;
  position: relative;
}

.introduction .avatar .image-box img {
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  border-radius: inherit;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(365px, 100%), 1fr));
  gap: 25px;
}

.details p {
  hyphens: auto;
  overflow: hidden;
  max-width: min(100%, 400px);
}

.details .info-item,
.contact .contact-item {
  margin: 15px;
  display: flex;
  gap: 12px;
}

.skills > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skills .box {
  display: flex;
  padding: 15px 25px;
  align-items: center;
  gap: 10px;
  background: #1d2353;
  border-radius: 12px;
}

.honors .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.awards-list > li {
  background: #1d2353;
  border-radius: 8px;
  display: block;
  padding: 15px;
  border-left: 5px solid transparent;
  animation: awards-list-activation 9s linear infinite;
  animation-delay: calc((sibling-index() - 1) * 3s);
}

@keyframes awards-list-activation {
  0% {
    border-left-color: transparent;
  }
  5% {
    border-left: 5px solid rgb(119, 0, 255);
  }
  30% {
    border-left: 5px solid rgb(119, 0, 255);
  }
  33% {
    border-left-color: transparent;
  }
  100% {
    border-left-color: transparent;
  }
}

@keyframes awards-list-image-activation {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.awards-list .title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 15px;
}

.awards-list .result {
  color: #ccc;
  font-size: 0.9rem;
}

.awards-details {
  position: relative;
  margin: 5px 20px;
  border-radius: 12px;
  min-height: 280px;
}

.awards-details img {
  position: absolute;
  inset: 10px;
  width: 100%;
  display: block;
  top: 0;
  left: 0;
  animation: awards-list-image-activation 9s linear infinite;
  animation-delay: calc((sibling-index() - 1) * 3s);
  opacity: 0;
  border-radius: inherit;
  height: 100%;
}

.projects .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 25px;
}

.projects .box {
  width: 200px;
  overflow: hidden;
  border-radius: 16px;
  background: #1a2049;
}

.projects .box .preview {
  aspect-ratio: 16 / 9;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.projects .box .preview img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  display: block;
}

.projects .box .info {
  padding: 12px;
}

.projects .box .name {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.projects .box .tag {
  display: inline-block;
  padding: 5px;
  font-size: 0.8rem;
  color: #fff;
  background: #000;
  border-radius: 4px;
  margin-left: 4px;
}

.contact {
  background: #131a42;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 420px) {
  section {
    padding-block: 25px;
  }

  section .heading,
  .introduction .info {
    text-align: center;
    margin-block: 25px;
  }

  .skills > div {
    gap: 0;
    justify-content: center;
  }

  .skills .box {
    scale: 0.8;
  }

  .contact {
    display: block;
    text-align: center;
  }

  .contact .contact-item {
    justify-content: center;
  }
}
