/* ============================================================
   PROJECTS SECTION
============================================================ */

#projects {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--color-border);
}

.projects-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.projects-heading {
  margin: 0;
  font-size: 2rem;
}

.projects-intro {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  max-width: 42rem;
  line-height: 1.75;
}

.projects-summary {
  margin: 0.75rem 0 0;
  color: var(--color-text-faint);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.projects-profile-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 169, 110, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.projects-profile-link:hover {
  color: var(--color-surface-deep);
  background: var(--color-accent);
  text-decoration: none;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  height: 100%;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.project-card:hover {
  border-color: rgba(200, 169, 110, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-link);
  line-height: 1.2;
}

.project-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: end;
}

.project-badge {
  border: 1px solid rgba(200, 169, 110, 0.25);
  color: var(--color-text-faint);
  border-radius: 999px;
  padding: 0.1875rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-badge.project-badge-original {
  color: var(--color-accent);
  border-color: rgba(200, 169, 110, 0.4);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--color-text-faint);
  line-height: 1.7;
  flex: 1;
}

.project-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-faint);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-lang {
  color: var(--color-accent);
}

.project-link-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.project-link-text a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}

.project-link-text a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.projects-loading {
  color: var(--color-text-faint);
  text-align: center;
  padding: 2rem 0;
}

.projects-empty {
  color: var(--color-text-faint);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 768px) {
  .projects-profile-link {
    width: 100%;
    justify-content: center;
  }

  .project-title-row {
    flex-direction: column;
  }

  .project-badges {
    justify-content: flex-start;
  }
}
