/**
 * Seção Projetos — fundo escuro, cards com imagem e link
 */

.projetos {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0 100px;
  background: var(--bg-dark);
  overflow: hidden;
}

.projetos__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(var(--primary-rgb), 0.26) 0%, rgba(var(--primary-rgb), 0.12) 24%, transparent 58%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.94) 100%);
}

.projetos__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-tech.jpg") center / cover no-repeat;
  background-attachment: fixed;
  opacity: 0.14;
  mix-blend-mode: screen;
}

.projetos__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--container-gutter) * 2)), var(--container-max));
  max-width: var(--container-max);
  margin: 0 auto;
}

.projetos__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--light);
  text-align: center;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.projetos__intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.projetos__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .projetos__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projetos__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 18px;
  padding: 18px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.projetos__card:hover {
  transform: translateY(-4px);
  background: rgba(10, 10, 10, 0.5);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.projetos__thumb {
  display: block;
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
}

.projetos__card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.projetos__card-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.projetos__card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
  margin: 0;
}

.projetos__card-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.projetos__card-highlights {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projetos__card-highlights li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.projetos__card-highlights li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.projetos__card-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 2px 0 0;
}

.projetos__card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light);
  margin: 0;
}

.projetos__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projetos__tech-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--light);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.projetos__empty {
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .projetos__bg::after {
    background-attachment: scroll;
  }

  .projetos {
    padding: 56px 0 72px;
  }

  .projetos__intro {
    margin-bottom: 32px;
    font-size: 0.95rem;
  }

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