body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #ffffff;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px; /* reduzido para evitar corte no menu */
  background-color: #111;
  border-bottom: 2px solid #8c52ff;
}

.logo img {
  height: 50px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px 20px 40px; /* mais espaço à direita */
  background-color: #111;
  border-bottom: 2px solid #8c52ff;
  box-sizing: border-box; /* garantir cálculo correto do padding */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  max-width: calc(100vw - 150px); /* limitar largura máxima para não ultrapassar */
  overflow-x: auto; /* permitir scroll horizontal se for necessário */
}

nav ul::-webkit-scrollbar {
  display: none; /* esconde scrollbar no webkit browsers */
}

nav a {
  color: #0097b2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  white-space: nowrap; /* evitar quebra de palavra */
}

nav a:hover {
  color: #8c52ff;
}

/* Banner da seção Início */
.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Skills Slider */
.skills-slider {
  overflow: hidden;
  white-space: nowrap;
  background: #111;
  border-top: 2px solid #8c52ff;
  border-bottom: 2px solid #0097b2;
}

.skills-track {
  display: inline-block;
  padding: 15px 0;
  animation: scrollSkills 25s linear infinite;
}

.skills-track span {
  display: inline-block;
  margin: 0 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  position: relative;
}

.skills-track span:nth-child(odd) {
  color: #0097b2;
}

.skills-track span:nth-child(even) {
  color: #8c52ff;
}

/* Animação de movimento lateral */
@keyframes scrollSkills {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.about-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

main {
  padding: 40px;
}

section {
  margin-bottom: 60px;
}

h2 {
  color: #8c52ff;
  text-align: center;
}

/* Estilos para a seção do currículo */
.resume-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.resume-item {
  text-align: center;
}

.resume-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 2px solid #8c52ff;
  border-radius: 8px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #ccc;
}

/* Container dos projetos */
.portfolio-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

/* Cada card de projeto */
.portfolio-item {
  width: 500px;
  background: #111;
  border: 2px solid #8c52ff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(140, 82, 255, 0.3);
}

.portfolio-item h3 {
  text-align: center;
  padding: 10px;
  color: #0097b2;
  background: #000;
  margin: 0;
}

.portfolio-item iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Secção Contactos */
#contactos {
  padding: 40px 20px;
  background-color: #111;
  color: #fff;
  text-align: center;
  border-top: 2px solid #8c52ff;
}

#contactos h2 {
  color: #8c52ff;
  margin-bottom: 30px;
}

.contact-container {
  max-width: 800px;
  margin: auto;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.contact-info i {
  color: #0097b2;
  margin-right: 10px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  color: #8c52ff;
}

/* Redes Sociais */
.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.8rem;
  color: #fff;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #8c52ff;
}
