@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Moderustic:wght@300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

html {
  font-size: 18px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Moderustic", sans-serif;
  background-color: #010e19;
  color: #fff;
  display: flex;
  height: 100vh;
  opacity: 0;
  animation: fade-in 3s forwards;
}

@keyframes fade-in {
  100% {
    opacity: 1;
  }
}

#container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
}

.half {
  width: 50%;
  height: 100vh;
}

#left {
  padding: 3.75rem 5.625rem;
  box-sizing: border-box;
}

#left h1 {
  font-size: 3.125rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  color: #3b81f6;
}

#eee {
  margin-top: -1.5625rem;
  font-size: 1.25rem;
}

#fff {
  color: rgb(211, 211, 211);
  font-size: 1rem;
}

#country {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: #d4d4d4;
}

#country span {
  font-size: 1.25rem;
}

#footer {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  text-align: left;
  color: #d4d4d4;
}

#right {
  overflow-y: auto;
  padding: 3.75rem 5.625rem;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

#languages .grid {
  padding-top: 1.875rem;
  padding-bottom: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
  gap: 1.25rem;
}

#languages .language {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#languages .language img {
  height: 3.125rem;
  margin-bottom: 0.625rem;
}

#languages .language .name {
  font-size: 1rem;
  font-weight: 700;
}

#projects .item {
  padding: 0.9375rem;
  margin-bottom: 0.9375rem;
}

#projects .item img {
  width: 7.5rem;
  border-radius: 0.375rem;
  margin-right: 0.9375rem;
}

#projects .content {
  display: flex;
  flex-direction: column;
}

#projects .title {
  font-weight: 700;
  font-size: 1.125rem;
}

#projects .description {
  font-size: 0.875rem;
  color: #aaa;
  margin-top: 0.3125rem;
}

#certifications .item-hover-none {
  margin-top: 0.625rem;
  font-size: 1.125rem;
  padding: 0.75rem 0.5rem;
}

#timeline .item-hover-none {
  justify-content: space-evenly;
  padding: 1.875rem 2.5rem;
  position: relative;
}

#timeline .timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

#timeline .timeline-year {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

#timeline .timeline-school {
  font-size: 0.875rem;
  color: #aaa;
}

#timeline .item-hover-none::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0.125rem;
  background-color: #92b9fd;
  z-index: 2;
}

#timeline .timeline-item::before {
  content: "";
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translateX(-50%);
  width: 0.625rem;
  height: 0.625rem;
  background-color: #92b9fd;
  border-radius: 50%;
  z-index: 2;
}

#blog .item {
  padding: 0.9375rem;
  margin-bottom: 0.9375rem;
}

#blog .item img {
  width: 7.5rem;
  border-radius: 0.375rem;
  margin-right: 0.9375rem;
}

.blog-content {
  display: flex;
  flex-direction: column;
}

.blog-title {
  font-weight: 700;
  font-size: 1.125rem;
}

.blog-date {
  font-size: 0.875rem;
  color: #aaa;
  margin-top: 0.3125rem;
}

.blog-description {
  color: #e3e3e3;
  margin-top: 0.3125rem;
}

#socials {
  user-select: none;
}

#socials a {
  color: #fff;
  font-size: 2.375rem;
  display: inline-block;
  padding: 1.25rem 0.625rem;
  text-decoration: none;
  transition: all 1s ease-in-out;
}

#socials a:hover {
  color: #3b81f6;
  transition: color 0.1s ease-in-out;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  border-bottom: 0.125rem solid #3b81f6;
  padding-bottom: 0.3125rem;
}

.item {
  display: flex;
  align-items: center;
  transition: all 0.1s ease-in-out;
  background-color: #121b26;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-top: 0.625rem;
}

.item:hover {
  cursor: pointer;
  background-color: #1e2a38 !important;
}

.item-hover-none {
  display: flex;
  align-items: center;
  transition: all 0.1s ease-in-out;
  background-color: #121b26;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-top: 0.625rem;
}

.wave {
  animation: wave-anim 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-anim {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60%,
  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 50rem) {
  .half {
    width: 100%;
    height: auto;
  }

  #left {
    padding: 3.75rem 2.5rem;
  }

  #right {
    padding: 2.5rem;
    overflow: visible;
    height: auto;
  }

  #container {
    flex-direction: column;
  }

  #left h1 {
    font-size: 2.8125rem;
  }

  html {
    font-size: 16px;
  }
}

@media (max-width: 25rem) {
  #right {
    padding: 1.25rem;
    overflow: visible;
    height: auto;
  }
}
