@@ -49,6 +94,7 @@ const About = () => {
initial={{ opacity: 0, y: 10 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
+ viewport={{ once: true }}
>
Our Mission
@@ -64,20 +110,112 @@ const About = () => {
What We Do
- {features.map((feature, idx) => (
-
- {feature.icon}
- {feature.title}
- {feature.description}
-
- ))}
+ {features.map((feature, idx) => {
+ const isActive = activeIdx === idx;
+ return (
+
handleCardClick(idx)}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleCardClick(idx);
+ }
+ }}
+ >
+ {feature.icon}
+ {feature.title}
+ {feature.description}
+
+ );
+ })}
+
+
+ {/* Detailed Expandable Section */}
+
+
+ {activeIdx !== null && (
+
+
+ {/* Premium visual gradient top bar */}
+
+
+ {/* Close Button */}
+
+
+ {/* Content Layout */}
+
+
+ {features[activeIdx].icon}
+
+
+
{features[activeIdx].title}
+
+ {features[activeIdx].details.description}
+
+
+ {/* Bullet Points Grid */}
+
+ {features[activeIdx].details.bullets.map((bullet, bIdx) => (
+
+
+
+
+
+
+ {bullet.title}
+
+
+ {bullet.text}
+
+
+
+ ))}
+
+
+
+
+
+ )}
+