
\documentclass[10pt, a4paper]{article}

% Packages:
\usepackage[
        ignoreheadfoot, % set margins without considering header and footer
        top=1.35 cm, % seperation between body and page edge from the top
        bottom=1.35 cm, % seperation between body and page edge from the bottom
        left=1.35 cm, % seperation between body and page edge from the left
        right=1.35 cm, % seperation between body and page edge from the right
        % showframe % for debugging
    ]{geometry} % for adjusting page geometry
\usepackage{fontspec} % for loading fonts
\usepackage[explicit]{titlesec} % for customizing section titles
\usepackage{tabularx} % for making tables with fixed width columns
\usepackage{array} % tabularx requires this
\usepackage[dvipsnames]{xcolor} % for coloring text
\definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color
\usepackage{enumitem} % for customizing lists
\usepackage{fontawesome5} % for using icons
\usepackage[
    pdftitle={John Doe's CV},
    pdfauthor={John Doe},
    colorlinks=true,
    urlcolor=primaryColor
]{hyperref} % for links, metadata and bookmarks
\usepackage[pscoord]{eso-pic} % for floating text on the page
\usepackage{calc} % for calculating lengths

% Some settings:
\pagestyle{empty} % no header or footer
\setcounter{secnumdepth}{0} % no section numbering
\setlength{\parindent}{0pt} % no indentation
\setlength{\topskip}{0pt} % no top skip
\pagenumbering{gobble} % no page numbering


\setmainfont{EBGaramond}[
    Path= fonts/,
    Extension = .ttf,
    UprightFont = *-Regular,
    ItalicFont = *-Italic,
    BoldFont = *-Bold,
    BoldItalicFont = *-BoldItalic
]

\titleformat{\section}{
        % make the font size of the section title large and color it with the primary color
        \Large\color{primaryColor}
    }{
    }{
    }{
        % print bold title, give 0.15 cm space and draw a line of 0.8 pt thickness
        % from the end of the title to the end of the body
        \textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]
    }[] % section title formatting

\titlespacing{\section}{
        % left space:
        0pt
    }{
        % top space:
        0.13 cm
    }{
        % bottom space:
        0.13 cm
    } % section title spacing

\newcolumntype{L}[1]{
    >{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}
} % left-aligned fixed width column type
\newcolumntype{R}[1]{
    >{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}
} % right-aligned fixed width column type
\newcolumntype{K}[1]{
    >{\raggedright\let\newline\\\arraybackslash\hspace{-0.2cm}\hspace{#1}}X
} % left-aligned flexible width column type

\newenvironment{highlights}{
        \begin{itemize}[
                topsep=0pt,
                parsep=0.07 cm,
                partopsep=0pt,
                itemsep=0pt,
                after=\vspace*{-1\baselineskip},
                leftmargin=0.6 cm + 3pt
            ]
    }{
        \end{itemize}
    } % new environment for highlights

\newenvironment{header}{
        \setlength{\topsep}{0pt}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}
    }{
        \par\kern\topsep
    } % new environment for the header

\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
  \AddToShipoutPictureFG*{% Add <stuff> to current page foreground
    \put(
        \LenToUnit{\paperwidth-1.35 cm},
        \LenToUnit{\paperheight-0.675 cm}
    ){\vtop{{\null}\makebox[0pt][c]{
        \small\color{gray}\emph{Last updated on REPLACETHISWITHTODAY} \hspace{\widthof{Last updated on REPLACETHISWITHTODAY}}
    }}}%
  }%
}%

\newcommand{\hrefExternal}[2]{\href{#1}{#2\, \raisebox{.1ex}{\footnotesize \faExternalLink*}}} % new command for external links

\begin{document}
    \placelastupdatedtext

    \begin{header}
        \Huge
        \textbf{John Doe}

        \normalsize
        \mbox{{\small\faMapMarker*}\hspace{0.13cm}Geneva, Switzerland}
        \hspace{0.5cm}
        \mbox{\href{tel:+905413769286}{{\footnotesize\faPhone*}\hspace{0.13cm}+90 541 376 92 86}}
        \hspace{0.5cm}
        \mbox{\href{mailto:john@doe.com}{{\small\faEnvelope[regular]}\hspace{0.13cm}john@doe.com}}
        \hspace{0.5cm}
        \mbox{\href{https://example.com/}{{\small\faLink}\hspace{0.13cm}example.com}}
        \hspace{0.5cm}
        \mbox{\href{https://www.linkedin.com/in/dummy}{{\small\faLinkedinIn}\hspace{0.13cm}dummy}}
        \hspace{0.5cm}
        \mbox{\href{https://www.github.com/sinaatalay}{{\small\faGithub}\hspace{0.13cm}sinaatalay}}
    \end{header}


    \section{Education}
    
        \begin{tabularx}{\textwidth}{p{0.55cm} K{0.2 cm} R{3.6 cm}}
            \textbf{BS}
            & 
            \textbf{Bogazici University}, Mechanical Engineering
            \vspace*{0.12 cm}
            \begin{highlights}
                \item GPA: 3.80/4.00 (\hrefExternal{https://example.com/}{Transcript})
                \item Test 1
                \item Test 2
            \end{highlights}
        &
            Istanbul, Turkey  \hspace*{-0.2cm + 0.2 cm} \newline
            Sept. 1980 to Jan. 1985 \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}

        \vspace*{0.12 cm}
        
        \begin{tabularx}{\textwidth}{p{0.55cm} K{0.2 cm} R{3.6 cm}}
            \textbf{}
            & 
            \textbf{The University of Texas at Austin}, Mechanical Engineering, Student Exchange Program
            \vspace*{0.12 cm}
        &
            Austin, TX, USA  \hspace*{-0.2cm + 0.2 cm} \newline
            Aug. 2021 to Jan. 2022 \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}



    \section{Work Experience}
    
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Company 1}, Position 1
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Test 1
                \item Test 2
                \item Test 3
            \end{highlights}
        &
            Geneva, Switzerland  \hspace*{-0.2cm + 0.2 cm} \newline
            Feb. 2023 to present \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}

        \vspace*{0.12 cm}
        
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Company 2}, Position 2
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Test 1
                \item Test 2
                \item Test 3
            \end{highlights}
        &
            Geneva, Switzerland  \hspace*{-0.2cm + 0.2 cm} \newline
            Feb. 1986 to Feb. 2023 \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}



    \section{Academic Projects}
    
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Academic Project 1}, \hrefExternal{https://example.com/}{view on my website}
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Test 1
                \item Test 2
            \end{highlights}
        &
            Istanbul, Turkey  \hspace*{-0.2cm + 0.2 cm} \newline
            Spring 2022 \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}

        \vspace*{0.12 cm}
        
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Academic Project 2}, \hrefExternal{https://example.com/}{view on my website}
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Test 1
                \item Test 2
            \end{highlights}
        &
            \end{tabularx}

        \vspace*{0.12 cm}
        
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Academic Project 3}, \hrefExternal{https://example.com/}{view on my website}
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Test 1
                \item Test 2
            \end{highlights}
        &
            Istanbul, Turkey  \hspace*{-0.2cm + 0.2 cm} \newline
            Feb. 2022 to May 2022 \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}



    \section{Certificates}
    
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Certificate 1}
            \vspace*{0.12 cm}
        &
            \end{tabularx}



    \section{Personal Projects}
    
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Personal Project 1}
            \vspace*{0.12 cm}
        &
            \end{tabularx}



    \section{Skills}
    
            \setlength{\leftskip}{0.2 cm}
            \setlength{\rightskip}{0.2 cm}

            \textbf{Programming:} C++, C, Python, JavaScript, MATLAB, Lua, LaTeX

            \setlength{\leftskip}{0cm}
            \setlength{\rightskip}{0cm}

        \vspace*{0.12 cm}
        
            \setlength{\leftskip}{0.2 cm}
            \setlength{\rightskip}{0.2 cm}

            \textbf{CAE:} GMSH, GetDP, CalculiX

            \setlength{\leftskip}{0cm}
            \setlength{\rightskip}{0cm}



    \section{Test Scores}
    
            \setlength{\leftskip}{0.2 cm}
            \setlength{\rightskip}{0.2 cm}

            \textbf{TOEFL:} 120/120

            \setlength{\leftskip}{0cm}
            \setlength{\rightskip}{0cm}

        \vspace*{0.12 cm}
        
            \setlength{\leftskip}{0.2 cm}
            \setlength{\rightskip}{0.2 cm}

            \textbf{IELTS:} 9.0/9.0 (\hrefExternal{https://example.com/}{Score Report})

            \setlength{\leftskip}{0cm}
            \setlength{\rightskip}{0cm}



    \section{Extracurricular Activities}
    
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Test Company 1}, Test Position 1
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Lead and train members for intercollegiate alpine ski races in Turkey and organize skiing events.
            \end{highlights}
        &
            \end{tabularx}

        \vspace*{0.12 cm}
        
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Test Company 1}, Test Position 1
            \vspace*{0.12 cm}
            \begin{highlights}
                \item Test 1
                \item Test 2
                \item Test 3
            \end{highlights}
        &
            Izmir, Turkey  \hspace*{-0.2cm + 0.2 cm} \newline
            Summer 2019 and 2020 \hspace*{-0.2cm + 0.2 cm}
        \end{tabularx}



    \section{Publications}
    
        \begin{tabularx}{\textwidth}{K{0.2 cm} R{3.6 cm}}
            \textbf{Phononic band gaps induced by inertial amplification in periodic media}
            
            Cetin Yilmaz, Gregory M Hulbert, Noboru Kikuchi

            DOI: \hrefExternal{https://doi.org/10.1103/PhysRevB.76.054309}{10.1103/PhysRevB.76.054309}
            &
            Aug. 2007
        \end{tabularx}




\end{document}