/* =====================
   PROJECTEN PAGINA
===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* =====================
   PROJECT CARD
===================== */
.project-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

/* =====================
   SCREENSHOTS (DESKTOP)
===================== */
.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--light);
}

.project-images img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* =====================
   PROJECT CONTENT
===================== */
.project-content {
  padding: 22px 26px 26px;
}

.project-content h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.project-content p {
  color: #475569;
  margin-bottom: 16px;
}

/* =====================
   PROJECT LINK
===================== */
.project-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.project-link:hover::after {
  transform: scaleX(1);
}

/* =====================
   PROJECT OPEN BUTTON
===================== */
.project-open {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-open:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(30,94,255,0.4);
}

/* =====================
   MOBIEL: PROJECT DUIDELIJK GEGROEPEERD
===================== */
@media (max-width: 768px) {

  .project-card {
    border-radius: 16px;
  }

  .project-images {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    background: #000;
  }

  .project-images img {
    min-width: 100%;
    height: 220px;
    border-radius: 0;
    border: none;
    scroll-snap-align: center;
  }

  .project-content {
    padding: 20px;
    background: #fff;
  }
}
