.portfolio-separator {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  margin-top: 100px;
  margin-bottom: 60px;
}

.portfolio-separator::after {
  content: "";
  display: block;
  width: 50%;
  margin: 5px auto 0;
  border-bottom: 2px solid black;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
/* Portfolio Box Styling */
.portfolio-box {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 286px;
  background: white;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 20px;
  border-radius: 0;
  transition: color 0.3s ease-in-out;
}

.portfolio-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: black;
  transition: width 0.5s ease-in-out;
}

.portfolio-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: red;
  transition: width 0.5s ease-in-out;
}

.portfolio-box:hover::before {
  width: 0%;
}

.portfolio-box:hover::after {
  width: 100%;
}

.portfolio-box:hover {
  color: #e74c3c;
}

.portfolio-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #27ae60;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  z-index: 2;
}

.image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.portfolio-box:hover .discover-btn {
  opacity: 1;
}

.portfolio-box:hover .image-container img {
  opacity: 0.3;
}

.discover-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.portfolio-content {
  padding: 15px;
}

.portfolio-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.portfolio-content p {
  font-size: 14px;
  color: #666;
}

.portfolio-box:hover .portfolio-content h3,
.portfolio-box:hover .portfolio-content p {
  color: #e74c3c;
}

/* filter buttons */

.portfolio-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: none;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .portfolio-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .portfolio-box {
    max-width: 100%;
    height: auto;
    padding: 15px;
  }

  .portfolio-label {
    font-size: 12px;
  }

  .text-separator {
    font-size: 18px;
  }

  .text-separator::after {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .portfolio-box {
    width: 100%;
    height: auto;
    padding: 15px;
  }

  .portfolio-label {
    font-size: 12px;
  }

  .text-separator {
    font-size: 16px;
    margin-top: 20px;
  }

  .text-separator::after {
    width: 80%;
  }
}
