:root {
  color-scheme: light;
  --bg-color: #f5f7fb;
  --text-color: #101828;
  --accent-color: #2563eb;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-bg-strong: rgba(255, 255, 255, 0.92);
  --line-color: rgba(16, 24, 40, 0.1);
  --line-strong-color: rgba(16, 24, 40, 0.16);
  --muted-color: #4f5d7a;
  --soft-color: #66768f;
  --accent-strong-color: #0f172a;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --body-glow-1: rgba(37, 99, 235, 0.11);
  --body-glow-2: rgba(168, 85, 247, 0.1);
  --body-gradient: linear-gradient(180deg, #f8fbff 0%, #eef3fa 44%, #e9eef7 100%);
  --grid-line: rgba(15, 23, 42, 0.05);
  --topbar-bg: rgba(255, 255, 255, 0.76);
  --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72) 34%, rgba(245, 248, 255, 0.92));
  --photo-bg: #edf2fb;
  --button-soft-bg: rgba(16, 24, 40, 0.04);
  --chip-bg: rgba(16, 24, 40, 0.03);
  --image-bg: #eff4fb;
  --theme-toggle-bg: rgba(16, 24, 40, 0.04);
  --theme-toggle-border: rgba(16, 24, 40, 0.12);
  --theme-toggle-shadow: rgba(15, 23, 42, 0.08);
  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-border: rgba(37, 99, 235, 0.18);
  --menu-overlay-bg: rgba(238, 243, 250, 0.38);
  --focus-ring: rgba(37, 99, 235, 0.16);
  --button-primary-start: #6ea9ff;
  --button-primary-end: #a7d7ff;
  --button-primary-text: #071321;
  --button-primary-border: rgba(255, 255, 255, 0.64);
  --button-primary-shadow: rgba(76, 125, 193, 0.24);
  --button-secondary-bg: rgba(255, 255, 255, 0.62);
  --button-secondary-hover: rgba(255, 255, 255, 0.84);
  --button-ghost-hover: rgba(110, 169, 255, 0.1);
  --bg: var(--bg-color);
  --bg-soft: var(--topbar-bg);
  --bg-card: var(--card-bg);
  --bg-card-strong: var(--card-bg-strong);
  --line: var(--line-color);
  --line-strong: var(--line-strong-color);
  --text: var(--text-color);
  --muted: var(--muted-color);
  --soft: var(--soft-color);
  --accent: var(--accent-color);
  --accent-strong: var(--accent-strong-color);
  --accent-2: #8b5cf6;
  --shadow: 0 22px 80px var(--shadow-color);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

.dark {
  color-scheme: dark;
  --bg-color: #070b14;
  --text-color: #eef2ff;
  --accent-color: #8fd3ff;
  --card-bg: rgba(14, 20, 38, 0.78);
  --card-bg-strong: rgba(16, 23, 44, 0.95);
  --line-color: rgba(255, 255, 255, 0.08);
  --line-strong-color: rgba(255, 255, 255, 0.14);
  --muted-color: #aab3d0;
  --soft-color: #7c88b5;
  --accent-strong-color: #d8f0ff;
  --shadow-color: rgba(0, 0, 0, 0.35);
  --body-glow-1: rgba(143, 211, 255, 0.12);
  --body-glow-2: rgba(167, 139, 250, 0.14);
  --body-gradient: linear-gradient(180deg, #050810 0%, #0a1020 38%, #070b14 100%);
  --grid-line: rgba(255, 255, 255, 0.03);
  --topbar-bg: rgba(6, 10, 20, 0.75);
  --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%), rgba(9, 14, 26, 0.92);
  --photo-bg: #10172a;
  --button-soft-bg: rgba(255, 255, 255, 0.04);
  --chip-bg: rgba(255, 255, 255, 0.03);
  --image-bg: #0a1020;
  --theme-toggle-bg: rgba(255, 255, 255, 0.04);
  --theme-toggle-border: rgba(255, 255, 255, 0.14);
  --theme-toggle-shadow: rgba(0, 0, 0, 0.28);
  --badge-bg: rgba(143, 211, 255, 0.08);
  --badge-border: rgba(143, 211, 255, 0.2);
  --menu-overlay-bg: rgba(6, 10, 20, 0.34);
  --focus-ring: rgba(143, 211, 255, 0.18);
  --button-primary-start: #7fcfff;
  --button-primary-end: #b7e5ff;
  --button-primary-text: #06111f;
  --button-primary-border: rgba(255, 255, 255, 0.12);
  --button-primary-shadow: rgba(143, 211, 255, 0.22);
  --button-secondary-bg: rgba(255, 255, 255, 0.05);
  --button-secondary-hover: rgba(255, 255, 255, 0.08);
  --button-ghost-hover: rgba(143, 211, 255, 0.12);
}

.light {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, var(--body-glow-1), transparent 34%),
    radial-gradient(circle at 85% 10%, var(--body-glow-2), transparent 26%),
    var(--body-gradient);
  transition:
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
  opacity: 0.28;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient--one {
  top: -8rem;
  left: -10rem;
  background: rgba(143, 211, 255, 0.22);
}

.ambient--two {
  top: 8rem;
  right: -12rem;
  background: rgba(167, 139, 250, 0.2);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  background: var(--topbar-bg);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.dark .topbar {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.16);
}

.dark .topbar.is-scrolled {
  background: rgba(6, 10, 20, 0.84);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  background: var(--theme-toggle-bg);
  box-shadow: 0 10px 26px var(--theme-toggle-shadow);
}

.lang-switcher__button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.lang-switcher__button:hover,
.lang-switcher__button:focus-visible {
  color: var(--text);
}

.lang-switcher__button.is-active {
  background: var(--bg-card-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.topbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  color: var(--text);
  box-shadow: 0 10px 26px var(--theme-toggle-shadow);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    box-shadow 240ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent-color);
}

.theme-toggle {
  padding: 0;
  min-width: 42px;
}

.theme-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-0.5px);
}

.menu-toggle {
  display: none;
  min-width: 42px;
  padding: 0 12px;
}

.menu-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  opacity: 0;
  pointer-events: none;
  background: var(--menu-overlay-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    opacity 220ms ease,
    backdrop-filter 220ms ease,
    -webkit-backdrop-filter 220ms ease;
}

.menu-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 30;
  display: none;
  max-width: 30rem;
  max-height: min(34rem, calc(100vh - 20px));
  max-height: min(34rem, calc(100dvh - 20px));
  margin-inline: auto;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 32px 120px rgba(15, 23, 42, 0.22),
    0 12px 36px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 260ms ease,
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.dark .mobile-menu {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 14, 26, 0.96);
  box-shadow:
    0 32px 120px rgba(0, 0, 0, 0.42),
    0 12px 36px rgba(0, 0, 0, 0.2);
}

.mobile-menu.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu__handle {
  width: 54px;
  height: 5px;
  margin: 4px auto 14px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.14);
}

.dark .mobile-menu__handle {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu__header {
  padding: 0 6px 10px;
}

.mobile-menu__eyebrow {
  margin: 0;
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-menu__title {
  margin: 8px 0 0;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.mobile-menu__nav {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 24rem);
  overflow: auto;
  padding: 2px;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.dark .mobile-menu__nav a {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.dark .mobile-menu__nav a:hover,
.dark .mobile-menu__nav a:focus-visible {
  border-color: rgba(143, 211, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(143, 211, 255, 0.96), rgba(167, 139, 250, 0.86));
  color: #06101f;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(143, 211, 255, 0.08);
}

.brand__text {
  color: var(--text);
  font-weight: 700;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--button-soft-bg);
  color: var(--text);
  transform: translateY(-1px);
}

.section {
  padding: 36px 0 0;
  scroll-margin-top: 108px;
}

.hero {
  padding-top: 12px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--hero-bg);
  box-shadow: var(--shadow);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.hero__photo-frame {
  width: min(100%, 340px);
  justify-self: center;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(167, 139, 250, 0.16));
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 22px 60px rgba(0, 0, 0, 0.4);
}

.hero__photo {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--photo-bg);
}

.hero__content {
  padding: 12px 4px 12px 0;
}

.eyebrow,
.section__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.hero__role {
  margin: 16px 0 0;
  color: var(--accent-strong);
  font-size: 1.08rem;
  font-weight: 700;
}

.hero__subtitle {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    filter 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.button--primary {
  border-color: var(--button-primary-border);
  background: linear-gradient(135deg, var(--button-primary-start), var(--button-primary-end));
  color: var(--button-primary-text);
  box-shadow:
    0 14px 30px var(--button-primary-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.button--primary:hover {
  filter: saturate(1.04);
  box-shadow:
    0 18px 36px var(--button-primary-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button--primary:focus-visible {
  filter: saturate(1.04);
  box-shadow:
    0 0 0 4px var(--focus-ring),
    0 18px 36px var(--button-primary-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--button-secondary-bg);
  color: var(--text);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: rgba(143, 211, 255, 0.38);
  background: var(--button-secondary-hover);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(143, 211, 255, 0.38);
  background: var(--button-ghost-hover);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip,
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.about-card,
.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.prose {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.prose p {
  margin: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.skill-cloud,
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: 8px;
  gap: 14px;
  align-items: start;
}

.skill-tag {
  padding-inline: 16px;
  color: var(--accent-strong);
}

.link-card,
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--project-accent, var(--accent-color)), transparent);
  opacity: 0.9;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--bg-card-strong);
}

.link-card {
  flex: 1 1 250px;
  min-width: 250px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  background: var(--card-bg-strong);
}

.link-card[aria-disabled="true"] {
  opacity: 0.65;
  cursor: default;
}

.link-card[aria-disabled="true"]:hover {
  transform: none;
  border-color: var(--line);
  background: var(--bg-card);
}

.link-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(167, 139, 250, 0.16));
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.link-card__title {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.link-card__desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.link-card__arrow {
  color: var(--soft);
  font-size: 1.2rem;
  line-height: 1;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  height: max-content;
}

.project-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--image-bg);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  min-width: 0;
  padding-top: 18px;
}

.project-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.project-card__title {
  margin: 0;
  min-width: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--button-soft-bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.project-card__actions .button {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 0.92rem;
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.contact-card {
  display: grid;
  gap: 18px;
}

.contact-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-card__actions .button {
  min-width: 160px;
}

.footer {
  padding: 28px 6px 0;
  color: var(--soft);
  font-size: 0.92rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

.cards-grid .link-card:nth-child(2),
.projects-grid .project-card:nth-child(2) {
  transition-delay: 90ms;
}

.cards-grid .link-card:nth-child(3),
.projects-grid .project-card:nth-child(3) {
  transition-delay: 160ms;
}

.cards-grid .link-card:nth-child(4),
.projects-grid .project-card:nth-child(4) {
  transition-delay: 230ms;
}

@media (max-width: 1120px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__photo-frame {
    width: min(100%, 290px);
  }

  .hero__content {
    padding-right: 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .topbar {
    top: 10px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 26px;
  }

  .topbar__actions {
    order: 2;
    margin-left: 0;
    gap: 8px;
  }

  .lang-switcher {
    gap: 2px;
    padding: 3px;
  }

  .lang-switcher__button {
    min-width: 34px;
    min-height: 32px;
    padding: 0 8px;
  }

  .brand {
    order: 1;
  }

  .topbar__nav--desktop {
    display: none;
  }

  .hero__grid,
  .about-card,
  .contact-card,
  .project-card {
    padding: 18px;
  }

  .hero__actions,
  .hero__chips,
  .skill-cloud,
  .cards-grid,
  .contact-card__actions {
    gap: 10px;
  }

  .link-card {
    min-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .section__header {
    align-items: start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-card__actions .button {
    min-width: 100%;
  }

  .brand__text {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .theme-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu {
    display: block;
  }
}

@media (min-width: 721px) {
  .mobile-menu,
  .menu-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
