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

body {
  background: url(../assets/bg-mobile.png) no-repeat top center/cover;
  background-attachment: fixed;
}

body * {
  font-family: "inter", sans-serif;
  color: white;
}

a {
  text-decoration: none;
}

section, header {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  margin-bottom: 32px;
  text-align: center;
}

/* ===== HERO ===== */

#hero {
  padding-top: 24px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-texto h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.hero-texto p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
}

.hero-botoes {
  display: flex;
  gap: 16px;
}

.hero-img {
  width: 320px;
  border-radius: 16px;
}

/* ===== BOTÕES ===== */

.btn-primario,
.btn-secundario {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s, border 0.2s;
}

.btn-primario {
  background-color:rgba(0, 255, 34, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-primario:hover {
  background-color: rgba(0, 255, 34, 0.466);
  border: 1.5px solid white;
}

.btn-secundario {
  background-color: rgba(0, 255, 34, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-secundario:hover {
  background-color: rgba(0, 255, 34, 0.466);
  border: 1px solid white;
}

/* ===== SOBRE ===== */

.sobre-conteudo {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}

.sobre-texto {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

.formacao {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.formacao h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.formacao p {
  margin: 4px 0;
  opacity: 0.85;
}

/* ===== PROJETOS ===== */

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-projeto {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border 0.2s;
}

.card-projeto:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid white;
  cursor: default;
}

.card-projeto h3 {
  margin-bottom: 12px;
}

.card-projeto p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
}

/* ===== TECNOLOGIAS ===== */

.tech-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tech-lista span {
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.tech-lista span:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid white;
  cursor: default;
}

/* ===== CONTATO ===== */

#contato {
  text-align: center;
}

.contato-botoes {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== VOLTAR ===== */

#voltar {
  width: 100%;
  padding: 16px 24px;
  background-color: rgba(0, 0, 0, 0.822);
  display: flex;
  align-items: center;
  gap: 24px;
}

#voltar .nav-links a {
  color: white;
  font-weight: bold;
  transition: opacity 0.2s;
   font-size: 22px;
}

#voltar .seta {
  font-size: 22px;
  display: flex;
  align-items: center;
}

#voltar .logo {
  font-weight: bold;
  font-size: 18px;
  margin-right: auto; /* empurra o nav-links pra direita */
}

#voltar .nav-links {
  display: flex;
  gap: 24px;
}

#voltar .nav-links a {
  font-weight: 500;
  transition: opacity 0.2s;
}

#voltar .nav-links a:hover {
  opacity: 0.7;
}

/* ===== RESPONSIVO / MOBILE ===== */

@media (max-width: 768px) {
  section, header {
    padding: 48px 20px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-texto h1 {
    font-size: 28px;
  }

  .hero-img {
    width: 220px;
  }

  .hero-botoes {
    justify-content: center;
  }

  .sobre-conteudo {
    flex-direction: column;
    gap: 32px;
  }

  .formacao {
    max-width: 100%;
  }

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

  nav {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }
}