:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Source Serif 4", Georgia, serif;
  --nav-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Content palette — light */
  --background-color: #fbfaf7;
  --surface-color: #ffffff;
  --soft-surface: #f1f5f4;
  --default-color: #2b3035;
  --muted-color: #667078;
  --heading-color: #111827;
  --accent-color: #0b5f73;
  --accent-dark: #073b4c;
  --accent-soft: #e2f0ef;
  --earth-color: #a56336;
  --border-color: #dde5e4;
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.12);

  /* Sidebar palette — light */
  --sidebar-bg: #f5f0e8;
  --sidebar-heading-color: #111827;
  --sidebar-text-color: #2b3035;
  --sidebar-muted-color: #667078;
  --sidebar-border: rgba(0, 0, 0, 0.10);
  --sidebar-img-border: rgba(11, 95, 115, 0.22);
  --sidebar-icon-bg: rgba(11, 95, 115, 0.09);
  --sidebar-icon-color: #0b5f73;
  --sidebar-nav-color: #3d4e55;
  --sidebar-nav-active-bg: rgba(11, 95, 115, 0.11);
  --sidebar-nav-active-color: #073b4c;
  --sidebar-nav-icon-color: #4d8a93;

  scroll-behavior: smooth;
}

[data-theme="dark"] {
  --background-color: #0d1b26;
  --surface-color: #132131;
  --soft-surface: #091524;
  --default-color: #cddde3;
  --muted-color: #8aa4ad;
  --heading-color: #e8f2f5;
  --accent-soft: rgba(11, 95, 115, 0.22);
  --border-color: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.55);

  --sidebar-bg: #071822;
  --sidebar-heading-color: #ffffff;
  --sidebar-text-color: #d8e2e1;
  --sidebar-muted-color: #9fb6ba;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-img-border: rgba(255, 255, 255, 0.22);
  --sidebar-icon-bg: rgba(255, 255, 255, 0.08);
  --sidebar-icon-color: #dce7e7;
  --sidebar-nav-color: #a9b9bc;
  --sidebar-nav-active-bg: rgba(255, 255, 255, 0.08);
  --sidebar-nav-active-color: #ffffff;
  --sidebar-nav-icon-color: #7fa1a8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--default-color);
  background: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.65;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 3px solid rgba(11, 95, 115, 0.28);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  line-height: 1.15;
  letter-spacing: 0;
}

p {
  margin-top: 0;
}

.main {
  background: var(--background-color);
  transition: background-color 0.35s ease;
}

.no-js [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.container {
  max-width: 1120px;
}

/* Header and navigation */
.header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 300px;
  z-index: 997;
  padding: 26px 20px;
  overflow-y: auto;
  color: var(--sidebar-text-color);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  transition: left 0.3s ease, background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.header .profile-img img {
  display: block;
  width: 126px;
  height: 126px;
  margin: 0 auto 18px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid var(--sidebar-img-border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  transition: border-color 0.35s ease;
}

.header .logo {
  margin-bottom: 18px;
}

.header .logo h1 {
  margin: 0;
  color: var(--sidebar-heading-color);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.35s ease;
}

.header .logo span {
  color: var(--sidebar-muted-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.35s ease;
}

.header .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.header .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--sidebar-icon-color);
  background: var(--sidebar-icon-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header .social-links a:hover {
  color: #ffffff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
}

.navmenu a,
.navmenu a:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  color: var(--sidebar-nav-color);
  border-radius: 8px;
  font-family: var(--nav-font);
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navmenu a .navicon {
  width: 22px;
  color: var(--sidebar-nav-icon-color);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--sidebar-nav-active-color);
  background: var(--sidebar-nav-active-bg);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.mobile-menu-toggle {
  padding: 0;
  border: 0;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.mobile-menu-toggle i {
  font-size: 1.35rem;
  line-height: 1;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  margin-top: 8px;
  color: var(--sidebar-nav-color);
  background: var(--sidebar-icon-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  font-family: var(--nav-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.theme-toggle:hover {
  color: var(--sidebar-nav-active-color);
  background: var(--sidebar-nav-active-bg);
  border-color: var(--accent-color);
}

.theme-toggle .ti-icon {
  font-size: 1rem;
  color: var(--sidebar-icon-color);
  flex-shrink: 0;
  transition: color 0.35s ease;
}

.theme-toggle .ti-label {
  flex: 1;
}

.theme-toggle .ti-track {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  background: var(--sidebar-border);
  border-radius: 10px;
  position: relative;
  transition: background-color 0.25s ease;
}

.theme-toggle .ti-thumb {
  position: absolute;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent-color);
  border-radius: 50%;
  transition: left 0.25s ease;
}

[data-theme="dark"] .theme-toggle .ti-thumb {
  left: 18px;
}

[data-theme="dark"] .theme-toggle .ti-track {
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -300px;
  }

  .header.header-show {
    left: 0;
  }
}

/* Shared layout */
.section {
  padding: 88px 0;
  scroll-margin-top: 24px;
}

.light-section {
  background: var(--soft-surface);
  transition: background-color 0.35s ease;
}

.dark-section {
  color: #ffffff;
  background: #071822;
}

.section-title {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-title span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title h2 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 16px;
  font-size: 2.2rem;
  font-weight: 700;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--earth-color);
}

.section-title p {
  margin: 0;
  color: var(--muted-color);
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0.58rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.58);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #071822;
  background: #ffffff;
  border-color: #ffffff;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero>img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 14, 22, 0.88) 0%, rgba(4, 14, 22, 0.72) 42%, rgba(4, 14, 22, 0.38) 100%),
    linear-gradient(180deg, rgba(4, 14, 22, 0.18), rgba(4, 14, 22, 0.62));
}

.hero .container {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin-left: clamp(16px, 6vw, 84px);
}

.hero .eyebrow {
  color: #9ddbd5;
}

.hero h2 {
  max-width: 840px;
  margin: 0;
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
}

.preferred-name {
  margin: 12px 0 0;
  color: #dbe7e7;
  font-size: 1.2rem;
  font-weight: 600;
}

.typed-line {
  min-height: 34px;
  margin: 12px 0 0;
  color: #c1ece7;
  font-size: 1.25rem;
  font-weight: 700;
}

.typed-line .typed {
  border-bottom: 2px solid var(--earth-color);
}

.hero-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* About */
.portrait-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.intro-panel,
.output-summary,
.contact-panel,
.feature-card,
.project-card,
.skill-card,
.teaching-card,
.publication-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.35s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.intro-panel {
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.intro-panel p {
  color: var(--default-color);
  font-size: 1.04rem;
}

.intro-panel p:last-of-type {
  margin-bottom: 24px;
}

.contact-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-facts span,
.contact-facts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0.42rem 0.75rem;
  color: var(--default-color);
  background: var(--soft-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  color: var(--accent-dark);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-row a:hover {
  color: #ffffff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.link-row.compact {
  margin-top: 18px;
}

.link-row.compact a {
  width: 100%;
  justify-content: flex-start;
}

/* Cards */
.feature-card,
.project-card,
.skill-card,
.teaching-card {
  height: 100%;
  padding: 24px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.feature-card:hover,
.project-card:hover,
.skill-card:hover,
.teaching-card:hover,
.publication-item:hover {
  border-color: rgba(11, 95, 115, 0.32);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.feature-card>i,
.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent-color);
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 1.35rem;
  transition: background-color 0.35s ease;
}

.feature-card h3,
.project-card h3,
.skill-card h3,
.teaching-card h3,
.output-summary h3,
.publication-item h3 {
  margin: 0 0 10px;
  font-family: var(--default-font);
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-card p,
.project-card p,
.teaching-card p,
.publication-item p,
.contact-panel p {
  margin-bottom: 0;
  color: var(--muted-color);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.tag-list,
.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span,
.theme-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.6rem;
  color: var(--default-color);
  background: var(--soft-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.project-card .tag-list {
  margin-top: auto;
  padding-top: 18px;
}

/* Outputs */
.output-summary {
  height: 100%;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-item {
  padding: 20px 22px;
}

.publication-item h3 {
  font-size: 1rem;
}

.publication-item a {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Dynamic publications */
.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-filter {
  padding: 0.38rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--surface-color);
  color: var(--default-color);
  font-family: var(--nav-font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pub-filter:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.pub-filter.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.pub-count {
  color: var(--muted-color);
  font-size: 0.9rem;
}

.pub-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.pub-item {
  padding: 22px 24px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.35s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pub-item:hover {
  border-color: rgba(11, 95, 115, 0.32);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

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

.pub-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.52rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pub-badge--journal {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.pub-badge--conference {
  color: #7a4f1a;
  background: #fdf0e2;
}

[data-theme="dark"] .pub-badge--conference {
  color: #f0b36a;
  background: rgba(165, 99, 54, 0.2);
}

.pub-year {
  color: var(--muted-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.pub-title {
  margin: 0 0 8px;
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.45;
}

.pub-authors {
  margin: 0 0 5px;
  color: var(--muted-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pub-authors strong {
  color: var(--default-color);
  font-weight: 700;
}

.pub-venue {
  margin: 0 0 14px;
  color: var(--muted-color);
  font-size: 0.9rem;
  font-style: italic;
}

.pub-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0.24rem 0.58rem;
  color: #7a4f1a;
  background: #fdf0e2;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 700;
}

[data-theme="dark"] .pub-note {
  color: #f0b36a;
  background: rgba(165, 99, 54, 0.2);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.28rem 0.62rem;
  color: var(--accent-color);
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pub-links a:hover {
  color: #ffffff;
  background: var(--accent-color);
}

.pub-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  transition: border-color 0.35s ease;
}

.pub-profiles a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0.4rem 0.8rem;
  color: var(--accent-dark);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pub-profiles a:hover {
  color: #ffffff;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Skills and teaching */
.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-card h3 i {
  color: var(--accent-color);
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-panel h3 {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-size: 1.65rem;
}

.contact-panel .contact-facts {
  margin-top: 18px;
}

.contact-links {
  justify-content: flex-end;
  margin-top: 0;
}

/* Footer */
.footer {
  padding: 24px 0;
  color: var(--muted-color);
  background: var(--background-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

/* Minimal fallback pages */
.utility-page {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: var(--soft-surface);
}

.utility-panel {
  width: min(720px, 100%);
  padding: 34px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.utility-panel h1 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.utility-panel p {
  color: var(--muted-color);
}

/* Preloader and scroll top */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--background-color);
  transition: opacity 0.3s ease;
}

#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: -20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--accent-color);
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s ease;
}

.scroll-top i {
  font-size: 1.6rem;
  line-height: 1;
}

.scroll-top.active {
  bottom: 16px;
  visibility: visible;
  opacity: 1;
}

.scroll-top:hover {
  color: #ffffff;
  background: var(--accent-dark);
}

/* Lightweight support for secondary template pages */
.page-title,
.starter-section,
.portfolio-details,
.service-details {
  padding: 64px 0;
}

.page-title h1,
.portfolio-description h2,
.service-details h3 {
  font-size: 2rem;
}

.portfolio-info,
.services-list {
  padding: 24px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 1199px) {
  .hero .container {
    margin-left: auto;
  }
}

@media (max-width: 991px) {
  .section {
    padding: 72px 0;
  }

  .hero h2 {
    font-size: 3rem;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0s !important;
  }

  .section-title h2 {
    font-size: 1.9rem;
  }

  .hero {
    min-height: 92vh;
    padding: 96px 0 72px;
  }

  .hero h2 {
    font-size: 2.35rem;
  }

  .preferred-name,
  .typed-line {
    font-size: 1.05rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .btn,
  .link-row a,
  .contact-facts span,
  .contact-facts a {
    width: 100%;
    justify-content: center;
  }

  .intro-panel,
  .contact-panel {
    padding: 24px;
  }
}

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

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 575px) {
  .header {
    width: 285px;
    left: -285px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section {
    padding: 62px 0;
  }

  .feature-card,
  .project-card,
  .skill-card,
  .teaching-card,
  .output-summary,
  .publication-item {
    padding: 20px;
  }
}
