import { useTranslation } from "react-i18next";
import { useForceLanguage } from "@/hooks/useForceLanguage";
import { Layout } from "@/components/layout/Layout";
import { SEO } from "@/components/SEO";
import { Link } from "react-router-dom";
import { getLocalizedPath } from "@/lib/routes";
import { Gamepad2, Users, Sparkles, ArrowRight } from "lucide-react";

interface Props {
  forceLang?: string;
}

export default function VRExperiences({ forceLang }: Props) {
  useForceLanguage(forceLang as "sv" | "en" | undefined);
  const { t, i18n } = useTranslation();
  const lang = i18n.language;
  const isSv = lang === "sv";

  const title = isSv
    ? "VR Upplevelser & Interaktiva Miljöer | Suteki Studios"
    : "VR Experiences & Interactive Environments | Suteki Studios";
  const description = isSv
    ? "Skapa engagerande VR-upplevelser och interaktiva miljöer för events, spel och utbildning. Utforska våra VR-lösningar."
    : "Create engaging VR experiences and interactive environments for events, games and education. Explore our VR solutions.";

  const features = isSv
    ? [
        { icon: Gamepad2, title: "Interaktiva VR-upplevelser", desc: "Skapa engagerande upplevelser för events och aktiveringar." },
        { icon: Users, title: "Multiplayer & Samarbete", desc: "Flera användare kan delta samtidigt i samma virtuella miljö." },
        { icon: Sparkles, title: "Skräddarsydda miljöer", desc: "Vi bygger unika VR-världar anpassade efter era behov." },
      ]
    : [
        { icon: Gamepad2, title: "Interactive VR Experiences", desc: "Create engaging experiences for events and activations." },
        { icon: Users, title: "Multiplayer & Collaboration", desc: "Multiple users can participate simultaneously in the same virtual environment." },
        { icon: Sparkles, title: "Custom Environments", desc: "We build unique VR worlds tailored to your needs." },
      ];

  return (
    <Layout>
      <SEO
        title={
          isSv
            ? "VR-upplevelser för event och underhållning | Suteki Studios"
            : "VR experiences for events and entertainment | Suteki Studios"
        }
        description={
          isSv
            ? "Skräddarsydda VR-upplevelser för event, mässor och underhållning. Engagerande och minnesvärda upplevelser för alla målgrupper."
            : "Tailored VR experiences for events, trade shows and entertainment. Engaging, memorable moments for every audience."
        }
        lang={isSv ? "sv" : "en"}
        canonicalUrl={
          isSv
            ? "https://sutekistudios.com/vr-upplevelser"
            : "https://sutekistudios.com/vr-experiences"
        }
        alternateEn="https://sutekistudios.com/vr-experiences"
        alternateSv="https://sutekistudios.com/vr-upplevelser"
      />

      {/* Hero */}
      <section className="relative min-h-[60vh] flex items-center justify-center overflow-hidden">
        <div className="absolute inset-0 bg-gradient-to-b from-[#0B1220] via-[#0B1220]/95 to-[#0B1220]" />
        {/* IMAGE PLACEHOLDER – VR EXPERIENCES HERO */}
        <div className="absolute inset-0 bg-[#1a2540] opacity-40" />
        <div className="relative z-10 container mx-auto px-6 py-32 text-center">
          <h1 className="text-4xl md:text-6xl font-bold text-white mb-6 tracking-tight">
            {isSv ? "VR Upplevelser & Interaktiva Miljöer" : "VR Experiences & Interactive Environments"}
          </h1>
          <p className="text-lg md:text-xl text-white/70 max-w-2xl mx-auto mb-10">
            {isSv
              ? "Engagerande VR-upplevelser som underhåller, utbildar och skapar bestående intryck."
              : "Engaging VR experiences that entertain, educate and create lasting impressions."}
          </p>
          <a
            href="https://calendly.com/sutekistudios/strategic-project-discussion"
            target="_blank"
            rel="noopener noreferrer"
            className="inline-flex items-center gap-2 px-8 py-4 rounded-full bg-white text-[#0B1220] font-semibold hover:bg-white/90 transition-all"
          >
            {isSv ? "Boka ett idé-möte" : "Book an idea session"}
            <ArrowRight className="h-4 w-4" />
          </a>
        </div>
      </section>

      {/* Features */}
      <section className="py-24 bg-[#0B1220]">
        <div className="container mx-auto px-6">
          <div className="grid md:grid-cols-3 gap-8">
            {features.map((f, i) => {
              const Icon = f.icon;
              return (
                <div key={i} className="p-8 rounded-2xl border border-white/[0.06] bg-white/[0.02]">
                  <Icon className="h-8 w-8 text-[#2563EB] mb-4" />
                  <h3 className="text-xl font-bold text-white mb-3">{f.title}</h3>
                  <p className="text-white/60 leading-relaxed">{f.desc}</p>
                </div>
              );
            })}
          </div>
        </div>
      </section>

      {/* VIDEO PLACEHOLDER */}
      <section className="py-24 bg-[#0d1629]">
        <div className="container mx-auto px-6 text-center">
          <h2 className="text-3xl md:text-4xl font-bold text-white mb-6">
            {isSv ? "Se VR-upplevelser i aktion" : "See VR experiences in action"}
          </h2>
          <div className="aspect-video max-w-4xl mx-auto rounded-2xl bg-white/[0.04] border border-white/[0.08] flex items-center justify-center">
            <p className="text-white/70 text-lg">VIDEO PLACEHOLDER</p>
          </div>
        </div>
      </section>

      {/* CTA */}
      <section className="py-24 bg-[#0B1220]">
        <div className="container mx-auto px-6 text-center">
          <h2 className="text-3xl md:text-4xl font-bold text-white mb-4">
            {isSv ? "Redo att skapa en VR-upplevelse?" : "Ready to create a VR experience?"}
          </h2>
          <p className="text-white/60 mb-8">
            {isSv ? "Börja med ett kort idé-möte." : "Start with a short idea session."}
          </p>
          <a
            href="https://calendly.com/sutekistudios/strategic-project-discussion"
            target="_blank"
            rel="noopener noreferrer"
            className="inline-flex items-center gap-2 px-8 py-4 rounded-full bg-white text-[#0B1220] font-semibold hover:bg-white/90 transition-all"
          >
            {isSv ? "Boka möte" : "Book a meeting"}
            <ArrowRight className="h-4 w-4" />
          </a>
        </div>
      </section>
    </Layout>
  );
}
