import { useState, useEffect, useRef } from "react"; import { motion } from "motion/react"; import { Users, Settings, User, Globe, MessageSquare, GraduationCap, TrendingUp, Building, ArrowRight } from "lucide-react"; import { BrandedTag } from "./about/BrandedTag"; import { StandardCTAButton } from "./StandardCTAButton"; import { navigateTo } from "./Router"; // Services data const recognitionItems = [ { id: 1, title: "Leadership Pipeline Development", description: "Build a strong foundation for sustainable leadership succession. Identify, assess, and develop high-potential talent through structured pathways that ensure organizational continuity and growth.", icon: , route: '/services/leadership-pipeline-development' }, { id: 2, title: "Leadership Development", description: "Comprehensive programs designed to cultivate strategic thinking and emotional intelligence. Develop capabilities that drive organizational success through authentic leadership practices.", icon: , route: '/services/leadership-development' }, { id: 3, title: "Management Development", description: "Essential skills training for first-time and experienced managers seeking growth. Focus on communication, delegation, and performance management excellence.", icon: , route: '/services/management-development' }, { id: 4, title: "Culture & Competence Consulting", description: "Transform organizational culture and build inclusive practices that enhance team collaboration. Navigate cultural differences with confidence and create environments where everyone thrives.", icon: , route: '/services/culture-competence' }, { id: 5, title: "Coaching & Mentoring", description: "One-on-one personalized development for senior leaders and high-potential talent. Strategic guidance for complex leadership challenges, career advancement, and personal growth.", icon: , route: '/services/executive-coaching' }, { id: 6, title: "Leadership Campus (Facility)", description: "Experience learning in a world-class environment designed for transformation. Our state-of-the-art facility provides the perfect setting for immersive leadership development programs.", icon: , route: '/services/learning-facility' } ]; export function ServicesSection() { const [isVisible, setIsVisible] = useState(false); const cardRefs = useRef<(HTMLDivElement | null)[]>([]); const sectionRef = useRef(null); // Add card refs helper const addCardRef = (el: HTMLDivElement | null, index: number) => { cardRefs.current[index] = el; }; // Intersection observer for animations useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { setIsVisible(true); } }); }, { threshold: 0.2 } ); if (sectionRef.current) { observer.observe(sectionRef.current); } return () => observer.disconnect(); }, []); // Keyboard navigation const handleKeyDown = (e: React.KeyboardEvent, index: number) => { if (e.key === 'ArrowDown' && index < cardRefs.current.length - 1) { cardRefs.current[index + 1]?.focus(); e.preventDefault(); } else if (e.key === 'ArrowUp' && index > 0) { cardRefs.current[index - 1]?.focus(); e.preventDefault(); } }; return (
{/* Desktop Layout - Grid with Sticky Sidebar */}
{/* Left Side - Sticky Content */}

Shaping Leaders, Cultures, and Institutions

No two institutions are alike — and neither are their leadership needs. That's why every KLC service is rooted in research, tailored to context, and aligned with strategy. From shaping leaders and managers to shaping culture, developing talent frameworks, and offering practical high impact learning, we partner with you to create leadership solutions that deliver lasting value.

{/* CTA Button - Left aligned */}
navigateTo('/services')} ariaLabel="Explore our services" />
{/* Right Side - Scrolling Cards */}
{recognitionItems.map((item, index) => (
addCardRef(el, index)} className={`recognition-card group scroll-animate-stagger cursor-pointer focus-ring ${isVisible ? 'animate-in' : ''}`} role="listitem" aria-labelledby={`recognition-title-${item.id}`} aria-describedby={`recognition-desc-${item.id}`} tabIndex={0} onKeyDown={(e) => handleKeyDown(e, index)} style={{ transitionDelay: `${(index + 1) * 150}ms`, opacity: isVisible ? 1 : 0 }} onClick={() => navigateTo(item.route)} >
{item.icon}

{item.title}

{item.description}

))}
{/* Mobile Layout - Stacked Header + Horizontal Scrollable Cards */}
{/* Mobile Header */}

Shaping Leaders, Cultures, and Institutions

No two institutions are alike — and neither are their leadership needs. That's why every KLC service is rooted in research, tailored to context, and aligned with strategy. From shaping leaders and managers to shaping culture, developing talent frameworks, and offering practical high impact learning, we partner with you to create leadership solutions that deliver lasting value.

{/* CTA Button - Left aligned for mobile */}
navigateTo('/services')} ariaLabel="Explore our services" />
{/* Mobile Horizontal Scrollable Cards */}
{recognitionItems.map((item, index) => (
handleKeyDown(e, index)} style={{ scrollSnapAlign: 'start', width: '320px', transitionDelay: `${(index + 1) * 150}ms`, opacity: isVisible ? 1 : 0 }} >
{item.icon}

{item.title}

{item.description}

))}
); }