body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0e0e0e;
  color: white;
  height: 100%;
  overflow: hidden;
}

header {
  background-color: transparent;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #00ffcc;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00ffcc;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

section.tela {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow-y: auto; /* << ADICIONE ESTA LINHA */
  -webkit-overflow-scrolling: touch; /* Suporte suave no iOS */
}


section.tela.ativa {
  display: block;
}

.apresentacao h1 {
  font-size: 3em;
  margin: 0;
  color: #00ffcc;
}

.apresentacao {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.repos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.repo-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  text-align: left;
  transition: transform 0.3s;
  cursor: pointer;
}

.repo-card:hover {
  transform: scale(1.05);
  border-color: #00ffcc;
}

.repo-card h3 {
  margin: 0 0 10px;
  color: #00ffcc;
}

.repo-card p {
  color: #ccc;
  font-size: 0.9em;
}

.repos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}

.repo-card {
  background-color: #1a1a1a;
  padding: 15px 20px;
  border-radius: 12px;
  width: 280px;
  box-sizing: border-box;
  text-align: left;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.repo-card:hover {
  transform: scale(1.03);
  background-color: #222;
}

.repo-card h3 {
  color: #00ffcc;
  margin: 0 0 8px;
  font-size: 1.2em;
}

.repo-card p {
  color: #ccc;
  font-size: 0.95em;
  
}

.topicos {
  display: block;
  margin-top: 10px;
  font-size: 0.8em;
  color: #00ffcc;
  
}

.projetos-header h2 {
  font-size: 2.2em;
  color: #00ffcc;
  margin: 1;
}

#filtros button {
  padding: 8px 14px;
  border: none;
  background-color: #00ffcc;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.sobre-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 100%;
  padding: 20px;
  flex-wrap: wrap;
  overflow-y: auto;
}

.foto-perfil img {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid #00ffcc;
}

.texto-sobre {
  max-width: 600px;
  text-align: left;
}

.texto-sobre h2 {
  font-size: 2em;
  color: #00ffcc;
  margin-bottom: 10px;
}

.texto-sobre p {
  font-size: 1em;
  line-height: 1.6;
  color: #ddd;
}

.contato-container.seguro {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  overflow-y: auto;
  height: 100%;
}

.contato-container h2 {
  color: #00ffcc;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.contato-container p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.contato-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.item-contato {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  color: white;
  border: 1px solid #333;
}

.item-contato a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: bold;
}

.item-contato a:hover {
  text-decoration: underline;
}

.item-contato button {
  margin-top: 10px;
  background-color: #00ffcc;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: black;
  font-weight: bold;
  transition: background 0.3s;
}

.item-contato button:hover {
  background-color: #00ddb3;
}
