'use client';
import { motion } from 'framer-motion';
import { NavigationMenuDemo } from '../Header/MainNavbar';
import { useTranslator } from '@/contexts/TranslatorContext';

const AboutHeroSection = () => {
  const { translations } = useTranslator();

  return (
    <div className='relative w-full min-h-1/4 bg-[#092346] rounded-b-[20px] before:absolute before:inset-0 before:w-[100%] before:bottom-[-10px] before:bg-[#092346]/30 before:rounded-b-[20px]'>
      {/* Background image */}
      <div className='absolute inset-0'>
          <img
            src='/images/Hero/about-hero.svg'
            className='absolute w-full bottom-0 left-0'
          />
      </div>

      {/* Content over background */}
      <NavigationMenuDemo />

      <motion.div
        className='relative z-10 text-white flex flex-col pt-8 pb-8 md:pt-10 md:pb-10 items-center min-h-[280px] md:min-h-[320px]'
        initial={{ opacity: 0, y: 30 }}
        animate={{ opacity: 1, y: 0 }}
        transition={{ duration: 0.6, ease: 'easeOut' }}>
        <div className='w-full max-w-4xl flex flex-col items-center justify-center px-4 text-center'>
          <motion.p
            className='text-2xl sm:text-3xl md:text-4xl font-semi-bold'
            initial={{ opacity: 0, y: 20 }}
            animate={{ opacity: 1, y: 0 }}
            transition={{ duration: 0.6, delay: 0.2, ease: 'easeOut' }}>
            {translations['about_title']}
          </motion.p>
          <motion.p
            className='text-base sm:text-lg md:text-xl font-medium pt-3 sm:pt-4 md:pt-5'
            initial={{ opacity: 0, y: 20 }}
            animate={{ opacity: 1, y: 0 }}
            transition={{ duration: 0.6, delay: 0.4, ease: 'easeOut' }}>
            {translations['about_description']}
          </motion.p>
        </div>
      </motion.div>
    </div>
  );
};

export default AboutHeroSection;
