/* ------------------------- Portfolio Page ------------------------- */
.portfolio {
  padding: 20px;
  text-align: center;
}

.portfolio h2 {
  margin-bottom: 20px;
  color: #c50e1f;
  font-weight: 700;
}

.portfolio h4 {
  color: #555;
  margin-bottom: 30px;
  font-weight: 400;
}

/* Category Buttons */
.portfolio-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 5px;
}

.category-button {
  background-color: #e5e5e5;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  border-radius: 6px;
}

.category-button.active,
.category-button:hover {
  background-color: #c50e1f;
  color: black;
  transform: translateY(-2px);
}

/* Portfolio Items Grid */
.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-item {
  width: 300px;
  margin: 15px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.portfolio-item h3 {
  margin-top: 15px;
  color: #333;
  font-size: 1.1rem;
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}
