/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Mono", monospace;
  background-color: #121212; /* Fundo escuro padrão */
  color: #e0e0e0;
  line-height: 1.6;
  scroll-behavior: smooth; /* Transição suave ao rolar a página */
  transition: background-color 0.5s ease, color 0.5s ease; /* Transição suave para light/dark mode */
}

body.light-mode {
  background-color: #afafaf; /* Fundo cinza claro no light mode */
  color: #1a1a1a; /* Texto escuro */
}

#container {
  width: 90%;
  max-width: 800px;
  margin: 40px auto; /* Margem no topo e embaixo */
  padding: 20px;
  background-color: #1a1a1a; /* Fundo quadrado com a cor atual */
  border-radius: 15px; /* Bordas arredondadas */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidade */
  transition: background-color 0.5s ease; /* Transição suave para light/dark mode */
}

body.light-mode #container {
  background-color: #ffffff; /* Fundo branco no light mode */
}

/* Botão de Light/Dark Mode */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #1a1a1a; /* Cor do bloco central no modo escuro */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

body.light-mode #theme-toggle {
  background-color: #ffffff; /* Fundo branco no light mode */
}

#theme-toggle img {
  width: 24px;
  height: 24px;
  filter: invert(100%); /* Inverte a cor do ícone para contrastar com o fundo */
}

body.light-mode #theme-toggle img {
  filter: invert(0%); /* Remove a inversão no light mode */
}

#theme-toggle:hover {
  transform: scale(1.1);
}

/* Mensagem de "Copiado" */
#copy-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0d0d0f;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

#copy-message.show {
  opacity: 1;
  visibility: visible;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

#profile img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2.5rem;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

body.light-mode header h1 {
  color: #1a1a1a; /* Texto escuro no light mode */
}

header p {
  font-size: 1rem;
  color: #888;
  margin-bottom: 20px;
}

#social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

#social-icons img {
  width: 30px;
  transition: transform 0.3s ease;
}

#social-icons img:hover {
  transform: scale(1.2); /* Aumenta o ícone em 20% */
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin-bottom: 40px;
}

nav ul li a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

body.light-mode nav ul li a {
  color: #1a1a1a; /* Texto escuro no light mode */
}

nav ul li a:hover {
  color: #595959;
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.8rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center; /* Centraliza os títulos */
}

body.light-mode section h2 {
  color: #1a1a1a; /* Texto escuro no light mode */
}

section p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto; /* Centraliza o texto */
}

body.light-mode section p {
  color: #555; /* Texto mais escuro no light mode */
}

#sobre-texto {
  text-align: justify;
}

#repositories,
#achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px; /* Diminui a distância lateral entre os projetos/conquistas */
  margin-top: 20px;
}

/* Remover a cor de fundo dos projetos e conquistas */
#repositories div,
#achievements div {
  background-color: transparent; /* Fundo transparente */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  position: relative;
}

/* Diminuir o tamanho das imagens dos projetos */
#repositories img,
#achievements img {
  width: 80%; /* Reduz o tamanho das imagens */
  max-width: 150px; /* Define um tamanho máximo */
  border-radius: 5px;
  transition: transform 0.3s ease;
}

#repositories img:hover,
#achievements img:hover {
  transform: scale(1.05); /* Efeito de zoom suave ao passar o mouse */
}

/* Estilo dos nomes dos projetos e achievements */
#repositories p,
#achievements p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #e0e0e0;
  font-weight: 700; /* Negrito forte */
  text-decoration: none; /* Remove sublinhado */
  border-bottom: none; /* Garante que não haja borda inferior */
}

body.light-mode #repositories p,
body.light-mode #achievements p {
  color: #1a1a1a; /* Texto escuro no light mode */
}

/* Remover sublinhado de links dentro dos projetos e achievements */
#repositories a,
#achievements a {
  text-decoration: none; /* Remove sublinhado dos links */
  color: inherit; /* Mantém a cor do texto */
}

/* Efeito de aumento suave ao passar o mouse */
.project-item,
.achievement-item {
  transition: transform 0.3s ease;
}

.project-item:hover,
.achievement-item:hover {
  transform: scale(1.05); /* Aumenta o item em 5% */
}

.delete-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 0.8rem;
  display: none; /* Só será exibido para você */
}

.delete-button:hover {
  background-color: #cc0000;
}

button {
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}
#translate-toggle {
  position: fixed;
  top: 80px; /* Ajuste a posição vertical conforme necessário */
  right: 20px;
  background-color: #1a1a1a; /* Cor do bloco central no modo escuro */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

body.light-mode #translate-toggle {
  background-color: #ffffff; /* Fundo branco no light mode */
}

#translate-toggle img {
  width: 24px;
  height: 24px;
  filter: invert(100%); /* Inverte a cor do ícone para contrastar com o fundo */
}

body.light-mode #translate-toggle img {
  filter: invert(0%); /* Remove a inversão no light mode */
}

#translate-toggle:hover {
  transform: scale(1.1);
}
