"use client";

import { motion } from "framer-motion";
import AnimatedImage from "@/components/ui/animated-image";

export default function HeroSection() {
  return (
    <section className="relative w-full h-[70vh] md:h-[80vh] overflow-hidden">
      <div className="absolute inset-0 bg-black/60 z-10" />
      <div className="relative h-full w-full">
        <AnimatedImage
          src="/hero.jpg"
          alt="Historical image of Italian migrants in the Northern Territory"
          fill
        />
      </div>
      <div className="absolute inset-0 z-20 flex flex-col items-center justify-center text-center px-4">
        <motion.div
          initial={{ opacity: 0, y: 20 }}
          animate={{ opacity: 1, y: 0 }}
          transition={{ duration: 0.8, delay: 0.2 }}
          className="max-w-4xl"
        >
          {/* Top 4 bars */}
          <div className="flex items-center justify-center mb-6 space-x-1">
            <div className="h-1 w-12 bg-green-600" />
            <div className="h-1 w-12 bg-white" />
            <div className="h-1 w-12 bg-red-600" />
            <div className="h-1 w-12 bg-gray-400" />
          </div>

          <h1 className="text-4xl md:text-6xl font-bold text-white mb-4 font-serif">
            Italian Migration to the Northern Territory
          </h1>
          <p className="text-xl md:text-2xl text-white max-w-3xl italic text-center mx-auto">
            Exploring the rich history and cultural legacy of Italian immigrants
            in Australia's Northern Territory
          </p>

          {/* Bottom 4 bars */}
          <div className="flex items-center justify-center mt-6 space-x-1">
            <div className="h-1 w-12 bg-green-600" />
            <div className="h-1 w-12 bg-white" />
            <div className="h-1 w-12 bg-red-600" />
            <div className="h-1 w-12 bg-gray-400" />
          </div>
        </motion.div>
      </div>
      <div className="absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-black to-transparent z-10" />
    </section>
  );
}
