"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';

export default function PortfolioPage() {
  const handleContactSubmit = (data: Record<string, string>) => {
    console.log('Contact form submitted:', data);
  };

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Portfolio"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Projects", id: "projects" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "View Work",            href: "projects"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Creative Designer & Developer"
          description="Crafting digital experiences that blend aesthetics with functionality. Explore my latest projects and design philosophy."
          tag="Welcome"
          imageSrc="https://img.b2bpic.net/free-vector/postmodern-business-cover-collection_23-2148860106.jpg"
          imageAlt="Portfolio hero background"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={true}
          buttons={[
            { text: "View Projects", href: "projects" },
            { text: "Get in Touch", href: "contact" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TextSplitAbout
          title="About Me"
          description={[
            "I'm a multidisciplinary creative with 5+ years of experience in digital design and web development. I specialize in creating user-centered designs that solve real problems.",            "My approach combines strategic thinking with meticulous attention to detail. I believe great design should be intuitive, beautiful, and purposeful. I'm passionate about collaborating with clients and teams to bring visions to life."
          ]}
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Download CV", href: "#" }
          ]}
        />
      </div>

      <div id="projects" data-section="projects">
        <FeatureCardOne
          title="Featured Projects"
          description="A selection of recent projects showcasing my expertise in design, development, and creative problem-solving."
          features={[
            {
              title: "E-Commerce Platform Redesign",              description: "Complete UX/UI overhaul for a high-traffic online store, resulting in 45% increase in conversion rates.",              imageSrc: "https://img.b2bpic.net/free-vector/gradient-interior-landing-page-design-template_23-2149263407.jpg",              imageAlt: "E-commerce platform project"
            },
            {
              title: "Brand Identity System",              description: "Comprehensive visual identity including logo, color palette, typography, and brand guidelines.",              imageSrc: "https://img.b2bpic.net/free-vector/flat-design-rugby-game-landing-page_23-2150224407.jpg",              imageAlt: "Brand identity project"
            },
            {
              title: "Mobile App Interface",              description: "Intuitive app design for a productivity tool with focus on seamless user experience.",              imageSrc: "https://img.b2bpic.net/free-vector/flat-design-financial-consultancy-landing-page_23-2150871221.jpg",              imageAlt: "Mobile app project"
            },
            {
              title: "Marketing Website",              description: "High-converting marketing site for a SaaS startup with emphasis on storytelling and CTAs.",              imageSrc: "https://img.b2bpic.net/free-vector/business-workshop-social-media-pack-landing-page_23-2149381280.jpg",              imageAlt: "Marketing website project"
            }
          ]}
          textboxLayout="default"
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardSeven
          title="Impact by Numbers"
          description="Metrics that reflect the value and scope of my design work across diverse industries and projects."
          metrics={[
            {
              id: "1",              value: "50+",              title: "Projects Completed",              items: [
                "Web design & development",                "Brand identity systems",                "Mobile app interfaces"
              ]
            },
            {
              id: "2",              value: "30+",              title: "Happy Clients",              items: [
                "Startups to enterprises",                "100% satisfaction rate",                "Long-term partnerships"
              ]
            },
            {
              id: "3",              value: "5+",              title: "Years Experience",              items: [
                "Design & UX/UI",                "Web development",                "Brand strategy"
              ]
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Client Testimonials"
          description="What clients and partners say about working with me on their projects."
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              role: "Founder",              company: "TechStart Inc",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              name: "Michael Chen",              role: "Marketing Director",              company: "Creative Agency Pro",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              name: "Emily Rodriguez",              role: "Product Manager",              company: "Digital Solutions Ltd",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-competitive-employee_1098-2870.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              role: "CEO",              company: "Innovation Studios",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg",              imageAlt: "David Kim"
            }
          ]}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Let's Work Together"
          description="Have a project in mind? I'd love to hear about it. Send me a message and I'll get back to you as soon as possible."
          inputs={[
            {
              name: "name",              type: "text",              placeholder: "Your Name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "Your Email",              required: true
            },
            {
              name: "company",              type: "text",              placeholder: "Company/Project Name",              required: false
            }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell me about your project...",            rows: 5,
            required: true
          }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/happy-young-businesswoman-talking-mobile-phone-cafe_1262-20247.jpg"
          imageAlt="Contact section illustration"
          mediaPosition="right"
          buttonText="Send Message"
          onSubmit={handleContactSubmit}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Portfolio"
          columns={[
            {
              title: "Navigation",              items: [
                { label: "Home", href: "#hero" },
                { label: "About", href: "#about" },
                { label: "Projects", href: "#projects" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "GitHub", href: "https://github.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "Dribbble", href: "https://dribbble.com" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Blog", href: "#blog" },
                { label: "Case Studies", href: "#case-studies" },
                { label: "Design Tips", href: "#tips" }
              ]
            }
          ]}
          copyrightText="© 2025 Portfolio. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}