* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Adiciona rolagem suave para navegação em âncoras */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  color: #f5f5f7;
  background: #171723;
  line-height: 1.6;
}
header {
  background: #161624d9;
  position: fixed;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(20,20,40,.12);
  /* Adiciona um leve desfoque no fundo para um efeito moderno */
  backdrop-filter: blur(10px);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #6b8afd;
  letter-spacing: 1px;
}
nav ul {
  display: flex;
  gap: 1.7rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  /* Transição de cor mais suave */
  transition: color .3s ease;
  font-weight: 500;
}
nav a:hover {
  color: #6b8afd;
}
section {
  padding: 100px 2rem 40px 2rem;
}
.hero {
  min-height: 100vh; /* Ocupa a altura total da tela inicial */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #24243e 40%, #6b8afd 100%);
  text-align: center;
  padding-top: 0; /* Remove o padding superior para centralizar melhor */
}
.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: .5rem;
}
.hero p {
  color: #f3f3f3;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.btn {
  padding: 0.8rem 1.8rem;
  background: #6b8afd;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  /* Transição mais suave para background e transform */
  transition: background .3s ease, transform .3s ease;
  margin: 0.3rem;
  display: inline-block;
}
.btn:hover {
  background: #5870d8;
  /* Efeito de leve crescimento ao passar o mouse */
  transform: scale(1.05);
}
.container {
  width: 100%; /* Ajustado para melhor controle com padding da section */
  max-width: 1050px;
  margin: 0 auto;
  text-align: center; /* Centraliza o conteúdo dentro da seção */
}
h2 {
  font-size: 2.2rem;
  color: #6b8afd;
  margin-bottom: 1.5rem;
  text-align: center; /* Centraliza os títulos da seção */
}
#sobre p {
    text-align: center; /* Centraliza o texto da seção "Sobre" */
    max-width: 800px; /* Limita a largura para melhor legibilidade */
    margin: 0 auto; /* Centraliza o parágrafo */
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  list-style: none;
  color: #f7f7fb;
  justify-content: center; /* Centraliza os itens */
}
.skills-list li {
  display: flex;
  align-items: center;
  font-size: 1.12rem;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: #22223b;
  border-radius: 8px;
  /* Adiciona transição suave para o efeito hover */
  transition: transform .3s ease, box-shadow .3s ease;
}
/* Efeito sutil de elevação nos skills */
.skills-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.skills-list li i {
  font-size: 1.5rem;
  min-width: 24px;
}
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
}
.projeto-card {
  background: #22223b;
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  text-align: left;
  /* Transição suavizada */
  transition: transform .3s ease, box-shadow .3s ease;
}
.projeto-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(107, 138, 253, 0.2);
}
.projeto-card img {
  width: 100%;
  border-radius: 11px;
  margin-bottom: .9rem;
  min-height: 160px;
  object-fit: cover;
  background: #161624;
}
.projeto-card h3 {
  color: #6b8afd;
  margin: .5rem 0;
}
.projeto-card a {
    color: #f5f5f7;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s ease;
}
.projeto-card a:hover {
    color: #6b8afd;
}
.contato-links {
  margin: 2rem 0 1rem 0;
  text-align: center; /* Centraliza os botões de contato */
}
.contato-links .btn {
  margin: 0 .5rem .7rem 0;
}
footer {
  background: #181826;
  color: #aaa;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  font-size: .98rem;
}

/* Media Query aprimorada para melhor responsividade */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  nav ul {
    gap: 1.2rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
      font-size: 1rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  section {
    padding: 80px 1.5rem 30px 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Esconde o menu de navegação tradicional em telas muito pequenas */
  nav ul {
    display: none;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .btn {
      padding: 0.7rem 1.2rem;
      font-size: 0.9rem;
  }
}