:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Business-focused palette (no gradients / neon) */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-muted: #E2E8F0;
  --surface: #FFFFFF;
  --surface-strong: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-soft: #7B8798;

  /* Accents */
  --accent-blue: #2563EB;
  --accent-warm: #D97706;

  /* Back-compat hooks */
  --accent: var(--accent-blue);
  --accent-soft: rgba(37, 99, 235, 0.14);

  --border: #E2E8F0;

  /* Subtle elevation only */
  --shadow: 0 10px 28px rgba(2, 6, 23, 0.06);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-soft);
  color: var(--text);
  overflow-x: clip; /* prevent accidental horizontal scroll on small devices */
}


/* Improve tap behavior on touch devices */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
a {
  font: inherit;
}

.page-shell {
  /* Use as much width as the design allows while keeping good margins */
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* Ensure sticky header lines up with section scrolling */
:root {
  --header-offset: 88px;
}

[id] {
  scroll-margin-top: var(--header-offset);
}


.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-left: 20px;
  padding-right: 20px;

  /* glass base */
  background: rgba(248, 250, 252, 0.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.45);

  transition: background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.site-header.header-scrolled {
  background: rgba(248, 250, 252, 0.78);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  border-bottom-color: rgba(226, 232, 240, 0.75);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
}


.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--accent-blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cta-button:hover {
  background: #1f5fe0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}


.brand {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.site-nav {
  display: none;
  gap: 24px;
  align-items: center;
}

.site-nav.nav-open {
  display: grid;
  width: 100%;
  padding: 18px 0 0;
  gap: 18px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a.is-active {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.25);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}


.site-nav a:active {
  transform: translateY(0);
}



.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  background: rgba(122, 157, 174, 0.12);
}



.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.section {
  padding: 96px 0 72px;
}


.section--large {
  padding-top: 80px;
}

.section--white {
  background: #ffffff;
}

.section--soft {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 48px rgba(15, 27, 51, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 26px 70px rgba(15, 27, 51, 0.10);
}

.testimonial-text {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.testimonial-author {
  color: var(--surface-strong);
  font-weight: 800;
}

@media (max-width: 720px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}


.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul {
  margin: 0;
}

.hero-grid,
.about-grid,
.skill-grid,
.project-grid,
.service-grid,
.resume-grid {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 28px;
}

.hero-intro {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 22px;
  min-height: 48px; /* touch-friendly target */
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

/* Accessible focus ring */
.button:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}


.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: none;
}


.button--secondary {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.04);
}

.button.button--secondary:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.button--primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.hero-facts {

  display: grid;
  gap: 16px;
}

.hero-facts article {
  padding: 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-facts article:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 27, 51, 0.08);
  border-color: rgba(122, 157, 174, 0.35);
}


.hero-facts strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.99rem;
}

.hero-facts span {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* Statistics */
.about-statistics {
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 48px rgba(15, 27, 51, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 26px 70px rgba(15, 27, 51, 0.10);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.stat-value {
  font-weight: 900;
  color: var(--surface-strong);
  font-size: 1.26rem;
  line-height: 1.25;
}


.hero-portrait-card {
  align-self: center;
}

.portrait-frame {
  width: min(100%, 420px);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.portrait-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f6f4 0%, #ffffff 100%);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portrait-caption {
  margin-top: 22px;
  display: grid;
  gap: 6px;
}

.portrait-caption strong {
  font-size: 1rem;
}

.portrait-caption span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.featured-strip {
  margin-top: 42px;
  display: grid;
  position: relative;
}

/* Subtle professional background accents */
.hero.section--large::before {
  content: '';
  position: absolute;
  inset: -140px -40px auto -40px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}


.hero.section--large {
  position: relative;
}

.featured-strip::after {
  content: '';
  position: absolute;
  inset: -2px -2px -2px -2px;
  border-radius: 26px;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
  z-index: -1;
}


.featured-strip {

  gap: 18px;
  padding: 28px 28px 28px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.featured-strip div {
  display: grid;
  gap: 8px;
}

.featured-strip .strip-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-warm);

  font-size: 0.78rem;
}


.featured-strip strong {
  font-size: 1.1rem;
}

.featured-strip p {
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-grid {
  grid-template-columns: 1.3fr 0.9fr;
  align-items: start;
}

.about-copy p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== About section redesign (balanced two-column + scan-friendly) ===== */
.about-hero {
  max-width: 820px;
  margin: 0 0 36px;
  display: grid;
  gap: 14px;
  text-align: left;
}


/* About headline row: PFP sits beside headline only */
.about-hero-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  gap: 22px;
}

.about-hero-pfp {
  /* Slight right shift to visually balance the headline column */
  margin-left: 20px;

  /* Professional portrait-card appearance */
  width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  align-self: center;
}

.about-hero-pfp img {
  /* Professional portrait-card appearance */
  width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  align-self: center;
}

.about-hero-pfp img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-hero-pfp {
  /* Professional SaaS founder style: keep face intact (no cropping) */
  width: 112px;
  height: 112px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
  overflow: hidden;
}



.about-hero-pfp img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-headline-block {
  display: grid;
  gap: 10px;
}

.about-headline-block .about-subtitle {
  max-width: 100%;
}

.about-headline {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  max-width: 34ch;
}

.about-subtitle {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 64ch;
  margin-top: -2px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Ensure the left column alignment matches the About header column */
.about-hero {
  padding-left: 0;
}


.about-left {
  display: grid;
  gap: 18px;
  align-content: start;
}

.about-photo-card {
  display: none; /* old image beside About-left; replaced by headline-row PFP */
}




.about-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(215, 219, 228, 0.9);
}


.about-photo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full face (no cropping) */
  display: block;
}



.about-right {
  display: grid;
  gap: 18px;
}

.about-copy {
  display: grid;
  gap: 14px;
}

.about-copy p {
  margin: 0;
  max-width: 64ch;
}

.about-callout {
  border: 1px solid rgba(122, 157, 174, 0.26);
  background: rgba(122, 157, 174, 0.07);
  border-radius: 22px;
  padding: 18px 18px;
  box-shadow: 0 16px 40px rgba(15, 27, 51, 0.04);
}

.callout-title {
  font-weight: 700;
  color: var(--surface-strong);
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.callout-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.callout-item {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 157, 174, 0.25);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.about-highlights {
  display: grid;
  gap: 12px;
}

.strength-card {
  padding: 18px 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.strength-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.strength-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.strength-card:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 157, 174, 0.35);
  box-shadow: 0 22px 56px rgba(15, 27, 51, 0.08);
}

.about-cred {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(122, 157, 174, 0.08) 0%, rgba(255, 255, 255, 1) 55%);
  padding: 16px;
}

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cred-card {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(215, 219, 228, 0.8);
  background: rgba(255, 255, 255, 0.72);
}

.cred-label {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cred-value {
  font-weight: 800;
  color: var(--surface-strong);
  font-size: 1.12rem;
}

/* ================================================= */

/* Back-compat if highlight-card is still referenced elsewhere */
.highlight-card {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.highlight-card p {
  color: var(--text-muted);
  line-height: 1.7;
}


.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Skills progress */
.skill-progress {
  display: grid;
  gap: 14px;
}

.progress-item {
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 40px rgba(15, 27, 51, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.progress-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 26px 70px rgba(15, 27, 51, 0.08);
}

.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-label {
  color: var(--text-muted);
  font-weight: 700;
}

.progress-value {
  font-weight: 900;
  color: var(--surface-strong);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: var(--p);
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  transform-origin: left;
  animation: fillBar 1000ms ease both;
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 940px) {
  .about-statistics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .about-statistics {
    grid-template-columns: 1fr;
  }
}


.skill-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.skill-card h3 {
  font-size: 1.1rem;
}

.skill-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.skill-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text-soft);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid--docs {
  grid-template-columns: 1fr;
}

.project-card {
  display: grid;
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 18px 48px rgba(15, 27, 51, 0.04);
}


.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(15, 27, 51, 0.08);
}

.project-preview {
  min-height: 180px;
  border-radius: 20px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  overflow: hidden; /* keep images inside the rounded rectangle */
}

.project-img {
  width: 100%;
  height: 100%;
  /* show the full image without cropping */
  object-fit: contain;
}



.project-copy h3 {
  font-size: 1.1rem;
}

.project-copy p {
  color: var(--text-muted);
  line-height: 1.75;
}

.project-meta {
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.meta-label {
  color: var(--text-soft);
  font-weight: 700;
}

.meta-value {
  color: var(--text-muted);
  font-weight: 600;
}

.project-button {
  justify-self: start;
}


.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform 180ms ease, border-color 180ms ease;
  box-shadow: 0 18px 48px rgba(15, 27, 51, 0.04);
}



.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.resume-grid {
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
}

.resume-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.resume-card--accent {
  border-color: rgba(122, 157, 174, 0.28);
}

.resume-card h3 {
  margin-bottom: 16px;
}

.resume-card p,
.resume-card ul {
  color: var(--text-muted);
  line-height: 1.75;
}

.resume-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.contact-panel {
  padding: 36px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: grid;
  gap: 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-note {
  color: var(--text-muted);
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.footer-brand {
  font-weight: 900;
  color: var(--surface-strong);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-sub {
  margin-bottom: 8px;
}

.footer-email {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-copy {
  font-weight: 700;
}

.footer-title {
  font-weight: 800;
  color: var(--surface-strong);
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-links a:hover {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--accent-blue);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    display: flex;
  }
}

@media (max-width: 959px) {
  .cta-button {
    display: none;
  }
}


@media (max-width: 940px) {
  .hero-grid,
  .about-grid,
  .skill-grid,
  .project-grid,
  .service-grid,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    width: 86px;
    max-width: 100%;
  }

  /* Headline-row PFP slightly smaller on tablet */
  .about-hero-grid {
    grid-template-columns: 110px 1fr;
    gap: 18px;
  }

  .about-hero-pfp {
    width: 110px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }


  .cred-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid--docs {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px) {
  .page-shell {
    padding: 20px 20px 32px;
  }

  /* Mobile: image stacks above headline */
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-hero-pfp {
    width: 96px;
    height: auto;
    aspect-ratio: 1 / 1;
    justify-self: start;
  }


  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .featured-strip {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.3rem;
  }

  .hero-copy,
  .hero-portrait-card {
    width: 100%;
  }

  .portrait-frame {
    padding: 20px;
  }

  /* tighten spacing to avoid overflow on small screens */
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .featured-strip {
    margin-top: 28px;
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .button {
    padding: 12px 16px;
    min-height: 44px;
  }

  .hero-facts article {
    padding: 16px 16px;
  }

  .contact-panel {
    padding: 26px;
  }

  .service-card,
  .skill-card,
  .project-card,
  .resume-card,
  .highlight-card {
    padding: 20px;
  }
}

/* Short landscape screens (common on phones) */
@media (orientation: landscape) and (max-width: 940px) {
  .section {
    padding: 48px 0;
  }

  .hero-portrait-card .portrait-placeholder {
    min-height: 260px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
