:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #13223f;
  --muted: #4a5f83;
  --line: rgba(26, 54, 117, 0.16);
  --accent: #0a78ff;
  --accent-2: #ff8b3d;
  --nav-active-bg: rgba(10, 120, 255, 0.2);
  --nav-active-text: #103f86;
  --shadow: 0 16px 44px rgba(18, 38, 84, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101824;
  --surface: rgba(21, 33, 51, 0.82);
  --surface-strong: rgba(22, 35, 54, 0.96);
  --text: #e8eefc;
  --muted: #afbdd7;
  --line: rgba(159, 182, 224, 0.2);
  --accent: #72b4ff;
  --accent-2: #ffb370;
  --nav-active-bg: rgba(114, 180, 255, 0.38);
  --nav-active-text: #ffffff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #101824;
    --surface: rgba(21, 33, 51, 0.82);
    --surface-strong: rgba(22, 35, 54, 0.96);
    --text: #e8eefc;
    --muted: #afbdd7;
    --line: rgba(159, 182, 224, 0.2);
    --accent: #72b4ff;
    --accent-2: #ffb370;
    --nav-active-bg: rgba(114, 180, 255, 0.38);
    --nav-active-text: #ffffff;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, rgba(68, 146, 255, 0.18), transparent 38%),
    radial-gradient(circle at 95% 0%, rgba(255, 139, 61, 0.16), transparent 30%), var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.015em;
}

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

.section-space {
  padding: 6.8rem 0 1.3rem;
}

.nav-shell {
  margin-top: 0.75rem;
}

.nav-shell .container {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(17, 35, 80, 0.12);
  padding-block: 0.35rem;
}

.navbar-brand {
  color: var(--text);
}

.nav-link {
  font-weight: 700;
  color: var(--muted);
  border-radius: 10px;
  padding: 0.34rem 0.65rem !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--nav-active-text);
  background: var(--nav-active-bg);
  box-shadow: inset 0 0 0 1px rgba(125, 178, 255, 0.35);
}

.navbar-toggler {
  border: 1px solid var(--line);
}

.offcanvas {
  background: var(--surface-strong);
}

.btn {
  border-radius: 12px;
}

.btn-cta {
  border: none;
  background: linear-gradient(130deg, var(--accent), #3269ff);
  color: #fff;
  font-weight: 700;
}

.btn-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-surface {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
}

.btn-outline-surface:hover {
  border-color: rgba(10, 120, 255, 0.4);
  color: var(--accent);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 88px;
}

.lang-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--nav-active-bg);
  box-shadow: inset 0 0 0 1px rgba(125, 178, 255, 0.35);
  transition: transform 0.22s ease;
}

.lang-switch.is-en .lang-switch__thumb {
  transform: translateX(100%);
}

.lang-switch__btn {
  position: relative;
  z-index: 1;
  width: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.38rem 0.1rem;
}

.lang-switch__btn.active {
  color: var(--nav-active-text);
}

.theme-cycle-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-cycle-btn:hover {
  color: var(--nav-active-text);
  border-color: rgba(125, 178, 255, 0.45);
  background: var(--nav-active-bg);
}

.theme-cycle-btn i {
  font-size: 0.94rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.18;
  margin: 0;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.business-card {
  padding: 0.9rem;
}

.business-card__top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.business-card__avatar {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center 15%;
  flex: 0 0 auto;
}

.business-card__text {
  min-width: 0;
}

.business-card__label {
  margin: 0 0 0.18rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.business-card__bottom {
  margin-top: 0.75rem;
  padding-top: 0.62rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.business-card__link {
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-strong);
}

.business-card__link:hover {
  border-color: rgba(10, 120, 255, 0.45);
  color: var(--accent);
}

.search-list {
  margin: 0;
  padding-left: 1rem;
}

.search-list li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.state-card {
  background: linear-gradient(150deg, var(--surface-strong), rgba(10, 120, 255, 0.08));
}

.section-head h2 {
  font-size: clamp(1.28rem, 2vw, 1.95rem);
  margin-bottom: 0.4rem;
}

.metric {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  margin: 0;
  color: var(--accent);
}

.strength-card {
  position: relative;
  overflow: hidden;
}

.strength-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.skill-block__title {
  margin-bottom: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.36rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(10, 120, 255, 0.5);
  color: var(--accent);
}

.chip--link {
  text-decoration: none;
  cursor: pointer;
}

.chip__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.chip__fallback {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
}

.chip--expert {
  border-color: rgba(14, 121, 255, 0.45);
}

.chip--advanced {
  border-color: rgba(255, 139, 61, 0.4);
}

.chip--basic {
  border-color: rgba(120, 140, 180, 0.42);
}

.project-card {
  position: relative;
  overflow: hidden;
}

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

.project-time {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.project-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.tags {
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline-line {
  position: relative;
  padding-left: 1.6rem;
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.38rem;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(255, 139, 61, 0.65));
}

.timeline-item {
  position: relative;
  margin-bottom: 0.9rem;
}

.timeline-dot {
  position: absolute;
  left: -1.58rem;
  top: 1.34rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 120, 255, 0.18);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1rem 0 1.2rem;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

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

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(65px);
  z-index: -1;
}

.glow-a {
  width: 300px;
  height: 300px;
  top: -120px;
  right: -90px;
  background: rgba(10, 120, 255, 0.2);
}

.glow-b {
  width: 270px;
  height: 270px;
  left: -90px;
  bottom: -100px;
  background: rgba(255, 139, 61, 0.18);
}

.modal-content {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.tech-hero__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tech-hero__title-wrap .chip__icon,
.tech-hero__title-wrap .chip__fallback {
  width: 22px;
  height: 22px;
  font-size: 1rem;
}

.tech-link-btn {
  text-decoration: none;
}

@media (max-width: 991px) {
  .section-space {
    padding-top: 6.1rem;
  }

  .nav-shell .container {
    border-radius: 12px;
  }
}

@media (max-width: 575px) {
  .section-space {
    padding-top: 5.9rem;
  }

  .surface-card {
    padding: 0.95rem;
  }

  .business-card__top {
    gap: 0.7rem;
  }

  .business-card__avatar {
    width: 66px;
    height: 66px;
  }
}
