diff --git a/src/components/FAQItem.tsx b/src/components/FAQItem.tsx index 36ddc417..37166d97 100644 --- a/src/components/FAQItem.tsx +++ b/src/components/FAQItem.tsx @@ -13,7 +13,14 @@ const faqItemVariants = { }; const faqQuestionButtonVariants = { - hover: { scale: 1.02 }, + initial: { backgroundColor: 'rgba(0,0,0,0)', y: 0 }, + hover: { + scale: 1.02, + backgroundColor: 'rgba(0,0,0,0.12)', + y: -1, + boxShadow: '0 4px 8px rgba(0,0,0,0.1)', + transition: { type: 'spring' as const, stiffness: 300, damping: 15 }, + }, }; const faqToggleIconVariants = (isOpen: boolean) => ({ @@ -44,17 +51,17 @@ const FAQItem = ({ index, question, answer }: FAQItemProps) => { animate="animate" > - {question} + {question} {isOpen ? '-' : '+'} @@ -65,7 +72,7 @@ const FAQItem = ({ index, question, answer }: FAQItemProps) => { animate="animate" style={{ overflow: 'hidden' }} > -

{answer}

+

{answer}

);