@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: #111111;
  font-family: 'Century Gothic', 'Futura', 'Montserrat', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Floating Slide Navigation Controls */
.slide-nav {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.nav-dot {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-dot:hover,
.nav-dot.active {
  color: #0f172a;
}

.nav-sep {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Outer Viewport Wrapper */
.viewport-wrapper {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f1f5f9;
}

/* Slide Container */
.slides-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

/* 16:9 Aspect Ratio Canvas Frame */
.slide-frame {
  width: 100vw;
  height: 56.25vw;
  /* 16:9 ratio */
  max-height: 100vh;
  max-width: 177.78vh;
  /* 16:9 ratio */
  aspect-ratio: 16 / 9;
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
  container-type: size;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

/* ========================================== */
/* PAGE 1: COVER SLIDE STYLES */
/* ========================================== */
.cover-wrapper {
  position: absolute;
  bottom: 12cqh;
  right: 8cqw;
  display: flex;
  align-items: center;
  gap: 1.8cqw;
}

.left-unit {
  display: flex;
  align-items: stretch;
  gap: 1.4cqw;
  margin-top: 1cqh;
}

.meta-text {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0.2cqh;
  padding-bottom: 0.2cqh;
}

.person-name {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 2.5cqh;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1.5cqh;
}

.person-role {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 1.65cqh;
  font-weight: 400;
  color: #3f3f46;
  line-height: 1.35;
  margin-bottom: 1.8cqh;
}

.portfolio-year {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 1.6cqh;
  font-weight: 400;
  color: #52525b;
  line-height: 1;
}

.vertical-line {
  width: 1px;
  background-color: #b0b0b0;
  flex-shrink: 0;
}

.portfolio-title {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 23cqh;
  line-height: 0.81;
  letter-spacing: -0.02em;
  color: #111111;
  text-transform: uppercase;
  user-select: none;
}

.portfolio-title div {
  display: block;
}

/* ========================================== */
/* PAGE 2: RESUME & BIO SLIDE STYLES */
/* ========================================== */
.page-resume {
  padding: 4.5cqh 5.5cqw;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.85fr;
  gap: 3.5cqw;
  height: 100%;
  width: 100%;
}

.resume-col {
  display: flex;
  flex-direction: column;
  gap: 2cqh;
}

.col-title {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 2.8cqh;
  font-weight: 700;
  color: #09090b;
  margin-bottom: 0.6cqh;
  letter-spacing: -0.01em;
}

/* Column 1 Styling */
.profile-photo-wrapper {
  width: 100%;
  max-width: 17cqh;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.8cqh;
  overflow: hidden;
  border-radius: 2px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  display: block;
}

.bio-block {
  display: flex;
  flex-direction: column;
}

.bio-text {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.75cqh;
  font-weight: 400;
  color: #27272a;
  line-height: 1.45;
}

.contact-block {
  margin-top: 9cqh;
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.65cqh;
  color: #1a1a8e;
  line-height: 1.55;
  font-weight: 500;
}

.contact-block a {
  color: #18181b;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-block a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Column 2 Styling */
.resume-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2cqh;
}

.section-title-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sub-heading {
  font-size: 1.7cqh;
  font-weight: 500;
  color: #52525b;
}

.section-item {
  display: flex;
  flex-direction: column;
  gap: 0.2cqh;
}

.item-header-main {
  font-family: 'Century Gothic', 'Montserrat', sans-serif;
  font-size: 2.1cqh;
  font-weight: 700;
  color: #09090b;
}

.item-sub {
  font-size: 1.75cqh;
  font-weight: 500;
  color: #27272a;
}

.item-detail {
  font-size: 1.6cqh;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.35;
}

.item-detail-light {
  font-size: 1.7cqh;
  font-weight: 500;
  color: #3f3f46;
  line-height: 1.45;
}

.item-date-text {
  font-size: 1.5cqh;
  font-style: italic;
  color: #64748b;
  margin-top: 0.3cqh;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.75cqh;
  font-weight: 500;
  color: #27272a;
  margin-bottom: 0.4cqh;
}

.skill-dots {
  letter-spacing: 0.15em;
  font-size: 1.1em;
  color: #09090b;
}

.cert-block {
  margin-bottom: 0.6cqh;
}

.cert-name {
  font-size: 1.75cqh;
  font-weight: 600;
  color: #09090b;
}

.cert-id {
  font-size: 1.45cqh;
  color: #64748b;
}

/* Column 3 Styling */
.experience-item {
  margin-bottom: 1.4cqh;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.exp-company {
  font-family: 'Century Gothic', 'Montserrat', sans-serif;
  font-size: 2.1cqh;
  font-weight: 700;
  color: #09090b;
}

.exp-date {
  font-size: 1.5cqh;
  font-style: italic;
  color: #64748b;
}

.exp-location {
  font-size: 1.65cqh;
  color: #3f3f46;
}

.exp-role {
  font-size: 1.65cqh;
  font-style: italic;
  color: #52525b;
  margin-bottom: 0.2cqh;
}

.exp-bullets {
  padding-left: 1.1em;
  font-size: 1.65cqh;
  color: #27272a;
  line-height: 1.4;
}

.exp-bullets li {
  margin-bottom: 0.2cqh;
}

.resume-gh-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: normal;
  margin-left: 0.5cqw;
  transition: opacity 0.2s ease;
}

.resume-gh-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.github-btn {
  display: inline-block;
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.25cqh;
  font-weight: 600;
  color: #ffffff;
  background-color: #18181b;
  padding: 0.6cqh 1.2cqw;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: max-content;
}

.github-btn:hover {
  background-color: #3f3f46;
  transform: translateY(-1px);
}

/* ========================================== */
/* PAGE 3: TABLE OF CONTENTS SLIDE STYLES */
/* ========================================== */
.page-toc {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6cqh 7cqw;
}

.toc-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5cqw;
}

.toc-image-wrapper {
  width: 44%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.toc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  display: block;
}

.toc-content {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8cqh;
}

.toc-title {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 3.5cqh;
  font-weight: 700;
  color: #09090b;
  letter-spacing: -0.01em;
}

.toc-chevron {
  width: 2.8cqh;
  height: 2.8cqh;
  stroke: #71717a;
  stroke-width: 2.2;
}

.toc-divider {
  width: 100%;
  height: 1px;
  background-color: #d1d5db;
  margin-bottom: 3.2cqh;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8cqh;
}

.toc-list li {
  display: flex;
  align-items: center;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 3.5cqw;
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 2.2cqh;
  color: #18181b;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toc-link:hover {
  opacity: 0.6;
  transform: translateX(0.5cqw);
}

.toc-num {
  font-weight: 400;
  color: #52525b;
  min-width: 2cqw;
}

.toc-name {
  font-weight: 400;
  color: #18181b;
}

/* ========================================== */
/* PAGE 4: PROJECT 01 - UMATRADERSS (1:1 PIXEL-EXACT REFERENCE MATCH) */
/* ========================================== */
.page-project {
  position: relative;
  background-color: #ffffff;
}

.project-canvas-exact {
  position: absolute;
  top: 8cqh;
  bottom: 8cqh;
  left: 6cqw;
  right: 6cqw;
  display: grid;
  grid-template-columns: 38cqw 26cqw max-content;
  justify-content: space-between;
  height: 100%;
}

/* Left Column */
.col-left-exact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.img-container-left {
  height: 58%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.full-fit-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* GUARANTEES NO CUTTING OR CROPPING */
  display: block;
}

.desc-container-left {
  height: 38%;
  width: 100%;
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.55cqh;
  font-weight: 400; /* CLEAN REGULAR/LIGHT BASE WEIGHT MATCHING REF IMAGE 1 */
  color: #374151;
  line-height: 1.5;
}

.desc-container-left strong {
  font-weight: 700;
  color: #111111;
}

.desc-container-left a {
  color: #2563eb;
  font-weight: 400;
  text-decoration: underline;
}

.tools-note {
  font-size: 1.4cqh;
  font-weight: 400;
  color: #4b5563;
  margin-top: 1cqh;
  padding-top: 0.6cqh;
  border-top: 1px dashed #cbd5e1;
}

.tools-note strong {
  font-weight: 700;
  color: #111111;
}

/* Center Column */
.col-center-exact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding-top: 5.5cqh;
  padding-left: 4cqw;
}

.title-unit-exact {
  display: inline-flex;
  flex-direction: column;
  width: max-content; /* GUARANTEES LINE DOES NOT EXCEED TEXT WIDTH */
  max-width: 100%;
}

.gold-num-exact {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 8.5cqh;
  font-weight: 700;
  color: #8c8c8c; /* Faded light black color */
  line-height: 1;
  margin-bottom: 0.2cqh;
}

.stacked-title-exact {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11.5cqh;
  line-height: 0.81;
  letter-spacing: -0.03em;
  color: #111111;
  text-transform: uppercase;
  user-select: none;
}

.stacked-title-exact div {
  display: block;
}

/* HORIZONTAL LINE MATCHES EXACT WIDTH OF TITLE TEXT */
.sub-line-exact {
  width: 100%; /* EXACTLY matches width of stacked title text */
  height: 1.5px;
  background-color: #d1d5db;
  margin-top: 1.8cqh;
  margin-bottom: 0.8cqh;
}

.sub-caption-exact {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.5cqh;
  font-style: italic;
  color: #52525b;
  line-height: 1.35;
  white-space: nowrap;
}

/* Right Column (Legend Unit) */
.col-right-exact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 26cqh;
}

.legend-unit-exact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.legend-header-exact {
  font-family: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;
  font-size: 1.8cqh;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.6cqh;
  text-align: right;
}

.legend-content-exact {
  display: flex;
  align-items: stretch;
  gap: 0.8cqw;
}

.legend-items-exact {
  list-style: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.4cqh;
}

.legend-items-exact li {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.45cqh;
  color: #3f3f46;
  white-space: nowrap; /* GUARANTEES EACH TOPIC OCCUPIES A SINGLE LINE */
}

.sym {
  font-size: 0.85em;
  color: #9ca3af;
  margin-right: 0.3em;
}

.legend-vertical-line {
  width: 1.5px;
  background-color: #cbd5e1;
  flex-shrink: 0;
}

/* ========================================== */
/* PAGE 5: PROJECT 02 - AGENTIC AUTOML FRAMEWORK */
/* ========================================== */
.p5-canvas {
  position: absolute;
  top: 7cqh;
  bottom: 7cqh;
  left: 6cqw;
  right: 6cqw;
  display: grid;
  grid-template-columns: 36cqw 1fr;
  column-gap: 3.5cqw;
  height: 100%;
}

.p5-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 22cqh;
}

.p5-top-left-group {
  display: flex;
  align-items: flex-start;
  gap: 1.5cqw;
}

.p5-thumb-wrapper {
  width: 14cqw;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p5-legend-unit {
  display: flex;
  flex-direction: column;
}

.p5-legend-header {
  font-family: 'Century Gothic', 'Montserrat', sans-serif;
  font-size: 1.6cqh;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.4cqh;
}

.p5-legend-content {
  display: flex;
  align-items: stretch;
  gap: 0.6cqw;
}

.p5-legend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3cqh;
}

.p5-legend-list li {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.3cqh;
  color: #4b5563;
  white-space: nowrap;
}

.p5-legend-line {
  width: 1.5px;
  background-color: #cbd5e1;
  flex-shrink: 0;
}

.p5-title-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1cqh;
}

.p5-main-img-wrapper {
  width: 100%;
  height: 55%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.p5-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 22cqh;
}

.p5-process-block {
  display: flex;
  flex-direction: column;
  gap: 0.8cqh;
  padding-top: 1cqh;
}

.p5-process-title {
  font-family: 'Century Gothic', 'Montserrat', sans-serif;
  font-size: 1.8cqh;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.3cqh;
}

.p5-step-item {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}

.p5-step-num {
  width: 2.2cqh;
  height: 2.2cqh;
  border-radius: 50%;
  background-color: #e5ca93;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2cqh;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p5-step-text {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.4cqh;
  color: #374151;
}

/* ========================================== */
/* PAGE 6: PROJECT 03 - IDENTITY RECONCILIATION */
/* ========================================== */
.p6-canvas {
  position: absolute;
  top: 8cqh;
  bottom: 8cqh;
  left: 6cqw;
  right: 6cqw;
  display: grid;
  grid-template-columns: 28cqw 1fr;
  column-gap: 5cqw;
  height: 100%;
}

.p6-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 18cqh;
}

.p6-title-wrapper {
  display: flex;
  flex-direction: column;
}

.p6-sub-row {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin-top: 1.5cqh;
}

.p6-sub-line {
  height: 1px;
  background-color: #cbd5e1;
  width: 2.5cqw;
}

.p6-desc-block {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.45cqh;
  color: #3f3f46;
  line-height: 1.45;
}

.p6-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: 2cqh;
  padding-bottom: 18cqh;
}

.p6-main-img-wrapper {
  width: 100%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.p6-detailed-text {
  display: flex;
  align-items: stretch;
  gap: 3cqw;
  margin-top: 2cqh;
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.35cqh;
  color: #3f3f46;
  line-height: 1.45;
}

.p6-detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p6-highlights ul {
  list-style-type: disc;
  padding-left: 2cqw;
  margin-top: 0.5cqh;
}

.p6-highlights li {
  margin-bottom: 0.4cqh;
}

/* ========================================== */
/* PAGE 7: PROJECT 04 - KALMAN FILTER */
/* ========================================== */
.p7-canvas {
  position: absolute;
  top: 8cqh;
  bottom: 8cqh;
  left: 6cqw;
  right: 6cqw;
  display: grid;
  grid-template-columns: 28% 28% 38%;
  gap: 3cqw;
  height: 100%;
  align-items: stretch;
}

.p7-col-left {
  display: flex;
  flex-direction: column;
  gap: 3cqh;
  height: 100%;
  justify-content: center;
}

.p7-img-box {
  width: 100%;
  height: 35cqh;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.p7-col-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-right: 2cqw;
}

.p7-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.p7-sub-row {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin-top: 3cqh;
}

.p7-col-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4cqh;
  height: 100%;
  padding-bottom: 2cqh;
  padding-top: 4cqh;
}

.p7-legend {
  margin-top: 0;
  align-items: flex-start;
}

.p7-legend .legend-header-exact {
  font-size: 1.5cqh;
}

.p7-legend-list li {
  font-size: 1.25cqh;
}

.p7-desc-title {
  font-family: 'Century Gothic', 'Montserrat', sans-serif;
  font-size: 2cqh;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2cqh;
}

.p7-desc-body {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.3cqh;
  color: #4b5563;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1.2cqh;
}

/* ========================================== */
/* PAGE 8: OUTRO */
/* ========================================== */
.p8-canvas {
  position: absolute;
  top: 8cqh;
  bottom: 8cqh;
  left: 6cqw;
  right: 6cqw;
  display: flex;
  align-items: flex-end;
}

.p8-outro-block {
  margin-bottom: 25cqh;
  margin-left: 2cqw;
  display: flex;
  flex-direction: column;
  gap: 1.5cqh;
}

.p8-line {
  width: 7cqw;
  height: 1px;
  background-color: #94a3b8;
}

.p8-text {
  font-family: 'Century Gothic', 'Inter', sans-serif;
  font-size: 1.6cqh;
  color: #475569;
  letter-spacing: 0.05cqw;
}