/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY COM IMAGEM DE FUNDO */
body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  min-height: 100vh;

  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* OVERLAY ESCURO */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.7);
}

.header a {
  color: #ffffff;
  margin-left: 16px;
  text-decoration: none;
  font-weight: bold;
}

.header a:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 40px auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
}

.hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
}

/* LINKS SOCIAIS */
.social {
  margin-top: 16px;
}

.social a {
  margin: 0 10px;
  color: #60a5fa;
  text-decoration: none;
  font-weight: bold;
}

.social a:hover {
  text-decoration: underline;
}

/* SEÇÕES */
.section {
  padding: 40px 32px;
  max-width: 1100px;
  margin: 40px auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
}

.section h2 {
  margin-bottom: 20px;
}

/* GRID DE PROJETOS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.card h3 {
  margin-bottom: 8px;
}

.card a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: bold;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  margin-top: 40px;
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .header {
    flex-direction: column;
    gap: 12px;
  }
}
