body {
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9fb;
  color: #333;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: #222;
  color: white;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.back-link {
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
}

.back-link:hover {
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 660px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 1rem;
}

.project-info h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #222;
}

.project-info p {
  font-size: 1rem;
  margin: 0.5rem 0 1rem;
}

.github-link {
  display: inline-block;
  background: #333;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.github-link:hover {
  background: #000;
}

.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f1f1;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.img-replacement {
  background-color: #222222;
  height: 180px;
}

.badge-img {
  height: 20px !important;
  width: auto !important;
  max-width: none !important;
}

