<!-- Enhanced Meta Tags for SEO -->
{{- $keywords := .Params.keywords | default .Site.Language.Params.keywords | default .Site.Params.keywords -}}
{{- with $keywords }}
<meta name="keywords" content="{{ delimit . ", " }}" />
{{- end }}
<meta name="author" content="{{ .Site.Params.author }}" />
<meta name="language" content="{{ .Site.Language.Lang }}" />
<meta name="theme-color" content="#2563eb" />

<!-- Alternate language versions for better SEO -->
{{- if .IsTranslated }}
  {{- $xDefault := .Permalink }}
  {{- range .AllTranslations }}
    <link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" />
    {{- if eq .Language.Lang "en" }}
      {{- $xDefault = .Permalink }}
    {{- end }}
  {{- end }}
  <link rel="alternate" hreflang="x-default" href="{{ $xDefault }}" />
{{- end }}

<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WCJMDEZ618"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-WCJMDEZ618');
</script>

<!-- Image zoom functionality -->
<script src="{{ "js/image-zoom.js" | relURL }}" defer></script>
