:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-soft: #fbfbfd;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-strong: #005bb5;
  --accent-soft: rgba(0, 113, 227, 0.10);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content: 1360px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #ffffff 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7));
}

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

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

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.browser-shell {
  display: none;
}

.browser-topbar {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 18px;
  height: 52px;
  padding: 0 18px;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.browser-dots span:nth-child(1) {
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28c840;
}

.browser-address {
  justify-self: center;
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(245, 245, 247, 0.9);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.browser-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.browser-actions span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-right: max(24px, calc((100vw - var(--content)) / 2 + 48px));
  padding-left: max(24px, calc((100vw - var(--content)) / 2 + 48px));
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
}

.brand {
  font-weight: 730;
  letter-spacing: -0.03em;
  font-size: 1.18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: #27272a;
  font-size: 0.94rem;
  font-weight: 560;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 9px;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.main-content {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) 0 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.hero {
  padding-bottom: 52px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  color: #111827;
  font-size: clamp(2.45rem, 6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -0.042em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.hero-summary {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions,
.profile-links,
.chips,
.contact-details,
.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 690;
  font-size: 0.94rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.22);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.button-secondary:hover {
  color: var(--text);
  background: #fff;
  border-color: rgba(0, 113, 227, 0.28);
}

.profile-links {
  margin-top: 20px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1d1d1f;
  font-size: 0.92rem;
  font-weight: 620;
}

.profile-link .link-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.glass-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
}

.card-icon,
.heading-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.about-text p {
  margin-bottom: 12px;
  color: var(--muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.section-block {
  padding: 24px 0 8px;
  scroll-margin-top: 92px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-left: 20px;
  padding-left: 32px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.16), transparent);
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.experience-card::before {
  position: absolute;
  top: 24px;
  left: -39px;
  width: 12px;
  height: 12px;
  border: 2px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.experience-period {
  color: #374151;
  font-size: 0.92rem;
  font-weight: 690;
}

.experience-meta,
.project-description,
.skill-group p,
.contact-card p,
.language-level {
  color: var(--muted);
}

.experience-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.experience-list li + li {
  margin-top: 6px;
}

.experience-tools {
  margin-top: 14px;
}

.experience-tools-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.experience-tool-chips {
  gap: 8px;
}

.experience-tool-chips .chip {
  min-height: 26px;
  font-size: 0.74rem;
}

.badge {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

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

.project-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.075);
}

.project-top {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-bottom: 12px;
}

.project-icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(0, 113, 227, 0.04));
  color: var(--accent);
  font-weight: 900;
}

.project-description {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.project-card .chips {
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.78);
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 610;
}

.compact-section {
  padding-bottom: 26px;
}

.language-list {
  gap: 10px;
}

.language-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.language-name {
  font-weight: 700;
}

.language-level {
  font-size: 0.86rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.65fr) auto;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 48px), var(--content));
  margin: 22px auto clamp(24px, 4vw, 44px);
  padding: 26px;
}

.contact-main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-details {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #374151;
  font-size: 0.95rem;
}

.contact-row {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.copyright {
  justify-self: end;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.88rem;
  text-align: right;
}

.noscript-message {
  width: min(calc(100% - 32px), 1120px);
  margin: 16px auto;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fef2f2;
  color: #991b1b;
}

.is-loading .main-content,
.is-loading footer {
  opacity: 0.6;
}

.error-box {
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 16px;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 980px) {
  .section-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

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

  .experience-card {
    grid-template-columns: 1fr;
  }

  .badge {
    width: fit-content;
  }

  .copyright {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .main-content,
  .contact-card {
    width: min(calc(100% - 32px), var(--content));
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 12px;
    padding: 12px;
  }

  .site-nav a::after {
    content: none;
  }

  .main-content {
    padding-top: 42px;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    margin-left: 8px;
    padding-left: 24px;
  }

  .experience-card::before {
    left: -31px;
  }
}

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

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.credential-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.credential-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.credential-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.credential-period {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 760;
}

.credential-issuer {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 760px) {
  .credential-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
