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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f3f0fa;
  color: #2c2c2c;
  line-height: 1.6;
}

a {
  color: #5e3ea1;
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: #8e6ddf;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2e1a47;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.menu-btn {
  display: none; /* Oculto permanentemente */
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: #fff;
}

/* Main */
.main {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

.intro {
  margin-bottom: 3rem;
}

.intro h1 {
  font-size: 2.5rem;
  color: #5e3ea1;
  margin-bottom: 1rem;
  min-height: 3rem;
}

/* Cards de Projeto */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h2 {
  color: #5e3ea1;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1rem;
}

/* Skills */
.skills {
  margin-top: 40px;
  text-align: center;
}

.skills h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.skill {
  display: inline-block;
  margin: 20px;
  text-align: center;
}

.skill img {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  margin-bottom: 10px;
  transition: transform 0.3s;
  border: 2px solid #5a5a5a;
}

.skill img:hover {
  transform: scale(1.1);
}

.skill p {
  font-size: 1.1em;
  color: #4a4a4a;
}

.barra {
  width: 200px;
  height: 15px;
  background-color: #f5fafc;
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  display: inline-block;
}

.progresso {
  height: 100%;
  background-color: #585858;
  transition: width 0.5s ease;
}

.linha-skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Sobre Mim */
.sobre-mim, .certificados {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.sobre-mim h2, .certificados h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 15px;
}

.sobre-mim p {
  font-size: 1.1em;
  color: #4a4a4a;
}

/* Footer */
.footer {
  background-color: #2e1a47;
  color: #ddd;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.footer .socials a img {
  width: 30px;
  border-radius: 50%;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.footer .socials a img:hover {
  transform: scale(1.2);
}

/* MEDIA QUERY para responsividade */
@media (max-width: 768px) {
  .header {
    text-align: center;
    position: relative;
  }

  .nav {
    gap: 0.5rem;
    margin-top: 10px;
  }

  .nav a {
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .linha-skills {
    flex-direction: column;
    align-items: center;
  }

  .barra {
    width: 100%;
    max-width: 250px;
  }

  .sobre-mim {
    padding: 0 10px;
  }
}
