/* ===== RESET E VARIÁVEIS ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-family: 'Inter', sans-serif;
  --primary-color: #3b82f6;
  --background-light: #f8fafc;
  --background-dark: #0a0a0a;
  --card-dark: #171717;
  --github: #24292e;
  --linkedin: #0077b5;
  --instagram: #E1306C;
}

/* ===== BASE ===== */
body {
  font-family: var(--font-family);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITÁRIOS ===== */
.glass-card {
  background: rgba(23, 23, 23, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-gradient {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ===== GLOW EFFECTS ===== */
.glow-primary {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-primary:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

.glow-hover {
  transition: all 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* ===== BARRA DE PROGRESSO ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===== PARTÍCULAS ===== */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ===== Z-INDEX HIERARQUIA ===== */
main {
  position: relative;
  z-index: 10;
}

nav {
  z-index: 100 !important;
}

footer {
  position: relative;
  z-index: 10;
}

.card-3d,
.group {
  position: relative;
  z-index: 20;
}

section {
  position: relative;
  z-index: 10;
}

/* ===== SKIP TO CONTENT (Acessibilidade) ===== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 99999;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== FOCUS VISIBLE (Acessibilidade) ===== */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}
