import React from "react";
import { Navigation } from "../components/Navigation";
import { Footer } from "../components/Footer";
import { Button } from "../components/ui/button";
import { Badge } from "../components/ui/badge";
import { Card, CardContent } from "../components/ui/card";
import {
  ArrowRight,
  Monitor,
  Code,
  Smartphone,
  Zap,
  Target,
  Users,
  CheckCircle,
  Star,
  Palette,
} from "lucide-react";
import { useNavigate } from "react-router-dom";
import { Helmet } from "react-helmet-async";
import { FrontendVector } from "@/components/vectors";
import { HireTalentHeroBanner } from "@/components/HireTalentHeroBanner";

export const HireFrontendDevelopers = () => {
  const navigate = useNavigate();
  const expertise = [
    {
      category: "JavaScript Frameworks",
      description:
        "React.js, Angular, Vue.js for dynamic and single-page applications",
      skills: ["React.js", "Angular", "Vue.js", "Next.js", "Svelte"],
    },
    {
      category: "Core Technologies",
      description: "HTML5, CSS3 (Sass, Less), JavaScript (ES6+)",
      skills: ["HTML5", "CSS3", "JavaScript ES6+", "TypeScript", "Sass/Less"],
    },
    {
      category: "Responsive Design",
      description:
        "Building interfaces that adapt flawlessly across all devices and screen sizes",
      skills: ["CSS Grid", "Flexbox", "Media Queries", "Mobile-First Design"],
    },
    {
      category: "UI Libraries & Frameworks",
      description: "Bootstrap, Material-UI, Tailwind CSS",
      skills: [
        "Bootstrap",
        "Material-UI",
        "Tailwind CSS",
        "Ant Design",
        "Chakra UI",
      ],
    },
    {
      category: "Performance Optimization",
      description: "Ensuring fast loading times and smooth interactions",
      skills: [
        "Webpack",
        "Vite",
        "Code Splitting",
        "Lazy Loading",
        "Performance Auditing",
      ],
    },
    {
      category: "Cross-Browser Compatibility",
      description:
        "Developing solutions that work consistently across all major browsers",
      skills: [
        "Browser Testing",
        "Polyfills",
        "Progressive Enhancement",
        "Feature Detection",
      ],
    },
  ];

  const heroBanner = [
    {
      category: "Hire Expert Developers",
      title: "Hire Frontend Developers",
      description: "Get access to expert frontend developers skilled in React, Vue, Angular, and modern web technologies. Create stunning, responsive user interfaces that deliver exceptional user experiences.",
      primaryCTA: {
        text: "Hire Frontend Developers",
        href: "/start-a-project",
        icon: Monitor
      },
      secondaryCTA: {
        text: "View Developer Profiles",
        href: "/hire-talent",
        icon: Users
      }
    },
  ]
  const deliverables = [
    {
      icon: Target,
      title: "Pixel-Perfect Implementation",
      description: "Translating UI/UX designs into precise code.",
    },
    {
      icon: Zap,
      title: "Optimized Performance",
      description: "Writing efficient code for speed and responsiveness.",
    },
    {
      icon: Smartphone,
      title: "Interactive & Dynamic UIs",
      description:
        "Creating engaging user experiences with animations and interactive elements.",
    },
    {
      icon: Users,
      title: "Accessibility Standards",
      description: "Ensuring applications are usable for everyone.",
    },
    {
      icon: Code,
      title: "Collaboration with Backend Teams",
      description: "Seamless integration with APIs and server-side logic.",
    },
  ];

  const projectTypes = [
    "Rich Web Applications",
    "Interactive Dashboards & Admin Panels",
    "E-commerce Frontends",
    "Marketing Websites with Complex Animations",
    "Progressive Web Apps (PWAs)",
  ];

  const testimonials = [
    {
      quote:
        "The frontend developer from WDI transformed our outdated interface into a modern, responsive design that our users love. The attention to detail was exceptional.",
      author: "Lisa Anderson",
      role: "Product Manager, DesignCorp",
      rating: 5,
    },
    {
      quote:
        "Our React-based dashboard is now lightning fast and incredibly user-friendly. The developer's expertise in performance optimization made all the difference.",
      author: "James Wilson",
      role: "Tech Lead, Analytics Pro",
      rating: 5,
    },
  ];

  return (
    <div className="dark min-h-screen bg-background">
      {/* <Navigation /> */}

      <Helmet>
        {/* Page Title and Meta Description */}
        <title>Hire Frontend Developers | Skilled Talent at WDI</title>
        <meta
          name="description"
          content="Hire frontend developers from WDI to build high-quality, responsive, and scalable web applications tailored to your business needs with expert skills"
        />

        {/* Canonical Link */}
        <link rel="canonical" href="https://www.wdipl.com/hire-talent/frontend-developers" />

        {/* Open Graph Tags (for Facebook, LinkedIn) */}
        <meta property="og:title" content="Hire Frontend Developers | Skilled Talent at WDI" />
        <meta
          property="og:description"
          content="Hire frontend developers from WDI to build high-quality, responsive, and scalable web applications tailored to your business needs with expert skills"
        />
        <meta property="og:url" content="https://www.wdipl.com/services" />
        <meta property="og:type" content="website" />
        <meta property="og:image" content="https://www.wdipl.com/your-preview-image.jpg" />

        {/* Twitter Card Tags */}
        <meta name="twitter:card" content="summary_large_image" />
        <meta name="twitter:title" content="Hire Frontend Developers | Skilled Talent at WDI" />
        <meta
          name="twitter:description"
          content="Hire frontend developers from WDI to build high-quality, responsive, and scalable web applications tailored to your business needs with expert skills"
        />
        <meta name="twitter:image" content="https://www.wdipl.com/your-preview-image.jpg" />

        {/* Social Profiles (using JSON-LD Schema) */}
        <script type="application/ld+json">
          {`
                              {
                                "@context": "https://schema.org",
                                "@type": "Organization",
                                "name": "WDI",
                                "url": "https://www.wdipl.com",
                                "sameAs": [
                                  "https://www.facebook.com/wdideas",
                                  "https://www.linkedin.com/in/website-developers-india/",
                                  "https://www.instagram.com/wdipl/"
                                ]
                              }
                            `}
        </script>
      </Helmet>

      {/* Hero Section */}

      <HireTalentHeroBanner
        vectorComponent={FrontendVector}
        category={heroBanner[0].category}
        title={heroBanner[0].title}
        description={heroBanner[0].description}
        primaryCTA={heroBanner[0].primaryCTA}
        secondaryCTA={heroBanner[0].secondaryCTA}
      />

      {/* Introduction */}
      <section className="py-16 bg-card/50">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-4xl mx-auto text-center">
            <p className="text-lg text-muted-foreground leading-relaxed">
              Our experts ensure your users enjoy seamless navigation and a
              visually compelling journey. From responsive layouts to complex
              interactions, we bring your frontend vision to life with precision
              and creativity.
            </p>
          </div>
        </div>
      </section>

      {/* Frontend Development Expertise */}
      <section className="py-16 bg-background">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="text-center mb-12">
            <h2 className="text-3xl md:text-4xl font-bold mb-4 text-white">
              Our Frontend Development Expertise
            </h2>
            <p className="text-muted-foreground max-w-2xl mx-auto">
              Comprehensive frontend skills for modern web development
            </p>
          </div>

          <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
            {expertise.map((area, index) => (
              <Card
                key={index}
                className="bg-card/50 border-white/10 hover:border-[#E5195E]/30 transition-all duration-300 group"
              >
                <CardContent className="p-6">
                  <h3 className="text-lg font-semibold text-white mb-3 group-hover:text-[#E5195E] transition-colors duration-300">
                    {area.category}
                  </h3>

                  <p className="text-muted-foreground text-sm mb-4 leading-relaxed">
                    {area.description}
                  </p>

                  <div className="space-y-1">
                    {area.skills.map((skill, skillIndex) => (
                      <div key={skillIndex} className="flex items-center gap-2">
                        <div className="w-1.5 h-1.5 rounded-full bg-[#E5195E]" />
                        <span className="text-muted-foreground text-xs">
                          {skill}
                        </span>
                      </div>
                    ))}
                  </div>
                </CardContent>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* What Our Developers Bring */}
      <section className="py-16 bg-card/50">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="text-center mb-12">
            <h2 className="text-3xl md:text-4xl font-bold mb-4 text-white">
              What Our Frontend Developers Bring
            </h2>
            <p className="text-muted-foreground max-w-2xl mx-auto">
              Exceptional frontend solutions that enhance user engagement
            </p>
          </div>

          <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto">
            {deliverables.map((item, index) => (
              <Card
                key={index}
                className="bg-background/50 border-white/10 hover:border-[#E5195E]/30 transition-all duration-300 group"
              >
                <CardContent className="p-6 text-center">
                  <item.icon className="w-8 h-8 text-[#E5195E] mb-4 mx-auto group-hover:scale-110 transition-transform duration-300" />
                  <h3 className="text-lg font-semibold text-white mb-3 group-hover:text-[#E5195E] transition-colors duration-300">
                    {item.title}
                  </h3>
                  <p className="text-muted-foreground text-sm leading-relaxed">
                    {item.description}
                  </p>
                </CardContent>
              </Card>
            ))}
          </div>
        </div>
      </section>

      {/* Ideal Projects */}
      <section className="py-16 bg-background">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="text-center mb-12">
            <h2 className="text-3xl md:text-4xl font-bold mb-4 text-white">
              Ideal for Projects Requiring
            </h2>
            <p className="text-muted-foreground max-w-2xl mx-auto">
              Frontend expertise that makes a difference
            </p>
          </div>

          <div className="grid md:grid-cols-2 gap-6 max-w-3xl mx-auto">
            {projectTypes.map((project, index) => (
              <div
                key={index}
                className="flex items-center gap-3 p-4 rounded-lg bg-card/50 border border-white/10 hover:border-[#E5195E]/30 transition-all duration-300"
              >
                <CheckCircle className="w-5 h-5 text-[#E5195E] flex-shrink-0" />
                <span className="text-white">{project}</span>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* Testimonials */}
      {/* <section className="py-16 bg-card/50">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="text-center mb-12">
            <h2 className="text-3xl md:text-4xl font-bold mb-4 text-white">
              Client Success Stories
            </h2>
            <p className="text-muted-foreground max-w-2xl mx-auto">
              Real results from satisfied clients
            </p>
          </div>

          <div className="grid md:grid-cols-2 gap-8 max-w-4xl mx-auto">
            {testimonials.map((testimonial, index) => (
              <Card key={index} className="bg-background/50 border-white/10">
                <CardContent className="p-8">
                  <div className="flex gap-1 mb-4">
                    {[...Array(testimonial.rating)].map((_, i) => (
                      <Star
                        key={i}
                        className="w-5 h-5 text-yellow-400 fill-current"
                      />
                    ))}
                  </div>

                  <p className="text-muted-foreground mb-6 leading-relaxed italic">
                    "{testimonial.quote}"
                  </p>

                  <div className="border-t border-white/10 pt-6">
                    <h4 className="text-white font-semibold">
                      {testimonial.author}
                    </h4>
                    <p className="text-[#E5195E] text-sm">{testimonial.role}</p>
                  </div>
                </CardContent>
              </Card>
            ))}
          </div>
        </div>
      </section> */}

      {/* CTA Section */}
      <section className="py-16 bg-background">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-4xl mx-auto text-center">
            <h2 className="text-3xl md:text-4xl font-bold mb-6 text-white">
              Ready to Transform Your User Interface?
            </h2>
            <p className="text-lg text-muted-foreground mb-8 max-w-2xl mx-auto">
              Connect with our frontend specialists and create user experiences
              that engage and convert.
            </p>
            <div className="flex flex-col sm:flex-row gap-4 justify-center">
              <Button
                size="lg"
                className="bg-[#E5195E] hover:bg-[#E5195E]/90 text-white"
                onClick={() => navigate("/start-a-project")}
              >
                Get Started Today
                <ArrowRight className="ml-2 w-4 h-4" />
              </Button>
              <Button
                size="lg"
                variant="outline"
                className="border-white/20 text-white hover:bg-white/10"
              >
                View Portfolio
              </Button>
            </div>
          </div>
        </div>
      </section>

      {/* <Footer /> */}
    </div>
  );
};
