/* ==================== BG LEVE & ANIMADO ==================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #6a00ff30, transparent),
    radial-gradient(circle at 80% 80%, #00ffd530, transparent);
  background-repeat: no-repeat;
  background-size: 50% 50%;
  animation: moveBackground 25s linear infinite;
  z-index: -1;
  filter: blur(80px);
}

@keyframes moveBackground {
  0%,
  100% {
    background-position: left top, right bottom;
  }
  50% {
    background-position: center center, center center;
  }
}

/* ==================== MAIN ==================== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

/* ==================== TÍTULOS ==================== */
h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #6a00ff, #00ffd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 40px;
}

/* ==================== SOBRE ==================== */
#sobre {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  padding: 0 10px;
}

#sobre img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ffd5;
  box-shadow: 0 0 20px rgba(106, 0, 255, 0.5);
  margin-bottom: 20px;
}

#sobre p {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  text-align: center;
}

/* ==================== SKILLS ==================== */
.skills-list {
  display: flex;
  flex-wrap: wrap; /* Agrupa automaticamente em linhas */
  justify-content: center;
  gap: 12px; /* Espaçamento entre skills */
  margin-bottom: 30px;
  padding: 0 20px;
  max-width: 700px;
}

.skill-item {
  flex: 0 1 auto; /* Não cresce, apenas encolhe se precisar */
  max-width: 150px; /* Mantém limite de largura */
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 213, 0.2);
  box-shadow: 0 0 10px rgba(106, 0, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
  line-height: 1.2; /* Ajusta o espaçamento vertical interno */
}

.skill-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
}

/* ==================== BOTÃO ==================== */
.btn-ver-projetos {
  margin-top: 40px;
  background: linear-gradient(90deg, #00ffd5, #6a00ff);
  color: #000;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 213, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: inline-block;
  max-width: 260px;
  width: 100%;
}

.btn-ver-projetos:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 213, 0.6);
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  #sobre p {
    font-size: 1rem;
  }
  .skill-item {
    flex-basis: 120px; /* Base para o tamanho do item */
    font-size: 0.9rem;
  }
  .btn-ver-projetos {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  #sobre img {
    width: 140px;
    height: 140px;
  }
  #sobre p {
    font-size: 0.9rem;
  }
  .skills-list {
    gap: 10px;
  }
  .skill-item {
    flex-basis: 100px;
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  .btn-ver-projetos {
    width: 90%;
    padding: 12px 24px;
  }
}

