import{c as m,r as n,T as t,j as e,m as d}from"./index-CW-Vb8Jq.js";import{P as x}from"./PageHero-CjPCs-1o.js";import{S as o}from"./star-CJPDNRqP.js";const h=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],p=m("quote",h);function b(){const[i,l]=n.useState(0);n.useEffect(()=>{const a=setInterval(()=>l(s=>(s+1)%t.length),5e3);return()=>clearInterval(a)},[]);const r=t[i];return e.jsxs(e.Fragment,{children:[e.jsx(x,{eyebrow:"Testimonials",title:"Trusted by clients and students",subtitle:"Real words from real people I've had the privilege of working with."}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container-px mx-auto max-w-4xl",children:[e.jsxs(d.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"relative overflow-hidden rounded-3xl border border-border bg-gradient-card p-8 shadow-elegant md:p-12",children:[e.jsx(p,{className:"absolute right-8 top-8 h-16 w-16 text-primary/10"}),e.jsx("div",{className:"flex text-amber-500",children:[...Array(r.rating)].map((a,s)=>e.jsx(o,{className:"h-5 w-5 fill-current"},s))}),e.jsxs("p",{className:"mt-6 text-xl leading-relaxed md:text-2xl",children:['"',r.text,'"']}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-gradient-hero font-semibold text-primary-foreground",children:r.photo}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:r.name}),e.jsx("div",{className:"text-sm text-muted-foreground",children:r.role})]})]})]},i),e.jsx("div",{className:"mt-6 flex justify-center gap-2",children:t.map((a,s)=>e.jsx("button",{onClick:()=>l(s),"aria-label":`Show testimonial ${s+1}`,className:`h-2 rounded-full transition-all ${s===i?"w-8 bg-gradient-hero":"w-2 bg-border"}`},s))})]})}),e.jsx("section",{className:"bg-gradient-subtle py-20",children:e.jsx("div",{className:"container-px mx-auto max-w-6xl",children:e.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:t.map((a,s)=>e.jsxs(d.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{delay:s*.06},className:"rounded-2xl border border-border bg-card p-6 shadow-card transition-all hover:-translate-y-1 hover:shadow-elegant",children:[e.jsx("div",{className:"flex text-amber-500",children:[...Array(a.rating)].map((g,c)=>e.jsx(o,{className:"h-4 w-4 fill-current"},c))}),e.jsxs("p",{className:"mt-4 text-sm",children:['"',a.text,'"']}),e.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[e.jsx("div",{className:"grid h-10 w-10 place-items-center rounded-full bg-gradient-hero text-sm font-semibold text-primary-foreground",children:a.photo}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold",children:a.name}),e.jsx("div",{className:"text-xs text-muted-foreground",children:a.role})]})]})]},a.name))})})})]})}export{b as component};
