% Colors
\definecolor{pagebackground}{HTML}{F5F5F5}
\definecolor{bodytitle}{HTML}{353535}
\definecolor{bodytext}{HTML}{353535}
\definecolor{bulletcolor}{HTML}{353535}
\definecolor{linkcolor}{HTML}{EF6F6C}
\definecolor{linecolor}{HTML}{EF6F6C}
\definecolor{name}{HTML}{353535}
\definecolor{jobtitle}{HTML}{353535}
\RequirePackage[pagecolor=pagebackground, nopagecolor=pagebackground]{pagecolor}

% Defining font styles
\newcommand{\sname}{\color{name}\fontsize{46pt}{46pt}\sffamily\addfontfeature{LetterSpace=3}\MakeUppercase}
\newcommand{\sjobtitle}{\color{jobtitle}\fontsize{22pt}{22pt}\sffamily\addfontfeature{LetterSpace=5}\MakeUppercase}

% Defining page styles
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

% Default text color
\AtBeginDocument{\colorlet{defaultcolor}{.}}
\color{bodytext}

% Layout for name, job title and sidebar
\newcommand{\makeprofile}{%
    \vspace*{-1.5cm}
    \begin{center}
        {\setstretch{3}
        \begin{adjustbox}{minipage=[c][2.5cm]{.9\textwidth}}
            \centering
            {\sname\name}
        \end{adjustbox}}

        {\setstretch{1.8}
        \begin{adjustbox}{minipage=[c][1.5cm]{.9\textwidth}}
            \centering
            {\sjobtitle\jobtitle}
        \end{adjustbox}}
    \end{center}
    \bigskip
}

\newcommand{\makecontact}{%
    \begin{tikzpicture}[ampersand replacement=\&]
        \node [rectangle, anchor=center, text width=\textwidth, minimum width=\textwidth, inner ysep=10pt, inner xsep=0pt, minimum height=1.5cm] (contact) at ($(current page.north)-(0cm,6cm)$) {%
            \begin{tabularx}{\textwidth}{CCC}%
                \ifthenelse{\equal{\location}{}}{}{\locicon\ \location } &
                \ifthenelse{\equal{\phone}{}}{}{\phoneicon\ \phone } &
                \ifthenelse{\equal{\mail}{}}{}{\mailicon\ \href{mailto:\mail}{\mail} } \\
            \end{tabularx}
        };
        \draw[line width=1pt, draw=linecolor] ($(contact.north west)$) -- ($(contact.north east)$);
        \draw[line width=1pt, draw=linecolor] ($(contact.south west)$) -- ($(contact.south east)$);
    \end{tikzpicture}
    \vspace{2\bigskipamount}
}

% Margins
\RequirePackage[left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm, footskip=0.5cm, headheight=0.5cm]{geometry}
