/* ═══════════════════════════════════════════════════════════
   PORTFOLIO FILTERS - PREMIUM TABS
   ═══════════════════════════════════════════════════════════ */
.portfolio-filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.portfolio-filters {
  display: inline-flex;
  background: var(--neutral-light);
  padding: 5px;
  border-radius: 50px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  list-style: none;
  margin: 0;
}

/* Override Bootstrap nav defaults */
.portfolio-filters.nav {
  flex-wrap: nowrap;
  border-bottom: none;
}

.portfolio-filters .nav-item {
  margin-bottom: 0;
}


.filter-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 12px 30px;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-grey);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
}

.filter-btn .btn-text {
  position: relative;
  z-index: 2;
}

.filter-btn .btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-teal);
  border-radius: 40px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.filter-btn.active {
  color: white;
}

.filter-btn.active .btn-bg {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 5px 15px rgba(27, 138, 147, 0.3);
}

.filter-btn:hover:not(.active) {
  color: var(--primary-teal-dark);
}

@media (max-width: 576px) {
  .portfolio-filters-container {
      width: 100%;
      padding: 0 15px;
  }
  
  .portfolio-filters {
      width: 100%;
      display: flex;
      justify-content: space-between;
  }
  
  .filter-btn {
      flex: 1;
      padding: 10px;
      font-size: 14px;
      white-space: nowrap;
  }
}
