/* ANIMATIONS */
.project-detail>* {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.8s ease forwards;
}

.project-header {
  animation-delay: 0.1s;
}

.project-badges {
  animation-delay: 0.2s;
}

.project-toc {
  animation-delay: 0.3s;
}

#about {
  animation-delay: 0.4s;
}

#installation {
  animation-delay: 0.5s;
}

#example-usage {
  animation-delay: 0.6s;
}

#methods {
  animation-delay: 0.7s;
}

#links {
  animation-delay: 0.8s;
}

/* Badge animations */
.project-badges img {
  display: inline-block;
  animation: badgeBounce 0.8s ease 0.3s forwards;
  opacity: 0;
  transform: scale(0.8);
}

.project-badges a:nth-child(1) img {
  animation-delay: 0.3s;
}

.project-badges a:nth-child(2) img {
  animation-delay: 0.4s;
}

.project-badges a:nth-child(3) img {
  animation-delay: 0.5s;
}

/* Link tags */
.links li a {
  opacity: 0;
  transform: scale(0.8);
  animation: evolveIn 0.5s ease forwards;
}

.links li:nth-child(1) a {
  animation-delay: 0.8s;
}

.links li:nth-child(2) a {
  animation-delay: 0.85s;
}

.links li:nth-child(3) a {
  animation-delay: 0.9s;
}

/* Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgeBounce {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }

  60% {
    transform: scale(1.1) translateY(5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes evolveIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  padding-bottom: 1.5em;
}

.code-block {
  background: var(--code);
  padding: 1.5em;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  overflow-x: auto;
  line-height: 1.4;
}

.install-command {
  padding: 0.25em 0.5em;
  display: inline-block;
  font-size: 1.1em;
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.method {
  padding: 1.5em 1em 0.5em 1em;
  border-radius: 6px;
  border-left: 3px solid var(--color-accent);
  border-right: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.method h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.1em;
}

.method code {
  padding: 0.5em;
  font-size: 0.9em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  list-style: none;
  padding: 0;
}

.links li a {
  margin: 0;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.links li a:hover {
  background: var(--tag-hover);
  color: white;
}