import { Link } from "react-router-dom";
import { Helmet } from "react-helmet-async";
import { ArrowRight, Check, Truck, Wrench, Sparkles, Clock, ImageIcon, PlayCircle } from "lucide-react";
import { Layout } from "@/components/layout/Layout";
import { SEO } from "@/components/SEO";
import { useForceLanguage } from "@/hooks/useForceLanguage";
import hologramProductionHero from "@/assets/solutions/hologram-production-hero.jpg";
import caseMassa from "@/assets/case-massa.jpg";
import caseRetail from "@/assets/case-retail.jpg";
import caseEvent from "@/assets/case-event.jpg";
import usecaseEvent from "@/assets/usecase-event.jpg";
import usecaseRetail from "@/assets/usecase-retail.jpg";
import usecaseShowroom from "@/assets/usecase-showroom.jpg";
import usecaseMassa from "@/assets/usecase-massa.jpg";
import logoClient1 from "@/assets/logo-client-1.png";
import logoClient2 from "@/assets/logo-client-2.png";
import logoClient3 from "@/assets/logo-client-3.png";

const HERO_VIDEO_EMBED =
  "https://www.youtube.com/embed/PC8108OU9a0?autoplay=1&mute=1&loop=1&playlist=PC8108OU9a0&controls=0&showinfo=0&rel=0&modestbranding=1&playsinline=1&enablejsapi=1&vq=hd1080";

const CALENDLY_URL = "https://calendly.com/sutekistudios/strategic-project-discussion";

const usps = [
  { icon: Truck, text: "Delivery across Europe" },
  { icon: Wrench, text: "Installation and support included" },
  { icon: Sparkles, text: "Custom 3D content" },
  { icon: Clock, text: "Fast turnaround" },
];

const packages = [
  {
    title: "Start",
    intro: "The most popular solution for trade shows and retail.",
    bullets: ["65–100 cm", "Looped 3D animation", "Quick setup"],
    price: "From €1,200",
    video: "hologramfan-demo.mp4",
    youtubeId: "NZFDXN9cvvQ",
  },
  {
    title: "Premium",
    intro: "Premium solution with lifelike effect.",
    bullets: ["AI avatar or product", "Pre-recorded content", "Perfect for entrance areas"],
    price: "From €3,400 / week",
    video: "holobox-demo.mp4",
    youtubeId: "hqSpmUq9oig",
  },
  {
    title: "Enterprise",
    intro: "For large events and maximum visibility.",
    bullets: ["Synchronized units", "Large-scale impact", "Custom content"],
    price: "On request",
    video: "hologramwall-demo.mp4",
    youtubeId: "lZ6gFJEipEs",
  },
];

const useCases = [
  "Trade shows",
  "Events and launches",
  "Retail and stores",
  "Showrooms",
];

const caseImages = [
  {
    title: "Trade show & booth",
    description: "Drive traffic and grab attention directly in your booth.",
    image: caseMassa,
    placeholder: "case-massa.jpg",
  },
  {
    title: "Retail & stores",
    description: "Make customers stop, stay longer and engage in-store.",
    image: caseRetail,
    placeholder: "case-retail.jpg",
  },
  {
    title: "Events & launches",
    description: "Create memorable experiences worth sharing.",
    image: caseEvent,
    placeholder: "case-event.jpg",
  },
];

const useCaseCards = [
  { title: "Trade shows", placeholder: "usecase-massa.jpg", image: usecaseMassa },
  { title: "Retail", placeholder: "usecase-retail.jpg", image: usecaseRetail },
  { title: "Events", placeholder: "usecase-event.jpg", image: usecaseEvent },
  { title: "Showrooms", placeholder: "usecase-showroom.jpg", image: usecaseShowroom },
];

const clientLogos: { name: string; placeholder: string; image?: string }[] = [
  { name: "Coca-Cola", placeholder: "logo-client-1.png", image: logoClient1 },
  { name: "Anthon Berg", placeholder: "logo-client-2.png", image: logoClient2 },
  { name: "RVRC", placeholder: "logo-client-3.png", image: logoClient3 },
];

const faqs = [
  {
    q: "How does a hologram work?",
    a: "A hologram is typically created with LED-based technology that produces a 3D illusion floating in mid-air.",
  },
  {
    q: "How long does installation take?",
    a: "Usually 1–3 hours depending on the solution.",
  },
  {
    q: "Can the content be customized?",
    a: "Yes – all content is tailored to perform optimally in 3D for your brand.",
  },
];

export default function HyrHologramEn() {
  useForceLanguage("en");

  const faqSchema = {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    mainEntity: faqs.map((f) => ({
      "@type": "Question",
      name: f.q,
      acceptedAnswer: { "@type": "Answer", text: f.a },
    })),
  };

  const serviceSchema = {
    "@context": "https://schema.org",
    "@type": "Service",
    name: "Rent a hologram",
    serviceType: "Hologram rental",
    provider: {
      "@type": "Organization",
      name: "Suteki Studios Inc",
      url: "https://sutekistudios.com",
    },
    areaServed: { "@type": "Place", name: "Europe" },
    description:
      "Rent a hologram fan, Holobox or hologram wall for trade shows, events and retail. Complete solution with content, installation and support.",
    offers: {
      "@type": "Offer",
      priceCurrency: "EUR",
      price: "1200",
      availability: "https://schema.org/InStock",
    },
  };

  return (
    <Layout>
      <SEO
        title="Rent a Hologram for Trade Shows & Events | Suteki Studios"
        description="Rent a hologram fan, Holobox or hologram wall. Complete solutions including installation. Quote within 24 hours."
        lang="en"
        canonicalUrl="https://sutekistudios.com/en/rent-hologram"
        alternateSv="https://sutekistudios.com/hyr-hologram"
        alternateEn="https://sutekistudios.com/en/rent-hologram"
      />
      <Helmet>
        <script type="application/ld+json">{JSON.stringify(serviceSchema)}</script>
        <script type="application/ld+json">{JSON.stringify(faqSchema)}</script>
      </Helmet>

      {/* HERO */}
      <section
        className="min-h-[70vh] sm:min-h-[85vh] flex items-end relative overflow-hidden"
        data-hero="true"
      >
        <div className="absolute inset-0 pointer-events-none">
          <iframe
            src={HERO_VIDEO_EMBED}
            title="Rent a hologram – showreel"
            className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[180%] h-[180%] sm:w-[120%] sm:h-[120%]"
            style={{ border: 0 }}
            allow="autoplay; encrypted-media"
            allowFullScreen={false}
            loading="eager"
          />
        </div>
        <div
          className="absolute inset-0 bg-cover bg-center bg-no-repeat -z-10"
          style={{ backgroundImage: `url(${hologramProductionHero})` }}
        />
        <div
          className="absolute inset-0 z-[1]"
          style={{
            background:
              "linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.30) 100%)",
          }}
        />
        <div className="container mx-auto px-5 sm:px-6 lg:px-8 relative z-10 pb-14 sm:pb-24 pt-32 sm:pt-48">
          <div className="max-w-3xl">
            <p className="hero-eyebrow mb-4 sm:mb-5 text-xs sm:text-sm tracking-[0.2em]">
              Rental
            </p>
            <h1 className="display mb-5 sm:mb-7 hero-text-white text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight">
              Rent a hologram for trade shows, events and retail
            </h1>
            <p className="text-base sm:text-lg lg:text-xl hero-text-body mb-6 sm:mb-8 max-w-xl leading-relaxed">
              Capture attention that stands out. We rent hologram solutions across Europe – from hologram fans to complete installations.
            </p>
            <div className="flex flex-col sm:flex-row gap-3">
              <Link
                to="/contact"
                className="inline-flex items-center justify-center gap-2 rounded-full bg-accent text-white px-6 py-3 text-sm font-medium hover:opacity-90 transition-opacity"
              >
                Get a quote within 24h
                <ArrowRight className="h-4 w-4" />
              </Link>
              <a
                href={CALENDLY_URL}
                target="_blank"
                rel="noopener noreferrer"
                className="inline-flex items-center justify-center gap-2 rounded-full border border-white/20 text-white px-6 py-3 text-sm font-medium hover:bg-white/5 transition-colors"
              >
                Book a demo
                <ArrowRight className="h-4 w-4" />
              </a>
            </div>
          </div>
        </div>
      </section>

      {/* USP ROW */}
      <section className="bg-black py-12 sm:py-16 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6 max-w-5xl mx-auto">
            {usps.map((u, i) => (
              <div key={i} className="flex items-start gap-3 text-white/80">
                <u.icon className="h-5 w-5 text-accent shrink-0 mt-0.5" />
                <span className="text-sm sm:text-base">{u.text}</span>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* WHAT IS HOLOGRAM RENTAL */}
      <section className="bg-black py-20 sm:py-28" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto">
            <p className="hero-eyebrow mb-4">Overview</p>
            <h2 className="text-3xl sm:text-4xl font-semibold mb-6 text-white text-balance">
              What does it mean to rent a hologram?
            </h2>
            <p className="text-white/70 leading-relaxed mb-4">
              Renting a hologram means you get a complete solution where hardware, content and installation are included. Holograms are mainly used at trade shows, in retail and at events to capture attention and draw an audience.
            </p>
            <p className="text-white/70 leading-relaxed mb-6">We offer:</p>
            <ul className="space-y-3 text-white/80">
              {[
                "Hologram fans (LED-based 3D effect)",
                "Holobox (lifelike hologram experience)",
                "Larger installations and hologram walls",
              ].map((item, i) => (
                <li key={i} className="flex items-start gap-2">
                  <Check className="h-5 w-5 text-accent shrink-0 mt-0.5" />
                  <span>{item}</span>
                </li>
              ))}
            </ul>
          </div>
        </div>
      </section>

      {/* CASE IMAGE GRID */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-center mb-12 sm:mb-16">
            <p className="hero-eyebrow mb-4">Examples</p>
            <h2 className="text-3xl sm:text-4xl font-semibold text-white">
              Holograms in real environments
            </h2>
          </div>
          <div className="grid md:grid-cols-3 gap-6 lg:gap-8 max-w-6xl mx-auto">
            {caseImages.map((c, i) => (
              <div
                key={i}
                className="rounded-2xl border border-white/10 bg-white/[0.03] overflow-hidden flex flex-col hover:border-white/20 transition-all"
              >
                <div className="relative aspect-[4/3] bg-white/[0.05] flex items-center justify-center">
                  {c.image ? (
                    <img
                      src={c.image}
                      alt={c.title}
                      loading="lazy"
                      className="absolute inset-0 w-full h-full object-cover"
                    />
                  ) : (
                    <>
                      <ImageIcon className="h-10 w-10 text-white/60" aria-hidden="true" />
                      <span className="absolute bottom-3 left-3 text-[11px] tracking-wider uppercase text-white/70">
                        {c.placeholder}
                      </span>
                    </>
                  )}
                </div>
                <div className="p-6">
                  <h3 className="text-lg font-semibold text-white mb-2">{c.title}</h3>
                  <p className="text-white/70 text-sm leading-relaxed">{c.description}</p>
                </div>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* PACKAGES */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-center mb-12 sm:mb-16">
            <p className="hero-eyebrow mb-4">Packages</p>
            <h2 className="text-3xl sm:text-4xl font-semibold text-white">
              Choose the right hologram solution
            </h2>
          </div>
          <div className="grid md:grid-cols-3 gap-6 lg:gap-8 max-w-6xl mx-auto items-stretch">
            {packages.map((pkg, i) => (
              <div key={i} className="flex flex-col gap-4 h-full">
                <div className="rounded-2xl border border-white/10 bg-white/[0.03] p-8 flex flex-col hover:bg-white/[0.05] hover:border-white/20 transition-all flex-1">
                  <h3 className="text-xl font-semibold text-white mb-3">{pkg.title}</h3>
                  <p className="text-white/70 text-sm leading-relaxed mb-6">{pkg.intro}</p>
                  <ul className="space-y-3 mb-6 flex-1">
                    {pkg.bullets.map((b, j) => (
                      <li key={j} className="flex items-start gap-2 text-white/80 text-sm">
                        <Check className="h-4 w-4 text-accent shrink-0 mt-0.5" />
                        <span>{b}</span>
                      </li>
                    ))}
                  </ul>
                  <p className="text-white font-medium mb-6">{pkg.price}</p>
                  <Link
                    to="/contact"
                    className="inline-flex items-center justify-center gap-2 rounded-full bg-white text-[hsl(222,47%,11%)] px-5 py-2.5 text-sm font-medium hover:bg-accent hover:text-white transition-colors"
                  >
                    Get a quote
                    <ArrowRight className="h-4 w-4" />
                  </Link>
                </div>
                <div className="relative aspect-video rounded-2xl border border-white/10 bg-black overflow-hidden">
                  {pkg.youtubeId ? (
                    <iframe
                      src={`https://www.youtube.com/embed/${pkg.youtubeId}?controls=1&rel=0&modestbranding=1&playsinline=1`}
                      title={`${pkg.title} – demo`}
                      className="absolute inset-0 w-full h-full"
                      style={{ border: 0 }}
                      allow="autoplay; encrypted-media; picture-in-picture"
                      allowFullScreen
                      loading="lazy"
                    />
                  ) : (
                    <div className="absolute inset-0 flex items-center justify-center">
                      <div className="absolute inset-0 bg-black/40" />
                      <div className="relative z-10 flex flex-col items-center text-center px-4">
                        <PlayCircle className="h-10 w-10 text-white/60 mb-2" aria-hidden="true" />
                        <span className="text-[11px] tracking-wider uppercase text-white/50">
                          {pkg.video}
                        </span>
                        <span className="text-xs text-white/60 mt-2 max-w-[220px]">
                          Video shows the product in a real environment
                        </span>
                      </div>
                    </div>
                  )}
                </div>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* PRICING */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-center rounded-2xl border border-white/10 bg-white/[0.02] p-8 sm:p-12">
            <h2 className="text-2xl sm:text-3xl font-semibold text-white mb-4">
              What does it cost to rent a hologram?
            </h2>
            <p className="text-white/70 mb-8 leading-relaxed">
              Pricing depends on size, content and installation level. A simple hologram fan is a cost-effective option, while larger installations are tailored to your needs.
            </p>
            <Link
              to="/contact"
              className="inline-flex items-center gap-2 rounded-full bg-accent text-white px-6 py-3 text-sm font-medium hover:opacity-90 transition-opacity"
            >
              Get an exact quote
              <ArrowRight className="h-4 w-4" />
            </Link>
          </div>
        </div>
      </section>

      {/* FULL WIDTH SHOWREEL */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-center mb-10 sm:mb-14">
            <p className="hero-eyebrow mb-4">Showreel</p>
            <h2 className="text-3xl sm:text-4xl font-semibold text-white mb-4">
              See it in real environments
            </h2>
            <p className="text-white/70 leading-relaxed">
              Watch how hologram solutions are used at trade shows, in retail and at events to capture attention and drive engagement.
            </p>
          </div>
          <div className="max-w-6xl mx-auto">
            <div className="relative aspect-video rounded-2xl border border-white/10 bg-black overflow-hidden">
              <iframe
                src="https://www.youtube.com/embed/dGO3tynni_k?controls=1&rel=0&modestbranding=1&playsinline=1"
                title="Hologram showreel – Suteki Studios"
                className="absolute inset-0 w-full h-full"
                style={{ border: 0 }}
                allow="autoplay; encrypted-media; picture-in-picture"
                allowFullScreen
                loading="lazy"
              />
            </div>
          </div>
        </div>
      </section>

      {/* USE CASES */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto">
            <p className="hero-eyebrow mb-4">Use cases</p>
            <h2 className="text-3xl sm:text-4xl font-semibold mb-8 text-white">
              When does a hologram fit?
            </h2>
            <ul className="grid sm:grid-cols-2 gap-4">
              {useCases.map((u, i) => (
                <li
                  key={i}
                  className="flex items-center gap-3 rounded-xl border border-white/10 bg-white/[0.03] px-5 py-4 text-white/85"
                >
                  <Check className="h-5 w-5 text-accent shrink-0" />
                  <span>{u}</span>
                </li>
              ))}
            </ul>
            <div className="grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6 mt-10">
              {useCaseCards.map((u, i) => (
                <div
                  key={i}
                  className="rounded-2xl border border-white/10 bg-white/[0.03] overflow-hidden hover:border-white/20 transition-all"
                >
                  <div className="relative aspect-square bg-white/[0.05] flex items-center justify-center">
                    {u.image ? (
                      <img
                        src={u.image}
                        alt={u.title}
                        loading="lazy"
                        className="absolute inset-0 w-full h-full object-cover"
                      />
                    ) : (
                      <>
                        <ImageIcon className="h-8 w-8 text-white/60" aria-hidden="true" />
                        <span className="absolute bottom-2 left-2 text-[10px] tracking-wider uppercase text-white/70">
                          {u.placeholder}
                        </span>
                      </>
                    )}
                  </div>
                  <div className="p-4">
                    <h3 className="text-sm font-semibold text-white">{u.title}</h3>
                  </div>
                </div>
              ))}
            </div>
          </div>
        </div>
      </section>

      {/* SEO TEXT */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-white/75 leading-relaxed space-y-5">
            <p>
              We rent out holograms across Europe for trade shows, events and retail. You can rent hologram fans, Holobox units or larger hologram solutions depending on your needs.
            </p>
            <p>
              Renting a hologram is an effective way to grab attention and stand out in environments where many brands compete for the visitor's focus.
            </p>
          </div>
        </div>
      </section>

      {/* PROVIDERS */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto">
            <h2 className="text-2xl sm:text-3xl font-semibold text-white mb-4">
              Hologram providers in Europe
            </h2>
            <p className="text-white/70 mb-6 leading-relaxed">
              There are several hologram providers across Europe. Some of the most established include:
            </p>
            <ul className="space-y-2 text-white/80 mb-6">
              <li className="flex items-start gap-2">
                <span className="text-accent mt-1">–</span> Suteki Studios
              </li>
              <li className="flex items-start gap-2">
                <span className="text-accent mt-1">–</span> Other specialized players in hologram and 3D technology
              </li>
            </ul>
            <p className="text-white/70 leading-relaxed">
              This page helps you understand the options and choose the right solution.
            </p>
          </div>
        </div>
      </section>

      {/* SOCIAL PROOF STRIP */}
      <section className="bg-black py-16 sm:py-20 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <p className="text-center text-xs tracking-[0.2em] uppercase text-white/50 mb-8">
            Selected clients and partners
          </p>
          <div className="grid grid-cols-3 gap-6 sm:gap-12 max-w-4xl mx-auto items-center">
            {clientLogos.map((logo, i) => (
              <div
                key={i}
                className="aspect-[3/1] rounded-lg border border-white/10 bg-white/[0.03] flex items-center justify-center grayscale hover:grayscale-0 transition-all"
              >
                {logo.image ? (
                  <img
                    src={logo.image}
                    alt={logo.name}
                    loading="lazy"
                    className="max-h-12 max-w-[80%] object-contain"
                  />
                ) : (
                  <span className="text-[10px] tracking-wider uppercase text-white/70">
                    {logo.placeholder}
                  </span>
                )}
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* FAQ */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto">
            <p className="hero-eyebrow mb-4">FAQ</p>
            <h2 className="text-3xl sm:text-4xl font-semibold mb-10 text-white">
              Common questions about renting holograms
            </h2>
            <div className="space-y-6">
              {faqs.map((f, i) => (
                <div
                  key={i}
                  className="rounded-xl border border-white/10 bg-white/[0.03] p-6"
                >
                  <h3 className="text-lg font-semibold text-white mb-2">{f.q}</h3>
                  <p className="text-white/70 leading-relaxed">{f.a}</p>
                </div>
              ))}
            </div>
          </div>
        </div>
      </section>

      {/* FINAL CTA */}
      <section className="bg-black py-20 sm:py-28 border-t border-white/10" data-theme="dark">
        <div className="container mx-auto px-5 sm:px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-center">
            <h2 className="text-3xl sm:text-4xl font-semibold text-white mb-4">
              Want to rent a hologram?
            </h2>
            <p className="text-white/70 mb-8 leading-relaxed">
              We support you from concept to finished installation.
            </p>
            <div className="flex flex-col sm:flex-row gap-3 justify-center">
              <Link
                to="/contact"
                className="inline-flex items-center justify-center gap-2 rounded-full bg-accent text-white px-6 py-3 text-sm font-medium hover:opacity-90 transition-opacity"
              >
                Get a quote
                <ArrowRight className="h-4 w-4" />
              </Link>
              <a
                href={CALENDLY_URL}
                target="_blank"
                rel="noopener noreferrer"
                className="inline-flex items-center justify-center gap-2 rounded-full border border-white/20 text-white px-6 py-3 text-sm font-medium hover:bg-white/5 transition-colors"
              >
                Book a demo
                <ArrowRight className="h-4 w-4" />
              </a>
            </div>
          </div>
        </div>
      </section>
    </Layout>
  );
}