/* =========================================
   1. IMPORTAÇÃO DE FONTE E VARIÁVEIS
   ========================================= */
/* Fonte moderna "Inter" - Padrão em tecnologia */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #0077b5;    /* Azul LinkedIn */
  --text-dark: #111827;        /* Preto suave */
  --text-gray: #4b5563;        /* Cinza para textos */
  --bg-sidebar: #f8fafc;       /* Fundo da barra lateral */
  --border-color: #e5e7eb;     /* Cor das bordas */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
}

/* =========================================
   2. ESTRUTURA (LAYOUT)
   ========================================= */
.container {
  display: flex;
  min-height: 100vh;
}

/* =========================================
   3. SIDEBAR (LADO ESQUERDO)
   ========================================= */
.sidebar {
  width: 30%;
  background-color: var(--bg-sidebar);
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid var(--border-color);

  /* Sidebar Fixa (Sticky) */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Foto */
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Nome */
.sidebar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 15px 0 5px;
  color: var(--text-dark);
}

/* Dados Acadêmicos */
.academic {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin: 20px 0 30px;
  text-align: left;
  display: inline-block;
}

.academic .focus {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-weight: 600;
  color: var(--primary-color);
}

/* Ícones Sociais (Botões) */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  color: #333;
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

/* =========================================
   4. CONTEÚDO (LADO DIREITO - MARKDOWN PADRÃO)
   ========================================= */
.content {
  width: 70%;
  padding: 60px 80px;
  max-width: 1000px;
}

/* Títulos */
.content h1, .content h2, .content h3 {
  color: var(--text-dark);
  font-weight: 700;
}

/* Título de seções (Ex: Projetos, Tecnologias) */
.content h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  border-bottom: 2px solid #f3f4f6; /* Linha sutil para separar seções */
  padding-bottom: 10px;
  font-size: 1.8rem;
}

/* Título dos Projetos específicos */
.content h3 {
  margin-top: 1.5em;
  font-size: 1.3rem;
  color: #1f2937;
}

/* Parágrafos */
.content p {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 1.2em;
}

/* Listas (Suas Tecnologias) */
.content ul {
  padding-left: 20px;
  margin-bottom: 1.5em;
}

.content li {
  margin-bottom: 8px; /* Espaço entre itens da lista para não ficar grudado */
  color: var(--text-gray);
}

/* Links no texto */
.content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.content a:hover {
  text-decoration: underline;
}

/* Código em linha (caso use `assim`) */
code {
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #c7254e;
}

/* =========================================
   5. RESPONSIVIDADE (CELULAR)
   ========================================= */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 20px;
  }

  .content {
    width: 100%;
    padding: 40px 20px;
  }
  
  .content h2 {
    margin-top: 1.5em;
    font-size: 1.5rem;
  }
}

/* =========================================
   8. MODAL DE CONQUISTAS (Completo)
   ========================================= */

/* --- ESTRUTURA DA JANELA (OVERLAY & CONTEÚDO) --- */

/* Fundo escuro atrás do modal */
.modal-overlay {
  display: none; /* Começa invisível */
  position: fixed;
  z-index: 1000; /* Fica em cima de tudo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Preto com transparência */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px); /* Efeito de desfoque no fundo */
}

/* A caixa branca do conteúdo */
.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 900px; /* Largura máxima boa para desktop */
  max-height: 90vh; /* Altura máxima de 90% da tela */
  overflow-y: auto; /* Permite rolar se tiver muita foto */
  padding: 30px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s ease;
}

/* Animação de entrada suave */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botão de fechar (X) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10; /* Garante que fique clicável */
}

.close-btn:hover {
  color: #000;
}

/* Título dentro do modal */
.modal-content h2 {
  margin-top: 0;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 15px;
  margin-bottom: 25px;
  color: var(--text-dark);
}

/* --- GRID DA GALERIA (LAYOUT DOS CARTÕES) --- */

.gallery-grid {
  display: grid;
  /* Cria colunas automáticas (mínimo 220px de largura cada) */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  overflow: hidden; /* Garante que a imagem não saia das bordas */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px); /* Efeito de subir ao passar o mouse */
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* --- IMAGENS (A CORREÇÃO DE TAMANHO) --- */

.gallery-item img {
  width: 100%;        /* Ocupa toda a largura do cartão */
  height: 180px;      /* Altura FIXA para todas ficarem iguais */
  object-fit: cover;  /* CORTA a imagem para preencher sem esticar/distorcer */
  border-bottom: 1px solid #eee;
  display: block;
}

/* --- LEGENDAS (TEXTO ABAIXO DA FOTO) --- */

.gallery-caption {
  padding: 15px;
  text-align: center;
}

.gallery-caption strong {
  display: block;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 5px;
}

.gallery-caption span {
  font-size: 0.85rem;
  color: #6b7280;
}

/* 9. BLOCO DE CONTATO (SIDEBAR) */

.contact-info {
  margin: 15px 0 25px 0;
  text-align: left; /* Alinha o bloco à esquerda */
  display: inline-block; /* Mantém o bloco centralizado na sidebar */
  width: 100%; /* Garante alinhamento com os textos acima */
  max-width: 220px; /* Limita a largura para ficar bonito */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px; /* Espaço entre ícone e texto */
  margin-bottom: 8px;
  color: var(--text-gray); /* Usa a mesma cor cinza do texto */
  font-size: 0.9rem;
  text-decoration: none; /* Tira o sublinhado do link */
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: var(--primary-color); /* Fica azul ao passar o mouse */
  transform: translateX(3px); /* Move levemente para a direita */
}

.contact-item i {
  width: 18px; /* Garante que os ícones tenham a mesma largura */
  text-align: center;
  color: var(--primary-color); /* Ícone azul */
}

