(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return l}});let l=e=>{}},50604,e=>{"use strict";var t=e.i(43476),r=e.i(71645),l=e.i(22016),s=e.i(57688);function a({projects:e}){let a=["All",...new Set(e.map(e=>e.category))],[o,i]=(0,r.useState)("All"),c="All"===o?e:e.filter(e=>e.category===o);return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex flex-wrap justify-center gap-3 mb-10",children:a.map(e=>(0,t.jsx)("button",{onClick:()=>i(e),className:`px-4 py-2 rounded border text-sm font-medium ${o===e?"bg-secondary text-primary border-blue-600":"border-gray-300 text-gray-700 hover:bg-gray-200"}`,children:e},e))}),(0,t.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(e=>(0,t.jsxs)(l.default,{href:`/portfolio/${e.slug}`,className:"block border-3 border-secondary rounded-lg overflow-hidden shadow hover:shadow-lg transition bg-white",children:[(0,t.jsx)("div",{className:"relative w-full h-48",children:(0,t.jsx)(s.default,{src:e.images[0],alt:e.title,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"p-4 h-full bg-gradient-to-b from-secondary/80 to-secondary/20 text-white",children:[(0,t.jsx)("h3",{className:"font-semibold text-lg",children:e.title}),(0,t.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:e.location}),(0,t.jsx)("span",{className:"inline-block text-xs font-mediu bg-primary text-white rounded px-2 py-1",children:e.category})]})]},e.slug))}),0===c.length&&(0,t.jsx)("p",{className:"text-center text-gray-500 mt-10",children:"No projects found for this category."})]})}e.s(["default",()=>a])}]);