.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.project-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header {
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--primary);
  line-height: 1.4;
}

.project-title .entry-hint {
  margin-left: 0.5rem;
  opacity: 0.6;
}

.project-summary {
  margin-bottom: 1rem;
  flex: 1;
}

.project-summary p {
  font-size: 0.95rem;
  color: var(--content);
  line-height: 1.6;
  margin: 0;
}

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

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--code-bg);
  color: var(--secondary);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.project-footer {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--tertiary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
  justify-content: center;
}

.project-link:hover {
  background-color: var(--primary);
  color: var(--theme);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    margin: 0;
  }
  
  .project-content {
    padding: 1.25rem;
  }
  
  .project-cover {
    height: 180px;
  }
}

