:root {
  --azul-claro: #A7C7E7;
  --azul-escuro: #3A5A80;
  --preto: #1F1F1F;
  --bege-claro: #F5F1E3;
  --bege-medio: #D8CBB3;
  --fonte-principal: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fonte-principal);
  background-color: var(--bege-claro);
  color: var(--preto);
  line-height: 1.6;
  text-align: center;
  overflow-x: hidden;
}

/* 🧭 Cabeçalho fixo no topo */
header {
  width: 100%;
  background-color: var(--preto);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

.menu-toggle {
  display: none;
  background: var(--azul-claro);
  color: var(--preto);
  border: none;
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  background-color: transparent;
  transition: all 0.3s ease;
}

.menu li a:hover {
  background-color: var(--azul-claro);
  color: var(--preto);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--azul-claro);
}

/* 🌟 Hero Section como tela inicial */
.hero {
  height: 100vh;
  padding: 120px 40px 40px; /* compensação para o header fixo */
  background: linear-gradient(135deg, var(--bege-claro), var(--bege-medio));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin-top: 40px;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-texto {
  max-width: 400px;
  text-align: center;
}

.hero-texto h2 {
  font-size: 2.5rem;
  color: var(--azul-escuro);
  margin-bottom: 10px;
}

.hero-texto p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  background-color: var(--azul-claro);
  color: var(--preto);
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background-color: var(--azul-escuro);
  color: white;
}

/* 👤 Seções gerais */
section {
  padding: 60px 40px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h2, h3, h4, p {
  text-align: center;
}

h3 {
  font-size: 2rem;
  color: var(--azul-escuro);
  margin-bottom: 20px;
}

h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--azul-claro);
  margin: 10px auto;
  border-radius: 2px;
}

/* 🧩 Cards de projetos */
.progetti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card h4 {
  margin-bottom: 10px;
}

.card a {
  color: var(--azul-escuro);
  text-decoration: none;
  font-weight: 500;
}

/* 🏷️ Tags de tecnologia */
.tags {
  margin: 10px 0;
}

.tags span {
  background-color: var(--azul-claro);
  color: var(--preto);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-right: 6px;
  display: inline-block;
}

/* 📬 Formulário de contato */
.contatto-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 30px auto;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
  text-align: center;
}

.contatto-form label {
  font-weight: 500;
  color: var(--azul-escuro);
}

.contatto-form input,
.contatto-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--azul-claro);
  border-radius: 6px;
  font-family: var(--fonte-principal);
  font-size: 1rem;
  box-sizing: border-box;
  text-align: center;
}

.contatto-form input:focus,
.contatto-form textarea:focus {
  outline: none;
  border-color: var(--azul-escuro);
  box-shadow: 0 0 4px rgba(58, 90, 128, 0.3);
}

/* 🔗 Lista com ícones sociais */
.social-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: center;
}

.social-list li {
  margin: 10px 0;
}

.social-list a {
  text-decoration: none;
  color: var(--azul-escuro);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.social-icon {
  width: 24px;
  height: 24px;
}

/* 🧱 Rodapé */
footer {
  background-color: var(--preto);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.social a {
  color: var(--azul-claro);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
}

.social a:hover {
  color: white;
}

/* 📱 Responsividade */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1F1F1F;
    color: #F5F1E3;
  }

  header,
  footer {
    background-color: #000;
  }

  .btn {
    background-color: #A7C7E7;
    color: #000;
  }

  .card {
    background-color: #2a2a2a;
    color: #F5F1E3;
  }

  .menu li a {
    background-color: transparent;
    color: #F5F1E3;
  }

  .menu li a:hover {
    background-color: #A7C7E7;
    color: #000;
  }

  .tags span {
    background-color: #A7C7E7;
    color: #000;
  }

  .contatto-form {
    background-color: #2a2a2a;
    color: #F5F1E3;
  }

  .contatto-form input,
  .contatto-form textarea {
    background-color: #1F1F1F;
    color: #F5F1E3;
    border: 1px solid #A7C7E7;
  }

  .contatto-form input:focus,
  .contatto-form textarea:focus {
    border-color: #A7C7E7;
    box-shadow: 0 0 4px rgba(167, 199, 231, 0.3);
  }

  .social-list a {
    color: #A7C7E7;
  }

  .social-list a:hover {
    color: white;
  }

  .social a {
    color: #A7C7E7;
  }

  .social a:hover {
    color: white;
  }
}
