#projects-gallery {
  padding: 2rem;
  background: #f9f9f9;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

/* 📱 Mobile adjustments */
@media (max-width: 768px) {
  #projects-gallery {
    padding: 1rem;
  }

  .gallery {
    grid-template-columns: 1fr; /* single column on small screens */
    gap: 1rem;
  }

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

  .project-info h3 {
    font-size: 1rem;
  }
}

/* 📱 Extra small devices */
@media (max-width: 480px) {
  .project-info {
    padding: 0.75rem;
  }

  .project-info h3 {
    font-size: 0.95rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }
}
