/* ============================================
   HOME PROJECTEN — VERTICALE SCROLL EN GROOTTE OK
   ============================================ */

/* Section container */
#home-projects {
  padding: 4rem 0;
  position: relative;
  overflow: visible;
  height: auto;
}

/* Titel */
.home-section-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.home-section-title::after {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background: var(--color-secondary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Grid layout */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card styling */
.home-project-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* Afbeelding */
.home-project-img-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
}
.home-project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.home-project-card:hover .home-project-img {
  transform: scale(1.12);
}

/* Tekst */
.home-project-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}
.home-project-card .card-title {
  font-family: var(--font-base);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  transition: color 0.3s ease;
}
.home-project-card:hover .card-title {
  color: var(--color-secondary);
}
.home-project-card .card-text {
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

/* Knop */
.home-project-card .btn {
  align-self: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.home-project-card .btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 992px) {
  .home-project-img { height: 200px; }
}
@media (max-width: 768px) {
  .home-section-title { font-size: 2rem; }
  .home-project-img { height: 180px; }
}
@media (max-width: 576px) {
  .home-project-img { height: 160px; }
}
