/* =============================================
   Estilos personalizados — Versão Tailwind
   GAC116 - Programação Web — UFLA
   Autor: Henrique César Silva Soares
   ============================================= */

/* Suaviza a rolagem da página */
html {
  scroll-behavior: smooth;
}

/* Compensa a navbar fixa ao navegar por âncoras */
section,
#header {
  scroll-margin-top: 80px;
}

/* ─── FOTO DE PERFIL ─── */
.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 9999px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
  animation: profile-pulse 3s ease-in-out infinite;
}

@keyframes profile-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25),
                0 0 0 14px rgba(139, 92, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.35),
                0 0 0 20px rgba(139, 92, 246, 0.18);
  }
}

/* ─── TRANSIÇÃO DE TEMA SUAVE ─── */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ─── LINK ATIVO NA NAV ─── */
nav a.nav-active {
  color: #6366f1;
  font-weight: 700;
}

/* ─── SCROLL REVEAL ─── */
/* Usa apenas opacity para não conflitar com o hover:-translate-y-1 do Tailwind */
.reveal {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.reveal.visible {
  opacity: 1;
}
