@font-face {
  font-family: "CenturyGothic";
  src: url("../fonts/centurygothic.ttf");
}

@font-face {
  font-family: "Airstrike";
  src: url("../fonts/airstrike.ttf");
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

.layout {
  font-size: 1.5rem;
  font-family: "CenturyGothic";
  background-color: #fbfbfb;
  color: #000000;
}

.nav__layout {
  width: 100%;
  height: 7rem;
  border-bottom: solid 1px #dddddd;
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
}

.nav__content {
  max-width: 120rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  margin: 0 auto;
}

.nav__logo {
  font-family: "Airstrike";
  font-size: 5rem;
}

.nav__menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  text-decoration: none;
  color: #000000;
}

.main__layout {
  width: 100%;
  min-height: calc(100dvh - 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.main__title {
  color: #000000;
  font-size: 5rem;
  font-weight: 100;
  letter-spacing: 0.5rem;
}

.main__subtitle {
  color: #999999;
  font-weight: 100;
  letter-spacing: 1rem;
  color: #000000;
}

.ball {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #003afa;
  border-radius: 100%;
  top: 0%;
  left: calc(0% - 100px);
  filter: blur(120px);
  animation: ballMovement 20s linear infinite alternate;
  z-index: -1;
}

@keyframes ballMovement {
  0% {
    transform: translateX(0%) translateY(0%);
  }
  25% {
    transform: translateX(200%) translateY(150%);
  }
  50% {
    transform: translateX(100%) translateY(50%);
  }
  75% {
    transform: translateX(200%) translateY(150%);
  }
  100% {
    transform: translateX(200%) translateY(100%);
  }
}

.ball2 {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #8e00fa;
  border-radius: 100%;
  top: 0%;
  right: calc(0% - 100px);
  filter: blur(120px);
  animation: ballMovement2 20s linear infinite alternate;
  z-index: -1;
}

@keyframes ballMovement2 {
  0% {
    transform: translateX(0%) translateY(0%);
  }
  25% {
    transform: translateX(-200%) translateY(150%);
  }
  50% {
    transform: translateX(-100%) translateY(50%);
  }
  75% {
    transform: translateX(-200%) translateY(150%);
  }
  100% {
    transform: translateX(-200%) translateY(100%);
  }
}

.proyectos__layout {
  max-width: 120rem;
  margin: 0 auto;
  padding: 1rem;
  font-size: 2rem;
  font-weight: 100;
}

.proyectos__title {
  margin-bottom: 4rem;
  font-size: 4rem;
}

.projectos__container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  place-items: center;
}

@media (max-width: 950px) {
  .projectos__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .projectos__container {
    grid-template-columns: 1fr;
  }
}

.proyecto {
  display: flex;
  flex-direction: column;
}

.proyecto__title {
  margin-bottom: 1rem;
}

.proyecto__img-container {
  width: 30rem;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
}

.proyecto__img {
  width: 100%;
  height: 100%;
}

.proyecto__link {
  margin-top: 1rem;
  width: 30rem;
  text-align: center;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border: solid 1px #dddddd;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  transition: background-color ease-in-out 250ms;
}

.proyecto__link:hover {
  background-color: #eeeeee;
}

.footer__layout {
  margin-top: 2rem;
  width: 100%;
  height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-top: solid 1px #dddddd;
}
