%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% K-Visa Academic CV Template
% Version: 1.0 (Free Edition)
% 
% Designed for STEM professionals applying 
% for China's K-Visa program.
% 
% Compatible with Overleaf and local LaTeX.
% 
% For professional CV services, visit:
% https://www.kvisa.help
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[11pt,a4paper]{article}

%-------------------- PACKAGES --------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=0.75in]{geometry}
\usepackage{titlesec}
\usepackage{enumitem}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{fontawesome5}
\usepackage{tabularx}
\usepackage{multirow}

%-------------------- COLORS --------------------
\definecolor{primary}{RGB}{99, 102, 241}    % Purple (matches website)
\definecolor{secondary}{RGB}{100, 116, 139} % Gray
\definecolor{accent}{RGB}{236, 72, 153}     % Pink accent
\definecolor{darktext}{RGB}{15, 23, 42}     % Dark text

%-------------------- HYPERLINK SETUP --------------------
\hypersetup{
    colorlinks=true,
    linkcolor=primary,
    urlcolor=primary,
    pdftitle={CV - K-Visa Application},
}

%-------------------- FORMATTING --------------------
\pagestyle{empty}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt}

% Section formatting
\titleformat{\section}{
    \Large\bfseries\color{primary}
}{}{0em}{}[\color{primary}\titlerule]
\titlespacing{\section}{0pt}{16pt}{10pt}

% Subsection formatting
\titleformat{\subsection}[runin]{
    \bfseries\color{darktext}
}{}{0em}{}
\titlespacing{\subsection}{0pt}{8pt}{4pt}

%-------------------- CUSTOM COMMANDS --------------------
% Entry for education/experience
\newcommand{\cventry}[4]{
    \noindent
    \begin{tabularx}{\textwidth}{@{}X r@{}}
        \textbf{\large #1} & \textcolor{secondary}{#2} \\
        \textit{\textcolor{secondary}{#3}} & \textcolor{secondary}{#4} \\
    \end{tabularx}
    \vspace{2pt}
}

% Simple entry (for awards, etc.)
\newcommand{\simpleentry}[2]{
    \noindent
    \begin{tabularx}{\textwidth}{@{}X r@{}}
        #1 & \textcolor{secondary}{#2} \\
    \end{tabularx}
    \vspace{2pt}
}

% Skill category
\newcommand{\skillentry}[2]{
    \noindent\textbf{#1:} #2 \\[4pt]
}

% Publication entry
\newcommand{\publication}[1]{
    \noindent #1 \\[6pt]
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BEGIN DOCUMENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

%-------------------- HEADER --------------------
\begin{center}
    {\Huge\bfseries\color{darktext} YOUR FULL NAME} \\[10pt]
    {\color{secondary}
        \faIcon{envelope} \href{mailto:your.email@example.com}{your.email@example.com} \quad
        \faIcon{phone} +1 (234) 567-8900 \quad
        \faIcon{map-marker-alt} City, Country
    } \\[4pt]
    {\color{secondary}
        \faIcon{linkedin} \href{https://linkedin.com/in/yourprofile}{linkedin.com/in/yourprofile} \quad
        \faIcon{github} \href{https://github.com/yourusername}{github.com/yourusername} \quad
        \faIcon{globe} \href{https://yourwebsite.com}{yourwebsite.com}
    }
\end{center}

\vspace{8pt}

%-------------------- PROFESSIONAL SUMMARY --------------------
\section{Professional Summary}

% TIP: Write 2-3 sentences highlighting your expertise and career goals.
% For K-Visa applications, emphasize your STEM background and what you 
% hope to contribute to China's scientific/technological development.

Highly motivated [Your Field] professional with [X] years of experience in [specific areas]. 
Expertise in [key skills relevant to STEM fields]. Seeking opportunities to contribute to 
[research/industry/innovation] in China through the K-Visa program.

%-------------------- EDUCATION --------------------
\section{Education}

\cventry{Ph.D. in [Your Field]}{Expected/Obtained: Month Year}{University Name}{City, Country}
\begin{itemize}[leftmargin=*, nosep, topsep=2pt]
    \item Dissertation: ``[Your Dissertation Title]''
    \item Advisor: Prof. [Advisor Name]
    \item Research Focus: [Brief description of your research area]
\end{itemize}
\vspace{8pt}

\cventry{Master of Science in [Your Field]}{Month Year}{University Name}{City, Country}
\begin{itemize}[leftmargin=*, nosep, topsep=2pt]
    \item Thesis: ``[Your Thesis Title]''
    \item GPA: X.XX/4.0 (if notable)
\end{itemize}
\vspace{8pt}

\cventry{Bachelor of Science/Engineering in [Your Field]}{Month Year}{University Name}{City, Country}
\begin{itemize}[leftmargin=*, nosep, topsep=2pt]
    \item Major: [Your Major], Minor: [Your Minor] (if applicable)
    \item Honors: [Cum Laude / Dean's List / etc.]
\end{itemize}

%-------------------- RESEARCH EXPERIENCE --------------------
\section{Research Experience}

\cventry{[Research Position Title]}{Month Year -- Present}{[Institution/Lab Name]}{City, Country}
\begin{itemize}[leftmargin=*, nosep, topsep=2pt]
    \item [Describe key responsibility using action verbs: Developed, Designed, Implemented, etc.]
    \item [Include quantifiable results: ``Improved algorithm efficiency by 40\%'']
    \item [Mention technologies, methodologies, or tools: Python, TensorFlow, etc.]
    \item [Highlight collaborations or impact: ``Collaborated with 5 international institutions'']
\end{itemize}
\vspace{8pt}

\cventry{[Previous Research Position]}{Month Year -- Month Year}{[Institution/Lab Name]}{City, Country}
\begin{itemize}[leftmargin=*, nosep, topsep=2pt]
    \item [Key achievement or responsibility]
    \item [Another achievement with measurable outcome]
\end{itemize}

%-------------------- PUBLICATIONS --------------------
\section{Publications}

% TIP: Use standard academic citation format. Bold your name.
% List most recent/important publications first.

\publication{[1] Author, A., \textbf{Your Name}, \& Author, B. (Year). ``Paper Title.'' \textit{Journal Name}, Volume(Issue), pages. \href{https://doi.org/xxxxx}{DOI}}

\publication{[2] \textbf{Your Name} (First Author), et al. (Year). ``Paper Title.'' \textit{Conference Name}, Location. \href{https://doi.org/xxxxx}{DOI}}

\publication{[3] Author, C., Author, D., \& \textbf{Your Name}. (Year). ``Paper Title.'' \textit{Journal Name}. (Under Review)}

%-------------------- TECHNICAL SKILLS --------------------
\section{Technical Skills}

\skillentry{Programming Languages}{Python, R, MATLAB, C++, Java, SQL}

\skillentry{Frameworks \& Tools}{TensorFlow, PyTorch, Scikit-learn, Docker, Git, AWS, Linux}

\skillentry{Specialized Skills}{Machine Learning, Deep Learning, Data Analysis, [Your Specialization]}

\skillentry{Languages}{English (Fluent), [Your Native Language] (Native), Mandarin Chinese (Basic/Intermediate)}

%-------------------- AWARDS & HONORS --------------------
\section{Awards \& Honors}

\simpleentry{[Award Name], [Awarding Organization]}{Year}
\simpleentry{[Fellowship/Scholarship Name]}{Year}
\simpleentry{[Competition Award / Honor]}{Year}
\simpleentry{Best Paper Award, [Conference Name]}{Year}

%-------------------- PROFESSIONAL ACTIVITIES --------------------
\section{Professional Activities}

\simpleentry{Reviewer, [Journal Name / Conference Name]}{Year -- Present}
\simpleentry{Member, [Professional Association, e.g., IEEE, ACM]}{Year -- Present}
\simpleentry{Volunteer, [Organization / Event]}{Year}

%-------------------- REFERENCES --------------------
\section{References}

Available upon request.

% Or list references directly:
% \noindent
% \textbf{Prof. [Name]} \\
% [Title], [Department] \\
% [University Name] \\
% Email: \href{mailto:email@example.com}{email@example.com}

\vspace{16pt}

%-------------------- FOOTER --------------------
\begin{center}
    \textcolor{secondary}{\small --- Template provided by \href{https://www.kvisa.help}{kvisa.help} ---}
\end{center}

\end{document}
