import React from 'react';
import { ArrowRight, BarChart2, ShieldCheck, Users, Briefcase } from 'lucide-react';
import { Link } from 'react-router-dom';

export const Home: React.FC = () => {
  return (
    <div className="w-full">
      {/* Hero Section */}
      <section className="relative h-[90vh] flex items-center justify-center overflow-hidden">
        <div className="absolute inset-0 z-0">
          <img 
            src="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80" 
            alt="Corporate Office" 
            className="w-full h-full object-cover"
          />
          <div className="absolute inset-0 bg-primary-900/80"></div>
        </div>
        
        <div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white">
          <div className="inline-block px-4 py-1.5 mb-6 border border-accent-500/50 rounded-full bg-accent-500/10 backdrop-blur-sm">
            <span className="text-accent-400 text-xs font-semibold tracking-wider uppercase">Trusted Financial Partners</span>
          </div>
          <h1 className="text-4xl md:text-6xl lg:text-7xl font-serif font-bold mb-8 leading-tight">
            Precision in Numbers,<br />
            <span className="text-accent-500">Excellence in Growth</span>
          </h1>
          
          <div className="flex flex-col sm:flex-row items-center justify-center gap-4">
            <Link to="/contact" className="px-8 py-4 bg-accent-500 hover:bg-accent-600 text-white rounded-full font-semibold text-lg transition-all transform hover:scale-105 flex items-center gap-2">
              Book Consultation <ArrowRight size={20} />
            </Link>
            <Link to="/services" className="px-8 py-4 bg-white/10 hover:bg-white/20 backdrop-blur-md text-white border border-white/30 rounded-full font-semibold text-lg transition-all">
              Explore Services
            </Link>
          </div>
        </div>
      </section>

      {/* Stats Section */}
      <section className="py-20 bg-white">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="grid grid-cols-2 md:grid-cols-4 gap-8">
            {[
              { number: '15+', label: 'Years Experience' },
              { number: '500+', label: 'Clients Served' },
              { number: '98%', label: 'Client Retention' },
              { number: '50M+', label: 'Assets Managed' }
            ].map((stat, idx) => (
              <div key={idx} className="text-center group">
                <h3 className="text-4xl md:text-5xl font-bold text-primary-900 mb-2 group-hover:text-accent-500 transition-colors">
                  {stat.number}
                </h3>
                <p className="text-gray-500 font-medium">{stat.label}</p>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* Services Preview */}
      <section className="py-20 bg-gray-50">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="text-center mb-16">
            <h2 className="text-sm font-bold text-accent-500 tracking-widest uppercase mb-3">What We Do</h2>
            <h3 className="text-3xl md:text-4xl font-serif font-bold text-primary-900">Comprehensive Financial Solutions</h3>
          </div>

          <div className="grid grid-cols-1 md:grid-cols-3 gap-8">
            <div className="bg-white p-8 rounded-2xl shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100">
              <div className="w-14 h-14 bg-blue-50 rounded-xl flex items-center justify-center text-blue-600 mb-6">
                <BarChart2 size={28} />
              </div>
              <h4 className="text-xl font-bold text-primary-900 mb-4">Accounting & Bookkeeping</h4>
              <p className="text-gray-600 mb-6 leading-relaxed">
                Meticulous recording and reporting of financial transactions to keep your business compliant and informed.
              </p>
              <Link to="/services" className="text-blue-600 font-semibold flex items-center gap-2 hover:gap-3 transition-all">
                Learn More <ArrowRight size={16} />
              </Link>
            </div>

            <div className="bg-white p-8 rounded-2xl shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100">
              <div className="w-14 h-14 bg-green-50 rounded-xl flex items-center justify-center text-green-600 mb-6">
                <Briefcase size={28} />
              </div>
              <h4 className="text-xl font-bold text-primary-900 mb-4">Tax Advisory</h4>
              <p className="text-gray-600 mb-6 leading-relaxed">
                Strategic tax planning and filing services to optimize liabilities while ensuring full regulatory compliance.
              </p>
              <Link to="/services" className="text-green-600 font-semibold flex items-center gap-2 hover:gap-3 transition-all">
                Learn More <ArrowRight size={16} />
              </Link>
            </div>
          </div>
        </div>
      </section>

      {/* Why Choose Us */}
      <section className="py-20">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="flex flex-col lg:flex-row items-center gap-16">
            <div className="lg:w-1/2">
              <img 
                src="https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1632&q=80" 
                alt="Meeting" 
                className="rounded-2xl shadow-2xl"
              />
            </div>
            <div className="lg:w-1/2">
              <h2 className="text-sm font-bold text-accent-500 tracking-widest uppercase mb-3">Why Alfalah</h2>
              <h3 className="text-3xl md:text-4xl font-serif font-bold text-primary-900 mb-6">
                We are more than just accountants. We are your strategic partners.
              </h3>
              <p className="text-gray-600 mb-8 leading-relaxed">
                At Alfalah Consultant Ltd, we combine traditional financial expertise with modern technology to deliver results that drive growth. Our team is dedicated to understanding the unique challenges of your business.
              </p>
              
              <div className="space-y-4">
                {[
                  'Certified and experienced financial experts',
                  'Tailored strategies for every business size',
                  'Proactive approach to tax and compliance',
                  'Latest technology integration for real-time insights'
                ].map((item, idx) => (
                  <div key={idx} className="flex items-center gap-3">
                    <div className="w-6 h-6 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0">
                       <ArrowRight size={14} className="text-green-600" />
                    </div>
                    <span className="text-primary-900 font-medium">{item}</span>
                  </div>
                ))}
              </div>
            </div>
          </div>
        </div>
      </section>
    </div>
  );
};

(window as any).Home = Home;