/* Configurações Globais e Variáveis */
:root {
  --bg-main: #0B0F19;
  --bg-card: #1E2738;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --accent: #38BDF8; /* Azul neon moderno */
  --accent-hover: #7DD3FC;
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  padding-bottom: 80px;
}

/* Header & Menu */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.header a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.menu a:hover {
  color: var(--accent);
}

/* Títulos Seção */
.section-title {
  max-width: 1000px;
  margin: 60px auto 20px auto;
  padding: 0 20px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Container de Perfil */
.container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  align-items: center;
  background: var(--bg-card);
  margin: 120px auto 40px auto;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.pfp {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: -110px;
  border: 6px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.profile-name {
  font-size: 2rem;
  margin-top: 15px;
  font-weight: 700;
}

.profile-role {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.profile-bio {
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Links Globais / Botões */
.links-group {
  display: flex;
  gap: 16px;
}

.links-group a, .project-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.links-group a:hover, .project-links a:hover {
  color: var(--accent-hover);
}

/* Layout de Projetos */
.project-featured {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
}

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
}

/* Card de Projeto */
.card-projeto {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden; /* Garante que a imagem não saia das bordas arredondadas */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-projeto:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Cabeçalho do Card (Título + Ícones das Techs) */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.tech-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tech-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Imagens dos Projetos */
.project-img-wrapper {
  width: 100%;
  height: 200px; 
  overflow: hidden;
  background: #141b27;
}

.project-img-wrapper.featured {
  height: 600px;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: top center;
  align-self: center;
}

.project-thumb-python {
  width: 100%;
  height: 100%;
}

/* Corpo do Card */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1; /* Força os botões a ficarem alinhados embaixo */
}

.tech-text {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: auto; /* Empurra os links para o rodapé do card */
  padding-top: 15px;
  border-top: 1px solid #2A364F;
  font-size: 0.9rem;
  justify-content: space-around;
}

/* Botões CTA */
.links-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.btn-primary {
  background-color: var(--accent);
  color: #0B0F19 !important; /* Texto escuro no botão claro */
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700 !important;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #2A364F;
  color: var(--text-primary) !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #3B4B6E;
  color: var(--text-primary) !important;
}

/* Seção de Contato Final */
.container-contato {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.container-contato p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
}

.email-link {
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.email-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.footer-credits {
  margin-top: 60px;
  font-size: 0.85rem;
  color: #475569;
}

.profile-education {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: -5px;
  margin-bottom: 25px;
  background: rgba(56, 189, 248, 0.05); /* Fundo azul sutil */
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(56, 189, 248, 0.15);
}