\usepackage{graphicx}
\usepackage{float}
\usepackage{adjustbox}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[a4paper,top=2.25cm,bottom=2.25cm,left=1.9cm,right=1.9cm]{geometry}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{fontspec}
\usepackage{unicode-math}

% Set fonts with emoji support
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}

% Better image positioning and scaling
\floatplacement{figure}{H}
\let\oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[2][]{%
    \adjustbox{max width=\textwidth,center}{\oldincludegraphics[#1]{#2}}%
}

% Try to set a font with emoji support as fallback
\newfontfamily\emojifont{Noto Color Emoji}[Renderer=Harfbuzz]

% Hyperlink colors
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    urlcolor=blue,
    citecolor=blue
}