@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body {
 height: 100%;
 margin: 0;
 padding: 0;
 font-family: 'Inter', sans-serif;
 background-color: #fdfdfd;
 color: #2c2c2c;
 font-size: 1.25rem;
 line-height: 1.75;
}

.bio-container {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 5rem;
 height: 40vh;
 padding: 2rem;
 box-sizing: border-box;
 flex-direction: row;
}

.bio-photo {
 width: 300px;
 height: 300px;
 border-radius: 8px;
 border: 2px solid #ddd;
 object-fit: cover;
 flex-shrink: 0;
}

.bio-text {
 max-width: 600px;
 text-align: left;
}

.page-title {
 text-align: center;
 font-size: 2.8rem;
 margin-top: 3rem;
 margin-bottom: 0.2rem;
 font-weight: 700;
}

.page-subtitle {
 text-align: center;
 font-size: 1.0rem;
 margin-bottom: 2.5rem;
 margin-top: 0.2rem;
 color: #555;
}

.bio-text h2 {
 text-align: center;
}

p {
 font-size: 1.0rem;
}

.social-links {
 display: flex;
 justify-content: center;
 gap: 4.5rem;
 margin-top: 2rem;
}

.social-links img {
 width: 40px;
 height: 40px;
 transition: transform 0.2s ease;
}

.social-links img:hover {
 transform: scale(1.15);
}

.education-container {
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
 margin-top: 2rem;
}

.education-item {
 display: flex;
 align-items: center;
 border-bottom: 1px solid #ddd;
 padding: 1rem 0;
}

.edu-logo {
 width: 100px;
 height: 100px;
 margin-right: 1rem;
 object-fit: contain;
}

.edu-left {
 flex: 1;
}

.edu-left h3 {
 margin: 0;
 font-size: 1.3rem;
}

.edu-left p {
 margin: 0.3rem 0 0;
 color: #555;
}

.edu-right {
 text-align: right;
 font-weight: bold;
 color: #444;
 white-space: nowrap;
 padding-left: 1rem;
}

.education-item h3 {
 margin-bottom: 0.5rem;
 font-size: 1.4rem;
}

.education-item p {
 font-size: 1.1rem;
 color: #444;
}

.experience-container {
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
 margin-top: 2rem;
}

.experience-item {
 display: flex;
 justify-content: space-between;
 border-bottom: 1px solid #ddd;
 padding: 1rem 0;
}

.exp-left {
 flex: 1;
 text-align: left;
}

.exp-left h3 {
 margin: 0;
 font-size: 1.3rem;
}

.exp-org {
 margin: 0.2rem 0;
 font-weight: 500;
 color: #444;
}

.exp-desc {
 font-size: 0.95rem;
 color: #555;
 margin-top: 0.5rem;
 line-height: 1.4;
 text-align: justify;
}

.exp-right {
 text-align: right;
 font-weight: bold;
 color: #444;
 white-space: nowrap;
 padding-left: 1rem;
}

.projects-grid {
 display: flex;
 flex-direction: column;
 gap: 2rem;
 align-items: center;
 margin-top: 2rem;
}

.project-card {
 display: flex;
 flex-direction: row;
 align-items: center;
 max-width: 1100px;
 width: 1100px;
 gap: 1.5rem;
 border-bottom: 1px solid #ccc;
 border-top: 1px solid #ccc;
 padding-bottom: 1rem;
 padding-top: 1rem;
}

.project-thumb {
 width: 225px;
 height: 150px;
 object-fit: cover;
 border-radius: 8px;
}

.project-info {
 flex: 1;
}

.github-icon {
 width: 28px;
 height: 28px;
 vertical-align: middle;
 margin-top: 0.5rem;
}

.article-title {
 line-height: 2;
}

.articles-grid {
 display: grid;
 grid-template-columns: repeat(2, 600px);
 gap: 2rem;
 margin-top: 2rem;
}

.article-card {
 background-color: #fdfdfd;
 padding: 1rem 1.25rem;
 border-left: 5px solid gray;
 border-radius: 10px;
 box-shadow: 0 2px 6px rgba(0,0,0,0.05);
 transition: box-shadow 0.2s;
}

.article-card:hover {
 box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.article-card a {
 display: inline-block;
 margin-top: 0.5rem;
 color: #4f46e5;
 font-weight: 500;
 text-decoration: none;
}

.article-card a:hover {
 text-decoration: underline;
}

/* --- Estilo do Botão de Download --- */

.btn-download {
  /* Layout e espaçamento */
  display: inline-block; /* Permite adicionar padding */
  padding: 12px 24px;
  margin-top: 1rem; /* Espaço acima do botão */

  /* Aparência */
  background-color: #2c2c2c; /* Usei esta cor que vi no seu .article-card a */
  color: #fdfdfd;           /* Texto branco */
  border-radius: 8px;
  text-decoration: none;     /* Remove o sublinhado do link */
  
  /* Tipografia */
  font-family: 'Inter', sans-serif; /* Mantém sua fonte padrão */
  font-weight: 600;
  font-size: 1.0rem;

  /* Efeitos */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-download:hover {
  transform: scale(1.05); /* Leve "salto" */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* --- Responsividade --- */

@media (max-width: 700px) {
  /* Reduz o tamanho da fonte base em telas pequenas */
 html, body {
    font-size: 1rem;
  }
  
  /* Seção Bio: empilha a foto e o texto */
 .bio-container {
  flex-direction: column;
  text-align: center;
  height: auto;
  padding: 3rem 1rem; /* Adiciona padding lateral */
    gap: 2rem; /* Reduz o espaçamento */
 }

 .bio-text {
  text-align: center;
    max-width: 100%; /* Permite que o texto ocupe a largura */
 }

  .bio-photo {
    width: 200px; /* Reduz a foto */
    height: 200px;
  }

  /* Títulos */
 .page-title {
  font-size: 2.2rem;
 }

  /* Links Sociais */
 .social-links {
  gap: 3rem;
 }
  
  /* Seção Educação: empilha os itens */
 .education-container {
  padding: 1rem;
 }

  .education-item {
    flex-direction: column; /* Empilha logo e texto */
    align-items: flex-start; /* Alinha tudo à esquerda */
    gap: 1rem;
  }
  
  .edu-logo {
    width: 80px;
    height: 80px;
    margin-right: 0;
  }

  .edu-right {
    text-align: left; /* Alinha data à esquerda */
    padding-left: 0;
    margin-top: 0.5rem;
    white-space: normal; /* Permite quebra de linha */
  }

  /* Seção Experiência: empilha os itens */
  .experience-container {
    padding: 0 1rem;
  }
  
  .experience-item {
    flex-direction: column; /* Empilha descrição e data */
    align-items: flex-start;
  }
  
  .exp-right {
    text-align: left; /* Alinha data à esquerda */
    padding-left: 0;
    margin-top: 0.5rem;
    white-space: normal; /* Permite quebra de linha */
  }
  
  /* Seção Projetos: empilha imagem e info */
  .projects-grid {
    padding: 0 1rem; /* Adiciona padding lateral */
  }
  
  .project-card {
    flex-direction: column; /* Empilha imagem e texto */
    width: 100%; /* Ocupa 100% da largura */
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
    box-sizing: border-box; /* Garante que o padding não estoure */
  }
  
  .project-thumb {
    width: 100%; /* Imagem ocupa toda a largura do card */
    height: auto; /* Altura automática para manter proporção */
  }
  
  /* Seção Artigos: muda grid para 1 coluna */
  .articles-grid {
    grid-template-columns: 1fr; /* Apenas 1 coluna */
    width: auto;
    padding: 0 1rem; /* Adiciona padding lateral */
    gap: 1.5rem;
  }
  
  .article-card {
    width: 100%;
    box-sizing: border-box;
  }
}