"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureCardEight from '@/components/sections/feature/FeatureCardEight';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Leaf, Star, TrendingUp, Users, Zap, Rocket, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeLargeTitles"
      background="plain"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Estonia"
          button={{
            text: "Discover More",            href: "hero"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Welcome to Estonia: Where Innovation Meets Nature"
          description="Discover the Nordic gem that combines ancient forests, cutting-edge digital innovation, and rich cultural heritage. Experience a country that's reimagining what it means to be connected."
          tag="Scandinavian Paradise"
          tagIcon={Leaf}
          buttons={[
            {
              text: "Explore Estonia",              href: "features"
            },
            {
              text: "Learn More",              href: "about"
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/mountain-with-fog_1182-1067.jpg"
          imageAlt="Estonia's pristine forest landscape at golden hour"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            {
              type: "text",              content: "The Digital Baltic"
            },
            {
              type: "text",              content: "Leader Transforming Governance and Life"
            }
          ]}
          useInvertedBackground="invertDefault"
          buttons={[
            {
              text: "Visit Today",              href: "contact"
            }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardEight
          title="Why Estonia Stands Out"
          description="From pioneering e-governance to sustainable forests, Estonia represents a perfect balance of progress and preservation."
          tag="Key Characteristics"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          features={[
            {
              id: 1,
              title: "Digital Innovation",              description: "Home to the world's most advanced e-government system. Estonia digitalized 99% of public services, making it a global model for digital transformation and e-governance excellence.",              imageSrc: "https://img.b2bpic.net/free-photo/photovoltaics-factory-management-team-looking-manufacturing-data-notebook_482257-119418.jpg",              imageAlt: "Modern digital technology and innovation"
            },
            {
              id: 2,
              title: "Natural Beauty",              description: "Over 50% of Estonia covered in ancient forests and pristine wetlands. Experience untouched landscapes, national parks, and a commitment to environmental sustainability.",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-landscape-pine-forest-summer-day-nature-wallpaper-tall-trees-pine-trees-growing-old-forest_639032-736.jpg",              imageAlt: "Estonian forest with natural landscapes"
            },
            {
              id: 3,
              title: "Rich Culture",              description: "Medieval architecture meets modern creativity in cities like Tallinn. UNESCO-listed Old Town, vibrant music festivals, and unique Baltic traditions await discovery.",              imageSrc: "https://img.b2bpic.net/free-photo/women-dancing-folk-side-view_23-2149741865.jpg",              imageAlt: "Estonia's cultural heritage and traditions"
            },
            {
              id: 4,
              title: "Tech Startup Hub",              description: "Skype, TransferWise, and Wise were born here. Estonia punch above its weight with more startups per capita than any European nation, attracting global investors.",              imageSrc: "https://img.b2bpic.net/free-photo/dormers-cathedral-towers-old-town-mood_169016-70015.jpg",              imageAlt: "Tallinn city skyline showcasing modern development"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Estonia by the Numbers"
          description="Impressive statistics that showcase Estonia's achievements and global impact."
          tag="Key Stats"
          tagIcon={TrendingUp}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          metrics={[
            {
              id: "1",              icon: Users,
              title: "Digital Citizens",              value: "99%"
            },
            {
              id: "2",              icon: Zap,
              title: "E-Services Available",              value: "99%"
            },
            {
              id: "3",              icon: Leaf,
              title: "Forest Coverage",              value: "50%"
            },
            {
              id: "4",              icon: Rocket,
              title: "Unicorn Startups",              value: "6"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Visitors Say"
          description="Real experiences from travelers and professionals who've discovered Estonia's magic."
          tag="Testimonials"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Jensen",              role: "Travel Blogger",              company: "Nordic Explorer",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Sarah Jensen portrait"
            },
            {
              id: "2",              name: "Marco Rossi",              role: "Tech Entrepreneur",              company: "Innovation Labs",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-business-woman-standing-outdoors_1262-20546.jpg",              imageAlt: "Marco Rossi portrait"
            },
            {
              id: "3",              name: "Elena Patel",              role: "Environmental Scientist",              company: "Green Initiative",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg",              imageAlt: "Elena Patel portrait"
            },
            {
              id: "4",              name: "James Wilson",              role: "Digital Nomad",              company: "Remote Workers Community",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              imageAlt: "James Wilson portrait"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Everything you need to know about visiting, living, and working in Estonia."
          tag="FAQ"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What is the best time to visit Estonia?",              content: "Summer (June-August) offers long daylight hours and warm temperatures perfect for exploring nature. However, winter (December-February) provides magical snowy landscapes and the Northern Lights. Spring and fall showcase beautiful seasonal transitions."
            },
            {
              id: "2",              title: "Is Estonia expensive for tourists?",              content: "Estonia is considerably affordable compared to Western Europe. Food, accommodation, and activities are reasonably priced. You'll get exceptional value for money, especially outside of Tallinn's old town tourist areas."
            },
            {
              id: "3",              title: "Do I need a visa to visit Estonia?",              content: "Citizens of EU/EEA countries and many other nations can enter visa-free or obtain visas on arrival. Check the Estonian government website for your specific citizenship. Estonia is part of the Schengen Area."
            },
            {
              id: "4",              title: "What language is spoken in Estonia?",              content: "Estonian is the official language, but English is widely spoken, especially among younger people and in Tallinn. Many signs, menus, and services are available in English. Learning basic Estonian phrases is appreciated by locals."
            },
            {
              id: "5",              title: "How do I get around Estonia?",              content: "Public transportation is excellent and affordable. Buses and trains connect major cities. Tallinn has trams and buses. Many Estonians cycle, and buses offer free travel for residents with digital IDs. Renting cars is also convenient for exploring rural areas."
            },
            {
              id: "6",              title: "Can I do business in Estonia?",              content: "Estonia welcomes entrepreneurs with its e-Residency program. You can incorporate a company online from anywhere. The digital infrastructure, low regulations, and startup ecosystem make Estonia ideal for launching and growing technology-based businesses."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Stay Connected"
          title="Discover Estonia"
          description="Subscribe to our newsletter for travel tips, cultural insights, investment opportunities, and exclusive updates about Estonia's innovations and natural wonders."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/vertical-shot-beautiful-green-scenery-reflecting-lake-canada_181624-7891.jpg"
          imageAlt="Beautiful Estonian landscape"
          mediaPosition="right"
          tagIcon={Mail}
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. By subscribing, you'll receive curated Estonia content."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Explore",              items: [
                {
                  label: "Travel to Estonia",                  href: "hero"
                },
                {
                  label: "Top Attractions",                  href: "features"
                },
                {
                  label: "Visitor Guide",                  href: "faq"
                }
              ]
            },
            {
              title: "Business",              items: [
                {
                  label: "e-Residency Program",                  href: "about"
                },
                {
                  label: "Startup Ecosystem",                  href: "features"
                },
                {
                  label: "Digital Services",                  href: "metrics"
                }
              ]
            },
            {
              title: "Resources",              items: [
                {
                  label: "Official Tourism Site",                  href: "https://www.visitestonia.com"
                },
                {
                  label: "e-Estonia",                  href: "https://e-estonia.com"
                },
                {
                  label: "Contact Us",                  href: "contact"
                }
              ]
            }
          ]}
          copyrightText="© 2025 Estonia | Digital Baltic Innovation"
        />
      </div>
    </ThemeProvider>
  );
}