/* global React, ReactDOM, AnimatedBackground, CursorGlow */
const { useState } = React;

function webp(src) { if (src.endsWith('.svg')) return src; return src.replace(/\.(png|jpe?g)$/i, '.webp'); }

const PROJECTS = [
  { id: 16, title: "VISAL ERP", slug: "visal-erp", client: "Visal Solutions", category: "Cloud & Infrastructure", categories: ["Cloud & Infrastructure", "Strategy & Operations", "Software Engineering & Development", "Security"], description: "An all-in-one Enterprise Resource Planning (ERP) solution designed to streamline business operations.", technologies: ["Angular", "TypeScript", "Node.js", "PostgreSQL", "Docker"], imageUrl: "/projects/visal_erp/Featured.png", promotion: "5% OFF This Season", liveUrl: null },
  { id: 19, title: "Winrich Restaurant", slug: "winrich-restaurant", client: "Winrich Restaurant", category: "Software Engineering & Development", categories: ["Software Engineering & Development", "Design & Quality", "Cloud & Infrastructure"], description: "A modern digital platform for Winrich Restaurant with menu browsing, reservations, and a seamless dining experience.", technologies: ["Next.js", "React", "TypeScript", "Tailwind CSS", "Firebase"], imageUrl: "/projects/winrich/Featured.png", liveUrl: null },
  { id: 23, title: "Ceylon Cozy Tours", slug: "ceylon-cozy-tours", client: "Ceylon Cozy Tours", category: "Software Engineering & Development", categories: ["Software Engineering & Development", "Design & Quality", "Cloud & Infrastructure"], description: "Sri Lanka's best tailor-made tourism platform — letting clients design their own journey with custom itineraries, 500+ tour options across 40+ destinations, and 24/7 support.", technologies: ["Next.js", "React", "TypeScript", "Tailwind CSS", "Firebase"], imageUrl: "/projects/ceylon_cozy_tours/Featured.png", liveUrl: "https://ceylon-cozy-tours.web.app/" },
  { id: 25, title: "Panthera Clothing", slug: "panthera", client: "Panthera", category: "Software Engineering & Development", categories: ["Software Engineering & Development", "Design & Quality", "Cloud & Infrastructure"], description: "Hardware implementation, branding, and web platform for Panthera — a modern clothing brand.", technologies: ["HTML5", "CSS3", "JavaScript", "Firebase"], imageUrl: "/projects/panthera/Featured.png", liveUrl: "https://panthera-clothing.web.app/" },
  { id: 12, title: "Pera Agros Alumni Platform", slug: "pera-agros-alumni", client: "Peradeniya University Alumni", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "A WordPress-based platform for alumni community engagement, event management, and networking.", technologies: ["WordPress", "PHP", "MySQL", "JavaScript"], imageUrl: "/projects/pera_agros/Featured.png", liveUrl: null },
  { id: 10, title: "Crypto AI", slug: "crypto-ai", client: "Personal Customer", category: "Security", categories: ["Security", "Data & Intelligence", "Software Engineering & Development"], description: "AI-powered cryptocurrency trading platform that automates analysis and execution.", technologies: ["Python", "Angular", "TensorFlow", "Azure", "Docker"], imageUrl: "/projects/crypto_ai/Featured.png", liveUrl: "https://orca-whale.web.app/" },
  { id: 24, title: "Tangerine Tours System", slug: "tangerine-tours-system", client: "Tangerine Tours Limited", category: "Strategy & Operations", categories: ["Strategy & Operations", "Software Engineering & Development", "Cloud & Infrastructure", "Security"], description: "A large-scale, fully custom enterprise system built for Tangerine Tours Limited — managing all operations across their tourism company and multi-company structure. The most comprehensive custom tourism management system we've delivered to date.", technologies: ["Angular", "TypeScript", "Node.js", "PostgreSQL", "Docker"], imageUrl: "/projects/tangerine_tours/Featured.png", liveUrl: null },
  { id: 22, title: "LankaTiles Ticket Manager", slug: "advanced-task-manager", client: "Lanka Tiles PLC", category: "Strategy & Operations", categories: ["Strategy & Operations"], description: "Custom Trello-style Kanban ticket manager tailored to Lanka Tiles' development workflow.", technologies: ["HTML5", "CSS3", "JavaScript", "Firebase"], imageUrl: "/projects/advanced-task-manager/featured.png", demoUrl: "/demos/advanced-task-manager/" },
  { id: 17, title: "RentIo Platform", slug: "rentio", client: "RentIo", category: "Strategy & Operations", categories: ["Strategy & Operations", "Software Engineering & Development", "Cloud & Infrastructure"], description: "A comprehensive rental management platform with integrated service and repair functions.", technologies: ["Angular", "TypeScript", "Node.js", "MongoDB", "Express"], imageUrl: "/projects/rentio/Featured.png", liveUrl: null },
  { id: 18, title: "Altair Tours", slug: "altair-tours", client: "Altair Tours", category: "Software Engineering & Development", categories: ["Software Engineering & Development", "Design & Quality", "Cloud & Infrastructure"], description: "A modern travel platform for Altair Tours Lanka, offering personalized guided tours.", technologies: ["Next.js", "React", "TypeScript", "Tailwind CSS", "Firebase"], imageUrl: "/projects/altair/Featured.png", liveUrl: "https://altair-tours.web.app/" },
  { id: 13, title: "SARTC Blog Platform", slug: "sartc-blog", client: "South Asian Research and Training Center", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "A professional blog and branding platform for SARTC, showcasing research insights and publications.", technologies: ["React", "Nginx", "PostgreSQL", "Prometheus"], imageUrl: "/projects/sartc/Featured.png", liveUrl: null },
  { id: 11, title: "Amethyst Gaming Platform", slug: "amethyst-gaming-community", client: "Amethyst SMP Gaming Community", category: "Software Engineering & Development", categories: ["Software Engineering & Development", "Security"], description: "An interactive web app with 3D graphics and an upcoming marketplace for trading game items.", technologies: ["React", "Tailwind CSS", "Three.js", "Firebase"], imageUrl: "/projects/amethyst/Featured.png", liveUrl: "https://amethyst-community.web.app/" },
  { id: 30, title: "Tangerine Task Manager", slug: "tangerine-task-manager", client: "Tangerine Tours Limited", category: "Strategy & Operations", categories: ["Strategy & Operations", "Software Engineering & Development"], description: "Custom Trello-style Kanban ticket manager built for Tangerine Tours Limited's development workflow.", technologies: ["HTML5", "CSS3", "JavaScript", "Firebase"], imageUrl: "/projects/tangerine-task-manager/Featured.png", liveUrl: "/tangerine-task-manager/" },
  { id: 31, title: "NIC Converter", slug: "nic-converter", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "A Sri Lankan NIC number converter that converts between old 9-digit and new 12-digit formats, extracting birth date, age, and gender information.", technologies: ["React", "JavaScript", "CSS3"], imageUrl: "/projects/nic/Featured.png", liveUrl: "https://charaka-janith.github.io/#/nic-converter" },
  { id: 26, title: "Computer Specs Checker", slug: "computer-specs-checker", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "A browser-based system information tool that analyzes your computer specs and compares them with recommended requirements.", technologies: ["HTML5", "CSS3", "JavaScript", "Font Awesome"], imageUrl: "/projects/computer-specs-checker/Featured.png", liveUrl: "/apps/computer-specs-checker/" },
  { id: 27, title: "Image Filtering App", slug: "image-filtering-app", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "A photo enhancement tool with professional filters, adjustments, and real-time preview for image editing in the browser.", technologies: ["HTML5", "CSS3", "JavaScript", "Font Awesome"], imageUrl: "/projects/image-filtering-app/Featured.png", liveUrl: "/apps/image-filtering-app/" },
  { id: 28, title: "Live Weather App", slug: "live-weather-app", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "A real-time weather application with location-based forecasts, interactive UI, and detailed weather data visualization.", technologies: ["HTML5", "CSS3", "JavaScript"], imageUrl: "/projects/live-weather-app/Featured.png", liveUrl: "/apps/live-weather-app/" },
  { id: 29, title: "Solar System Explorer", slug: "solar-system-explorer", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "An interactive solar system visualization with clickable planets, search functionality, and fascinating facts about our cosmic neighborhood.", technologies: ["HTML5", "CSS3", "JavaScript", "Font Awesome"], imageUrl: "/projects/solar-system-explorer/Featured.png", liveUrl: "/apps/solar-system-explorer/" },
  { id: 21, title: "Internet Speed Checker", slug: "internet-speed-checker", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "Real-time internet speed testing tool with download/upload measurement and dark mode.", technologies: ["HTML5", "CSS3", "JavaScript"], imageUrl: "/projects/internet-speed-checker/Featured.png", demoUrl: "/demos/internet-speed-checker/" },
  { id: 20, title: "Periodic Table App", slug: "periodic-table-app", client: "Personal Project", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "Interactive periodic table with search, category filtering, and detailed element views.", technologies: ["HTML5", "CSS3", "JavaScript"], imageUrl: "/projects/periodic-table-app/Featured.png", demoUrl: "/demos/periodic-table-app/" },
  { id: 15, title: "Tic Tac Toe Game", slug: "tic-tac-toe", client: "Personal Customer", category: "Software Engineering & Development", categories: ["Software Engineering & Development"], description: "An interactive Tic Tac Toe game with an intelligent AI bot opponent.", technologies: ["HTML5", "CSS3", "JavaScript"], imageUrl: "/projects/tick_tack_toe/Featured.png", liveUrl: "https://charaka-janith.github.io/#/tic-tac-toe" },
];

function ProjectsNav() {
  const [scrolled, setScrolled] = useState(false);
  React.useEffect(() => {
    const onScroll = () => setScrolled(window.scrollY > 12);
    window.addEventListener('scroll', onScroll);
    return () => window.removeEventListener('scroll', onScroll);
  }, []);
  return (
    <header className={`nav ${scrolled ? 'nav--scrolled' : ''}`}>
      <div className="nav__inner">
        <a href="/" className="nav__brand">
          <span className="nav__logo-plate">
            <img src="/logos/logo dark.webp" alt="Orca Solutions" className="nav__logo" />
          </span>
          <span className="nav__wordmark">Orca</span>
          <span className="nav__sub">/ Solutions</span>
        </a>
        <nav className="nav__links">
          <a href="/">Home</a>
          <a href="/reviews">Reviews</a>
          <a href="#contact">Contact</a>
        </nav>
        <div className="nav__cta">
          <a href="#contact" className="btn btn--ghost nav__cta-btn">Start a project →</a>
        </div>
      </div>
    </header>
  );
}

function ProjectsContact() {
  const [sent, setSent] = useState(false);
  const [form, setForm] = useState({ name: '', email: '', company: '', scope: 'Web platform', msg: '' });
  const upd = (k) => (e) => setForm((f) => ({ ...f, [k]: e.target.value }));
  const handleSubmit = (e) => {
    e.preventDefault();
    if (typeof firebase !== 'undefined' && firebase.firestore) {
      firebase.firestore().collection('contacts').add({
        name: form.name, email: form.email, company: form.company, scope: form.scope, message: form.msg, status: 'new',
        createdAt: firebase.firestore.FieldValue.serverTimestamp(),
      }).catch(() => {});
    }
    setSent(true);
  };
  return (
    <section className="contact" id="contact">
      <div className="contact__inner">
        <div className="contact__left">
          <span className="eyebrow">Contact</span>
          <h2 className="contact__title">Have a project in mind?<br /><span className="contact__title-muted">Let's map it out.</span></h2>
          <p className="contact__lede">Tell us a little about what you're building. We reply within one business day, usually faster.</p>
          <div className="contact__cards">
            <a href="tel:+94711818119" className="contact__card contact__card--phone">
              <div className="contact__card-icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg></div>
              <span className="contact__card-label">Prefer to talk?</span>
              <span className="contact__card-title">Call our Technical Consultant</span>
              <span className="contact__card-name">Charaka Janith</span>
              <span className="contact__card-value">+94 71 181 8119</span>
            </a>
            <a href="https://wa.me/94711818119" target="_blank" rel="noopener noreferrer" className="contact__card contact__card--whatsapp">
              <div className="contact__card-icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413z"/></svg></div>
              <span className="contact__card-label">Quick chat?</span>
              <span className="contact__card-title">Message us on WhatsApp</span>
              <span className="contact__card-value">wa.me/94711818119</span>
            </a>
          </div>
        </div>
        <form className="contact__form" onSubmit={handleSubmit}>
          {sent ?
            <div className="contact__sent">
              <div className="contact__sent-mark">&#10003;</div>
              <h4>Message received.</h4>
              <p>We'll be in touch shortly, {form.name || 'there'}.</p>
            </div> :
            <>
              <label className="field"><span>Name</span><input value={form.name} onChange={upd('name')} placeholder="Jane Perera" required /></label>
              <label className="field"><span>Email</span><input type="email" value={form.email} onChange={upd('email')} placeholder="jane@company.com" required /></label>
              <label className="field"><span>Company</span><input value={form.company} onChange={upd('company')} placeholder="Acme Ltd." /></label>
              <label className="field">
                <span>Scope</span>
                <select value={form.scope} onChange={upd('scope')}>
                  <option>Web platform</option><option>Mobile app</option><option>ERP / internal tools</option><option>Cloud / DevOps</option><option>AI / data</option><option>Other</option>
                </select>
              </label>
              <label className="field field--full"><span>What are you building?</span>
                <textarea value={form.msg} onChange={upd('msg')} rows="4" placeholder="A few sentences is plenty. Links welcome." required></textarea>
              </label>
              <button className="btn btn--primary btn--full" type="submit">Send message<span className="btn__arrow"> &rarr;</span></button>
            </>
          }
        </form>
      </div>
    </section>
  );
}

function ProjectsPage() {
  const [filter, setFilter] = useState('All');
  const allCats = ['All', ...new Set(PROJECTS.flatMap(p => p.categories || [p.category]))];
  const filtered = filter === 'All' ? PROJECTS : PROJECTS.filter(p => (p.categories || [p.category]).includes(filter));

  return (
    <>
      <CursorGlow />
      <AnimatedBackground enabled={true} />
      <ProjectsNav />
      <div className="projects-page">
        <a href="/" className="projects-page__back">← Back to home</a>
        <h1 className="projects-page__title">Our Projects</h1>
        <p className="projects-page__lede">A selection of software we've designed and shipped for clients across industries.</p>
        <div className="projects-page__filters">
          {allCats.map(c => (
            <button key={c} className={`projects-page__filter ${filter === c ? 'projects-page__filter--active' : ''}`} onClick={() => setFilter(c)}>{c}</button>
          ))}
        </div>
        <div className="work__grid">
          {filtered.map(p => {
            return (
              <a key={p.id} href={'/projects/' + p.slug} className="proj">
                <div className="proj__media" style={{ position: 'relative' }}>
                  {p.promotion && <span className="proj__promo">{p.promotion}</span>}
                  <img src={webp(p.imageUrl)} alt={p.title} loading="lazy" width="600" height="400" style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 'var(--radius-sm)' }} />
                </div>
                <div className="proj__meta">
                  <span className="proj__tag">{p.category}</span>
                </div>
                <h3 className="proj__name">{p.title}</h3>
                <p className="proj__client">{p.client}</p>
                <p className="proj__blurb">{p.description}</p>
                <span className="proj__cta">View project &rarr;</span>
              </a>
            );
          })}
        </div>
      </div>
      <ProjectsContact />
      <footer className="foot">
        <div className="foot__top">
          <div className="foot__brand-col">
            <div className="foot__brand">
              <span className="foot__logo-plate">
                <img src="/logos/logo dark.webp" alt="Orca Solutions" className="foot__logo" />
              </span>
              <span className="foot__word">Orca Solutions Limited</span>
            </div>
            <div className="foot__socials">
              <a href="https://www.linkedin.com/company/109359186/" target="_blank" rel="noopener noreferrer" className="foot__social" aria-label="LinkedIn">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
              </a>
              <a href="https://x.com/OrcaSolutionsLK" target="_blank" rel="noopener noreferrer" className="foot__social" aria-label="X / Twitter">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
              </a>
              <a href="https://github.com/AspireVX15" target="_blank" rel="noopener noreferrer" className="foot__social" aria-label="GitHub">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
              </a>
              <a href="https://www.facebook.com/profile.php?id=61582136085736" target="_blank" rel="noopener noreferrer" className="foot__social" aria-label="Facebook">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
              </a>
              <a href="https://wa.me/94711818119" target="_blank" rel="noopener noreferrer" className="foot__social" aria-label="WhatsApp">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>
              </a>
              <a href="mailto:orca.softwares.limited@gmail.com" className="foot__social" aria-label="Email">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>
              </a>
            </div>
          </div>
          <div className="foot__cols">
            <div><h5>Services</h5><a href="/#services">Engineering</a><a href="/#services">Cloud</a><a href="/#services">Security</a><a href="/#services">Data</a></div>
            <div><h5>Company</h5><a href="/#about">About</a><a href="/#work">Work</a><a href="/projects">Projects</a><a href="/#contact">Contact</a></div>
            <div><h5>Connect</h5><a href="https://www.linkedin.com/company/109359186/" target="_blank" rel="noopener noreferrer">LinkedIn</a><a href="https://x.com/OrcaSolutionsLK" target="_blank" rel="noopener noreferrer">X / Twitter</a><a href="https://wa.me/94711818119" target="_blank" rel="noopener noreferrer">WhatsApp</a><a href="mailto:orca.softwares.limited@gmail.com">Email</a></div>
          </div>
        </div>
        <div className="foot__bot">
          <span>&copy; 2026 Orca Solutions Limited</span>
          <span>Colombo &middot; Sri Lanka</span>
          <span className="foot__pulse"><span className="foot__dot"></span>All systems operational</span>
        </div>
      </footer>
    </>
  );
}

ReactDOM.createRoot(document.getElementById('root')).render(<ProjectsPage />);
