/* Skills Section */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  max-width: 405px;
}

.skills-item {
  max-width: 12rem;
  background-color: var(--color-taupe);
  padding: 1rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  text-align: center;
}

/* Loading Screen Animation */
.animation-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-taupe);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  animation: fadeOut 3s ease-in-out;
  transition-delay: 1.5s;
  margin: 0;
  padding: 0;
}

.animation-text {
  color: var(--color-primary-text);
  text-align: center;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: xx-large;
}

.animate-up {
  display: block;
  animation: slideUpDown 2.8s ease-in-out;
}

.animate-down {
  display: block;
  animation: slideDownUp 2.8s ease-in-out;
}

/* Keyframe Animations */
@keyframes slideUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes slideDownUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.project-content {
  text-align: center;
}

/* Project layout */
.project-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.project-image,
.project-layout > .project-content {
  flex: 1 1 0;
  min-width: 0;
}

.project-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #fff;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-layout > .project-content h3 {
  margin-inline: 0;
}

.project-layout .skills-grid {
  margin-inline: auto;
}

/* Links to the project's GitHub repository */
.repo-link {
  font-weight: bold;
}

/* Wide screens */
@media (min-width: 1111px) {
  .project:nth-child(even) .project-layout {
    flex-direction: row-reverse;
  }
}

/* Smaller screens */
@media (max-width: 1110px) {
  .project-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .project-image,
  .project-layout > .project-content {
    flex: none;
    width: 100%;
  }

  .project-image {
    max-width: 450px;
  }
}
