/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background-color: #0f1115;
  color: #e6e6e6;
  line-height: 1.6;
}

/* ===== Container spacing ===== */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Typography ===== */
h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

h3 {
  margin-bottom: 5px;
}

p {
  color: #b3b3b3;
}

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
  padding: 15px;
}

nav a {
  text-decoration: none;
  color: #b3b3b3;
  font-size: 0.95rem;
  transition: 0.2s;
}

nav a:hover {
  color: #ffffff;
}

/* ===== Home Section ===== */
#home {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

#home h2 {
  color: #888;
  font-weight: normal;
}

#home a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: 0.2s;
}

#home a:hover {
  background: white;
  color: black;
}

/* ===== Cards (participações, projetos) ===== */
#participacoes div,
#projetos li {
  background: #171a21;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: 0.2s;
}

#participacoes div:hover,
#projetos li:hover {
  background: #1f2430;
}

/* ===== Lists ===== */
ul {
  list-style: none;
}

#techstack li {
  background: #171a21;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* ===== Links ===== */
a {
  color: #4da3ff;
}

a:hover {
  text-decoration: underline;
}

/* ===== Form ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

input,
textarea {
  padding: 10px;
  background: #171a21;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #4da3ff;
}

button {
  padding: 12px;
  border: none;
  background: #4da3ff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #3a8ae0;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #222;
  color: #777;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  section {
    padding: 60px 15px;
  }
}
