:root {
  --bg: #070a14;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.42);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --accent: #7c5cff;
  --accent-2: #26d0ff;
  --ring: rgba(124, 92, 255, 0.35);
  --max: 1120px;
}

body.theme-light {
  --bg: #f5f7ff;
  --panel: rgba(15, 23, 42, 0.03);
  --panel-2: rgba(15, 23, 42, 0.06);
  --border: rgba(148, 163, 184, 0.32);
  --text: #0f172a;
  --muted: #4b5563;
  --faint: #9ca3af;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 900px at 20% 10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(38, 208, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(124, 92, 255, 0.12), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

body.theme-light {
  background: radial-gradient(1000px 720px at 10% 0%, rgba(124, 92, 255, 0.15), transparent 55%),
    radial-gradient(900px 700px at 90% 0%, rgba(38, 208, 255, 0.18), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(124, 92, 255, 0.06), transparent 60%),
    var(--bg);
}

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

a:hover {
  opacity: 0.92;
}

strong {
  color: rgba(255, 255, 255, 0.92);
}

body.theme-light strong {
  color: #0f172a;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 20, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .topbar {
  background: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

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

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.08);
}

.brand__text {
  color: rgba(255, 255, 255, 0.9);
}

body.theme-light .brand__text {
  color: #0f172a;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 500;
  color: var(--muted);
}

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

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .nav a:hover {
  background: rgba(148, 163, 184, 0.16);
}

.main {
  padding: 28px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding-top: 26px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}

body.theme-light .eyebrow {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(148, 163, 184, 0.4);
}

.hero__title {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.accent {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(124, 92, 255, 0.95) 55%, rgba(38, 208, 255, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(38, 208, 255, 0.85));
  color: rgba(10, 12, 22, 0.96);
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(124, 92, 255, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.theme-light .btn--ghost {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.btn--sm {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

.pill__k {
  color: var(--faint);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.theme-light .card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.32);
}

.card--profile {
  position: relative;
}

.card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(38, 208, 255, 0.12);
  border: 1px solid rgba(38, 208, 255, 0.22);
  color: rgba(217, 252, 255, 0.92);
  font-weight: 600;
  font-size: 12px;
}

.avatar {
  padding: 28px 22px 0;
  display: grid;
  place-items: center;
}

.avatar__ring {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.18), transparent 55%),
    conic-gradient(from 180deg, rgba(124, 92, 255, 0.9), rgba(38, 208, 255, 0.85), rgba(124, 92, 255, 0.9));
  filter: blur(0px);
  box-shadow: 0 0 0 10px rgba(124, 92, 255, 0.08);
}

.avatar__core {
  position: relative;
  margin-top: -90px;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.9);
}

.card__body {
  padding: 12px 20px 20px;
}

.card__title {
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card__rows {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .card__rows {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row__k {
  color: var(--faint);
  font-weight: 600;
  font-size: 13px;
}

.row__v {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 13px;
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.stat {
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .stat {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

.stat__n {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.stat__t {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

.section {
  margin-top: 52px;
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 78ch;
}

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

.work {
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.work:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-light .work {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

body.theme-light .work:hover {
  background: #f9fafb;
  border-color: rgba(99, 102, 241, 0.6);
}

.work__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.24);
  color: rgba(235, 231, 255, 0.92);
  font-weight: 700;
  font-size: 12px;
}

.work__date {
  color: var(--faint);
  font-weight: 600;
  font-size: 12px;
}

.work__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.work__desc {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.work__links {
  display: flex;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 13px;
}

.work__links a {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

body.theme-light .work__links a {
  background: rgba(249, 250, 251, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 13px;
}

body.theme-light .chip {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

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

.about__card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .about__card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

.about__card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.about__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(38, 208, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.theme-light .cta {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.13), rgba(38, 208, 255, 0.09));
  border-color: rgba(148, 163, 184, 0.32);
}

.cta__title {
  margin: 0;
  letter-spacing: -0.02em;
}

.cta__sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section--social {
  margin-top: 42px;
}

.social {
  border-radius: 22px;
  padding: 20px 18px 18px;
  background: linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.2),
      rgba(38, 208, 255, 0.08)
    ),
    rgba(7, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.theme-light .social {
  background: linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.09),
      rgba(38, 208, 255, 0.05)
    ),
    #ffffff;
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

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

.social__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 20, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  transition: transform 140ms ease, box-shadow 140ms ease,
    border-color 140ms ease, background 140ms ease;
}

.social__item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(7, 10, 20, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

body.theme-light .social__item {
  border-color: rgba(148, 163, 184, 0.4);
  background: #f9fafb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

body.theme-light .social__item:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.7);
}

.social__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.social__svg {
  width: 70%;
  height: 70%;
  display: block;
}

.social__label {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

body.theme-light .social__label {
  color: #111827;
}

.social__item--ig .social__icon {
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #fdf497 0, #fdf497 18%, #fd5949 45%, #d6249f 62%, #285aeb 95%);
}

.social__item--tg .social__icon {
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #0088cc);
}

.social__item--gh .social__icon {
  border-radius: 999px;
  background: #0f172a;
}

.social__item--li .social__icon {
  border-radius: 12px;
  background: linear-gradient(135deg, #0e76a8, #00a0dc);
}

.footer {
  padding: 26px 0 36px;
  color: var(--faint);
}

body.theme-light .footer {
  color: #6b7280;
}

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

body.theme-light .footer__inner {
  border-top-color: rgba(148, 163, 184, 0.4);
}

.footer__sep {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}

body.theme-light .footer__sep {
  background: rgba(148, 163, 184, 0.8);
}

.theme-toggle {
  margin-left: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: none;
  fill: rgba(248, 250, 252, 0.9);
}

.theme-toggle__icon--sun {
  display: none;
}

body.theme-light .theme-toggle {
  background: rgba(248, 250, 252, 0.85);
  border-color: rgba(148, 163, 184, 0.7);
}

body.theme-light .theme-toggle svg {
  fill: #0f172a;
}

body.theme-light .theme-toggle__icon--moon {
  display: none;
}

body.theme-light .theme-toggle__icon--sun {
  display: inline-flex;
}

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

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

@media (max-width: 680px) {
  .nav a:not(.btn) {
    display: none;
  }

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