html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

.nav-active {
  color: #facc15 !important; /* amarelo Tailwind */
}
nav a {
  transition: color 0.3s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 3px;
  background: #f4c430;
  transition: 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= ANIMAÇÃO SHIMMER ================= */
.animated-gradient {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%; /* cobre toda a largura durante a animação */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(50%);
  }
}

/* ================= LINHA INFERIOR ================= */
.header-line {
  position: relative;
  width: 99vw; /* ocupa toda a largura da tela */
  height: 2px; /* linha fina e elegante */
  overflow: hidden;
  margin-bottom: -1px;
}

.header-line .base-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #facc15,
    #ef4444,
    #b91c1c
  ); /* amarelo -> vermelho */
}
.nav-item {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #facc15;
}

.animate-slideDown {
  animation: slideDown 0.3s ease forwards;
}

.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* FADE + SLIDE */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

/* ZOOM SUAVE BACKGROUND */
@keyframes zoomSlow {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.animate-zoom {
  animation: zoomSlow 6s ease-out forwards;
}

/* DELAYS */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-700 {
  animation-delay: 0.7s;
}
