/* css styles */

.hero {
  padding: 1rem 0 1.5rem 0;
  max-width: 850px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.hero p {
  font-size: 1.15rem;
  color: #555;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.project-card {
  border: 1px solid #ddd;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.project-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.project-body {
  padding: 1rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.project-title {
  font-size: 1.1rem;
  margin: 0;
}

.project-year {
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
}

.project-description {
  margin: 0.65rem 0;
  line-height: 1.45;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.project-tag {
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #f1f3f5;
  border: 1px solid #e4e7eb;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.project-links a {
  text-decoration: none;
  font-weight: 600;
}

.project-links a::after {
  content: " ↗";
  font-size: 0.8em;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

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