* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(47, 123, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at 72% -14%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(1000px 740px at 52% 120%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--bg);
  line-height: 1.6;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

main {
  flex: 1;
  padding: 1px 0 72px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--container-width), 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  backdrop-filter: saturate(160%) blur(14px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand span {
  display: none;
}

.logo {
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  opacity: 0.9;
}

.nav-link:hover {
  opacity: 0.65;
  color: var(--text);
}

.chevron {
  font-size: 10px;
  display: inline-block;
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-item.open .chevron,
.nav-item:hover .chevron,
.mobile-item.open .chevron {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: grid;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 35;
}

.nav-item.open .submenu,
.nav-item:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  border: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.submenu a:hover {
  background: var(--glass);
}

.hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  transition: 0.3s ease-in-out;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0;
  background: var(--text);
  border-radius: 2px;
  opacity: 1;
  transition: 0.2s ease-in-out;
  top: 0;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
  top: 6px;
}

.hamburger-icon span:nth-child(4) {
  top: 12px;
}

.hamburger-icon.open span:nth-child(1) {
  top: 6px;
  width: 0%;
  left: 50%;
}

.hamburger-icon.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger-icon.open span:nth-child(4) {
  top: 6px;
  width: 0%;
  left: 50%;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-soft);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 29;
}

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

.mobile-menu .container {
  display: grid;
  gap: 12px;
}

.mobile-link {
  padding: 8px 0;
  font-size: 16px;
  color: var(--text);
}

.mobile-item {
  display: grid;
  gap: 6px;
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.mobile-submenu {
  display: none;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  gap: 8px;
}

.mobile-item.open .mobile-submenu {
  display: grid;
}

.mobile-submenu a {
  padding: 6px 0;
  font-size: 15px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: transform 0.12s ease, border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--glass-strong);
}

.btn.primary {
  background: transparent;
  border-color: rgba(47, 123, 255, 0.8);
  box-shadow: none;
}

.btn.primary:hover {
  border-color: rgba(47, 123, 255, 0.9);
  background: var(--glass);
}

.btn.ghost {
  background: transparent;
  box-shadow: none;
}

.page {
  display: grid;
  gap: 18px;
}

.page section {
  padding: 36px 0 32px;
}

.page .panel {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.page .article figure {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

section {
  padding: var(--section-spacing) 0;
}

.hero {
  padding: 96px 0 60px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

h1 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  margin: 14px 0 12px;
  letter-spacing: 0.15px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 0 0 20px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.stat {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 16px;
  min-width: 170px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.stat .num {
  font-size: 18px;
  font-weight: 700;
}

.stat .label {
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hero-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.mini {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.mini .t {
  font-weight: 600;
  font-size: 14px;
}

.mini .d {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.orb {
  position: absolute;
  right: -110px;
  top: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(47, 123, 255, 0.55), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.25), transparent 55%);
  filter: blur(26px);
  opacity: 0.75;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.2px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 123, 255, 0.35);
}

.card h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.li b {
  color: var(--text);
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(47, 123, 255, 0.7);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.step .n {
  font-size: 12px;
  color: var(--muted);
}

.step .t {
  font-weight: 700;
  margin-top: 4px;
}

.step .d {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
}

.cta {
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(47, 123, 255, 0.18), transparent 58%),
    radial-gradient(900px 520px at 100% 100%, rgba(255, 255, 255, 0.08), transparent 58%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
  padding: 34px 0;
}

.cta-box {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

input:focus,
textarea:focus {
  border-color: rgba(47, 123, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.2);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.note {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

footer {
  min-height: var(--footer-height);
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 28;
  margin-top: auto;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
  align-items: center;
}

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

.foot a:hover {
  color: var(--text);
}

.footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-switch {
  display: flex;
  align-items: center;
  margin-left: 14px;
}

.mobile-switch {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

/* Dark/Light switch (clouds) */
:root {
  --switch-width: 72px;
  --switch-height: 28px;
  --switch-round: 20px;
  --switch-padding-x: 4px;
  --switch-bg: linear-gradient(to bottom, #73bbff, #a2d1fd);
  --switch-dark-bg: linear-gradient(to top, #2b3347, #181d27);
  --border-width: 2px;
  --border-gradient: linear-gradient(to bottom, #a2d1fd, #cde7ff);
  --border-dark-gradient: linear-gradient(to bottom, #000000, #6c7384);
  --sunmoon-size: 20px;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--switch-width);
  height: var(--switch-height);
  border-radius: var(--switch-round);
  cursor: pointer;
  transition: all 0.4s ease;
  background: var(--switch-bg);
  overflow: hidden;
}

.switch::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--switch-round);
  opacity: 0;
  background: var(--switch-dark-bg);
  transition: all 0.4s ease;
}

[data-theme="dark"] .switch::before {
  opacity: 1;
}

.switch .border {
  position: absolute;
  top: calc(var(--border-width) * -1);
  left: calc(var(--border-width) * -1);
  width: calc(100% + var(--border-width) * 2);
  height: calc(100% + var(--border-width) * 2);
  border-radius: var(--switch-round);
  background: var(--border-gradient);
  z-index: -1;
  transition: all 0.4s ease;
}

.switch .border::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--switch-round);
  background: var(--border-dark-gradient);
  opacity: 0;
  transition: all 0.4s ease;
}

[data-theme="dark"] .switch .border::after {
  opacity: 1;
}

.switch input {
  display: none;
}

.sunmoon {
  position: absolute;
  width: var(--sunmoon-size);
  height: var(--sunmoon-size);
  border-radius: 50%;
  transition: all 0.5s ease;
  left: var(--switch-padding-x);
  z-index: 1;
  background-color: #ffc187;
  box-shadow: 0px 0px 11.7px 0px #ffc187, 0px 0px 20px 0px #ffc18768, -2px -2px 5px 0px #ffab5c inset;
}

[data-theme="dark"] .sunmoon {
  left: calc(100% - var(--sunmoon-size) - var(--switch-padding-x));
  background-color: #dee5f3;
  box-shadow: 0px 0px 51.7px 0px #dee5f3;
}

.darkside {
  position: absolute;
  top: 0.8px;
  left: 0.8px;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background-color: #ffc187;
  transition: all 0.5s ease;
}

[data-theme="dark"] .darkside {
  background-color: #565c6b;
}

.clouds {
  border-radius: var(--switch-round);
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 60%;
  transition: all 0.5s ease;
}

.cloud-1 { bottom: -55%; left: 0; }
.cloud-2 { bottom: -45%; left: 25px; }
.cloud-3 { bottom: -40%; right: 0px; }
.cloud-4 { bottom: -16%; right: -25px; }

[data-theme="dark"] .cloud-1 { bottom: -35%; left: -110px; }
[data-theme="dark"] .cloud-2 { bottom: -15%; left: -110px; transition: all 0.7s ease; }
[data-theme="dark"] .cloud-3 { bottom: -15%; right: -110px; }
[data-theme="dark"] .cloud-4 { bottom: -5%; right: -110px; transition: all 0.7s ease; }

.stars {
  position: absolute;
  top: 150%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.5s ease;
}

[data-theme="dark"] .stars {
  top: 50%;
}

.article {
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}

.article h2,
.article h3 {
  margin: 12px 0 4px;
  color: var(--text);
}

.article p {
  margin: 0;
}

.article ul,
.article ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.article li ul {
  margin-top: 6px;
}

.article figure {
  margin: 6px 0 0;
}

.article img {
  border-radius: var(--radius-sm);
}

.article figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.gallery-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.gallery-header h2 {
  margin: 2px 0 4px;
}

.gallery-header p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-strong);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--glass);
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-label {
  padding: 10px 12px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.gallery-meta {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

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

.gallery-credit {
  color: var(--muted);
  font-size: 12px;
}

.gallery-tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 12px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 123, 255, 0.25);
  white-space: nowrap;
}

.gallery-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-body {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-strong);
  max-width: min(1100px, 100%);
  width: min(1100px, 100%);
  display: grid;
  gap: 10px;
  position: relative;
}

.lightbox img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.lightbox figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

body.lightbox-open {
  overflow: hidden;
}

.cv-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: start;
}

.photo-frame {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  border: 1px dashed var(--line);
  background: var(--glass);
  text-align: center;
}

.photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.timeline-item .meta {
  color: var(--muted);
  font-size: 13px;
}

.timeline-item .title {
  font-weight: 700;
  margin-top: 4px;
}

.timeline-item .org {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.skills-grid .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.skills-grid ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 780px) {
  .cv-hero {
    grid-template-columns: 1fr;
  }
}

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

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

.table-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.data-table th {
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
}

.data-table td {
  color: var(--muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .nav-right {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
  }

  .nav-switch {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: calc(var(--footer-height) + 70px);
  }

  .hero {
    padding: 76px 0 48px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

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

  .stat {
    min-width: unset;
    width: 100%;
  }

  .btn {
    font-size: 13px;
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
