'use client';

import React from 'react';
import { useT } from '@/i18n';
import AnimateOnScroll from '@/components/AnimateOnScroll';
import s from '../content.module.css';

export default function CareersPage() {
  const t = useT();
  const jobs = [
    { icon: '\u{1F4BB}', titleKey: 'careers_job1_title', descKey: 'careers_job1_desc' },
    { icon: '\u{26D3}', titleKey: 'careers_job2_title', descKey: 'careers_job2_desc' },
    { icon: '\u{1F4F1}', titleKey: 'careers_job3_title', descKey: 'careers_job3_desc' },
    { icon: '\u{1F6E1}', titleKey: 'careers_job4_title', descKey: 'careers_job4_desc' },
    { icon: '\u{1F4CA}', titleKey: 'careers_job5_title', descKey: 'careers_job5_desc' },
    { icon: '\u{1F3A8}', titleKey: 'careers_job6_title', descKey: 'careers_job6_desc' },
  ];
  return (
    <>
      <section className={s.hero}>
        <h1 className={s.title}>{t('careers_title')}</h1>
        <p className={s.subtitle}>{t('careers_subtitle')}</p>
      </section>
      <div className={s.grid}>
        {jobs.map((j, i) => (
          <AnimateOnScroll key={j.titleKey} delay={i * 0.1}>
            <div className={s.card}>
              <div className={s.cardIcon}>{j.icon}</div>
              <h3 className={s.cardTitle}>{t(j.titleKey)}</h3>
              <p className={s.cardDesc}>{t(j.descKey)}</p>
              <a href="mailto:hr@gogenex.com" className={s.cardLink}>{t('careers_apply')} &rarr;</a>
            </div>
          </AnimateOnScroll>
        ))}
      </div>
    </>
  );
}
