"use client"; import { useState } from "react"; import Link from "next/link"; import { motion } from "framer-motion"; import { ArrowRight, Refresh, Code, Sparkles, Cloud } from "@/components/ui/icons"; import AnimatedButton from "@/components/ui/AnimatedButton"; /** * Home capabilities section — expanding horizontal accordion (desktop). * Four tall panels sit side by side; the active one grows wide and reveals * its content while the rest collapse into slim rails with vertical titles. * Hover (or focus) a panel to expand it. On mobile it falls back to a * simple stacked list. Brand-strict: Google Sans everywhere, orange/gold * tokens. */ // Panel background images live in /public/images. Pillar3/Pillar4 are // referenced already — they'll show up automatically once uploaded. const PILLARS = [ { no: "01", Icon: Refresh, title: "Technology Consulting", desc: "We review where you are, plan where you're headed, and help your team make technology calls that actually pay off.", href: "/services/it-consulting", image: "/images/opt/Pillar1.webp", }, { no: "02", Icon: Code, title: "Product Engineering", desc: "From first prototype to production — dependable web, mobile and platform software your users enjoy.", href: "/services/software-development", image: "/images/opt/Pillar2.webp", }, { no: "03", Icon: Sparkles, title: "AI & Data Intelligence", desc: "AI, machine learning and analytics that automate the routine and surface insight you can act on.", href: "/services/ai-development", image: "/images/Pillar3.png", }, { no: "04", Icon: Cloud, title: "Cloud & Cybersecurity", desc: "Secure, cloud-native foundations and automated delivery that keep you fast, available and protected.", href: "/services/cybersecurity", image: "/images/Pillar4.png", }, ]; const HEAD_WORDS = ["We", "help", "you", "build,", "launch", "and"]; const container = { hidden: {}, show: { transition: { staggerChildren: 0.12 } } }; const word = { hidden: { yPercent: 120 }, show: { yPercent: 0, transition: { duration: 0.7, ease: [0.21, 0.47, 0.32, 0.98] } }, }; const rise = { hidden: { opacity: 0, y: 44 }, show: { opacity: 1, y: 0, transition: { duration: 0.65, ease: [0.21, 0.47, 0.32, 0.98] } }, }; export default function ServicePillars() { const [active, setActive] = useState(1); return (
{/* ambient brand glow */}
{/* Header */} What we do

{HEAD_WORDS.map((w, i) => ( {w}   ))} scale with confidence.

{/* Desktop — expanding accordion */} {PILLARS.map(({ no, Icon, title, desc, href, image }, i) => { const isActive = i === active; return ( setActive(i)} onFocus={() => setActive(i)} style={{ flexGrow: isActive ? 2.8 : 1, transition: "flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1)", }} className={ "group relative flex min-w-0 basis-0 flex-col justify-end overflow-hidden rounded-2xl border bg-surface p-7 " + (isActive ? "border-primary/50 shadow-2xl shadow-primary/10" : "border-border hover:border-primary/30") } > {/* background image + legibility overlay */} {/* Mobile — stacked cards */} {PILLARS.map(({ no, Icon, title, desc, href }) => ( {no}

{title}

{desc}

))}
{/* CTA */} Explore all services
); }