.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 0.5rem 0.5rem 0 0;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-actions a {
  font-size: 1.2rem;
  display: inline-block;
}

/* Optional: filter button toggle */
#portfolioFilters .btn.active {
  background-color: #333;
  color: white;
  border: 1px solid white;
}

.portfolio-item {
  transition: all 0.4s ease;
}

.portfolio-item[style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.portfolio-card {
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(6, 40, 255, 0.2);
}

.card-body small {
  color: #7d25cd;
  font-weight: 600;
}

.card-title {
  color: #333;
  font-weight: 700;
}
.card-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #7d25cd;
  margin-top: 0.5rem;
  border-radius: 10px;
}

.card-text {
  color: #555;
  line-height: 1.6;
}

/* Overlay */
.portfolio-overlay {
  background: #7c25cd75;
}

/* Action Button */
.portfolio-actions .btn-light {
  background-color: #ededed;
  border: none;
  transition: all 0.5ms ease-in-out;
}

.portfolio-actions .btn-light:hover {
  background-color: #c0c0c0;
}

#portfolioFilters .btn-outline-primary {
  border-color: #333;
  border-radius: 3px;
  color: #333;
  transition: all 0.3s ease-in-out;
  padding: 3px 15px;
  margin-bottom: 12px;
}
#portfolioFilters .btn-outline-primary:hover {
  background-color: #333;
  color: white;
  border-color: #333;
}

.carousel-item {
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.modal-header {
  position: relative;
  justify-content: center;
  text-align: center;
}

.modal-title {
  width: 100%;
  font-weight: lighter;
  color: #fff;
}

.modal-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
