"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroLogo from "@/components/sections/hero/HeroLogo";
import MetricCardEleven from "@/components/sections/metrics/MetricCardEleven";
import FeatureCardTwelve from "@/components/sections/feature/FeatureCardTwelve";
import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterBase from "@/components/sections/footer/FooterBase";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "About", id: "about" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Quick Links",
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "#services" },
        { label: "About Us", href: "/about" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Services",
      items: [
        { label: "Germany Work Visa", href: "/services/germany-work-visa" },
        { label: "Canada PR", href: "/services/canada-pr" },
        { label: "Australia PR", href: "/services/australia-pr" },
        { label: "UK Work Visa", href: "/services/uk-work-visa" },
      ],
    },
    {
      title: "Contact Info",
      items: [
        { label: "Phone: +91 98702 96179", href: "tel:+919870296179" },
        {
          label: "Address: Laxmi Deep Building, V3S Mall, Laxmi Nagar, Delhi",
          href: "#",
        },
        {
          label: "Email: info@infiniximmigration.com",
          href: "mailto:info@infiniximmigration.com",
        },
        { label: "WhatsApp: +91 98702 96179", href: "https://wa.me/919870296179" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Disclaimer", href: "#" },
        { label: "Code of Conduct", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="small"
      sizing="mediumSizeLargeTitles"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Infinix Immigration Services"
          bottomLeftText="Delhi, India"
          bottomRightText="+91 98702 96179"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Infinix Immigration Services"
          description="Honest Immigration Guidance You Can Trust. No false promises. Clear process. Real results for Germany, Canada & Australia visas."
          buttons={[
            {
              text: "Call Now: +91 98702 96179",
              href: "tel:+919870296179",
            },
            {
              text: "Get Free Consultation",
              href: "/contact",
            },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/hand-writing-travel-elements_23-2148077209.jpg?_wi=1"
          imageAlt="Infinix Immigration Services office consultation"
          showDimOverlay={false}
        />
      </div>

      <div id="trust-signals" data-section="trust-signals">
        <MetricCardEleven
          title="Why Clients Trust Us"
          description="Built on transparency, expertise, and real results. We believe in honest guidance over false promises."
          metrics={[
            {
              id: "experience",
              value: "15+",
              title: "Years of Experience",
              description: "Guiding immigration journeys with transparency and expertise",              imageSrc: "/images/metric-placeholder.svg",              imageAlt: "Metric icon",
            },
            {
              id: "success",
              value: "500+",
              title: "Successful Cases",
              description: "Real families achieving their immigration goals",              imageSrc: "/images/metric-placeholder.svg",              imageAlt: "Metric icon",
            },
            {
              id: "satisfaction",
              value: "4.8/5",
              title: "Client Rating",
              description: "Based on 97+ verified reviews from satisfied clients",              imageSrc: "/images/metric-placeholder.svg",              imageAlt: "Metric icon",
            },
            {
              id: "countries",
              value: "5+",
              title: "Visa Programs",
              description: "Germany, Canada, Australia, UK, and more",              imageSrc: "/images/metric-placeholder.svg",              imageAlt: "Metric icon",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwelve
          title="Our Immigration Services"
          description="Comprehensive visa and PR consultation across multiple countries. Realistic timelines. Transparent processes."
          features={[
            {
              id: "germany",
              label: "Germany Work Visa",
              title: "Germany Work Visa & Opportunity Card",
              items: [
                "Work Visa (Skilled Worker Visa)",
                "Opportunity Card (Chancenkarte)",
                "Blue Card (EU Skilled Workers)",
                "Tech Visa Programs",
                "Industry-specific guidance",
              ],
            },
            {
              id: "canada",
              label: "Canada PR",
              title: "Canada Permanent Residency",
              items: [
                "Express Entry (CRS Score Optimization)",
                "Provincial Nominee Programs (PNPs)",
                "Family Sponsorship",
                "Self-Employed Programs",
                "Pathway guidance based on profile",
              ],
            },
            {
              id: "australia",
              label: "Australia PR",
              title: "Australia Permanent Residency",
              items: [
                "Skilled Independent Visa (189)",
                "State Nominated Visa (190)",
                "Regional Sponsored Visa (491)",
                "Occupation assessment guidance",
                "Points system optimization",
              ],
            },
            {
              id: "student",
              label: "Student Visas",
              title: "International Student Visa Programs",
              items: [
                "Australia Student Visa (Subclass 500)",
                "Canada Study Permit",
                "UK Student Visa",
                "Document guidance and preparation",
                "University shortlisting support",
              ],
            },
            {
              id: "uk",
              label: "UK Work Visas",
              title: "UK Work Visa Programs",
              items: [
                "Skilled Worker Visa",
                "Graduate Route",
                "Intra-Company Transfer",
                "Start-up Visa",
                "Sponsorship guidance",
              ],
            },
            {
              id: "business",
              label: "Business Visas",
              title: "Business & Entrepreneurship Visas",
              items: [
                "Investor Visas",
                "Entrepreneur Programs",
                "Self-Employment Options",
                "Business documentation support",
                "Regulatory compliance guidance",
              ],
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardTwelve
          title="Our Transparent Process"
          description="Clear, step-by-step guidance with realistic timelines. We're honest about what it takes to succeed."
          features={[
            {
              id: "step1",
              label: "Step 1",
              title: "Profile Evaluation",
              items: [
                "Comprehensive review of your qualifications",
                "Assessment against visa requirements",
                "Honest feedback on eligibility",
                "Identification of gaps or strengths",
                "Realistic success probability",
              ],
            },
            {
              id: "step2",
              label: "Step 2",
              title: "Eligibility & Strategy",
              items: [
                "Detailed eligibility analysis",
                "Best visa pathway selection",
                "Timeline estimation (realistic)",
                "Cost breakdown and expectations",
                "Documentation requirements list",
              ],
            },
            {
              id: "step3",
              label: "Step 3",
              title: "Documentation Support",
              items: [
                "Guidance on required documents",
                "Quality check and preparation",
                "English translation support",
                "Notarization assistance",
                "Form completion help",
              ],
            },
            {
              id: "step4",
              label: "Step 4",
              title: "Application Filing",
              items: [
                "Application submission on your behalf",
                "File tracking and monitoring",
                "Government communication handling",
                "Additional information (if required)",
                "Status updates and alerts",
              ],
            },
            {
              id: "step5",
              label: "Step 5",
              title: "Support & Follow-up",
              items: [
                "Ongoing communication with authorities",
                "Visa outcome notification",
                "Interview preparation (if needed)",
                "Post-visa settlement guidance",
                "Long-term support and updates",
              ],
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Real Stories from Our Clients"
          description="Hear from individuals and families who have successfully completed their immigration journey with Infinix."
          testimonials={[
            {
              id: "1",
              name: "Rajesh Kumar",
              role: "Senior Software Engineer",
              testimonial:
                "They explained everything clearly without any false promises. Got my Germany work visa approved within 6 months. Very transparent about timelines and requirements.",
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-smiley-business-man_23-2148514859.jpg",
              imageAlt: "Rajesh Kumar - Germany Work Visa Success",
            },
            {
              id: "2",
              name: "Priya Sharma",
              role: "Data Analyst",
              testimonial:
                "Best consultation experience. They were honest about my profile strength and helped me optimize my Canada PR application. Got PR in 9 months!",
              imageSrc:
                "http://img.b2bpic.net/free-photo/medium-shot-woman-work-portrait_23-2149304144.jpg",
              imageAlt: "Priya Sharma - Canada PR Success",
            },
            {
              id: "3",
              name: "Amit Patel",
              role: "Mechanical Engineer",
              testimonial:
                "Infinix provided realistic guidance. Unlike other consultants, they didn't promise guaranteed visa. Professional and supportive team throughout my Australia PR journey.",
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-confident-black-businesswoman-office_637285-9877.jpg",
              imageAlt: "Amit Patel - Australia PR Success",
            },
            {
              id: "4",
              name: "Neha Gupta",
              role: "Business Owner",
              testimonial:
                "Very transparent about process and costs. No hidden charges. They guided me step-by-step for my UK work visa. Highly recommended!",
              imageSrc:
                "http://img.b2bpic.net/free-photo/close-up-beautiful-confident-young-businesswoman_23-2147943798.jpg",
              imageAlt: "Neha Gupta - UK Work Visa Success",
            },
            {
              id: "5",
              name: "Vikram Singh",
              role: "Accountant",
              testimonial:
                "Honest feedback about my profile. They identified gaps and helped me strengthen my application. Germany visa approved on first attempt!",
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-elegant-bearded-man-dressed-wool-jacket-bow-tie_613910-3110.jpg",
              imageAlt: "Vikram Singh - Germany Visa Success",
            },
            {
              id: "6",
              name: "Anjali Desai",
              role: "Healthcare Professional",
              testimonial:
                "The team was realistic about timelines and requirements. Great communication throughout. My Canada PR journey was smooth and hassle-free.",
              imageSrc:
                "http://img.b2bpic.net/free-photo/man-portrait-posing-loft-modern-space_158595-5361.jpg",
              imageAlt: "Anjali Desai - Canada PR Success",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Common Questions About Immigration"
          description="Clear answers to help you understand the process. No jargon. Just honest information."
          faqs={[
            {
              id: "1",
              title: "Do you guarantee visa approval?",
              content:
                "No. We're transparent: no consultant can guarantee visa approval. What we do is give you honest feedback about your profile, help you optimize your application, and guide you through the entire process realistically.",
            },
            {
              id: "2",
              title: "How long does the visa process take?",
              content:
                "Timelines vary by visa type and country. Germany work visa: 4-8 weeks. Canada PR: 6-12 months. Australia PR: 8-16 months. We provide realistic timelines after evaluating your profile.",
            },
            {
              id: "3",
              title: "What if my profile doesn't meet the requirements?",
              content:
                "We'll be honest about gaps. We guide you on how to strengthen your profile (additional certifications, work experience, language scores). Sometimes, an alternative visa pathway might work better for you.",
            },
            {
              id: "4",
              title: "What are your consultation charges?",
              content:
                "Free initial consultation to assess your profile. Service charges vary by visa type (₹25,000 - ₹100,000+). No hidden charges. We provide a transparent cost breakdown upfront.",
            },
            {
              id: "5",
              title: "Can I apply after getting a job offer?",
              content:
                "For some visas (Germany work visa, UK skilled worker), a job offer strengthens your application. We guide you on timing. For PR pathways, you can apply without a job offer in most cases.",
            },
            {
              id: "6",
              title: "What documents do I need?",
              content:
                "It depends on your visa type and country. Typically: passport, education certificates, work experience letters, language test scores (IELTS/TOEFL), police clearance, medical report. We provide a complete checklist.",
            },
            {
              id: "7",
              title: "How can I increase my visa approval chances?",
              content:
                "Get strong education credentials, relevant work experience, good language scores, clean criminal record, and sufficient savings. We assess your profile and recommend specific steps to improve your candidacy.",
            },
            {
              id: "8",
              title: "Do you help with interviews?",
              content:
                "Yes. If your visa requires an interview, we provide interview preparation, mock sessions, and guidance on expected questions. We want you confident and prepared.",
            },
          ]}
          mediaAnimation="slide-up"
          mediaPosition="right"
          imageSrc="http://img.b2bpic.net/free-vector/flat-blue-question-background-template_23-2148214849.jpg?_wi=1"
          imageAlt="FAQ and Support Illustration"
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Book Your Free Consultation"
          description="Talk to our immigration experts. Get honest feedback on your profile and visa options. No obligation. No pressure."
          inputs={[
            {
              name: "name",
              type: "text",
              placeholder: "Your Full Name",
              required: true,
            },
            {
              name: "phone",
              type: "tel",
              placeholder: "+91 Your Phone Number",
              required: true,
            },
            {
              name: "email",
              type: "email",
              placeholder: "Your Email Address",
              required: true,
            },
            {
              name: "visaInterest",
              type: "text",
              placeholder:
                "Which visa/PR are you interested in? (e.g., Germany Work Visa, Canada PR)",
              required: true,
            },
          ]}
          textarea={{
            name: "message",
            placeholder:
              "Tell us about your background, experience, and visa goals...",
            rows: 5,
            required: false,
          }}
          useInvertedBackground={false}
          buttonText="Send Consultation Request"
          mediaAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Infinix Immigration Services"
          copyrightText="© 2025 Infinix Immigration Services Pvt. Ltd. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}