"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroBillboardScroll from "@/components/sections/hero/HeroBillboardScroll";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureCardTwentyFive from "@/components/sections/feature/FeatureCardTwentyFive";
import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo";
import PricingCardEight from "@/components/sections/pricing/PricingCardEight";
import FaqSplitText from "@/components/sections/faq/FaqSplitText";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { TrendingUp, Award, Users, Target, BarChart3, Lightbulb, BookOpen, CheckCircle, Sparkles } from "lucide-react";

const assetMap = {
  "hero-dashboard": "http://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg",  "feature-diagnostic": "http://img.b2bpic.net/free-photo/young-team-coworkers-working-project_273609-16269.jpg",  "feature-personalized": "http://img.b2bpic.net/free-photo/school-education-home-tutoring-concept-horizontal-shot-black-clever-african-amercan-woman-answers-some-question-schoolboy-who-has-headache-cant-understand-flipchart-diagram_273609-44824.jpg",  "feature-methodology": "http://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg",  "feature-scores": "http://img.b2bpic.net/free-photo/final-exam-results-test-reading-books-words-concept_53876-133558.jpg",  "testimonial-1": "http://img.b2bpic.net/free-photo/smiling-girl-student-looking-camera-sitting-cafe-table_1163-5164.jpg",  "testimonial-2": "http://img.b2bpic.net/free-photo/young-woman-celebrating-her-graduation_23-2148505254.jpg",  "testimonial-3": "http://img.b2bpic.net/free-photo/vertical-shot-happy-young-woman-with-curly-hair-holds-notepad-pen-makes-notes-what-she-observes-around-city-dressed-casual-green-jumper-poses-outdoors-against-blurred-background_273609-56665.jpg",  "testimonial-4": "http://img.b2bpic.net/free-photo/irritated-young-student-girl-wearing-bandana-backpack-putting-glasses-her-blouse-keeping-fists-air-holding-open-note-pad-her-head-with-closed-eyes-isolated-blue-background_141793-139803.jpg",  "testimonial-5": "http://img.b2bpic.net/free-photo/young-student-wearing-graduation-cape-looking-her-notebook_114579-92485.jpg",  "testimonial-6": "http://img.b2bpic.net/free-photo/best-friends-playing-graduation-ceremony_23-2148505278.jpg"
};

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="largeSizeMediumTitles"
      background="noise"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Corngold Strategy"
          navItems={[
            { name: "Results", id: "metrics" },
            { name: "Services", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{ text: "Start Free Strategy Session", href: "#contact" }}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardScroll
          tag="Elite Test Prep"
          tagAnimation="slide-up"
          title="Elite Test Prep Proven Results Your Competitive Edge"
          description="The Corngold Strategy combines personalized diagnostic analysis with proprietary methodologies to unlock your highest test scores. Join hundreds of students accepted to top-tier universities."
          background={{ variant: "noise" }}
          imageSrc="http://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg?_wi=1"
          imageAlt="Corngold Strategy Test Prep Dashboard"
          buttons={[
            { text: "Start Your Free Strategy Session", href: "#contact" },
            { text: "Learn Our Methodology", href: "#features" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <AboutMetric
          title="Proven Results That Speak for Themselves"
          metricsAnimation="slide-up"
          useInvertedBackground={false}
          metrics={[
            { icon: TrendingUp, label: "Average Score Improvement", value: "+245 Points" },
            { icon: Award, label: "Students to Top Universities", value: "92%" },
            { icon: Users, label: "Satisfied Students & Families", value: "500+" },
            { icon: Target, label: "Perfect Scores Achieved", value: "47" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyFive
          title="Why Choose Corngold Strategy"
          description="Our elite tutoring approach combines proven methodologies with personalized coaching designed specifically for high-achieving students"
          tag="Our Services"
          tagAnimation="slide-up"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              title: "Personalized Diagnostic Analysis",              description: "We begin with comprehensive testing to identify your unique strengths and opportunities for growth.",              icon: BarChart3,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/young-team-coworkers-working-project_273609-16269.jpg?_wi=1", imageAlt: "Diagnostic analysis and assessment" },
                { imageSrc: "http://img.b2bpic.net/free-photo/school-education-home-tutoring-concept-horizontal-shot-black-clever-african-amercan-woman-answers-some-question-schoolboy-who-has-headache-cant-understand-flipchart-diagram_273609-44824.jpg?_wi=1", imageAlt: "Personalized tutoring session" }
              ]
            },
            {
              title: "Proprietary Methodologies",              description: "Access our exclusive test-taking strategies and techniques refined over years of elite student success.",              icon: Lightbulb,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg?_wi=2", imageAlt: "Advanced study methodology" },
                { imageSrc: "http://img.b2bpic.net/free-photo/final-exam-results-test-reading-books-words-concept_53876-133558.jpg?_wi=1", imageAlt: "Score improvement tracking" }
              ]
            },
            {
              title: "Expert Instructors",              description: "Learn from top-tier educators with decades of combined experience and proven track records of student success.",              icon: BookOpen,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/school-education-home-tutoring-concept-horizontal-shot-black-clever-african-amercan-woman-answers-some-question-schoolboy-who-has-headache-cant-understand-flipchart-diagram_273609-44824.jpg?_wi=2", imageAlt: "Expert instruction and coaching" },
                { imageSrc: "http://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg?_wi=3", imageAlt: "Advanced teaching methodology" }
              ]
            },
            {
              title: "Score Improvement Guarantee",              description: "We're confident in our results. If you don't achieve your target score, we'll work with you until you do.",              icon: CheckCircle,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/final-exam-results-test-reading-books-words-concept_53876-133558.jpg?_wi=2", imageAlt: "Guaranteed score improvement" },
                { imageSrc: "http://img.b2bpic.net/free-photo/young-team-coworkers-working-project_273609-16269.jpg?_wi=2", imageAlt: "Performance metrics and tracking" }
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Success Stories from Our Students"
          description="Real results from real students accepted to their dream universities"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Harvard '27 - SAT: 1580",              testimonial: "The Corngold Strategy's personalized approach transformed my test prep experience. Their diagnostic analysis pinpointed exactly what I needed to work on, and I went from 1350 to 1580. Absolutely life-changing.",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-girl-student-looking-camera-sitting-cafe-table_1163-5164.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "Marcus Chen",              role: "Stanford '27 - ACT: 36",              testimonial: "Working with the Corngold Strategy instructors was incredible. They didn't just teach me test-taking tricks—they helped me understand concepts deeply. I achieved a perfect 36 and got into my top choice.",              imageSrc: "http://img.b2bpic.net/free-photo/young-woman-celebrating-her-graduation_23-2148505254.jpg",              imageAlt: "Marcus Chen"
            },
            {
              id: "3",              name: "Emma Rodriguez",              role: "Yale '27 - SAT: 1560",              testimonial: "Their proprietary methodologies are game-changing. The structured approach and expert guidance made all the difference. I improved 220 points and got into Yale. Couldn't have done it without them.",              imageSrc: "http://img.b2bpic.net/free-photo/vertical-shot-happy-young-woman-with-curly-hair-holds-notepad-pen-makes-notes-what-she-observes-around-city-dressed-casual-green-jumper-poses-outdoors-against-blurred-background_273609-56665.jpg",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              name: "James Park",              role: "Princeton '27 - SAT: 1570",              testimonial: "The score improvement guarantee gave me confidence, but honestly, I didn't need it. The instruction was so effective that I crushed my target score on the first attempt. Five stars.",              imageSrc: "http://img.b2bpic.net/free-photo/irritated-young-student-girl-wearing-bandana-backpack-putting-glasses-her-blouse-keeping-fists-air-holding-open-note-pad-her-head-with-closed-eyes-isolated-blue-background_141793-139803.jpg",              imageAlt: "James Park"
            },
            {
              id: "5",              name: "Olivia Thompson",              role: "MIT '27 - SAT: 1580",              testimonial: "The personalized diagnostic really set them apart. They knew exactly where I struggled and created a custom study plan. Went from 1380 to 1580 in 12 weeks. Exceptional service.",              imageSrc: "http://img.b2bpic.net/free-photo/young-student-wearing-graduation-cape-looking-her-notebook_114579-92485.jpg",              imageAlt: "Olivia Thompson"
            },
            {
              id: "6",              name: "David Kowalski",              role: "UPenn '27 - ACT: 35",              testimonial: "Elite instruction from start to finish. The Corngold team's commitment to excellence matched my own. I improved my ACT from 31 to 35 and got into UPenn. Highly recommend.",              imageSrc: "http://img.b2bpic.net/free-photo/best-friends-playing-graduation-ceremony_23-2148505278.jpg",              imageAlt: "David Kowalski"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Transparent Pricing for Premium Results"
          description="Choose the perfect plan tailored to your test prep goals and timeline"
          tag="Pricing"
          tagAnimation="slide-up"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          plans={[
            {
              id: "SAT-Essential",              badge: "Popular",              badgeIcon: Sparkles,
              price: "$2,995",              subtitle: "12-week SAT intensive course",              buttons: [{ text: "Start SAT Prep", href: "#contact" }],
              features: [
                "20 hours personalized instruction",                "Comprehensive diagnostic assessment",                "Full-length practice tests",                "Strategy guides and materials",                "Email support"
              ]
            },
            {
              id: "ACT-Essential",              badge: "Popular",              badgeIcon: Sparkles,
              price: "$2,795",              subtitle: "12-week ACT intensive course",              buttons: [{ text: "Start ACT Prep", href: "#contact" }],
              features: [
                "20 hours personalized instruction",                "Comprehensive diagnostic assessment",                "Full-length practice tests",                "Strategy guides and materials",                "Email support"
              ]
            },
            {
              id: "Elite-Comprehensive",              badge: "Most Popular",              badgeIcon: Award,
              price: "$5,495",              subtitle: "16-week elite preparation program",              buttons: [{ text: "Choose Elite Plan", href: "#contact" }],
              features: [
                "40 hours expert instruction",                "Advanced diagnostic + progress tracking",                "Unlimited full-length practice tests",                "Proprietary methodology mastery",                "Priority support + strategy sessions",                "Score improvement guarantee"
              ]
            },
            {
              id: "Executive-Coaching",              badge: "Premium",              price: "$7,995",              subtitle: "Personalized executive coaching program",              buttons: [{ text: "Schedule Consultation", href: "#contact" }],
              features: [
                "60 hours one-on-one coaching",                "Custom diagnostic + tailored strategy",                "Unlimited practice materials",                "Direct instructor access",                "24-hour priority support",                "Guaranteed score achievement"
              ]
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Get answers to common questions about our test prep programs, guarantees, and outcomes"
          textPosition="left"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What makes Corngold Strategy different from other test prep companies?",              content: "We combine personalized diagnostic analysis with proprietary methodologies developed specifically for high-achieving students. Our instructors are elite educators with proven track records, and we offer a score improvement guarantee. We focus on understanding your unique strengths and opportunities, not one-size-fits-all approaches."
            },
            {
              id: "2",              title: "How long does test prep typically take?",              content: "Most students see significant improvement within 12-16 weeks with consistent effort. However, timelines vary based on your starting score and target goal. We'll create a customized study plan during your free strategy session that outlines realistic timelines for your specific situation."
            },
            {
              id: "3",              title: "What is your score improvement guarantee?",              content: "We guarantee a minimum score improvement of 100+ points on the SAT or 2+ points on the ACT, or we'll provide additional tutoring sessions at no cost. This guarantee reflects our confidence in our methodology and expert instructors. Terms and conditions apply."
            },
            {
              id: "4",              title: "Do you prepare students for both SAT and ACT?",              content: "Yes, we offer comprehensive preparation programs for both the SAT and ACT. Many high-achieving students take both exams, and our instructors are expert in both test formats. We can help you determine which test aligns better with your strengths during your free strategy session."
            },
            {
              id: "5",              title: "Can you help with college applications beyond test prep?",              content: "Our primary focus is maximizing your test scores using our proven methodologies. While we don't provide full college counseling, we do offer strategic guidance on how your test prep timeline aligns with application deadlines, and we can recommend trusted college counselors in our network."
            },
            {
              id: "6",              title: "What if I need to prepare for GMAT or GRE?",              content: "Absolutely! We work with college-bound professionals preparing for GMAT, GRE, and other graduate entrance exams. Our expert instructors adapt our proven methodologies to these standardized tests. Contact us to discuss your specific needs and timeline."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to unlock your highest test scores and gain admission to your dream university? Start your free strategy session today and discover exactly how Corngold Strategy can transform your test prep experience."
          animationType="entrance-slide"
          background={{ variant: "noise" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Schedule Free Strategy Session", href: "https://calendly.com/corngold" },
            { text: "Contact Us", href: "mailto:info@corngoldstrategy.com" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          copyrightText="© 2025 Corngold Strategy. All rights reserved."
          columns={[
            {
              title: "Platform",              items: [
                { label: "Results", href: "#metrics" },
                { label: "Services", href: "#features" },
                { label: "Pricing", href: "#pricing" },
                { label: "FAQ", href: "#faq" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#" },
                { label: "Our Team", href: "#" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Guarantee Details", href: "#" },
                { label: "Accessibility", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
