\documentclass[11pt,letterpaper]{article}

% Packages
\usepackage[utf8]{inputenc}
\usepackage{newunicodechar}
\usepackage[hidelinks]{hyperref}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{enumitem}
\usepackage{tcolorbox}
\usepackage{booktabs}
\usepackage{array}
\usepackage{longtable}
\usepackage{multicol}
\usepackage{fontawesome5}

% Unicode character definitions
\newunicodechar{✨}{$\star$}
\newunicodechar{📅}{[Calendar]}
\newunicodechar{🎨}{[Art]}
\newunicodechar{🎯}{[Target]}
\newunicodechar{⚠}{!}
\newunicodechar{❌}{X}

% Colors
\definecolor{primary}{RGB}{75,0,130}      % Deep purple
\definecolor{secondary}{RGB}{138,43,226}  % Blue-violet
\definecolor{accent}{RGB}{218,165,32}     % Goldenrod
\definecolor{lightgray}{RGB}{240,240,240}
\definecolor{darkgray}{RGB}{100,100,100}

% Header/Footer
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\fancyhead[L]{\small \textcolor{primary}{Numerology Report}}
\fancyhead[R]{\small \textcolor{primary}{\VAR{name}}}
\fancyfoot[L]{\small \textcolor{darkgray}{\textit{Djedi Consulting}}}
\fancyfoot[R]{\small \textcolor{darkgray}{\thepage}}

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

\titleformat{\subsection}
  {\large\bfseries\color{secondary}}
  {}
  {0em}
  {}

% Custom boxes
\tcbset{
  numberbox/.style={
    colback=lightgray,
    colframe=primary,
    boxrule=2pt,
    arc=5pt,
    left=10pt,
    right=10pt,
    top=10pt,
    bottom=10pt
  },
  meaningbox/.style={
    colback=white,
    colframe=secondary,
    boxrule=1pt,
    arc=3pt,
    left=8pt,
    right=8pt,
    top=8pt,
    bottom=8pt
  }
}

% Document
\begin{document}

% Title Page
\begin{titlepage}
  \centering
  \vspace*{2cm}

  {\Huge\bfseries\color{primary} Comprehensive Numerology Report\par}
  \vspace{1cm}
  {\Large\itshape A Complete Analysis of Your Numbers\par}
  \vspace{2cm}

  \begin{tcolorbox}[numberbox, width=0.7\textwidth]
    \centering
    {\LARGE\bfseries \VAR{name}\par}
    \vspace{0.5cm}
    {\large Born: \VAR{birthdate}\par}
    \vspace{0.3cm}
    {\normalsize Report Generated: \VAR{date}\par}
  \end{tcolorbox}

  \vfill

  {\large This report contains:\par}
  \vspace{0.5cm}
  \begin{itemize}[leftmargin=2cm]
    \item Core Numbers (Life Path, Expression, Soul Urge, Birthday)
    \item Advanced Numbers (Maturity, Personality, Hidden Passion, Karmic Lessons)
    \item Current Timing Cycles (Personal Year, Month, Day)
    \item Life Pinnacles \& Challenge Numbers
    \item Detailed Interpretations \& Guidance
  \end{itemize}

  \vfill

  {\footnotesize\itshape Professional Numerology Analysis • Pythagorean System\par}
  \vspace{0.5cm}
  {\small\textcolor{darkgray}{Prepared by \textbf{Djedi Consulting}}\par}
\end{titlepage}

% Table of Contents
\tableofcontents
\newpage

% ====================
% SECTION 1: CORE NUMBERS
% ====================
\section{Core Numbers}

Your core numbers form the foundation of your numerological profile. These numbers reveal your life's purpose, natural talents, inner desires, and special gifts.

\subsection{Life Path Number: \VAR{lifePath} \VAR{lifePath_master}}

\begin{tcolorbox}[numberbox]
  \textbf{Keywords:} \VAR{lifePath_keywords}

  \vspace{0.5cm}

  \VAR{lifePath_description}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{Your Life Purpose:}

  \VAR{lifePath_purpose}

  \vspace{0.3cm}
  \textbf{Natural Strengths:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{lifePath_strengths}
  \end{itemize}

  \textbf{Challenges to Overcome:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{lifePath_challenges}
  \end{itemize}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{Ideal Vocations \& Career Paths:}

  \VAR{lifePath_careers}

  \vspace{0.3cm}
  \textbf{In Relationships:}

  \VAR{lifePath_relationships}

  \vspace{0.3cm}
  \textbf{Spiritual Lesson:}

  \VAR{lifePath_spiritual}
\end{tcolorbox}

\subsection{Expression Number: \VAR{expression} \VAR{expression_master}}

\begin{tcolorbox}[numberbox]
  \textbf{Keywords:} \VAR{expression_keywords}

  \vspace{0.5cm}

  \VAR{expression_description}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{Natural Talents \& Abilities:}

  \VAR{expression_purpose}

  \vspace{0.3cm}
  \textbf{Your Strengths:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{expression_strengths}
  \end{itemize}

  \textbf{Potential Challenges:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{expression_challenges}
  \end{itemize}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{Best Career Paths:}

  \VAR{expression_careers}

  \vspace{0.3cm}
  \textbf{In Relationships:}

  \VAR{expression_relationships}
\end{tcolorbox}

\subsection{Soul Urge Number: \VAR{soulUrge} \VAR{soulUrge_master}}

\begin{tcolorbox}[numberbox]
  \textbf{Keywords:} \VAR{soulUrge_keywords}

  \vspace{0.5cm}

  \VAR{soulUrge_description}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{Your Inner Desires \& Motivations:}

  \VAR{soulUrge_purpose}

  \vspace{0.3cm}
  \textbf{What Drives You:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{soulUrge_strengths}
  \end{itemize}

  \textbf{Potential Inner Conflicts:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{soulUrge_challenges}
  \end{itemize}
\end{tcolorbox}

\subsection{Birthday Number: \VAR{birthday}}

\begin{tcolorbox}[numberbox]
  \textbf{Keywords:} \VAR{birthday_keywords}

  \vspace{0.5cm}

  \VAR{birthday_description}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{Your Special Gifts:}

  \VAR{birthday_purpose}

  \vspace{0.3cm}
  \textbf{How to Use This Gift:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{birthday_strengths}
  \end{itemize}

  \vspace{0.3cm}
  \textit{Note: Your Birthday Number is a modifier that adds specific nuances to your other core numbers. It represents talents you were born with that can support your Life Path and Expression.}
\end{tcolorbox}

\newpage

% ====================
% SECTION 2: ADVANCED NUMBERS
% ====================
\section{Advanced Numbers}

These additional numbers provide deeper insight into your personality, hidden talents, areas for growth, and how you'll evolve over time.

\subsection{Maturity Number: \VAR{maturity} \VAR{maturity_master}}

\begin{tcolorbox}[meaningbox]
  \textbf{Who You Become in Your Mature Years:}

  \VAR{maturity_description}

  \vspace{0.3cm}
  This number represents the person you grow into as you mature, typically manifesting strongly around age 35-45. It's calculated from your Life Path + Expression, showing how these two fundamental aspects of your being merge in your later years.
\end{tcolorbox}

\subsection{Personality Number: \VAR{personality} \VAR{personality_master}}

\begin{tcolorbox}[meaningbox]
  \textbf{How Others See You:}

  \VAR{personality_description}

  \vspace{0.3cm}
  Your Personality Number is your "outer mask" - the first impression you give to others before they get to know the real you.
\end{tcolorbox}

\VAR{hiddenPassion_section}

\VAR{karmicLessons_section}

\subsection{Balance Number: \VAR{balance}}

\begin{tcolorbox}[meaningbox]
  \textbf{How You Handle Crisis:}

  \VAR{balance_description}

  \vspace{0.3cm}
  This number shows how you instinctively respond to stress, challenges, and difficult situations.
\end{tcolorbox}

\newpage

% ====================
% SECTION 3: TIMING CYCLES
% ====================
\section{Current Timing Cycles}

Numerology isn't just about who you are - it's also about when to act. Your personal cycles reveal the energetic themes influencing your life right now.

\subsection{Personal Year: \VAR{personalYear}}

\begin{tcolorbox}[numberbox]
  \textbf{Annual Theme (\VAR{currentYear}):} \VAR{personalYear_keywords}

  \vspace{0.5cm}

  \VAR{personalYear_description}
\end{tcolorbox}

\begin{tcolorbox}[meaningbox]
  \textbf{What This Year Is About:}

  \VAR{personalYear_meaning}

  \vspace{0.3cm}
  \textbf{Opportunities:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{personalYear_opportunities}
  \end{itemize}

  \textbf{Challenges:}
  \begin{itemize}[leftmargin=1cm]
    \VAR{personalYear_challenges_list}
  \end{itemize}
\end{tcolorbox}

\subsection{Personal Month: \VAR{personalMonth}}

\begin{tcolorbox}[meaningbox]
  \textbf{Current Month's Energy (\VAR{currentMonth}):}

  \VAR{personalMonth_description}

  \vspace{0.3cm}
  \textbf{Focus Areas:} \VAR{personalMonth_focus}
\end{tcolorbox}

\subsection{Personal Day: \VAR{personalDay}}

\begin{tcolorbox}[meaningbox]
  \textbf{Today's Energy (\VAR{today}):}

  \VAR{personalDay_description}

  \vspace{0.3cm}
  \textbf{Best Activities:} \VAR{personalDay_activities}
\end{tcolorbox}

\subsection{Universal Cycles}

\begin{tabular}{ll}
  \toprule
  \textbf{Cycle} & \textbf{Number} \\
  \midrule
  Universal Year & \VAR{universalYear} \\
  Universal Month & \VAR{universalMonth} \\
  Universal Day & \VAR{universalDay} \\
  \bottomrule
\end{tabular}

\vspace{0.5cm}

The Universal cycles represent the collective energy affecting everyone on Earth right now.

\newpage

% ====================
% SECTION 4: LIFE PINNACLES
% ====================
\section{Life Pinnacles \& Challenges}

Your life is divided into four major pinnacles - each lasting approximately 9 years. These represent the major themes and lessons of different life stages.

\VAR{pinnacles_content}

\newpage

% ====================
% SECTION 5: OPTIMAL DAYS & YEAR AHEAD
% ====================
\section{Strategic Timing}

Knowing the right timing can make all the difference. This section shows you the most favorable days coming up and what to expect in the year ahead.

\subsection{Optimal Days - Next 3 Months}

\VAR{optimalDays_content}

\subsection{Year Ahead: \VAR{nextYear}}

\VAR{yearAhead_content}

\newpage

% ====================
% SECTION 6: SYNTHESIS & GUIDANCE
% ====================
\section{Synthesis \& Life Guidance}

\subsection{Your Unique Numerological Profile}

\begin{tcolorbox}[meaningbox]
  \textbf{Core Identity:}

  With a Life Path \VAR{lifePath} and Expression \VAR{expression}, your journey is about \VAR{synthesis_core}. Your Soul Urge \VAR{soulUrge} reveals that deep down, you're driven by \VAR{synthesis_soul}.

  \vspace{0.3cm}
  \textbf{Current Phase:}

  You're currently in a Personal Year \VAR{personalYear}, which means this is a time for \VAR{synthesis_year}. Your Maturity Number \VAR{maturity} shows that as you age, you're growing into someone who \VAR{synthesis_maturity}.
\end{tcolorbox}

\subsection{Master Numbers in Your Chart}

\VAR{masterNumbers_section}

\subsection{Key Recommendations}

\begin{tcolorbox}[numberbox]
  \textbf{1. Embrace Your Life Path}

  \VAR{rec_lifePath}

  \vspace{0.3cm}
  \textbf{2. Leverage Your Expression}

  \VAR{rec_expression}

  \vspace{0.3cm}
  \textbf{3. Honor Your Soul Urge}

  \VAR{rec_soulUrge}

  \vspace{0.3cm}
  \textbf{4. Work On Karmic Lessons}

  \VAR{rec_karmic}

  \vspace{0.3cm}
  \textbf{5. Align With Current Cycles}

  \VAR{rec_cycles}
\end{tcolorbox}

\newpage

% ====================
% APPENDIX: CALCULATIONS
% ====================
\section{Appendix: Calculation Breakdown}

\subsection{Life Path Calculation}

\begin{verbatim}
Birthdate: \VAR{birthdate}
Month: \VAR{calc_month}
Day: \VAR{calc_day}
Year: \VAR{calc_year}
Life Path = \VAR{calc_month} + \VAR{calc_day} + \VAR{calc_year} = \VAR{lifePath}
\end{verbatim}

\subsection{Expression Calculation}

\begin{verbatim}
Name: \VAR{name}
\VAR{calc_expression_breakdown}
Expression Number: \VAR{expression}
\end{verbatim}

\subsection{Soul Urge Calculation}

\begin{verbatim}
\VAR{calc_soulUrge_breakdown}
Soul Urge Number: \VAR{soulUrge}
\end{verbatim}

\subsection{Personality Number Calculation}

\begin{verbatim}
Consonants only: \VAR{calc_personality_breakdown}
Personality Number: \VAR{personality}
\end{verbatim}

\subsection{Birthday Number}

\begin{verbatim}
Birth Day: \VAR{calc_day}
Birthday Number: \VAR{birthday}
\end{verbatim}

\subsection{Maturity Number Calculation}

\begin{verbatim}
Life Path (\VAR{lifePath}) + Expression (\VAR{expression}) = \VAR{maturity}
Maturity Number: \VAR{maturity}
\end{verbatim}

\vfill

\begin{center}
  \rule{0.5\textwidth}{0.5pt}

  \vspace{0.5cm}

  \textit{This report was generated using the Pythagorean numerology system.}

  \textit{All numbers have been calculated using traditional numerological methods,}

  \textit{with master numbers (11, 22, 33) preserved throughout.}

  \vspace{0.5cm}

  {\small Generated by Numerology Calculator • \url{https://github.com/rpriven/numerology}}
\end{center}

\end{document}
