/* ================================================================
   TRANG NGUYEN — DIGITAL RESUME & PORTFOLIO
   Creative + Professional "Executive Magazine" Style
   ================================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #E8531E;
  --orange-hover: #D4471A;
  --orange-light: #FFF3EE;
  --orange-glow: rgba(232, 83, 30, 0.12);
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #7A7A8A;
  --bg-page: #F5F5F7;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-light: #E8E8EC;
  --border-medium: #D0D0D8;
  --bg-hover: #F8F8FA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-lift: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--orange-hover);
}

/* ---------- Site Header ---------- */
/* ---------- Unified Header + Navigation ---------- */
.site-header {
  background: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

/* Brand: monogram + name */
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: border-color 0.3s ease;
}
.header-avatar:hover {
  border-color: var(--orange);
}

.header-name-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}
.ht-keyword {
  color: rgba(255,255,255,0.5);
}
.ht-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin: 0 7px;
}
.ht-accent {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Tab buttons — pill capsule style */
.header-tabs {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-tabs::-webkit-scrollbar { display: none; }

.header-tabs-track {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.25s ease;
}
.tab-btn::after {
  display: none;
}
.tab-btn:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
}
.tab-btn.active {
  color: var(--text-primary);
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* PDF button — ghost style on dark bg */
.pdf-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.pdf-btn:hover {
  color: white;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 2px 12px rgba(232, 83, 30, 0.3);
  transform: translateY(-1px);
}

/* ---------- Main Content ---------- */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.35s ease;
}
.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESUME TAB ---------- */
.resume-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 48px 40px;
  max-width: 816px;
  margin: 0 auto;
}

.resume-header {
  text-align: center;
  margin-bottom: 28px;
}

.resume-name {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.name-definition {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
  opacity: 0.75;
}

.def-word {
  font-weight: 600;
  color: var(--text-secondary);
}

.def-phonetic {
  font-style: italic;
}

.def-pos {
  font-style: italic;
  color: var(--orange);
  opacity: 0.8;
}

.resume-motto {
  margin-top: 11px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.motto-abbr {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--orange);
  text-transform: uppercase;
}

.motto-sep {
  margin: 0 10px;
  color: var(--border-medium);
  font-size: 12px;
}

.motto-text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.motto-dots {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  margin-left: 1px;
}

.resume-accent-bar {
  width: 80px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 12px auto;
}

.resume-contact {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.resume-contact .divider {
  margin: 0 6px;
  color: var(--border-medium);
}
.resume-contact a {
  color: var(--text-secondary);
  font-weight: 500;
}
.resume-contact a:hover {
  color: var(--orange);
}

.resume-tagline {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Resume Sections */
.resume-section {
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 14px;
}

.summary-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Jobs */
.job {
  margin-bottom: 16px;
}
.job:last-child {
  margin-bottom: 0;
}

.job-header {
  margin-bottom: 4px;
}

.job-title-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.job-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.job-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.job-company {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-style: italic;
}

.job-type {
  font-style: normal;
  color: var(--text-muted);
  font-size: 11px;
}

.job-bullets {
  margin-top: 4px;
  padding-left: 18px;
  list-style: disc;
}
.job-bullets li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.compact-job .job-bullets li {
  font-size: 12px;
}

/* Education (Resume) */
.edu-item {
  margin-bottom: 10px;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-degree {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-honor {
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.edu-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.edu-school {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-style: italic;
}

.edu-details {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Certifications (Resume) */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  padding: 4px 0;
}

.cert-name {
  font-weight: 600;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Skills (Resume compact) */
.skills-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.skill-row {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.skill-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Awards (Resume compact) */
.awards-compact {
  display: grid;
  gap: 2px;
}

.award-row {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}
.award-row::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

/* Resume print footer */
.resume-footer {
  margin-top: 24px;
  padding-top: 12px;
  text-align: center;
}

.print-only {
  display: none;
}

/* ---------- PORTFOLIO TAB ---------- */
.page-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.portfolio-hero-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  margin-bottom: 36px;
  padding: 24px 0;
  background: linear-gradient(135deg, #fafaf9 0%, #f5f4f0 100%);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
}

.phs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  min-height: 80px;
}

.phs-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.phs-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

.phs-divider {
  width: 1px;
  align-self: center;
  height: 40px;
  background: rgba(0,0,0,0.08);
  flex-shrink: 0;
}

/* Icons row under each stat */
.phs-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.phs-icon {
  color: var(--text-muted);
  opacity: 0.4;
}
.phs-icon--gold { color: #D97706; opacity: 1; }
.phs-icon--silver { color: #94A3B8; opacity: 1; }
.phs-icon--bronze { color: #0D9488; opacity: 1; }

/* Flags */
.phs-icons--flags {
  font-size: 15px;
  gap: 2px;
}

/* Micro industry labels */
.phs-icons--text {
  flex-wrap: wrap;
  gap: 3px;
  max-width: 130px;
}
.phs-micro {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 1px 5px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

/* ── PLATFORM RECOGNITION CARD ── */
.platform-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
  position: relative;
}

.platform-card-left {
  flex-shrink: 0;
}

.platform-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-logo--upwork {
  background: #6FDA44;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.platform-issuer-info {
  display: flex;
  flex-direction: column;
}

.platform-org {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.platform-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.platform-card-body {
  flex: 1;
}

.platform-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.platform-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.platform-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #6FDA44;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
}

.platform-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 12px 20px;
  width: fit-content;
}

.platform-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.platform-stat-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #166534;
  line-height: 1;
}

.platform-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
  white-space: nowrap;
}

.platform-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.platform-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.platform-view-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  transition: all var(--transition);
  align-self: flex-start;
  flex-shrink: 0;
}

.platform-view-link:hover {
  background: #fff;
  border-color: #6FDA44;
  color: #15803d;
}

.portfolio-section-container {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  overflow: visible;
}

.project-summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.project-summary::-webkit-details-marker {
  display: none;
}
.project-summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.project-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.tag-venture {
  background: #E8F5E9;
  color: #2E7D32;
}
.tag-consulting {
  background: #E3F2FD;
  color: #1565C0;
}
.tag-award {
  background: var(--orange-light);
  color: var(--orange);
}

.project-date {
  font-size: 12px;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-right: 32px;
}

.project-brief {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-details {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-details ul {
  padding: 16px 0 12px 18px;
  list-style: disc;
}
.project-details li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 4px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.project-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-page);
  color: var(--text-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.project-tags span:hover {
  background: var(--orange-light);
  color: var(--orange);
  border-color: var(--orange);
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.project-link:hover {
  text-decoration: underline;
}

/* ---------- CREDENTIALS TAB ---------- */
.subsection-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}
.subsection-title:first-of-type {
  margin-top: 0;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cred-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.cred-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.cred-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cred-info h4 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cred-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cred-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Education (Credentials expanded) */
.edu-expanded {
  display: grid;
  gap: 16px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition);
}
.edu-card:hover {
  box-shadow: var(--shadow-sm);
}

.edu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-card-header h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-card-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.edu-card-school {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2px;
}

.edu-card-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.edu-highlights {
  margin-top: 12px;
  padding-left: 18px;
  list-style: disc;
}
.edu-highlights li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 3px;
}

/* Awards Timeline */
.awards-timeline {
  position: relative;
  padding-left: 24px;
}
.awards-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-light);
  border-radius: 1px;
}

.award-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.award-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg-page);
}

.award-year {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  min-width: 40px;
}

.award-content strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.35;
}

.award-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- SKILLS TAB ---------- */
/* ---------- Signature Stack ---------- */
.sig-stack {
  position: relative;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow: hidden;
}

/* Dark background */
.sig-stack-bg {
  position: absolute;
  inset: 0;
  background: #1A1A2E;
  /* Dot grid pattern */
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Animated gradient top border */
.sig-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--orange), #F59E0B, #3B82F6, #8B5CF6, var(--orange));
  background-size: 200% 100%;
  animation: sig-gradient 4s ease infinite;
}

@keyframes sig-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtle glow behind the grid */
.sig-stack::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232, 83, 30, 0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.sig-stack-content {
  position: relative;
  z-index: 2;
  padding: 36px 32px 40px;
}

.sig-stack-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-bottom: 28px;
}

.sig-stack-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Individual tool card */
.sig-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 140px;
  flex: 1;
  max-width: 180px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.sig-tool:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* Icon circles with accent colors */
.sig-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sig-tool:hover .sig-tool-icon {
  transform: scale(1.1);
}

.sig-tool-icon--orange {
  background: rgba(232, 83, 30, 0.15);
  color: #F97316;
  box-shadow: 0 0 0 0 rgba(232, 83, 30, 0);
}
.sig-tool:hover .sig-tool-icon--orange {
  box-shadow: 0 0 20px rgba(232, 83, 30, 0.25);
}

.sig-tool-icon--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}
.sig-tool:hover .sig-tool-icon--amber {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.sig-tool-icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}
.sig-tool:hover .sig-tool-icon--blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.sig-tool-icon--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
}
.sig-tool:hover .sig-tool-icon--purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.sig-tool-icon--teal {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
}
.sig-tool:hover .sig-tool-icon--teal {
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.25);
}

.sig-tool-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.sig-tool-ctx {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.5;
  font-weight: 500;
  max-width: 160px;
}

/* ---------- AI Method Flow ---------- */
.ai-method {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  margin-bottom: 40px;
  position: relative;
}

.ai-method-header {
  text-align: center;
  margin-bottom: 32px;
}

.ai-method-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ai-method-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 3x2 grid */
.ai-method-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Hide arrow elements — flow is now implied by grid + numbers */
.ai-method-arrow {
  display: none;
}

.ai-method-step {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.ai-method-step:hover {
  background: var(--bg-white);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Step number + icon on same line */
.ai-method-step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0.06;
  line-height: 1;
}

.ai-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ai-method-step:hover .ai-method-icon {
  background: var(--orange);
  color: white;
  transform: scale(1.08);
}

.ai-method-step-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ai-method-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-method {
    padding: 28px 20px 24px;
  }

  .ai-method-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ai-method-step {
    padding: 20px 16px 18px;
  }

  .ai-method-step-title {
    font-size: 13.5px;
  }

  .ai-method-step-desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .ai-method-flow {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blueprint Stack ---------- */
.blueprint {
  position: relative;
  margin-bottom: 48px;
}

.blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blueprint-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 4px;
}

/* (#1) Bottom-up annotation */
.blueprint-annotation {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-layer {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.bp-layer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  transition: width 0.3s ease;
}

.bp-layer:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.bp-layer:hover::before {
  width: 6px;
}

/* Layer accent colors */
.bp-layer--ai::before { background: linear-gradient(180deg, #8B5CF6, #A78BFA); }
.bp-layer--insight::before { background: linear-gradient(180deg, #3B82F6, #60A5FA); }
.bp-layer--auto::before { background: linear-gradient(180deg, #F59E0B, #FBBF24); }
.bp-layer--platform::before { background: linear-gradient(180deg, var(--orange), #F97316); }
.bp-layer--foundation::before { background: linear-gradient(180deg, #6B7280, #9CA3AF); }

.bp-layer-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.bp-layer-number {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.4;
  line-height: 1;
  padding-top: 4px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.bp-layer-title-group {
  flex: 1;
}

.bp-layer-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bp-layer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Blueprint pills */
.bp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bp-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  transition: all var(--transition);
  cursor: default;
}

.bp-pill:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--orange-glow);
}

.bp-pill--highlight {
  background: var(--orange-light);
  color: var(--orange);
  border-color: rgba(232, 83, 30, 0.2);
  font-weight: 700;
}

.bp-pill--highlight:hover {
  background: var(--orange);
  color: white;
}

.bp-pill--method {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-medium);
  color: var(--text-muted);
  font-weight: 600;
}

.bp-pill--method:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  border-style: solid;
}

/* (#6) Connectors between layers — animated dashed line */
.bp-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.bp-connector-line {
  width: 2px;
  height: 20px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-medium) 0px,
    var(--border-medium) 4px,
    transparent 4px,
    transparent 8px
  );
  position: relative;
}

.bp-connector-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bp-pulse 2s ease-in-out infinite;
}

@keyframes bp-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
}

/* ---------- Cross-Layer Label (#3) ---------- */
.bp-side-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.bp-side-label-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.bp-side-label-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Side Capabilities Grid ---------- */
.bp-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.bp-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.bp-side-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bp-side-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bp-side-card:hover .bp-side-icon {
  transform: scale(1.1);
  background: var(--orange);
  color: white;
}

.bp-side-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.bp-side-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.bp-side-card .bp-tools {
  gap: 5px;
}

.bp-side-card .bp-pill {
  font-size: 11px;
  padding: 4px 10px;
}

/* ---------- Framework Context Pills (#4) ---------- */
.bp-tools--frameworks {
  flex-direction: column;
  gap: 8px;
}

.bp-framework {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-framework-ctx {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Outcome Cards ---------- */
.bp-outcomes-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-left: 4px;
}

.bp-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bp-outcome-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  transition: all var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.bp-outcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bp-outcome-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bp-outcome-card:hover::before {
  opacity: 1;
}

/* (#7) Outcome card color differentiation */
.bp-outcome--systems::before { background: var(--orange); }
.bp-outcome--auto::before { background: #F59E0B; }
.bp-outcome--learn::before { background: #3B82F6; }
.bp-outcome--ai::before { background: #8B5CF6; }

.bp-outcome--systems:hover { border-color: var(--orange); }
.bp-outcome--auto:hover { border-color: #F59E0B; }
.bp-outcome--learn:hover { border-color: #3B82F6; }
.bp-outcome--ai:hover { border-color: #8B5CF6; }

/* (#7) Outcome icon wraps */
.bp-outcome-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 26px;
  transition: transform 0.3s ease;
}

.bp-outcome-card:hover .bp-outcome-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.bp-outcome-icon--systems { background: var(--orange-light); color: var(--orange); }
.bp-outcome-icon--auto { background: #FEF3C7; color: #D97706; }
.bp-outcome-icon--learn { background: #DBEAFE; color: #2563EB; }
.bp-outcome-icon--ai { background: #EDE9FE; color: #7C3AED; }

.bp-outcome-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bp-outcome-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* (#2) Outcome metrics */
.bp-outcome-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.bp-outcome-metric-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.bp-outcome-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* (#9) Interactive highlight state */
.bp-outcome-card.bp-active {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.bp-outcome-card.bp-active::before {
  opacity: 1;
}

.bp-layer.bp-layer--dim {
  opacity: 0.35;
  transform: scale(0.98);
}

.bp-layer.bp-layer--glow {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

/* (#5) Scroll reveal animation */
.bp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bp-reveal.bp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legacy pill (keep for resume compact section) ---------- */
.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  transition: all var(--transition);
  cursor: default;
}
.pill:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--orange-glow);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--orange);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Mobile header — two rows: brand+pdf | tabs */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 8px 12px 0;
    gap: 0;
  }
  .header-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 10px;
  }
  .pdf-btn {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 10px;
    padding: 5px 10px;
  }
  .header-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 6px -12px 0;
    padding: 0 12px;
  }
  .header-tabs::-webkit-scrollbar { display: none; }
  .header-tabs-track {
    width: max-content;
    min-width: 100%;
    justify-content: center;
    padding: 3px;
    gap: 2px;
  }
  .header-name { font-size: 14px; }
  .header-title { font-size: 9px; }
  .header-avatar { width: 32px; height: 32px; }
  .tab-btn { font-size: 10.5px; padding: 6px 12px; flex-shrink: 0; }

  .resume-container {
    padding: 32px 24px 28px;
    border-radius: var(--radius-md);
  }

  .resume-name {
    font-size: 28px;
  }

  .resume-contact {
    font-size: 11.5px;
  }

  .resume-contact .divider {
    display: none;
  }
  .resume-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
  }

  .job-title-line {
    flex-direction: column;
    gap: 2px;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .cred-grid {
    grid-template-columns: 1fr;
  }

  .degree-card-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .degree-view-link {
    font-size: 11px;
    padding: 4px 10px;
  }
  .scholarship-card {
    flex-direction: column;
    gap: 14px;
  }
  .scholarship-view-link {
    align-self: flex-start;
  }
  .cert-row {
    padding: 12px 8px;
    gap: 12px;
  }

  /* Platform card (Upwork) — stack on mobile */
  .platform-card {
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
  }
  .platform-card-left {
    width: 100%;
  }
  .platform-stats {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }
  .platform-stat {
    padding: 0 12px;
    min-width: 0;
  }
  .platform-stat-num {
    font-size: 15px;
  }
  .platform-stat-divider {
    height: 24px;
  }
  .platform-view-link {
    align-self: flex-start;
  }

  .sig-stack-content {
    padding: 28px 16px 32px;
  }

  .sig-stack-grid {
    gap: 10px;
  }

  .sig-tool {
    min-width: calc(50% - 10px);
    max-width: none;
    padding: 16px 12px 14px;
  }

  .sig-tool-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 12px;
  }

  .sig-tool-name {
    font-size: 14px;
  }

  .sig-tool-ctx {
    font-size: 11.5px;
  }

  .bp-side-grid {
    grid-template-columns: 1fr;
  }

  .bp-outcomes-grid {
    grid-template-columns: 1fr;
  }

  .bp-layer {
    padding: 20px;
  }

  .bp-layer:hover {
    transform: translateX(2px);
  }

  /* (#8) Layer number visibility on mobile */
  .bp-layer-number {
    opacity: 0.6;
    font-size: 13px;
    background: var(--bg-page);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .blueprint-header {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .blueprint-annotation {
    padding-left: 4px;
  }

  .bp-side-label {
    gap: 10px;
  }

  .bp-side-label-text {
    font-size: 9px;
  }

  .page-title {
    font-size: 24px;
  }

  .project-title {
    font-size: 16px;
  }

  .main-content {
    padding: 20px 16px 48px;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 16px;
  }

  .header-name {
    font-size: 17px;
  }

  .resume-container {
    padding: 24px 18px 22px;
  }

  .resume-name {
    font-size: 24px;
  }

  .edu-header {
    flex-direction: column;
    gap: 2px;
  }

  .edu-card-header {
    flex-direction: column;
    gap: 2px;
  }
}

/* ================================================================
   PORTFOLIO — COMPACT FILTERS (dropdowns)
   ================================================================ */
.portfolio-filters {
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 32px 8px 14px;
  border-radius: 24px;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A7A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-select:hover,
.filter-select:focus {
  border-color: var(--orange);
  color: var(--text-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-light);
}

.filter-reset {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 24px;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-reset:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

/* ================================================================
   PORTFOLIO — VERTICAL TIMELINE CONTAINER
   ================================================================ */
.vtl {
  position: relative;
  padding: 20px 0 40px;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
}

/* The vertical center line — gradient with glow */
.vtl::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232, 83, 30, 0.15) 3%,
    rgba(232, 83, 30, 0.35) 15%,
    rgba(232, 83, 30, 0.35) 85%,
    rgba(232, 83, 30, 0.15) 97%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 0;
}
/* Soft glow halo behind the line */
.vtl::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232, 83, 30, 0.06) 5%,
    rgba(232, 83, 30, 0.06) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
  filter: blur(6px);
  z-index: 0;
}

/* ================================================================
   PORTFOLIO — YEAR MARKERS (floating pills)
   ================================================================ */
.vtl-year {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 40px 0 28px;
  z-index: 5;
}
.vtl-year:first-child {
  margin-top: 0;
}

.vtl-year-label {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 7px 28px;
  border-radius: 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
  border: 1.5px solid rgba(232, 83, 30, 0.18);
  box-shadow:
    0 2px 12px rgba(232, 83, 30, 0.06),
    0 0 0 1px rgba(232, 83, 30, 0.04);
  transition: all 0.3s ease;
}

/* Current year — filled orange */
.vtl-year[data-year="2026"] .vtl-year-label {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow:
    0 0 0 5px var(--orange-light),
    0 4px 20px rgba(232, 83, 30, 0.25);
}

/* ================================================================
   PORTFOLIO — TIMELINE ITEMS (alternating left/right)
   ================================================================ */
.vtl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  width: 50%;
  z-index: 1;
  /* Scroll reveal — initial state */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vtl-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left card */
.vtl-left {
  margin-left: 0;
  justify-content: flex-end;
  padding-right: 44px;
}

/* Right card */
.vtl-right {
  margin-left: 50%;
  padding-left: 44px;
}

/* ================================================================
   PORTFOLIO — CONNECTION DOTS
   ================================================================ */
.vtl-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2.5px solid var(--border-medium);
  top: 28px;
  z-index: 3;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vtl-left .vtl-dot {
  right: -6px;
}
.vtl-right .vtl-dot {
  left: -6px;
}

/* Dot colors match category */
.cat-venture .vtl-dot { border-color: #16A34A; }
.cat-client .vtl-dot { border-color: #0D9488; }
.cat-consulting .vtl-dot { border-color: #2563EB; }
.cat-competition .vtl-dot { border-color: #E8531E; }
.cat-hackathon .vtl-dot { border-color: #7C3AED; }

/* Dot glow on hover */
.vtl-item:hover .vtl-dot {
  transform: scale(1.5);
}
.cat-venture:hover .vtl-dot { background: #16A34A; box-shadow: 0 0 0 5px rgba(22,163,74,0.15); }
.cat-client:hover .vtl-dot { background: #0D9488; box-shadow: 0 0 0 5px rgba(13,148,136,0.15); }
.cat-consulting:hover .vtl-dot { background: #2563EB; box-shadow: 0 0 0 5px rgba(37,99,235,0.15); }
.cat-competition:hover .vtl-dot { background: #E8531E; box-shadow: 0 0 0 5px rgba(232,83,30,0.15); }
.cat-hackathon:hover .vtl-dot { background: #7C3AED; box-shadow: 0 0 0 5px rgba(124,58,237,0.15); }

/* ================================================================
   PORTFOLIO — HORIZONTAL CONNECTOR (dot → card)
   ================================================================ */
.vtl-left .vtl-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -38px;
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--border-light), transparent);
  transform: translateY(-50%);
}
.vtl-right .vtl-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -38px;
  width: 32px;
  height: 1px;
  background: linear-gradient(to left, var(--border-light), transparent);
  transform: translateY(-50%);
}

/* Connector glow on hover */
.vtl-item:hover .vtl-dot::after,
.vtl-item:hover .vtl-dot::before {
  background: linear-gradient(to right, rgba(232,83,30,0.2), transparent);
}

/* ================================================================
   PORTFOLIO — CARD SHELL
   ================================================================ */
.vtl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  width: 100%;
}
.vtl-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}


/* ================================================================
   PORTFOLIO — CARD COVER IMAGE (real + placeholder)
   ================================================================ */
.project-cover-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.project-cover-img:hover {
  filter: brightness(1.05);
}
/* Per-image focus positioning */
.project-cover-img--center { object-position: center; }
.project-cover-img--top { object-position: top center; }
.project-cover-img--faces-mid { object-position: center 30%; }
.project-cover-img--faces-low { object-position: center 65%; }

/* Multi-image gallery */
.project-gallery {
  position: relative;
}

.project-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.project-thumb {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.project-thumb:hover {
  opacity: 1;
  border-color: var(--border-medium);
}
.project-thumb--active {
  opacity: 1;
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-light);
}

.project-img-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--bg-page) 0%, var(--border-light) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
/* Industry-tinted placeholders */
.project-img-placeholder--healthcare {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}
.project-img-placeholder--ecommerce {
  background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
}
.project-img-placeholder--finance {
  background: linear-gradient(135deg, #F0FDF4 0%, #BBF7D0 100%);
}
.project-img-placeholder--interior {
  background: linear-gradient(135deg, #FEF9C3 0%, #FDE68A 100%);
}
.project-img-placeholder--sustainability {
  background: linear-gradient(135deg, #F0FDF4 0%, #A7F3D0 100%);
}
.project-img-placeholder--supply {
  background: linear-gradient(135deg, #F5F3FF 0%, #DDD6FE 100%);
}
.project-img-placeholder--edtech {
  background: linear-gradient(135deg, #FFF0F6 0%, #FBCFE8 100%);
}

.project-img-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
  text-align: center;
  padding: 0 12px;
}

/* ================================================================
   PORTFOLIO — CARD BODY
   ================================================================ */
.card-body {
  padding: 12px 14px 14px;
}

.card-body .project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.meta-location {
  font-weight: 500;
}
.meta-type {
  font-weight: 600;
  color: var(--text-secondary);
}
.meta-industry {
  font-weight: 500;
}
.meta-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-medium);
  margin: 0 7px;
  vertical-align: middle;
}

.project-meta .award-badge {
  margin-left: auto;
}

.card-body .project-summary {
  list-style: none;
  cursor: pointer;
}
.card-body .project-summary::-webkit-details-marker {
  display: none;
}

.card-body details[open] .project-summary .project-title::after {
  content: ' ▲';
  font-size: 9px;
  color: var(--orange);
  margin-left: 4px;
  vertical-align: middle;
}
.card-body details:not([open]) .project-summary .project-title::after {
  content: ' ▼';
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 4px;
  vertical-align: middle;
}

.card-body .project-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 5px;
}

.card-body .project-brief {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.card-body .metric-row {
  margin-top: 8px;
  gap: 6px;
}

.card-body .metric-box {
  padding: 7px 10px;
  min-width: 60px;
  max-width: 100px;
}

.card-body .metric-num {
  font-size: 16px;
}

.card-body .metric-label {
  font-size: 9px;
}

/* Override generic project-summary padding inside compact card */
.card-body .project-summary {
  padding: 0;
}
.card-body .project-summary::after {
  display: none; /* hide old + / - chevron; title arrow used instead */
}

/* Expanded details inside card */
.card-body .project-details {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-light);
}

/* ================================================================
   PORTFOLIO — INDUSTRY TAG COLORS
   ================================================================ */
.cat-insurance-tag {
  background: #F3E8FF;
  color: #7E22CE;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-finance-tag {
  background: #DCFCE7;
  color: #166534;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-supply-tag {
  background: #EDE9FE;
  color: #5B21B6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-healthcare-tag {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-ecommerce-tag {
  background: #FED7AA;
  color: #92400E;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-sustainability-tag {
  background: #D1FAE5;
  color: #065F46;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-interior-tag {
  background: #FEF9C3;
  color: #854D0E;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}
.cat-edtech-tag {
  background: #FCE7F3;
  color: #9D174D;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ================================================================
   PORTFOLIO — YEAR JUMP NAV
   ================================================================ */
.vtl-jump-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  position: sticky;
  top: 60px;
  z-index: 10;
  background: linear-gradient(to bottom, var(--bg-page) 60%, transparent);
  padding: 10px 0 16px;
}

.vtl-jump-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 24px;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.vtl-jump-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}
.vtl-jump-btn--active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 2px 10px rgba(232, 83, 30, 0.25);
}

/* ================================================================
   PORTFOLIO — CASE STUDY TOGGLE BUTTON
   ================================================================ */
.case-details {
  margin-top: 12px;
}

.case-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(232, 83, 30, 0.25);
  background: var(--orange-light);
  transition: all 0.25s ease;
  list-style: none;
}
.case-toggle::-webkit-details-marker {
  display: none;
}
.case-toggle::after {
  content: '\2193';
  font-size: 13px;
  transition: transform 0.3s ease;
}
.case-details[open] .case-toggle::after {
  transform: rotate(180deg);
}
.case-toggle:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(232, 83, 30, 0.2);
}

/* Override old details styling inside vtl-card */
.vtl-card .card-body details[open] .project-summary .project-title::after,
.vtl-card .card-body details:not([open]) .project-summary .project-title::after {
  display: none;
}

/* ================================================================
   PORTFOLIO — NO RESULTS MESSAGE
   ================================================================ */
.timeline-no-results {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ================================================================
   PORTFOLIO — CATEGORY COLORS (left border + metric accent)
   ================================================================ */

/* Venture — green */
.cat-venture .vtl-card { border-top: 3px solid #16A34A; }
.cat-venture-tag {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-venture-metric .metric-num {
  color: #16A34A;
}

/* Client — teal */
.cat-client .vtl-card { border-top: 3px solid #0D9488; }
.cat-client-tag {
  background: #CCFBF1;
  color: #0F766E;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-client-metric .metric-num {
  color: #0D9488;
}

/* Consulting — blue */
.cat-consulting .vtl-card { border-top: 3px solid #2563EB; }
.cat-consulting-tag {
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-consulting-metric .metric-num {
  color: #2563EB;
}

/* Competition — orange */
.cat-competition .vtl-card { border-top: 3px solid #E8531E; }
.cat-competition-tag {
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-competition-metric .metric-num {
  color: var(--orange);
}

/* Hackathon — purple */
.cat-hackathon .vtl-card { border-top: 3px solid #7C3AED; }
.cat-hackathon-tag {
  background: #EDE9FE;
  color: #6D28D9;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-hackathon-metric .metric-num {
  color: #7C3AED;
}

/* ================================================================
   PORTFOLIO — PROJECT CARD (wrapper div)
   ================================================================ */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Neutralize .project-card when used on .vtl-item (timeline layout) */
.vtl-item.project-card {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.vtl-item.project-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.project-card details[open] {
  border-color: var(--orange);
}
.project-card details[open] .project-summary::after {
  content: '\2212';
  color: var(--orange);
}

/* ================================================================
   PORTFOLIO — HERO METRICS ROW
   ================================================================ */
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.metric-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  flex: 1;
  max-width: 140px;
  transition: all var(--transition);
}
.metric-box:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ================================================================
   PORTFOLIO — AWARD BADGES
   ================================================================ */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.badge-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
.award-badge--second {
  background: linear-gradient(135deg, #94A3B8, #64748B);
  color: white;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}
.award-badge--runner {
  background: linear-gradient(135deg, #2DD4BF, #0D9488);
  color: white;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* ================================================================
   PORTFOLIO — CASE STUDY SECTIONS (inside <details>)
   ================================================================ */
.case-section {
  margin-bottom: 14px;
}
.case-section:last-of-type {
  margin-bottom: 10px;
}

.case-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-section p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ================================================================
   CREDENTIALS — DEGREE CARDS
   ================================================================ */
.degree-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.degree-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition);
}
.degree-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.degree-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.degree-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.degree-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.degree-logo--su {
  background: #f76900;
  color: #fff;
}
.degree-logo--hue {
  background: #1a5276;
  color: #fff;
  font-size: 11px;
}

.degree-inst-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.degree-institution {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.degree-location {
  font-size: 12px;
  color: var(--text-muted);
}

.degree-view-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--orange);
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.degree-view-link:hover {
  background: var(--orange);
  color: #fff;
}

.degree-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.degree-field {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.degree-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.dtag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.dtag--gold {
  background: #fdf6e3;
  color: #8B6914;
  border-color: #d4a81760;
}
.dtag--honor {
  background: #f0f0ff;
  color: #5040a0;
  border-color: #8070d060;
}

.degree-highlights {
  padding-left: 16px;
  list-style: disc;
  margin: 0;
}
.degree-highlights li {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 3px;
}

/* ================================================================
   CREDENTIALS — FULBRIGHT SCHOLARSHIP CARD
   ================================================================ */
.scholarship-card {
  background: linear-gradient(135deg, #fdf8ee 0%, #fff 100%);
  border: 1px solid #d4a81740;
  border-left: 4px solid #8B6914;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  transition: all var(--transition);
}
.scholarship-card:hover {
  box-shadow: var(--shadow-sm);
}

.scholarship-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.scholarship-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8B6914;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scholarship-logo svg circle:first-child {
  fill: #8B6914;
}

.scholarship-issuer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scholarship-org {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #8B6914;
}
.scholarship-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 260px;
}

.scholarship-body {
  flex: 1;
  min-width: 200px;
}
.scholarship-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.scholarship-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.scholarship-view-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #8B6914;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #8B691460;
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
  align-self: center;
}
.scholarship-view-link:hover {
  background: #8B6914;
  color: #fff;
}

/* ================================================================
   CREDENTIALS — CERT LIST (compact rows)
   ================================================================ */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cert-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}
.cert-row:hover {
  background: var(--bg-hover);
}

.cert-img-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
}
.cert-img-thumb:hover {
  transform: scale(1.06);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cert-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cert-row-name {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.cert-row-issuer {
  font-size: 12px;
  color: var(--text-muted);
}
.cert-issuer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.cert-issuer-link:hover {
  color: var(--orange);
  text-decoration: underline;
}
.cert-row-date {
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ================================================================
   CREDENTIALS — LEGACY THUMBNAIL (kept for backward compat)
   ================================================================ */
.cred-thumb {
  display: none;
}

/* ================================================================
   LIGHTBOX — CERTIFICATE FULLSIZE VIEW
   ================================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,83,30,0.2);
}

/* ================================================================
   ACCESSIBILITY — FOCUS VISIBLE
   ================================================================ */
.tab-btn:focus-visible,
.vtl-jump-btn:focus-visible,
.filter-select:focus-visible,
.back-to-top:focus-visible,
.lightbox-close:focus-visible,
.case-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ================================================================
   PORTFOLIO — FILTER ANIMATION
   ================================================================ */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PORTFOLIO — RESPONSIVE: MOBILE TIMELINE
   ================================================================ */
@media (max-width: 768px) {
  .vtl-jump-nav {
    flex-wrap: wrap;
    gap: 6px;
    top: 56px;
  }
  .vtl-jump-btn {
    font-size: 12px;
    padding: 5px 14px;
  }
  .project-cover-img {
    height: 140px;
  }

  .vtl::before, .vtl::after {
    left: 20px;
  }

  .vtl-year {
    justify-content: flex-start;
    padding-left: 44px;
    margin: 28px 0 20px;
  }

  .vtl-item,
  .vtl-left,
  .vtl-right {
    width: 100%;
    margin-left: 0;
    padding-left: 48px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .vtl-left .vtl-dot,
  .vtl-right .vtl-dot {
    left: 14px;
    right: auto;
  }

  /* Hide connectors on mobile */
  .vtl-left .vtl-dot::after,
  .vtl-right .vtl-dot::before {
    display: none;
  }

  /* Remove category left/right borders on mobile — use top border instead */
  .vtl-left .vtl-card,
  .vtl-right .vtl-card {
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
  }

  .filter-group {
    gap: 8px;
  }
  .filter-select {
    font-size: 11px;
    padding: 6px 28px 6px 10px;
  }

  .metric-row {
    gap: 8px;
  }
  .metric-box {
    min-width: 60px;
    padding: 7px 8px;
  }
  .metric-num {
    font-size: 15px;
  }

  /* Portfolio hero stats — 2x2 grid on tablet */
  .portfolio-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 16px;
  }
  .phs-divider {
    display: none;
  }
  .phs-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  .phs-item:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,0.07);
  }
  .phs-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .phs-num { font-size: 24px; }

  /* Tab nav tighter on tablet */
  .tab-btn {
    font-size: 12px;
    padding: 12px 14px;
  }

  /* Gallery thumbnails */
  .project-thumb {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  /* Portfolio hero stats — single column on phone */
  .portfolio-hero-stats {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .phs-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    min-height: unset;
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.07) !important;
  }
  .phs-item:last-child { border-bottom: none !important; }
  .phs-num { font-size: 22px; }
  .phs-label { margin-top: 0; margin-left: 6px; }
  .phs-icons { margin-top: 0; margin-left: auto; }

  /* Tab nav on small phones */
  .tab-btn {
    font-size: 11.5px;
    padding: 10px 12px;
  }

  /* Portfolio filters stack on phone */
  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-select {
    width: 100%;
    font-size: 12px;
  }

  /* Timeline year label smaller */
  .vtl-year-label {
    font-size: 18px;
  }

  /* Project thumbnails on phone */
  .project-thumb {
    width: 30px;
    height: 30px;
  }
}

/* ================================================================
   PRINT STYLES — 2-PAGE RESUME
   ================================================================ */
@media print {
  /* Hide non-resume elements */
  .site-header,
  .site-footer,
  .pdf-btn,
  .no-print,
  .back-to-top,
  .tab-content:not(#resume) {
    display: none !important;
  }

  /* Force show resume */
  #resume {
    display: block !important;
  }

  /* Page setup — 2-page target */
  @page {
    size: Letter;
    margin: 8mm 11mm;
  }

  html, body {
    background: white !important;
    color: #000 !important;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.3;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .main-content { max-width: 100%; padding: 0; margin: 0; }

  .resume-container {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    margin: 0;
  }

  /* Header */
  .resume-header { margin-bottom: 4pt; }

  .resume-name {
    font-size: 19pt;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
  }

  /* Hide decorative elements */
  .name-definition,
  .resume-motto {
    display: none !important;
  }

  .resume-accent-bar {
    background: #E8531E !important;
    -webkit-print-color-adjust: exact;
    margin: 5pt auto;
    width: 60px;
    height: 3px;
  }

  .resume-contact {
    font-size: 8.5pt;
    margin-top: 3pt;
  }

  .resume-tagline {
    font-size: 8.5pt;
    margin-top: 3pt;
  }

  /* Sections */
  .resume-section { margin-bottom: 5pt; }

  .section-title {
    font-size: 9pt;
    font-weight: 700;
    color: #E8531E !important;
    border-bottom-color: #E8531E !important;
    -webkit-print-color-adjust: exact;
    margin-bottom: 4pt;
    padding-bottom: 2pt;
  }

  .summary-text { font-size: 8pt; line-height: 1.35; }

  /* Jobs */
  .job { margin-bottom: 4pt; page-break-inside: avoid; }
  .job-header { margin-bottom: 1pt; }
  .job-title-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 4pt;
  }
  .job-title { font-size: 9pt; font-weight: 700; }
  .job-date { font-size: 8pt; white-space: nowrap; flex-shrink: 0; }
  .job-company { font-size: 8pt; margin-bottom: 1pt; }
  .job-bullets { margin-top: 1pt; padding-left: 12pt; }
  .job-bullets li { font-size: 8pt; line-height: 1.3; margin-bottom: 0; }

  /* Compact (older) jobs */
  .compact-job { margin-bottom: 3pt; }
  .compact-job .job-bullets li { font-size: 7.5pt; }

  /* Forced page break for clean 2-page resume */
  .print-page-break {
    page-break-before: always;
    margin: 0;
    padding: 0;
    height: 0;
    border: none;
  }

  /* Education */
  .edu-item { margin-bottom: 4pt; }
  .edu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 4pt;
  }
  .edu-date { font-size: 8pt; white-space: nowrap; flex-shrink: 0; }
  .edu-degree { font-size: 9pt; }
  .edu-honor {
    font-size: 7.5pt;
    background: #E8531E !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    padding: 1pt 4pt;
  }
  .edu-school { font-size: 8pt; }
  .edu-details { font-size: 7.5pt; }

  /* Certs — 2 columns */
  .certs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1pt 12pt;
  }
  .cert-item { padding: 1pt 0; }
  .cert-name { font-size: 8pt; }
  .cert-issuer { font-size: 7.5pt; }

  /* Skills — 2 columns */
  .skills-compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1pt 12pt;
  }
  .skill-row { font-size: 8pt; margin-bottom: 1pt; }

  /* Awards — 2 columns */
  .awards-compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1pt 12pt;
  }
  .award-row { font-size: 8pt; margin-bottom: 1pt; }

  /* Print footer */
  .print-only { display: block !important; }
  .resume-footer { margin-top: 8pt; padding-top: 5pt; }
  .resume-footer .resume-accent-bar { width: 50px; }
  .resume-footer .resume-contact { font-size: 8pt; color: #666; }

  a { color: inherit !important; text-decoration: none !important; }

  /* Allow sections to break across pages — only avoid orphaned headers */
  .resume-section { page-break-inside: auto; }
  .section-title { page-break-after: avoid; }
  .job { page-break-inside: avoid; }
  .edu-item { page-break-inside: avoid; }
}
