/* =========================================================
   Estilos base por página (antes em <style> dentro de cada HTML).
   O escopo usa :where(.page-*) para manter a mesma especificidade
   das regras originais; a ordem de carga é
   sentinel-ui.css → site.css → tailwind.css.
   ========================================================= */

/* ---------- Comum ---------- */
.grid-overlay {
  background-image: radial-gradient(#484847 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
}

:where(.page-education, .page-experience) .grid-overlay {
  background-image: radial-gradient(circle, #484847 1px, transparent 1px);
}

/* Ícone preenchido (antes: style="font-variation-settings: 'FILL' 1") */
.material-symbols-outlined.icon-fill { font-variation-settings: "FILL" 1; }

/* ---------- Ícones: peso por página ---------- */
:where(.page-home, .page-education) .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
:where(.page-projects) .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
:where(.page-experience) .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  font-size: 20px;
}

/* ---------- Corpo e títulos ---------- */
body:where(.page-home, .page-education, .page-projects) {
  font-family: "Inter", sans-serif;
  background-color: #0e0e0e;
  color: #ffffff;
}
body:where(.page-projects) { margin: 0; }

:where(.page-experience, .page-education) h1,
:where(.page-experience, .page-education) h2,
:where(.page-experience, .page-education) h3,
:where(.page-experience, .page-education) .headline {
  font-family: "Space Grotesk", sans-serif;
}
:where(.page-projects) .font-headline { font-family: "Space Grotesk", sans-serif; }

/* ---------- Início ---------- */
.yellow-glow { box-shadow: 0 0 30px rgba(255, 231, 146, 0.1); }

/* ---------- Projetos: ponto de status ---------- */
@keyframes status-pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 231, 146, 0.45); }
  50% { opacity: 0.85; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255, 231, 146, 0); }
}
:where(.page-projects) .status-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #ffe792;
  animation: status-pulse-soft 2.5s ease-in-out infinite;
}

/* ---------- Formação: carrossel de certificados ---------- */
.cert-carousel-clip {
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.cert-carousel-marquee { animation: cert-marquee-x 150s linear infinite; }
.cert-carousel-clip:hover .cert-carousel-marquee { animation-play-state: paused; }
@keyframes cert-marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  :where(.page-projects) .status-pulse-dot { animation: none; opacity: 1; transform: none; box-shadow: none; }
  .cert-carousel-marquee { animation: none; transform: none; }
}
