%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX Template: Curriculum Vitae
%
% Original template from: http://www.howtotex.com/
% Modified for use by Naman Sood.
%
% Feel free to distribute this template, but please keep the
% referal to HowToTeX.com.
%
% HowToTeX seems to be dead, but the unmodified template can
% be found at:
% https://www.overleaf.com/latex/templates/your-new-cv/xqzhcmqkqrtw
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[protrusion=true]{microtype}
\usepackage[svgnames]{xcolor}  % Colours by their 'svgnames'
\usepackage{url}
\usepackage{lmodern} % Allow arbitrary font sizes
\usepackage{textcomp}
\usepackage{hyperref}
\usepackage{enumitem}
\usepackage{sectsty}
\usepackage{fontawesome}
\usepackage{xcolor}

% using arbitrary fonts requires XeLaTeX, but that is
% incompatible with the ATS hack below. uncomment with
% caution
%\usepackage{fontspec}
%\setsansfont{Roboto}

% ATS hack: makes resumes easier to parse for machines
\input{glyphtounicode}
\pdfgentounicode=1

% remove paragraph indents
\setlength\parindent{0pt}

\newcommand{\linkIcon}{{\footnotesize \faExternalLink}}

\newcommand{\MyName}[1]{
  \begin{center}
    \Huge\usefont{OT1}{phv}{b}{n} #1
  \end{center}
  \par
}

\newcommand{\NewPart}[1]{
  \vspace{-5mm}
  \section*{\large \uppercase{#1}}
  \vspace{-1mm}
  \normalsize
}

\newcommand{\SkillsEntry}[2]{
  \baselineskip=14pt\hangindent=0em\hangafter=0
  \makebox[1.75cm][l]{
    \textbf{#1}
  }
  \hspace{2em} #2
  \par
}

\newcommand{\WorkEntry}[4]{
  \textbf{\large #1} \hfill #2 \par
  \vspace{0.5mm}
   \textit{#3} \par
  \hangindent=2em\hangafter=0 #4
  \par
}

\newcommand{\EducationEntry}[4]{
  \WorkEntry{#1}{#2}{#3}{#4}
}

\newcommand{\ProjectEntry}[4]{
  \href{#2}{{\large \textbf{#1}} \linkIcon} 
  \textit{#3}
  \par
  \vspace{0.5mm}
   #4
  \par
}

% reduce large font size a bit
\renewcommand\large{\@setfontsize\Large{11pt}{18}}

% remove page numbers/headers/footers
\pagestyle{empty}

% remove link borders
\hypersetup{pdfborder=0 0 0}

\renewcommand{\familydefault}{\sfdefault}
\setlist[itemize]{leftmargin=*}

% Custom sectioning (sectsty package)
\sectionfont{
  \vspace{-1mm}
  \usefont{OT1}{phv}{b}{n}
  \sectionrule{0pt}{0pt}{-5pt}{1pt}
}
