import React from 'react';
import { useTranslations } from 'next-intl';
import { Section, Container, Heading } from '../../components/ui';

export default function WhatWeDo() {
  const t = useTranslations('Home.whatWeDo');

  return (
    <Section className="bg-white text-neutral-dark">
      <Container>
        <div className="grid grid-cols-1 lg:grid-cols-12 gap-16 lg:gap-24">
          <div className="lg:col-span-4">
            <div className="sticky top-32">
              <Heading level={2} subtitle="Our Expertise">
                {t('title')}
              </Heading>
              <p className="text-xl text-text-secondary leading-relaxed">
                {t('subtitle')}
              </p>
              <div className="mt-12 p-8 bg-primary-light rounded-2xl border border-primary/10">
                <p className="text-primary font-bold text-lg italic">
                  "We don't just deliver cables; we deliver the infrastructure for a sustainable future."
                </p>
              </div>
            </div>
          </div>
          <div className="lg:col-span-8 grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-20">
            {[0, 1, 2, 3].map((idx) => (
              <div key={idx} className="group">
                <div className="flex items-center gap-4 mb-6">
                  <span className="flex items-center justify-center w-12 h-12 rounded-full bg-primary text-white font-bold text-lg shadow-lg shadow-primary/20 group-hover:scale-110 transition-transform">
                    {idx + 1}
                  </span>
                  <div className="h-px flex-grow bg-neutral-medium" />
                </div>
                <h3 className="text-2xl font-bold mb-4 text-primary group-hover:text-accent-dark transition-colors">{t(`items.${idx}.title`)}</h3>
                <p className="text-text-secondary text-lg leading-relaxed">{t(`items.${idx}.description`)}</p>
              </div>
            ))}
          </div>
        </div>
      </Container>
    </Section>
  );
}
