:root {
  --primary: #1f3c88;
  --secondary: #0b1f3a;
  --bg: linear-gradient(135deg, #0b1f3a, #1f3c88);
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e5e7eb;

  --linkedin: #0A66C2;
  --github: #181717;
  --pdf: #B91C1C;
  --lattes: #2E7D32;
  --email: #6B7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  position: relative;
  overflow: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.card {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid rgba(10,102,194,0.15);
}

h1 {
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  margin: 0;
}

.title {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--primary);
}

.bio {
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  text-align: justify;
  margin: 25px 0;
  color: var(--muted);
}

/* Scroll apenas nos links */
.links-wrapper {
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 6px;
}

.links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #f4f6f9;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  color: var(--text);
}

.links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Cores */
.linkedin { color: var(--linkedin); }
.linkedin:hover { background: var(--linkedin); }

.github { color: var(--github); }
.github:hover { background: var(--github); }

.pdf { color: var(--pdf); }
.pdf:hover { background: var(--pdf); }

.lattes { color: var(--lattes); }
.lattes:hover { background: var(--lattes); }

.email { color: var(--email); }
.email:hover { background: var(--email); }

footer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .card { padding: 30px 20px; }
  .profile-photo { width: 100px; height: 100px; }
  .links-wrapper { max-height: 45vh; }
}
