.category-title {
  font-size: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

.heart {
  font-size: 28px;
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.project-card {
    display: flex;
    flex-direction: column;
    position: relative;      /* enables absolute positioning inside */
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 16px;
    padding-bottom: 72px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: absolute;      /* pin to bottom */
    bottom: 16px;            /* distance from bottom of card */
    left: 0;
    right: 0;
}

.project-card p {
    color: white;
}

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

.project-header h3 {
  font-size: 22px;
  margin: 0;
  color: white;
}

.project-header p {
  margin: 4px 0 12px;
  font-size: 16px;
  color: white;
}

.project-desc {
  font-size: 15px;
  margin-bottom: 12px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
    align-items: center;
}

.project-gallery img,
.project-gallery video {
  width: 100%;
  max-width: 240px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-links .btn {
  background: #4caf50;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.project-links .btn:hover {
  background: #3a9b3a;
}

@media(max-width: 500px) {
  .project-gallery {
    flex-direction: column;
    align-items: center;
  }

  .project-links {
    justify-content: center;
  }
}
