html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
}

.font-mono, [class*="font-mono"] {
  font-family: 'JetBrains Mono', monospace;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

/* Links de navegação do header */
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: white;
}

.nav-link--active::after {
  width: 100%;
}

/* Animação do ícone hambúrguer quando o menu está aberto */
#btn-menu-mobile.menu-aberto .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#btn-menu-mobile.menu-aberto .hamburger-line:nth-child(2) {
  opacity: 0;
}
#btn-menu-mobile.menu-aberto .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
