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

/* ==========================================================================
   Design System Variables
   ========================================================================== */
:root {
  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Palette */
  --bg-color: #0E0E0E;                        /* Deep near-black page canvas */
  --bg-card: #161616;                         /* Subtle raised surface */
  --border-card: rgba(191, 160, 106, 0.25);   /* Thin 1px champagne gold border */
  --border-card-hover: rgba(191, 160, 106, 0.55); /* Subtle brightening on hover */

  /* Muted Champagne Gold */
  --gold-accent: #BFA06A;
  --gold-hover: #D4BC8C;
  --gold-subtle-bg: rgba(191, 160, 106, 0.1);

  /* Typography Colors */
  --text-main: #EDEAE4;                       /* Warm off-white */
  --text-secondary: #A8A39A;                  /* Refined secondary warm gray */

  /* Layout */
  --nav-height: 72px;
  --container-width: 1100px;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px); /* refined by script.js */
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
}

.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-logo:hover {
  color: var(--gold-hover);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-hover);
}

.nav-links a.active {
  color: var(--gold-accent);
  font-weight: 600;
  border-bottom-color: var(--gold-accent);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  flex: 1;
}

/* Generous spacing between section cards */
.section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 2.75rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.section:last-of-type {
  margin-bottom: 0;
}

.section:hover {
  border-color: var(--border-card-hover);
}

/* ==========================================================================
   Headings & Typography
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
}

/* Page titles in gold */
h1 {
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  color: var(--gold-accent);
  margin-bottom: 1.25rem;
}

/* Section headings */
h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  border-bottom: none;
  text-decoration: none;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

/* Profile headshot layout */
.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.25rem;
}

.profile-headshot {
  width: 220px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 8%;
  border: 2px solid #BFA06A;
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
}

p {
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  max-width: 80ch;
}

/* Lists */
.section ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.section li {
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.7;
}

.section li strong {
  color: var(--text-main);
  font-weight: 600;
}

.section li::marker {
  color: var(--gold-accent);
}

.section li:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--gold-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  word-break: break-word;
}

a:hover {
  color: var(--gold-hover);
}

.contact-list {
  list-style: none;
  padding-left: 0 !important;
}

.contact-list li {
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.contact-list li strong {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 90px;
}

.contact-list a {
  color: var(--gold-accent);
}

/* ==========================================================================
   Buttons (Gold outline; fill with gold and near-black text on hover)
   ========================================================================== */
.experience-cta {
  margin-top: 2rem;
}

.btn,
.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background-color: transparent;
  color: var(--gold-accent) !important;
  border: 1px solid var(--gold-accent);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: none;
}

.btn:hover,
.btn-outline:hover {
  background-color: var(--gold-accent);
  color: #0E0E0E !important;
  border-color: var(--gold-accent);
  transform: translateY(-1px);
}

.btn:active,
.btn-outline:active {
  transform: translateY(0);
}

/* ==========================================================================
   Resume Page Styles
   ========================================================================== */
.resume-page-header {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.25s ease;
}

.resume-page-header:hover {
  border-color: var(--border-card-hover);
}

.resume-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.resume-name-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.resume-contact-bar a {
  color: var(--text-main);
  text-decoration: none;
}

.resume-contact-bar a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.resume-contact-bar .separator {
  color: var(--gold-accent);
}

.resume-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 2.75rem 2.5rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.25s ease;
}

.resume-section:hover {
  border-color: var(--border-card-hover);
}

.resume-section:last-of-type {
  margin-bottom: 0;
}

.resume-item {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(191, 160, 106, 0.12);
}

.resume-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.resume-title-group {
  flex: 1;
}

.resume-item-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
}

.resume-promotion {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.resume-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.resume-date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold-accent);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.resume-details {
  margin-top: 0.45rem;
}

.resume-details p {
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.resume-bullets {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.resume-bullets li {
  margin-bottom: 0.6rem;
  color: var(--text-main);
  line-height: 1.7;
}

.resume-bullets li::marker {
  color: var(--gold-accent);
}

.resume-bullets li:last-child {
  margin-bottom: 0;
}

.resume-entry-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.resume-entry-list li {
  margin-bottom: 0.85rem;
  color: var(--text-main);
  line-height: 1.7;
}

.resume-entry-list li::marker {
  color: var(--gold-accent);
}

.resume-entry-list li:last-child {
  margin-bottom: 0;
}

.resume-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
}

.resume-entry-title {
  color: var(--text-main);
  flex: 1;
}

/* ==========================================================================
   Projects Page Styles
   ========================================================================== */
.projects-page-header {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.25s ease;
}

.projects-page-header:hover {
  border-color: var(--border-card-hover);
}

/* Featured Capstone (Raised #161616 Section) */
.featured-project-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 2.75rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.featured-project-section:hover {
  border-color: var(--border-card-hover);
}

/* Small section label on its own line above title: uppercase, letter-spacing 0.15em, small, gold */
.featured-project-badge {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
}

/* Project title: Montserrat semibold, no underline */
.featured-project-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: none;
}

.featured-project-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.featured-project-block h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.featured-project-block p {
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 100%;
}

/* Skills Line & Tags */
.project-skills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(191, 160, 106, 0.15);
}

/* Small label for SKILLS */
.skills-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
  margin-right: 0.35rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 160, 106, 0.22);
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background-color: rgba(191, 160, 106, 0.12);
  border-color: var(--gold-accent);
  color: var(--gold-hover);
}

/* Projects Cards Grid */
.projects-grid-section {
  margin-bottom: 3.5rem;
}

.projects-grid-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.75rem;
  border-bottom: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
}

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

/* Remove underline under project titles */
.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: none;
  letter-spacing: 0.01em;
}

.project-card-course {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.project-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.project-card .project-skills {
  margin-top: auto;
}

/* Academic Highlights */
.academics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.gpa-ticker {
  text-align: center;
  padding: 1.1rem 1rem;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background-color: var(--bg-color);
}

.gpa-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gpa-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-accent);
  margin: 0.35rem 0;
  font-variant-numeric: tabular-nums;
}

.gpa-caption {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 auto;
}

.chart-box {
  position: relative;
  height: 300px;
  min-width: 0;
}

/* Honors & Affiliations */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.honor-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 1.4rem 1.3rem;
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.honor-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.honor-card-featured {
  grid-column: 1 / -1;
  border: 2px solid var(--gold-accent);
  background-color: var(--gold-subtle-bg);
  padding: 2rem 1.9rem;
}

.honor-card-featured:hover {
  border-color: var(--gold-hover);
}

.honor-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-color);
  background-color: var(--gold-accent);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.9rem;
}

.honor-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.honor-card-featured .honor-title {
  font-size: 1.4rem;
  color: var(--gold-accent);
}

.honor-meta {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-hover);
  margin-bottom: 0.75rem;
  max-width: 100%;
}

.honor-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 100%;
}

.honor-card-featured .honor-desc {
  font-size: 1rem;
  color: var(--text-main);
}

/* Projects page intro and section pills */
.page-intro {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: -0.5rem;
  margin-bottom: 0;
}

.section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.pill-link {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-accent);
  text-decoration: none;
  border: 1px solid var(--gold-accent);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pill-link:hover,
.pill-link:focus-visible {
  background-color: var(--gold-accent);
  color: var(--bg-color);
}

/* Project categories */
.project-category-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-card);
}

.project-category .projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Wide project cards with charts */
.project-card-wide {
  grid-column: 1 / -1;
}

.project-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-charts .chart-box {
  height: 320px;
  padding: 1rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-card);
  border-radius: 8px;
}

/* Stat callouts */
.stat-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-callout {
  text-align: center;
  padding: 1.25rem 1rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-card);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-card);
  padding: 3.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-container p {
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 100%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .project-category .projects-grid {
    grid-template-columns: 1fr;
  }

  .academics-layout,
  .project-charts,
  .stat-callouts {
    grid-template-columns: 1fr;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Tablet: keep the logo and six nav links on one row without crowding */
@media (max-width: 820px) {
  .nav-container {
    padding: 0.5rem 1.25rem;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.1rem;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 96px;
  }

  .navbar {
    min-height: 0;
  }

  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 0.55rem 1rem 0.45rem;
    gap: 0.3rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.15rem 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.82rem;
    padding: 0.15rem 0.2rem;
  }

  main {
    padding: 2rem 1.25rem 3.5rem;
  }

  .section,
  .resume-section,
  .resume-page-header,
  .projects-page-header,
  .featured-project-section {
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.75rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .featured-project-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .project-card {
    padding: 1.4rem 1.25rem;
  }

  .profile-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .profile-headshot {
    width: 180px;
  }

  .gpa-number {
    font-size: 2.6rem;
  }

  .chart-box {
    height: 260px;
  }

  .project-charts .chart-box {
    height: 360px;
    padding: 0.75rem;
  }

  .honor-card-featured {
    padding: 1.5rem 1.25rem;
  }

  .honor-card-featured .honor-title {
    font-size: 1.2rem;
  }

  .resume-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .resume-contact-bar {
    gap: 0.4rem;
    font-size: 0.88rem;
  }

  /* Stack dates under titles on mobile */
  .resume-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .resume-date {
    text-align: left;
    white-space: normal;
  }

  .resume-entry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

/* ==========================================================================
   Print Optimization
   ========================================================================== */
@media print {
  header,
  footer,
  .site-footer,
  .resume-actions,
  .nav-container,
  .experience-cta {
    display: none !important;
  }

  body {
    background-color: #ffffff;
    color: #000000;
    font-size: 11pt;
    line-height: 1.4;
  }

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

  .resume-page-header,
  .projects-page-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 0.75rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1.5pt solid #000000 !important;
  }

  .section,
  .resume-section,
  .featured-project-section,
  .project-card {
    background: transparent !important;
    color: #000000 !important;
    border: none !important;
    border-bottom: 0.5pt solid #cccccc !important;
    border-radius: 0;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    box-shadow: none !important;
  }

  h1, h2, h3,
  .featured-project-title,
  .resume-item-title,
  .project-card-title {
    color: #000000 !important;
  }

  p,
  .resume-bullets li,
  .resume-entry-list li,
  .featured-project-block p,
  .project-card-desc {
    color: #333333 !important;
  }

  .projects-grid {
    display: block;
  }

  .resume-item {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    break-inside: avoid;
  }

  .resume-bullets li {
    margin-bottom: 0.25rem;
  }

  .resume-date {
    color: #333333 !important;
  }

  .skill-tag {
    border: 0.5pt solid #888888 !important;
    background: transparent !important;
    color: #000000 !important;
  }

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