/* =============================================================
   components.css — Cards, Buttons, Nav Links, Filter Buttons
   ============================================================= */

/* Nav Link Hover + Underline */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #10b981;
    transition: width 0.3s ease;
}
.nav-link:hover::before,
.nav-link.active::before { width: 100%; }

/* Portfolio Cards */
.portfolio-card { cursor: pointer; }

/* ── Portfolio Filter Buttons ──────────────────────────────────────
   Active state is driven by JS toggling .filter-btn--active.
   The border-b-2 + color shift mirrors the original design exactly.
   ─────────────────────────────────────────────────────────────── */
.filter-btn {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    padding-bottom: 4px;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.filter-btn--active {
    color: #10b981;
    border-bottom-color: #10b981;
}

.filter-btn:not(.filter-btn--active) {
    color: #9ca3af;
    border-bottom-color: transparent;
}

.filter-btn:not(.filter-btn--active):hover {
    color: #ffffff;
}
