/* =====================================================
   Fogaça Tráfego — Estilos principais
   ===================================================== */

/* ---------- Variáveis de cor ---------- */
:root {
  --purple-primary: 139, 92, 246;
  --purple-light: 167, 139, 250;
  --purple-glow: rgba(139, 92, 246, 0.35);
}

/* ---------- Base ---------- */
html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark {
  background: #000000;
  color: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  transition: background-color 0.2s ease;
}

html.dark body {
  background: #000000;
}

/* ---------- Tipografia ---------- */
.font-display {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- Background utilitários ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

html.dark .bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* ---------- Scrollbar dos blocos de código ---------- */
.code-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.code-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.code-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

/* ---------- Seleção de texto ---------- */
::selection {
  background: rgba(139, 92, 246, 0.25);
  color: #0a0a0a;
}
html.dark ::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* ---------- Animações ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 40s linear infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.animate-pulse {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar com scroll ---------- */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.dark .nav-scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
}
