/* ============================================================
   sections.css — About, Stack, Projects, Contact
   ============================================================ */

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 18px;
}

.about-text:last-of-type {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Card de info */
.about-info {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: background var(--t), border-color var(--t), padding-left var(--t);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row:hover {
  background: var(--bg-3);
  border-left-color: var(--accent);
  padding-left: 24px;
}

.info-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.info-value {
  font-size: 13px;
  color: var(--text-2);
}

.info-value a {
  color: var(--accent);
  transition: opacity var(--t);
}

.info-value a:hover {
  opacity: 0.72;
}

.info-value.accent {
  color: var(--accent);
}

/* ── STACK ──────────────────────────────────────────────────── */
.stack-list {
  display: flex;
  flex-direction: column;
}

.stack-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.stack-row:first-child {
  border-top: 1px solid var(--border);
}

.stack-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 5px;
}

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

.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--t);
  cursor: default;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* Tags destacadas */
.tag-hi {
  background: var(--accent-dim);
  border-color: var(--border-2);
  color: var(--accent);
}

/* ── PROJECTS ────────────────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px var(--accent-dim);
}

/* Header terminal — mais elegante que antes */
.project-terminal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.tdots {
  display: flex;
  gap: 6px;
}

.td {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0.28;
  transition: opacity var(--t);
}

.project-card:hover .td {
  opacity: 1;
}

.td-r {
  background: #ff5f57;
}

.td-y {
  background: #febc2e;
}

.td-g {
  background: #28c840;
}

.tpath {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  flex: 1;
  margin-left: 8px;
}

/* Imagem */
.project-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.62) saturate(0.6);
  transition: filter var(--ts), transform var(--ts);
}

.project-card:hover .project-img {
  filter: brightness(0.88) saturate(1.1);
  transform: scale(1.06);
}

/* Overlay cinza sutil no hover */
.project-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(151, 149, 145, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--ts);
}

.project-card:hover .project-img-wrap::after {
  opacity: 1;
}

/* Info */
.project-info {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Nome do projeto em Playfair */
.project-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color var(--t);
}

.project-card:hover .project-name {
  color: var(--accent);
}

.project-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-2);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.project-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.80;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.project-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  transition: all var(--t);
  white-space: nowrap;
}

.project-btn-primary {
  background: var(--accent);
  color: #0f0f14;
  border: 2px solid var(--accent);
  font-weight: 700;
}

.project-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.project-btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 2px solid var(--border-2);
}

.project-btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Heading em Playfair */
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 16px;
}

.contact-heading span {
  color: var(--accent);
}

.contact-sub {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--t);
}

.contact-link:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
  transform: translateX(6px);
  box-shadow: 0 0 30px var(--accent-dim);
}

.cl-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cl-value {
  font-size: 13px;
  color: var(--text-2);
  transition: color var(--t);
}

.contact-link:hover .cl-value {
  color: var(--accent);
}

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-img-wrap {
    min-height: 180px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-actions {
    flex-wrap: wrap;
  }
}