:root {
  --bg-main: url('fundo.png');
  --bg-color-card: rgba(255, 255, 255, 0.07);
  --bg-color-header: rgba(0, 0, 0, 0.6);
  --border-card: rgba(255, 255, 255, 0.15);
  --text-main: #f0f0f0;
  --text-sub: #bbbbbb;
  --accent: #7cb4ff;
  --accent-hover: #a3d1ff;
  --shadow: rgba(0, 0, 0, 0.5);
  --blur: blur(12px);
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-main);
  background-image: var(--bg-main);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-bottom: 100px;
  min-height: 100vh;
}

main {
  width: 90%;
  max-width: 1000px;
  margin: 120px auto 40px auto;
}

section {
  background: var(--bg-color-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 8px 25px var(--shadow);
  padding: 40px 30px;
  backdrop-filter: var(--blur);
  margin-bottom: 60px;
  transition: 0.3s ease;
}

section:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  color: var(--accent);
}

section p {
  text-align: center;
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.7;
}

.apresentacao {
  text-align: center;
}

.apresentacao img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #000000;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  margin: 0 auto 20px auto;
}

.container-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
}

.card-projeto {
  width: 220px;
  background: var(--bg-color-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 0 18px var(--shadow);
  backdrop-filter: var(--blur);
  transition: 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.card-projeto:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(121, 184, 255, 0.4);
}

.card-projeto img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.card-projeto h3 {
  color: var(--accent);
  margin: 12px 0 6px;
  font-size: 18px;
}

.card-projeto p {
  font-size: 14px;
  padding: 0 15px 15px;
  color: var(--text-sub);
}

.form-feedback {
  margin-top: 3rem;
  background-color: rgba(25, 30, 45, 0.5);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 20px var(--color-shadow);
}

label {
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  background-color: rgba(20, 25, 40, 0.8);
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="submit"]:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    gap: 12px;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  .container-cards {
    flex-direction: column;
    align-items: center;
  }

  .card-projeto {
    width: 90%;
  }

  .apresentacao img {
    width: 120px;
    height: 120px;
  }

  section p {
    font-size: 16px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  thead {
    display: none;
  }

  tr {
    margin: 1rem 0;
    background-color: rgba(30, 35, 60, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 0 10px var(--color-shadow);
    padding: 1rem;
  }

  td {
    text-align: left;
    padding: 0.7rem;
    font-size: 0.95rem;
    border: none;
    width: 100%;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-accent);
  }
}
