.portfolio {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.portfolio h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.portfolio-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  border: 1px dotted black;
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-item h3 {
  margin: 15px 0 10px;
  font-size: 20px;
}

.portfolio-item p {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #555;
}

.portfolio-item a {
  text-decoration: none;
}