* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

header {
  background-color: #000000;
  color: #ffffff;
  padding: 40px;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

header h1 {
  font-size: 2.5rem; /* Tamanho reduzido para telas menores */
  margin-bottom: 10px;
}

header p {
  font-size: 1rem; /* Ajuste na fonte */
  font-weight: 300;
}

.profile {
  background-color: #f2f2f2;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  padding: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Adicionado para se ajustar em telas pequenas */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.profile-img img {
  border-radius: 50%;
  width: 150px; /* Ajustado o tamanho da imagem para telas menores */
  height: 150px;
  object-fit: cover;
  border: 5px solid #000000;
}

.profile-info {
  margin-left: 25px;
  flex: 1;
}

.profile-info h2 {
  font-size: 2rem; /* Tamanho reduzido para melhor adaptação */
  color: #000000;
  margin-bottom: 10px;
}

.profile-info p {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.skills {
  margin: 40px 0;
  background-color: #f2f2f2;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 900px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.skill-category {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #000000;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.skill-name svg {
  color: #333;
}

.skills h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000000;
}

.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  background-color: #ffffff;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 1.1rem;
  color: #000000;
  border: 1px solid #d9d9d9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.skills li:hover {
  background-color: #000000;
  color: #ffffff;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: 500;
}

.progress {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  transition: width 1.5s ease-in-out;
}

/* Animação para as barras de progresso */
@keyframes progressAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.progress-bar {
  animation: progressAnimation 1.5s ease-in-out forwards;
}

/* Estilos para a seção de projetos */
.projects {
  margin: 40px 0;
  background-color: #f2f2f2;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 900px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
}

.project-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-card h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #000000;
}

.project-links {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links button {
  transition: transform 0.2s ease;
}

.social-links button:hover {
  transform: scale(1.1);
}

footer {
  margin-top: 50px;
  padding: 20px;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #cccccc;
}

/* Media Queries para Tamanhos Menores */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .profile {
    flex-direction: column;
    text-align: center; /* Centraliza o texto */
  }

  .profile-img img {
    margin-bottom: 20px;
    width: 120px;
    height: 120px;
  }

  .profile-info {
    margin-left: 0; /* Remove o espaço lateral em telas pequenas */
  }

  .profile-info h2 {
    font-size: 1.8rem;
  }

  .profile-info p {
    font-size: 0.9rem;
  }

  .skills h3 {
    font-size: 1.5rem;
  }

  .projects h3 {
    font-size: 1.5rem;
  }

  .project-card h4 {
    font-size: 1.2rem;
  }

  .project-links {
    flex-direction: column;
  }
}

/* Media query para telas menores */
@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .skill-category h4 {
    font-size: 1.1rem;
  }
}
