:root {
  --bg: #f9fafb;
  --card: #fff;
  --accent: #0b76ef;
  --muted: #64748b;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(15, 23, 42, .08);
  font-family: "Inter", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.projects-container {
  max-width: 1200px;
  margin: auto;
  padding: 32px 20px;
  background: var(--bg);
  color: #0f172a;
}

h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.lead-text {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.thumb-wrapper {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
  display: block;
}

.thumb-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f0f3f6;
  border-bottom: 1px solid #e5e7eb;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h2 {
  font-size: 1.05rem;
  margin: 0;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.pill {
  background: rgba(11, 118, 239, 0.08);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.client {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
}

.btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .2s;
}

.btn:hover {
  background: #095ec4;
}

.no-projects {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
}

.projects-footer {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
