/* ============================================
   projects.css — Projects Section Styles
   ============================================ */

.projects-section {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ---- Project Card ---- */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

/* Banner / Cover */
.project-img {
  height: 190px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

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

/* Emoji fallback */
.project-img-emoji {
  font-size: 52px;
  line-height: 1;
}

/* Gradient overlay at bottom of image */
.project-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--card));
  pointer-events: none;
}

/* Card Body */
.project-body {
  padding: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--fg);
}

.project-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.7;
  font-weight: 300;
}

/* Link Arrow */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.project-link:hover {
  gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 740px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
