:root {
  --bg: #06101f;
  --bg-soft: #0b1630;
  --panel: #0a1325;
  --panel-alt: #101b31;
  --border: rgba(111, 140, 255, 0.18);
  --text: #f4f7ff;
  --muted: #b4bfd9;
  --accent: #2d63ff;
  --accent-bright: #4f7eff;
  --button-dark: #111a30;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --font-body: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(46, 99, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(55, 90, 180, 0.14), transparent 20%),
    #08101d;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  scrollbar-width: none;
  width: 100%;
  min-width: 100%;
  overflow-x: hidden;
}

img,
iframe,
embed,
object {
  max-width: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.light-theme {
  --bg: #eef3ff;
  --bg-soft: #ffffff;
  --panel: #fdfefe;
  --panel-alt: #edf3ff;
  --border: rgba(45, 99, 255, 0.16);
  --text: #071326;
  --muted: #4d5f79;
  --button-dark: #ffffff;
  --shadow: 0 20px 60px rgba(39, 74, 152, 0.12);
  background:
    radial-gradient(circle at top left, rgba(46, 99, 255, 0.15), transparent 24%),
    linear-gradient(180deg, #f3f7ff 0%, #e7eefb 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  display: block;
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.95), rgba(4, 10, 22, 0.98)),
    var(--bg);
  box-shadow: var(--shadow);
}

body.light-theme .page-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.98));
}

.site-header,
.section,
.site-footer {
  padding-left: 28px;
  padding-right: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
}

body.light-theme .site-header {
  background: rgba(245, 249, 255, 0.92);
}

.brand {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.nav-link {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 10px 0;
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 42px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.moon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(45deg);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.moon::before,
.moon::after,
.theme-toggle::before,
.theme-toggle::after {
  opacity: 0;
}

body.light-theme .moon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: currentColor;
  border-top-color: currentColor;
  transform: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

body.light-theme .moon::before,
body.light-theme .moon::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.light-theme .moon::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

body.light-theme .moon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

body.light-theme .theme-toggle::before,
body.light-theme .theme-toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform-origin: center;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.light-theme .theme-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.light-theme .theme-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 126, 255, 0.6);
}

.button.button-disabled,
.button.button-disabled:hover {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  border-color: transparent;
}

.button-secondary {
  background: rgba(17, 26, 48, 0.85);
  color: var(--text);
}

body.light-theme .button-secondary {
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-section {
  min-height: calc(100vh - 170px);
  align-content: center;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
  min-height: 540px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 420px;
  font-size: clamp(3rem, 6.5vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent);
}

.hero-copy h1 .home-first-name-text {
  display: inline;
  color: var(--text);
}

.role {
  margin: 16px 0 18px;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
}

.lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions,
.social-links,
.tag-row,
.project-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions > *,
.social-links > *,
.project-links > *,
.footer-socials > * {
  min-width: 0;
}

.social-links {
  margin-top: 4px;
}

.social-links a,
.footer-socials a {
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.social-links a,
.project-links a,
.contact-list a,
.contact-list span,
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.portrait-ring {
  position: relative;
  width: min(100%, 370px);
  aspect-ratio: 1 / 1;
  padding: 14px;
  border: 2px solid rgba(45, 99, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(45, 99, 255, 0.08);
}

.portrait-card {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 28%, rgba(74, 111, 210, 0.26), transparent 36%),
    linear-gradient(180deg, #162847, #101c35 68%, #0d1528 100%);
}

.portrait-photo {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 53% 38%, rgba(255, 226, 197, 0.5), transparent 18%),
    radial-gradient(circle at 53% 34%, rgba(34, 40, 68, 0.18), transparent 14%);
}

.portrait-photo.portrait-photo-image {
  background: none;
}

.portrait-photo.portrait-photo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-head,
.portrait-neck,
.portrait-shirt {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.portrait-head {
  top: 16%;
  width: 38%;
  height: 41%;
  border-radius: 46% 46% 44% 44%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #704430 0%, #9b6447 46%, #8a573d 100%);
  box-shadow:
    inset 0 -12px 0 rgba(0, 0, 0, 0.08),
    inset 0 12px 0 rgba(0, 0, 0, 0.1);
}

.portrait-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 26%;
  border-radius: 46% 46% 22% 22%;
  background: #161616;
}

.portrait-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 32%;
  height: 12%;
  transform: translateX(-50%);
  border-bottom: 3px solid rgba(88, 37, 24, 0.8);
  border-radius: 0 0 60px 60px;
}

.portrait-neck {
  top: 50%;
  width: 16%;
  height: 11%;
  background: #8f5d42;
  border-radius: 0 0 18px 18px;
}

.portrait-shirt {
  bottom: 0;
  width: 78%;
  height: 44%;
  border-radius: 44% 44% 0 0;
  background:
    linear-gradient(180deg, transparent 0 34%, #d22628 34% 72%, #1d1f25 72%),
    linear-gradient(90deg, #bfc6ce 0 28%, #f03b33 28% 72%, #232833 72% 100%);
}

.portrait-shirt::before,
.portrait-shirt::after {
  content: "";
  position: absolute;
  top: 22%;
  width: 18%;
  height: 26%;
  background: #d22628;
}

.portrait-shirt::before {
  left: 32%;
  transform: skewX(-28deg);
}

.portrait-shirt::after {
  right: 32%;
  transform: skewX(28deg);
}

.dot-field {
  position: absolute;
  inset: 18% auto auto -4%;
  width: 38%;
  height: 44%;
  background-image: radial-gradient(rgba(59, 92, 188, 0.45) 1.3px, transparent 1.3px);
  background-size: 13px 13px;
  opacity: 0.65;
}

.about-grid,
.resume-layout,
.contact-section {
  display: grid;
  gap: 28px;
}

.about-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  font-weight: 700;
}

.about-copy p,
.contact-copy p,
.resume-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about-cards {
  display: grid;
  gap: 18px;
}

.info-card,
.stat-card,
.project-card,
.resume-card,
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  background: rgba(16, 27, 49, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.light-theme .info-card,
body.light-theme .stat-card,
body.light-theme .project-card,
body.light-theme .resume-card,
body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: rgba(255, 255, 255, 0.92);
}

.info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-md);
}

.icon-box {
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(45, 99, 255, 0.14);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.icon-box i,
.resume-file-icon i {
  font-size: 1.5rem;
}

.info-card h3,
.project-content h3,
.resume-card h3,
.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

.info-card p,
.project-content p,
.site-footer p,
.site-footer a,
.contact-list a,
.contact-list span {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 22px;
  border: 0;
  border-right: 1px solid var(--border);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-icon {
  font-size: 2rem;
  color: var(--accent);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.certifications-copy {
  max-width: 780px;
  margin-bottom: 26px;
}

.certifications-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.testimonials-copy {
  max-width: 760px;
  margin-bottom: 26px;
}

.testimonials-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card,
.testimonial-empty {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(16, 27, 49, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.light-theme .testimonial-card,
body.light-theme .testimonial-empty {
  background: rgba(255, 255, 255, 0.92);
}

.testimonial-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.testimonial-top,
.testimonial-person,
.testimonial-link {
  display: flex;
  align-items: center;
}

.testimonial-top {
  justify-content: space-between;
  gap: 16px;
}

.testimonial-person {
  gap: 14px;
  min-width: 0;
}

.testimonial-avatar,
.testimonial-avatar-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(45, 99, 255, 0.14);
}

.testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-bright);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.testimonial-head {
  min-width: 0;
}

.testimonial-name {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 600;
}

.testimonial-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffbf47;
  font-size: 0.88rem;
}

.testimonial-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.testimonial-link {
  gap: 9px;
  width: fit-content;
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(45, 99, 255, 0.16);
  color: #8fb0ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.light-theme .testimonial-featured {
  color: #2d63ff;
}

.testimonial-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  text-align: center;
}

.testimonial-empty i {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 2rem;
}

.testimonial-empty h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.testimonial-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.certification-card,
.certification-empty {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(16, 27, 49, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.light-theme .certification-card,
body.light-theme .certification-empty {
  background: rgba(255, 255, 255, 0.92);
}

.certification-card {
  padding: 22px;
}

.certification-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.certification-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(45, 99, 255, 0.14);
  overflow: hidden;
}

.certification-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certification-logo-fallback {
  color: var(--accent);
  font-size: 1.4rem;
}

.certification-type {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.62rem;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(45, 99, 255, 0.15);
  color: #8fb0ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.light-theme .certification-type {
  color: #2d63ff;
}

.certification-head h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 600;
}

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

.certification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.certification-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.certification-tags {
  margin-bottom: 16px;
}

.certification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.84rem;
}

.certification-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.certification-evidence a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.certification-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  text-align: center;
}

.certification-empty i {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 2rem;
}

.certification-empty h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.certification-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.project-thumb {
  height: 260px;
  padding: 14px;
  background: #eff5ff;
}

.project-thumb-image {
  padding: 0;
  overflow: hidden;
  background: #0c1427;
}

.project-thumb-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-retail {
  background: linear-gradient(180deg, #e8f8ef, #edf2f7);
}

.thumb-air {
  background: linear-gradient(180deg, #edf3ff, #f4f7fb);
}

.thumb-toolbar {
  height: 16px;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2c9665, #80c39f);
  margin-bottom: 14px;
}

.thumb-toolbar.blue {
  background: linear-gradient(90deg, #254fba, #7ea0ff);
}

.thumb-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.thumb-panels span {
  display: block;
  height: 42px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.thumb-charts {
  display: grid;
  gap: 10px;
}

.thumb-charts.retail {
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 92px 64px;
}

.thumb-charts.retail div,
.thumb-charts.air div {
  position: relative;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.thumb-charts.retail div::before,
.thumb-charts.air div::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, transparent 70%, rgba(52, 143, 102, 0.14) 70%),
    linear-gradient(90deg, rgba(28, 108, 75, 0.18) 10%, transparent 10% 20%, rgba(28, 108, 75, 0.18) 20% 30%, transparent 30% 40%, rgba(28, 108, 75, 0.18) 40% 50%, transparent 50% 60%, rgba(28, 108, 75, 0.18) 60% 70%, transparent 70%);
}

.thumb-charts.air {
  grid-template-columns: 0.9fr 1fr 1fr;
  grid-template-rows: 78px 90px;
}

.thumb-charts.air div::before {
  background:
    radial-gradient(circle at 70% 30%, rgba(41, 82, 178, 0.34) 0 18%, transparent 18%),
    linear-gradient(180deg, transparent 72%, rgba(58, 96, 196, 0.12) 72%),
    linear-gradient(90deg, rgba(45, 99, 255, 0.16) 10%, transparent 10% 20%, rgba(45, 99, 255, 0.16) 20% 30%, transparent 30% 40%, rgba(45, 99, 255, 0.16) 40% 50%, transparent 50% 60%, rgba(45, 99, 255, 0.16) 60% 70%, transparent 70%);
}

.project-content {
  padding: 18px 18px 20px;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(45, 99, 255, 0.12);
  color: #c9d7ff;
  font-size: 0.82rem;
  font-weight: 500;
}

.project-links {
  justify-content: space-between;
  margin-top: 18px;
  align-items: center;
}

.project-links a {
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  color: var(--accent-bright);
}

.project-link-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.resume-layout {
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.resume-preview {
  min-width: 0;
}

.resume-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.resume-file-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(45, 99, 255, 0.14);
  font-size: 2rem;
  margin-bottom: 18px;
}

.muted {
  color: var(--muted);
}

.resume-sidebar .button {
  width: 100%;
  margin-top: 14px;
}

.resume-paper {
  position: relative;
  min-height: 700px;
  max-height: clamp(560px, calc(100vh - 210px), 980px);
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #edf0f6;
  scrollbar-width: thin;
  scrollbar-color: #9ca8ba #d2d8e3;
}

.resume-paper::-webkit-scrollbar {
  width: 10px;
}

.resume-paper::-webkit-scrollbar-track {
  background: #d2d8e3;
  border-radius: 999px;
}

.resume-paper::-webkit-scrollbar-thumb {
  background: #9ca8ba;
  border-radius: 999px;
  border: 2px solid #d2d8e3;
}

.resume-paper-inner {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px 36px 34px;
  background: #fff;
  color: #1d2740;
  box-shadow: 0 12px 36px rgba(35, 48, 77, 0.18);
}

.resume-paper-inner h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #203054;
}

.resume-subtitle {
  margin: 6px 0 12px;
  color: #203054;
  font-size: 0.92rem;
}

.resume-rule {
  height: 2px;
  margin-bottom: 22px;
  background: #9aadc6;
}

.resume-block {
  margin-bottom: 18px;
}

.resume-block h4 {
  margin: 0 0 10px;
  color: #22375f;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.resume-block p {
  margin: 4px 0;
  color: #293755;
  font-size: 0.84rem;
  line-height: 1.45;
}

.resume-scroll {
  display: none;
}

.contact-section {
  grid-template-columns: 0.95fr 1.1fr 0.55fr;
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-list span span {
  display: inline;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text);
  outline: none;
  font-size: 0.94rem;
  min-width: 0;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.form-feedback {
  min-height: 20px;
  margin: -2px 0 2px;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-feedback.success {
  color: #71dc99;
}

.form-feedback.error {
  color: #ff9faf;
}

.repo-section {
  display: block;
  padding: 20px 18px 28px;
}

.repo-layout {
  display: grid;
  gap: 20px;
}

.repo-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.repo-main,
.repo-sidebar {
  min-width: 0;
}

.repo-files-card,
.repo-readme-card,
.repo-side-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.repo-files-head,
.repo-file-row,
.repo-readme-head {
  display: grid;
  align-items: center;
}

.repo-files-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.repo-files-head-left,
.repo-files-head-right,
.repo-file-name,
.repo-file-meta,
.repo-readme-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-files-head-left span,
.repo-files-head-right,
.repo-file-note,
.repo-file-meta,
.repo-sidebar p,
.repo-side-links div {
  color: var(--muted);
}

.repo-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 99, 255, 0.12);
  color: var(--accent-bright);
  font-size: 0.86rem;
  font-weight: 700;
}

.repo-avatar.lg {
  width: 48px;
  height: 48px;
}

.repo-file-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.repo-file-row:last-child {
  border-bottom: 0;
}

.repo-file-name a {
  color: var(--accent-bright);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.repo-file-name a:hover {
  text-decoration: underline;
}

.repo-readme-card {
  margin-top: 26px;
}

.repo-readme-head {
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
}

.repo-readme-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-readme-body {
  padding: 28px 24px 32px;
  color: var(--text);
  line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.25;
}

.markdown-body h1 { font-size: 3rem; }
.markdown-body h2 { font-size: 2.2rem; }
.markdown-body h3 { font-size: 1.6rem; }
.markdown-body p,
.markdown-body ul,
.markdown-body pre {
  margin: 0 0 22px;
}

.markdown-body ul {
  padding-left: 28px;
}

.markdown-body hr {
  margin: 28px 0;
  border: 0;
  border-top: 6px solid rgba(255, 255, 255, 0.14);
}

.markdown-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: Consolas, monospace;
  font-size: 0.92em;
}

.markdown-body pre {
  padding: 16px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: auto;
}

.repo-sidebar {
  display: grid;
  gap: 24px;
}

.repo-side-block,
.repo-side-links {
  padding: 6px 0;
}

.repo-side-block h3 {
  margin: 0;
  padding: 10px 18px 16px;
  color: var(--text);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.repo-side-block p,
.repo-side-links div,
.repo-contributor {
  padding: 18px 18px 0;
}

.repo-side-block p,
.repo-contributor span,
.repo-file-note {
  overflow-wrap: anywhere;
}

.repo-side-links {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.repo-side-links div,
.repo-contributor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.repo-not-found {
  padding: 80px 0;
  text-align: center;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8090b1;
}

.mail-illustration {
  position: relative;
  width: 210px;
  height: 190px;
  margin: 0 auto;
}

.mail-envelope {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 150px;
  height: 108px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6f8cff, #2d63ff);
  transform: skewY(-8deg) rotate(-8deg);
  box-shadow: 0 20px 30px rgba(45, 99, 255, 0.25);
}

.mail-envelope::before,
.mail-envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.mail-envelope::before {
  clip-path: polygon(0 16%, 50% 56%, 100% 16%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #8ba6ff, #3468ff);
}

.mail-envelope::after {
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08));
}

.mail-paper {
  position: absolute;
  right: 22px;
  top: 10px;
  width: 98px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #e6ecff);
  transform: rotate(8deg);
}

.mail-paper::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: #d7def4;
  box-shadow: 0 18px 0 #d7def4, 0 36px 0 #d7def4;
}

.mail-plant {
  position: absolute;
  left: 2px;
  bottom: 14px;
  width: 58px;
  height: 72px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #dce3f5, #aab3c8);
}

.mail-plant::before,
.mail-plant::after {
  content: "";
  position: absolute;
  bottom: 48px;
  width: 22px;
  height: 50px;
  border-radius: 22px 22px 0 22px;
  background: linear-gradient(180deg, #7786b5, #9da8d2);
}

.mail-plant::before {
  left: 12px;
  transform: rotate(-16deg);
}

.mail-plant::after {
  right: 10px;
  transform: rotate(24deg);
}

.site-footer {
  padding-top: 28px;
  padding-bottom: 26px;
}

.compact-footer {
  padding-top: 0;
}

.footer-grid {
  padding-top: 10px;
}

.compact-footer .footer-bottom {
  padding-top: 0;
  border-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1fr;
  gap: 28px;
  padding-bottom: 22px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-top {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
  .hero-section,
  .about-grid,
  .resume-layout,
  .contact-section,
  .footer-grid,
  .repo-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .about-copy,
  .contact-copy,
  .resume-sidebar,
  .resume-preview,
  .repo-main,
  .repo-sidebar {
    min-width: 0;
  }

  .contact-section {
    justify-items: start;
  }

  .mail-illustration {
    margin: 12px 0 0;
  }

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

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

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

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    gap: 14px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(7, 14, 27, 0.98);
  }

  body.light-theme .site-nav {
    background: rgba(255, 255, 255, 0.98);
  }

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

  .header-actions {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    gap: 10px;
  }

  .header-actions .button-download {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
  }

  .hero-section {
    gap: 26px;
  }

  .projects-grid,
  .stats-grid,
  .form-row,
  .certifications-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .repo-file-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .repo-files-head {
    grid-template-columns: 1fr;
  }

  .repo-files-head-left,
  .repo-files-head-right {
    flex-wrap: wrap;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .footer-grid,
  .repo-sidebar {
    grid-template-columns: 1fr;
  }

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

  .social-links a,
  .footer-socials a {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-shell {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    margin: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 10px;
  }

  .page-section {
    min-height: auto;
  }

  .site-header {
    align-items: center;
  }

  .brand {
    font-size: 1.6rem;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .role {
    font-size: 1.12rem;
  }

  .markdown-body h1 {
    font-size: 2.15rem;
  }

  .markdown-body h2 {
    font-size: 1.6rem;
  }

  .lead,
  .about-copy p,
  .contact-copy p,
  .resume-card p {
    font-size: 0.95rem;
  }

  .button,
  .social-links a {
    width: 100%;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .button-download {
    width: auto;
    flex: 0 0 auto;
  }

  .portrait-ring {
    width: min(100%, 350px);
  }

  .project-thumb {
    height: 210px;
  }

  .hero-actions,
  .social-links,
  .project-links,
  .footer-socials,
  .contact-list {
    gap: 10px;
  }

  .info-card,
  .project-content,
  .resume-card,
  .certification-card,
  .testimonial-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .info-card {
    gap: 14px;
  }

  .stats-grid {
    margin-top: 22px;
  }

  .stat-card {
    padding: 20px 18px;
  }

  .contact-section {
    gap: 22px;
  }

  .mail-illustration {
    width: 180px;
    height: 160px;
  }

  .repo-section {
    padding: 18px 0 24px;
  }

  .repo-files-head,
  .repo-file-row,
  .repo-readme-head,
  .repo-readme-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .repo-side-block h3,
  .repo-side-block p,
  .repo-side-links div,
  .repo-contributor {
    padding-left: 14px;
    padding-right: 14px;
  }

  .resume-paper {
    padding: 12px;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .resume-paper-inner {
    padding: 20px;
  }

  .resume-paper-inner h3 {
    font-size: 1.5rem;
  }

  .resume-block p {
    font-size: 0.82rem;
  }

  .footer-grid {
    gap: 22px;
  }

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

@media (max-width: 480px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-actions {
    gap: 8px;
  }

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

  .header-actions .button-download {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .role {
    font-size: 1rem;
  }

  .lead,
  .about-copy p,
  .contact-copy p,
  .resume-card p,
  .testimonials-intro,
  .certifications-intro {
    font-size: 0.92rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form textarea {
    min-height: 150px;
  }

  .testimonial-top,
  .testimonial-person {
    align-items: flex-start;
  }

  .testimonial-top {
    flex-direction: column;
  }

  .testimonial-featured {
    align-self: flex-start;
  }

  .repo-avatar.lg {
    width: 42px;
    height: 42px;
  }
}
