:root {
  --bg: #f5f5f5;
  --text: #222;
  --muted: #555;
  --accent: #3a86ff;
  --glass: rgba(255, 255, 255, 0.7);
}

/* Botão Sobre */
.about-btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background: #265dba;
}

#about {
  display: flex;
  align-items: center; /* Mantém o alinhamento vertical no centro */
  justify-content: space-between; /* <-- Mude aqui! */
  gap: 50px; /* Reduzi um pouco o gap para o caso de telas menores, ajuste se necessário */

  background: none;
  padding: 20px;
  border: none;
  max-width: 800px;
  margin: 10px auto; /* 'auto' na margem horizontal ajuda a centralizar o container #about na página */
  text-align: left;
}

#about img {
  width: 350px;  /* Ajustei o tamanho para caber melhor com o gap e o max-width */
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

#about .about-text {
  flex: 1; /* Permite que o container de texto cresça e ocupe o espaço disponível */
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  background: var(--accent);
  color: var(--bg);
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-radius: 50%;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
}

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

/* ===================== PROJETOS ===================== */

.projects {
  margin-bottom: 64px;
}

.projects h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.proj {
  display: block;
  background: var(--glass);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proj:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.proj img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.proj h3 {
  margin: 0 0 8px;
}

.proj p {
  margin: 0;
  color: var(--muted);
}

/* ===================== PAPERS ===================== */

.papers {
  margin-top: 64px;
}

.paper-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.paper {
  background: var(--glass);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.paper h3 {
  margin: 0 0 6px;
}

.paper p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.paper a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

/* ===================== CONTATO ===================== */

.contact {
  margin-top: 64px;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--accent);
  font-size: 24px;
  transition: color 0.2s ease;
}

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


/* ===================== FOOTER ===================== */

footer {
  margin-top: 64px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ===================== PÁGINA DE PROJETO ===================== */

.project-detail {
  margin-top: 32px;
}

.project-detail img {
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 8px;
}

/* Container do Dropdown */
.dropdown {
  display: inline-block;
  position: relative;
}

/* Estilo do Botão para parecer um link normal da Nav */
.dropdown .dropbtn {
  background-color: transparent;
  border: none;
  color: inherit; /* Pega a cor definida na sua nav */
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0 10px; /* Ajuste conforme o espaçamento dos seus outros links */

}

/* Conteúdo do menu (escondido por padrão) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9; /* Cor de fundo do menu */
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0; /* Alinha o menu à direita do botão */
  border-radius: 4px;
}

/* Links dentro do dropdown */
.dropdown-content a {
  color: black; /* Cor do texto das opções */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Cor ao passar o mouse nas opções */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Mostrar o menu ao passar o mouse no container */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Opcional: Mudar cor do botão principal ao abrir */
.dropdown:hover .dropbtn {
  opacity: 0.8; 
}