:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #fff8fc;
  --panel: #ffffff;
  --panel-soft: #fff7fb;
  --line: #f2d8e6;
  --text: #1e1520;
  --muted: #6c5b68;
  --primary: #e6528f;
  --primary-soft: #ffe4ef;
  --shadow: 0 8px 24px rgba(95, 33, 62, 0.06);
  --radius: 20px;
  --content-width: 1120px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #162033;
  --panel: #111c31;
  --panel-soft: #17233a;
  --line: #273553;
  --text: #eef2ff;
  --muted: #b7c2db;
  --primary: #ef4444;
  --primary-soft: rgba(239, 68, 68, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1113;
    --bg-soft: #141618;
    --panel: #15191c;
    --panel-soft: #0d131e;
    --line: #293339;
    --text: #eef2ff;
    --muted: #a2a8b5;
    --primary: #ef4444;
    --primary-soft: rgba(239, 68, 68, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--content-width), calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.theme-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line);
  background: var(--panel);
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__label {
  font-size: 0.95rem;
  white-space: nowrap;
}

html[data-theme="dark"] .theme-toggle__icon--moon,
html[data-theme="light"] .theme-toggle__icon--sun {
  display: inline-flex;
}

html[data-theme="dark"] .theme-toggle__icon--sun,
html[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle__icon--sun {
    display: none;
  }

  html:not([data-theme="light"]) .theme-toggle__icon--moon {
    display: inline-flex;
  }
}

.page-content {
  flex: 1;
  margin: 3rem 0;
}

.section {
  padding: 3rem 0;
}

.section[id] {
  scroll-margin-top: 96px;
}

.hero-section {
  display: grid;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.04;
  margin-bottom: 1rem;
}

h1 span {
  color: var(--primary);
}

.hero-description {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.profile-card,
.highlight-card,
.specialty-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 1.1rem;
}

.profile-image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.profile-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  padding: 1rem;
}

.highlight-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem;
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

.button--primary:hover {
  filter: brightness(0.98);
}

.button--secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--primary);
}

.button--secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.section-heading--centered {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section-kicker {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.specialty-card {
  padding: 1.35rem;
}

.specialty-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.specialty-card__icon svg {
  width: 22px;
  height: 22px;
}

.specialty-card p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .page-content {
    margin: 1rem 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-layout,
  .highlights-grid,
  .specialties-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 2rem 0;
  }

  .footer-content {
    padding: 1rem 0 1.25rem;
  }

  .theme-toggle__label {
    font-size: 0.9rem;
  }
}
