/* --- Global Variables --- */
:root {
  --primary-dark: #333333;
  --primary-accent: #8c1515;
  --bg-main: #faf9f6;
  --bg-light: #f5f5f5;
  --text-light: #faf9f6;
  --text-dark: #333333;

  --font-header: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* --- Basic Reset & Defaults --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-main);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-header);
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-accent);
}

h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.container-experience {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

section {
  padding: 5rem 0;
}

#hero,
#about {
  padding-top: 0;
  padding-bottom: 0;
}

#about .container:first-of-type {
  padding-top: 5rem;
}

.bg-light {
  background-color: var(--bg-light);
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

/* --- Buttons --- */
.cta-button {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 12px 28px;
  border-radius: 5px;
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-dark);
}

.cta-button:hover {
  background-color: var(--primary-accent);
  color: var(--primary-dark);
  border-color: var(--primary-accent);
}

.cta-button.secondary {

  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.cta-button.secondary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

/* --- Main Structure --- */
main {
  padding-top: 70px;
  transition: none;
}

footer {
  padding: 2.5rem 1rem;
  transition: none;
  background: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
}

footer p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

footer p:last-child {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* --- Fixed Header (Desktop) --- */
.main-header {
  height: 90px;
  transition: height 0.3s ease, padding 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.main-header.scrolled {
  height: 70px;
}

main {
  padding-top: 90px;
}

.main-header.scrolled~main {
  padding-top: 70px;
}

.main-header nav.container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 1.2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--text-light);
}

.main-header .nav-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: width 0.3s ease, height 0.3s ease;
}

.main-header.scrolled .nav-logo {
  width: 50px;
  height: 50px;
}

/* --- Navigation Menu (Desktop) --- */
.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-dark);
}

/* --- Mobile Menu Logic (Checkbox Hack) --- */
.menu-toggle-input {
  display: none;
}

.menu-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 70px;
  background: var(--primary-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.mobile-header .logo-container {
  gap: 10px;
  color: var(--text-light);
}

.mobile-header .nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.mobile-header .menu-toggle-label span {
  background-color: var(--text-light);
}

/* Mobile Nav Slide-out */
.mobile-nav-menu {
  display: block;
  position: fixed;
  top: 70px;
  left: -100%;
  /* Hidden by default */
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 70px);
  background: var(--primary-dark);
  padding-top: 2rem;
  z-index: 1400;
  transition: left 0.3s ease;
}

.mobile-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 2rem;
  color: var(--text-light);
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}

.mobile-nav-menu a:hover {
  background: var(--primary-accent);
}

/* Logic: Show menu when checkbox is checked */
.menu-toggle-input:checked~.mobile-nav-menu {
  left: 0;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1300;
}

/* --- Hero Section --- */
#hero {
  background: url('gallery/hero.jpg') no-repeat center center/cover;
  color: var(--text-light);
  height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(51, 51, 51, 0.2);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 1) 100%);
}


.hero-content {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(51, 51, 51, 0.3);
  position: relative;
  z-index: 2;
  margin-bottom: -30rem;

}

.hero-content h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin: 0;
  line-height: 1.1; /* Reduced spacing */
}

.hero-subtitle {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-light);
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.2; /* Reduced spacing */
}

.metrics-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  z-index: 3;
  margin-bottom: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.9rem 1.25rem;
  min-width: 140px;
  max-width: 220px;
  width: auto;
  background: var(--primary-accent);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.metric-item strong {
  font-family: var(--font-header);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text-light);
}

.metric-item span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.95;
}

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding-bottom: 5rem;
}

.about-photos {
  display: block;
  width: 75%;
  padding-left: 1rem;
  margin-left: auto;
  margin-right: 1rem;
}

.about-photos img {
  width: 90%;
  height: auto;
  object-fit: cover;
  min-height: 350px;
}

.about-text {
  order: -1;
  padding: 1rem;
  font-size: 1.5rem;
  font-family: Graphik, sans-serif, system-ui;
  font-weight: 400;
  line-height: 1.7; /* Increased line spacing */
  letter-spacing: 0.05em; /* Increased letter spacing */
  color: #000000a8;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  width: 100%;
  margin-left: 6rem;
}

.about-text p {
  margin-bottom: 2rem; /* Increased space between paragraphs */
}

.keyword-item {
  grid-column: 2 / 3;
  justify-self: end;
  align-self: start;
  display: block;
  font-size: 2.35rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: -0.05em;
  margin-top: 1rem;
  text-align: right;
}

/* --- Experience Section --- */
.experience-container {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.experience-item {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 1.5rem auto;
  background: var(--bg-main);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border-left: 5px solid var(--primary-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.experience-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #eee;
}

.experience-header-text {
  display: grid;
  grid-template-columns: 800px 120px;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.experience-header-text h3 {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.experience-header-text h4 {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
  grid-column: 1;
}

/* style.css (around line 506) */
.experience-header-text .experience-duration {
  grid-column: 2;
  justify-self: end;
  white-space: nowrap;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  /* --- FIX: Adjusted margin to counter the parent's 2rem right padding --- */
  margin-right: -2rem; 
}

.experience-header-text .experience-location {
  grid-column: 1 / -1;
  display: block;
  margin-top: 0.25rem;
  color: rgba(0, 0, 0, 0.6);
}

.experience-details {
  font-size: 0.9rem;
  line-height: 1.5;
  padding-top: 0;
  border-top: none;
}

.experience-details p {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.experience-details .sub-role {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #ddd;
}

.experience-details .sub-role:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* --- Case Studies --- */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.case-study-item {
  background: var(--bg-main);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.case-study-content {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.case-study-before {
  color: #700;
}

.case-study-after {
  color: #050;
}

/* --- Education --- */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.education-item {
  background: var(--bg-main);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center;
  gap: 1rem;
}

.education-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  margin: 0 auto;
}

.education-item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.harvard-feature-box {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
  background: var(--bg-main);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  max-width: 1200px;
  margin: 3rem auto 0 auto;
}

.harvard-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Gallery (Masonry) --- */
.gallery-masonry {
  column-count: 3;
  column-gap: 1em;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1em;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.25);
}

.gallery-item-info {
  padding: 0.75em 1em;
  background: #ffffff;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.gallery-item-info p {
  margin: 0;
  line-height: 1.4;
}

/* --- Contact --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.contact-links a.cta-button.secondary {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.contact-links a.cta-button.secondary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* Space between buttons */
  margin: 2rem 0;
  /* Vertical spacing from email */
  flex-wrap: wrap;
  /* Allows wrapping on very small screens */
}

/* Specific fix for the secondary button to match height/alignment */
.contact-links .cta-button {
  margin: 0;
  /* Remove any default margins */
}

/* 2. The Location/Details Block */
.contact-details {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Subtle divider line */
  font-size: 1.1rem;
  color: var(--text-dark);
}

.contact-details strong {
  color: var(--primary-accent);
  /* Highlights the label 'Location' */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-right: 8px;
}

/* --- Password Overlay --- */
#password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#site-content {
  /* display: none; */
   display: block !important;  /* Site content is visible by default */
}

/* Hidden until password entered */

#password-box {
  background: #f9f4e8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 550px;
  padding: 0;
  overflow: hidden;
}

.password-header {
  background: var(--primary-accent);
  padding: 1.5rem 2.5rem;
  text-align: center;
}

.password-header h1 {
  color: var(--text-light);
  font-family: var(--font-header);
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: 0.05em;
}

.password-body {
  padding: 2.5rem;
}

.password-subtitle {
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: var(--text-dark);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 2.5rem;
}

#password-box h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.2rem;
  text-align: center;
  color: var(--text-dark);
  font-weight: normal;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

#password-box h2::after {
  display: none;
}

#password-box p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.password-prompt {
  font-family: 'Times New Roman', Times, serif;
  display: block;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.password-logo {
  width: 70px;
  height: 70px;
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 2rem auto;
}

.password-logo span {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-accent);
}

#password-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
}

#password-button {
  width: 100%;
  cursor: pointer;
  padding: 14px 28px;
}

#error-message {
  color: var(--primary-accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
  display: none;
  text-align: center;
}


/* =========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================= */

/* --- Desktop Mode (> 992px) --- */
@media (min-width: 993px) {
  main {
    padding-top: 90px;
  }

  .mobile-header {
    display: none;
  }

  .menu-toggle-label {
    display: none;
  }
}

/* --- Tablet Mode (max-width: 992px) --- */
@media (max-width: 992px) {

  .container,
  .container-experience {
    max-width: 700px;
  }

  .main-header {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .menu-toggle-label {
    display: flex;
  }

  /* Mobile Menu Logic matches HTML Checkbox */
  .menu-toggle-input:checked~.overlay {
    display: block;
    top: 70px;
  }

  .menu-toggle-input:checked~.mobile-header .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle-input:checked~.mobile-header .menu-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle-input:checked~.mobile-header .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Layout Stack Changes */
  .about-content,
  .contact-content,
  .case-study-grid {
    grid-template-columns: 1fr;
    display: flex; /* Added flex for re-ordering */
    flex-direction: column; /* Added flex for re-ordering */
  }

  .about-photos {
    width: 70%;
    padding-left: 0;
    order: 2; /* Photo after text */
  }

  .about-photos img {
    width: 100%;
    min-height: 0;
    margin: 0 auto;
  }

  .about-text {
    padding: 1rem;
    font-size: 1.1rem;
    order: 1; /* Text before photo */
    margin-left: 0;
  }

  .harvard-feature-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .harvard-feature-box .harvard-photo {
    margin-top: 1.5rem;
  }

  .harvard-feature-box .harvard-photo img {
    max-width: 400px;
    margin: 0 auto;
  }

  .education-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gallery-masonry {
    column-count: 2;
  }
}

/* --- Mobile Mode (max-width: 768px) --- */
@media (max-width: 768px) {

  /* 1. Compact Hero Text */
  h1 {
    font-size: 1.8rem;
  }
#hero {
    /* REMOVED/MODIFIED LINE. Set margin-top to 0 to eliminate the pull-up effect. */
    margin-top: -5rem !important; 
  }
  .hero-content {
    /* Combined margin: Top(-30px), Right(auto), Bottom(-15rem), Left(auto) */
    margin: -30px auto -25rem auto !important;
    padding: 1rem 0.5rem !important;
    width: 75% !important;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;

  }

  /* 2. Horizontal Metrics (Grid Layout) */
  .metrics-banner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* Forces 2 per line */
    gap: 5px !important;
    /* Tiny gap */
    padding: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    justify-content: center;
  }

  .metric-item {
    width: 100% !important;
    padding: 3px !important; /* Reduced padding for smaller look */
    min-width: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    /* Number on top of text */
    justify-content: center;
    align-items: center;
  }

  .metric-item strong {
    font-size: 1.1rem !important;
    /* Smaller number */
    line-height: 1;
  }

  .metric-item span {
    font-size: 0.6rem !important;
    /* Tiny text */
    line-height: 1.1;
    white-space: normal;
  }

  /* 3. General Mobile Layout Fixes */
  .container {
    padding: 0 1rem;
  }

  .experience-item {
    width: 90vw;
  }

  .about-photos {
    width: 100%;
    order: 2; /* Photo is second */
  }

  .about-text {
    padding: 2rem 1rem;
    font-size: 1.2rem;
    order: 1; /* Text is first */
  }

  .about-content {
    margin-top: -1rem;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    margin-top: -1rem;
    padding-bottom: 3rem;
  }

  /* Force single columns */
  .insights-grid,
  .speaking-gallery,
  .case-study-grid,
  .case-study-content,
  .contact-content,
  .about-content,
  .harvard-feature-box {
    grid-template-columns: 1fr;
  }

  .education-item,
  .harvard-feature-box {
    flex-direction: column;
    text-align: center;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Experience Header Text (Two-column layout for Company/Duration) */
  .experience-header-text {
    grid-template-columns: 1fr auto !important;
  }

  .experience-header-text h3 {
    grid-column: 1 / -1 !important;
  }

  .experience-header-text h4 {
    grid-column: 1 !important;
    font-size: 0.9rem !important;
  }

  .experience-header-text .experience-duration {
    grid-column: 2 !important;
    justify-self: end !important;
    margin-right: -2rem !important; /* Far-right alignment fix */
  }

  .experience-header-text .experience-location {
    grid-column: 1 / -1 !important;
  }

  .gallery-masonry {
    column-count: 1;
  }

  .contact-links {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .contact-links a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .contact-details {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    font-size: 1rem;
  }
}