\documentclass{beamer}
\usetheme{Madrid}
\usepackage{tikz}
\usepackage{datetime}
\usepackage{tcolorbox}
\tcbuselibrary{skins, breakable}

\newdate{nextTuesday}{26}{08}{2025}

\title{ECON 4530/5530 \\ Computational Economics}
\author{University of Wyoming}
\date{\displaydate{nextTuesday}}

\begin{document}

% Title Slide
\begin{frame}
  \titlepage
\end{frame}

% Contact Info Slide
\begin{frame}{Contact Information}
\begin{tcolorbox}[
  enhanced,
  colback=blue!5,
  colframe=blue!60!black,
  boxrule=0.8pt,
  arc=4pt,
  width=\textwidth,
  title=\textbf{Instructor: Alex Gebben (AG)},
  fonttitle=\bfseries,
  breakable
]
\begin{itemize}
  \item \textbf{Office:} BU 362
  \item \textbf{Email:} \texttt{agebben@uwyo.edu}
  \item \textbf{Phone:} 307-766-4136
  \item \textbf{Office Hours:} Monday \& Friday 1:00–2:30, other times by appointment
\end{itemize}
\end{tcolorbox}
\end{frame}

% Workflow Diagram Slide
\begin{frame}{Steps of an Economic Analysis}
\centering
\begin{tikzpicture}[
  node distance=1.5cm and 2.5cm,
  every node/.style={draw, rounded corners, text centered, minimum width=3.8cm, minimum height=1cm, font=\small},
  designstyle/.style={fill=blue!20},
  datastyle/.style={fill=orange!20},
  analysisstyle/.style={fill=teal!20},
  reportstyle/.style={fill=yellow!40, thick, draw=black, font=\bfseries}
]

  % Fixed layout with overlays
  \onslide<1->{\node[designstyle] (q) at (-3,1.8) {Economic Question};}
  \onslide<2->{\node[designstyle] (sd) at (-3,0) {Strategy and Design};}
  \onslide<3->{\node[datastyle] (dc) at (-3,-1.8) {Data Collection};}
  \onslide<4->{\node[datastyle] (clean) at (-3,-3.6) {Data Cleaning};}
  \onslide<5->{\node[analysisstyle] (explore) at (3,0.9) {Exploration};}
  \onslide<6->{\node[analysisstyle] (analysis) at (3,-0.9) {Analysis};}
  \onslide<7->{\node[reportstyle] (report) at (3,-2.7) {Final Report and Figures};}

  % Arrows
  \onslide<2->{\draw[->, thick] (q) -- (sd);}
  \onslide<3->{\draw[->, thick] (sd) -- (dc);}
  \onslide<4->{\draw[->, thick] (dc) -- (clean);}
  \onslide<5->{
    \draw[->, thick]
      (clean.east) -- ++(1.5,0)
      |- (explore.west);
  }
  \onslide<6->{\draw[->, thick] (explore) -- (analysis);}
  \onslide<7->{\draw[->, thick] (analysis) -- (report);}

  % Dashed feedback arrow from Exploration to center top of Economic Question
  \onslide<8->{
    \draw[->, thick, dashed]
      (explore.north) -- ++(0,1.2) -- ++(-6.0,0) -- (q.north);
  }

\end{tikzpicture}
\end{frame}

\end{document}

