:root {
  --bg-color: #f0f0f0;
  --text-color: #333;
  --accent-color: #444;
  --link-color: #0066cc;
  --border-color: #ccc;
}

body[data-theme="dark"] {
  --bg-color: #1c1c1c;
  --text-color: #e0e0e0;
  --accent-color: #333;
  --link-color: #66b2ff;
  --border-color: #555;
}

/* Tema escuro */
body {
  font-family: "Montserrat", sans-serif;
  color: white;
  background: #1c1c1c;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Alinhamento vertical centralizado */
}

.container {
  text-align: center;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid #fff;
}

.name {
  font-size: 36px;
  font-weight: bold;
  margin-top: 20px;
}

/* Estilo para o botão de alternância de tema */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

#theme-toggle img {
  width: 30px;
  height: 30px;
}

/* Transições suaves ao mudar de tema */
body.light-mode {
  background: #f0f0f0;
  color: black;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode p,
body.light-mode a,
body.light-mode .name {
  color: black; /* Define a cor dos textos no modo claro */
}

/* Ajuste do avatar para o modo claro */
.light-mode .avatar {
  border: 5px solid #000;
}

.light-mode #theme-icon {
  content: url("sol.png"); /* Ícone de sol para o modo claro */
}

main {
  padding: 50px;
}

.projetos h2 {
  font-size: 35px;
  color: var(--text-color);
}

.slider a img {
  width: 100%;
  border: 2px solid var(--border-color);
  border-radius: 5px;
}

.slider {
  width: 80%;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .projetos .title {
    font-size: 24px;
  }

  .projetos h2 {
    font-size: 16px;
  }

  .slider {
    width: 100%;
  }
}

h2 {
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
}

.social a img {
  width: 50px;
}

.social ul {
  display: flex;
  justify-content: center;
}

.social li {
  margin: 10px;
}

p a {
  color: var(--link-color);
}

p {
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-color);
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-color);
}

/*SCROLL DA PAGINA*/
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--accent-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--link-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}
