/* ===========================
   PORTFOLIO - Pearl Theme
   Libre Baskerville + Montserrat
   =========================== */

/* --- CSS Variables --- */
:root {
  --dark-teal: #3D5A5B;
  --muted-teal: #7BA7A7;
  --muted-teal-accessible: #5E8E8E;
  --warm-taupe: #D4C5B9;
  --ivory: #F5F0EB;
  --white: #FFFFFF;
  --text-body: #4a4a4a;
  --text-light: #6B6B6B;

  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--ivory);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dark-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--muted-teal);
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 800px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark-teal);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }

p {
  margin-bottom: 1rem;
}

.center { text-align: center; }

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-taupe);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-teal);
  letter-spacing: -0.01em;
}

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

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark-teal);
  position: relative;
  padding: 0.25rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--muted-teal);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.nav a[aria-current="page"] {
  color: var(--muted-teal-accessible);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-teal);
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--dark-teal);
  color: var(--white);
  border-color: var(--dark-teal);
}

.btn-primary:hover {
  background: var(--muted-teal);
  border-color: var(--muted-teal);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--dark-teal);
  border-color: var(--dark-teal);
}

.btn-outline:hover {
  background: var(--dark-teal);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* --- Hero Section (Home) --- */
.hero {
  padding: 5rem 0 4rem;
  background: var(--white);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-teal-accessible);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  color: var(--dark-teal);
}

.hero-intro {
  color: var(--text-body);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    width: 240px;
    height: 300px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-cta {
    justify-content: center;
  }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--dark-teal);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-item .stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero .section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-teal-accessible);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-teal);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.85rem; }
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-label,
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-teal-accessible);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  color: var(--dark-teal);
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* --- Windows / Card Grids --- */
.windows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.window-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.window-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.window-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.window-card h3 {
  font-family: var(--font-heading);
  color: var(--dark-teal);
  margin-bottom: 0.75rem;
}

.window-card ul {
  list-style: none;
  padding: 0;
}

.window-card li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}

.window-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-teal);
}

/* --- Project Cards --- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  display: grid;
  grid-template-columns: 1fr;
}

.project-card.has-image {
  grid-template-columns: 300px 1fr;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
}

.project-image {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.project-content {
  padding: 1.75rem;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-teal-accessible);
  background: rgba(123, 167, 167, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.project-content h3 {
  font-family: var(--font-heading);
  color: var(--dark-teal);
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-body);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--warm-taupe);
}

.meta-item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .project-card.has-image {
    grid-template-columns: 1fr;
  }

  .project-image img {
    min-height: 200px;
    max-height: 250px;
  }
}

/* --- Role Cards (Leadership) --- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.role-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.role-card:hover {
  box-shadow: var(--shadow-md);
}

.role-card h4 {
  font-family: var(--font-heading);
  color: var(--dark-teal);
}

.role-org {
  font-size: 0.85rem;
  color: var(--muted-teal-accessible);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.role-card > p:last-child {
  font-size: 0.95rem;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 0.75rem 1rem;
  background: var(--white);
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 6rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-content h2 {
  margin-top: 2rem;
  color: var(--dark-teal);
}

.about-content h2:first-child {
  margin-top: 0;
}

.glass-bio {
  font-style: italic;
  border-left: 3px solid var(--muted-teal);
  padding-left: 1.25rem;
  color: var(--text-body);
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
    text-align: center;
  }

  .about-image img {
    max-width: 240px;
    margin: 0 auto 1.25rem;
  }

  .about-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- Abstract / Thesis Card --- */
.abstract-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.abstract-header {
  margin-bottom: 1.5rem;
}

.abstract-header h2 {
  color: var(--dark-teal);
  font-size: 1.5rem;
}

.abstract-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.abstract-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-teal);
  background: rgba(123,167,167,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.connection-block {
  background: var(--ivory);
  border-left: 3px solid var(--muted-teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.5rem;
}

.connection-block h4 {
  color: var(--dark-teal);
  margin-bottom: 0.5rem;
}

/* --- Accordion --- */
.accordion {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion summary {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-teal);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted-teal);
  transition: transform var(--transition);
}

.accordion[open] summary::after {
  content: '\2212';
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
}

.accordion-body p {
  font-size: 0.95rem;
}

/* --- Contact Section / CTA --- */
.contact-section {
  background: var(--dark-teal);
  padding: 4rem 0;
  text-align: center;
}

.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.contact-section .btn-primary {
  background: var(--white);
  color: var(--dark-teal);
  border-color: var(--white);
}

.contact-section .btn-primary:hover {
  background: var(--ivory);
  border-color: var(--ivory);
}

.contact-section .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.contact-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.contact-section .hero-cta {
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-section a {
  color: var(--white);
}

/* Social links in CTA */
.contact-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(255,255,255,0.3);
  color: var(--white);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* --- Contact Info Details --- */
.contact-details {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item h4 {
  font-family: var(--font-heading);
  color: var(--dark-teal);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- Looking For Pills --- */
.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-teal);
  background: rgba(123,167,167,0.12);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(123,167,167,0.25);
}

/* --- Resume Preview --- */
.resume-preview {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.resume-preview iframe {
  width: 100%;
  height: 700px;
  border: none;
}

@media (max-width: 768px) {
  .resume-preview iframe {
    height: 500px;
  }
}

/* --- Paper Preview --- */
.paper-preview {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 2rem 0 1.5rem;
}

.paper-preview iframe {
  width: 100%;
  height: 700px;
  border: none;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.paper-actions .btn svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  margin-right: 0.4rem;
}

@media (max-width: 768px) {
  .paper-preview iframe {
    height: 500px;
  }
  .paper-actions {
    flex-direction: column;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-teal);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

/* --- Utilities --- */
.mt-4 { margin-top: 2rem; }

.section.gradient {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--white) 100%);
}

/* --- Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.5rem;
  background: var(--dark-teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--muted-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 3px rgba(123, 167, 167, 0.3);
}

.nav a:focus-visible {
  outline-offset: 6px;
}

.window-card:focus-within,
.project-card:focus-within,
.role-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.accordion summary:focus-visible {
  outline-offset: -2px;
}

.social-link:focus-visible {
  outline-color: var(--white);
  background: rgba(255,255,255,0.3);
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--warm-taupe) 25%, var(--ivory) 50%, var(--warm-taupe) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  min-height: 1rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-hero { min-height: 300px; }
.skeleton-card { min-height: 180px; }
.skeleton-text { min-height: 1rem; margin-bottom: 0.75rem; width: 80%; }

/* --- Tablet Breakpoint --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 2rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-image img {
    width: 280px;
    height: 350px;
  }

  .about-grid {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }

  .project-card.has-image {
    grid-template-columns: minmax(220px, 260px) 1fr;
  }
}

/* Responsive general */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .page-hero { padding: 3rem 0 2rem; }

  /* Mobile iframe fallback */
  .resume-preview iframe,
  .paper-preview iframe {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .resume-preview iframe,
  .paper-preview iframe {
    height: 300px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .nav-overlay,
  .contact-section,
  .hero-cta,
  .paper-actions,
  .resume-preview,
  .paper-preview {
    display: none !important;
  }

  body {
    background: white;
    color: #222;
    font-size: 11pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    color: #222;
    page-break-after: avoid;
  }

  a {
    color: #222;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .hero-content,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    width: 150px;
    height: auto;
    border-radius: 50%;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .window-card,
  .project-card,
  .role-card,
  .abstract-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}
