import { useState, useEffect, useRef } from "react"; import { motion } from "motion/react"; import { Users, Settings, User, Globe, MessageSquare, GraduationCap, ArrowRight } from "lucide-react"; import { BrandedTag } from "./about/BrandedTag"; import { PrimaryCTAButton } from "./PrimaryCTAButton"; import { navigateTo } from "./Router"; // Services data const recognitionItems = [ { id: 1, 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: , badge: "CORE PROGRAM", badgeColor: "#F8C301" }, { id: 2, title: "Management Development", description: "Essential skills training for first-time and experienced managers seeking growth. Focus on communication, delegation, and performance management excellence.", icon: , badge: "POPULAR", badgeColor: "#04045B" }, { id: 3, title: "Culture Competence", description: "Build cultural awareness and inclusive practices that enhance team collaboration. Navigate cultural differences with confidence and create inclusive environments.", icon: , badge: "GLOBAL FOCUS", badgeColor: "#F8C301" }, { id: 4, title: "Executive Coaching", description: "One-on-one personalized development for senior leaders and high-potential talent. Strategic guidance for complex leadership challenges and career advancement.", icon: , badge: "PREMIUM", badgeColor: "#04045B" }, { id: 5, title: "Communication Excellence", description: "Master the art of influential communication across all organizational levels. Develop presentation skills, difficult conversation navigation, and stakeholder engagement.", icon: , badge: "ESSENTIAL", badgeColor: "#F8C301" }, { id: 6, title: "Change Leadership", description: "Guide organizations through transformation with confidence and clarity. Learn frameworks for managing resistance, building momentum, and sustaining change initiatives.", icon: , badge: "STRATEGIC", badgeColor: "#04045B" } ]; export function ServicesSectionNew() { 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" className="services-cta-override" />
{/* Right Side - Scrolling Cards */}
{recognitionItems.map((item, index) => (
addCardRef(el, index)} className={`recognition-card group scroll-animate-stagger 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 }} >
{item.icon}
{item.badge && (
{item.badge}
)}

{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" className="services-cta-override" />
{/* 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.badge && (
{item.badge}
)}

{item.title}

{item.description}

))}
); }