/**
 * AboutHeroSection Component
 * Description: The "About Me" hero - name, philosophy/experience pair, three CTAs
 *              and the portrait. Rendered as the first section of the landing
 *              page and as the opening of /about, so the copy lives in one place.
 * Props:
 *   - className: extra classes on the <section>; the two hosts pad the top
 *     differently (landing page: pt-24, /about: pt-4 under its own pt-24 shell)
 * Dependencies: ReactRouterDOM.Link
 */

window.AboutHeroSection = ({ className = '' }) => {
    const { Link } = ReactRouterDOM;

    return (
        <section className={`relative pb-20 lg:pb-28 border-b border-white/10 px-6 lg:px-12 ${className}`}>
            <div className="mx-auto w-full max-w-7xl">
                <div className="grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-20 items-stretch">
                    <div className="lg:col-span-7 flex flex-col justify-center gap-10">
                        <div>
                            <div className="flex items-center gap-4 mb-8">
                                <span className="h-[1px] w-12 bg-primary"></span>
                                <span className="text-xs font-bold uppercase tracking-[0.2em] text-primary">About Me</span>
                            </div>
                            <h1 className="text-6xl font-black uppercase leading-[0.85] tracking-tighter text-white sm:text-8xl lg:text-9xl">
                                BAO-ANH NGUYEN
                            </h1>
                            <p className="text-sm font-bold uppercase tracking-[0.15em] text-primary mt-4">
                                AI Specialist | BIM Specialist | Project Architect
                            </p>
                        </div>
                        <div className="grid grid-cols-1 md:grid-cols-2 gap-10 border-t border-white/10 pt-10">
                            <div>
                                <h3 className="text-white text-xs font-bold uppercase tracking-[0.2em] mb-4">Philosophy</h3>
                                <p className="text-neutral-400 text-sm leading-7 text-justify">
                                    Fusing technical architecture with BIM automation and AI to optimize complex project workflows. Delivering precision-driven solutions through a systematic and logic-based documentation approach.
                                </p>
                            </div>
                            <div>
                                <h3 className="text-white text-xs font-bold uppercase tracking-[0.2em] mb-4">Experience</h3>
                                <p className="text-neutral-400 text-sm leading-7 text-justify">
                                    10+ years of multinational expertise in Vietnam, Australia, Singapore, and Hong Kong. Specialized in Technical Architecture and BIM Management for billion-scale infrastructure and high-rise developments.
                                </p>
                            </div>
                        </div>
                        <div className="flex flex-wrap gap-6 pt-4">
                            <Link to="/work" className="group inline-flex h-12 w-48 items-center justify-center border border-white/20 text-white transition-all hover:border-white hover:bg-white hover:text-black">
                                <span className="text-xs font-black uppercase tracking-[0.15em]">View My Work</span>
                            </Link>
                            <Link to="/cv" className="group inline-flex h-12 w-48 items-center justify-center border border-white/20 text-white transition-all hover:border-white hover:bg-white hover:text-black">
                                <span className="text-xs font-black uppercase tracking-[0.15em]">View My CV</span>
                            </Link>
                            <Link to="/tools" className="group inline-flex h-12 w-48 items-center justify-center border border-white/20 text-white transition-all hover:border-white hover:bg-white hover:text-black">
                                <span className="text-xs font-black uppercase tracking-[0.15em]">View My Tools</span>
                            </Link>
                        </div>
                    </div>
                    <div className="lg:col-span-5 relative h-full min-h-[500px] lg:min-h-auto group">
                        <div className="absolute -top-4 -right-4 w-full h-full border border-primary/20 z-0 transition-transform duration-500 group-hover:translate-x-2 group-hover:-translate-y-2"></div>
                        <div className="absolute -bottom-4 -left-4 w-full h-full border border-white/5 z-0 transition-transform duration-500 group-hover:-translate-x-2 group-hover:translate-y-2"></div>
                        <div className="relative z-10 w-full h-full overflow-hidden bg-neutral-900">
                            <div className="h-full w-full bg-cover bg-center grayscale transition-all duration-700 group-hover:grayscale-0 group-hover:scale-105" style={{ backgroundImage: "url('src/assets/about/portrait.png')" }}>
                            </div>
                            <div className="absolute top-0 right-0 p-4 bg-background-dark/90 border-l border-b border-white/10">
                                <p className="text-[10px] font-mono text-white">IMG_01</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    );
};
