:root {
  --bg: #f5f7fb;
  --white: #fff;
  --text: #0b1224;
  --muted: #68738a;
  --line: #dce3ef;
  --blue: #245cff;
  --navy: #111a38;
  --shadow: 0 25px 75px rgba(16, 31, 69, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, #e9efff 0, transparent 28rem),
    radial-gradient(circle at 0 45%, #edf1ff 0, transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
}

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

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

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

.glow-a {
  width: 250px;
  height: 250px;
  right: -90px;
  top: 25%;
}

.glow-b {
  width: 220px;
  height: 220px;
  left: -100px;
  bottom: 10%;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 227, 239, 0.7);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font: 700 12px "Space Grotesk";
}

.links {
  display: flex;
  gap: 30px;
  color: #59647a;
  font-size: 13px;
  font-weight: 600;
}

.links a:hover {
  color: var(--blue);
}

.mLinksRow { 
 display: flex; 
 flex-direction: row;
 gap: 10px
}

.mLinksColumn {
  display: flex; 
  flex-direction: column;
}

.mLinksColumnGap {
  display: flex; 
  flex-direction: column;
  gap: 10px
}

.nav-cv {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  min-height: 680px;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #dbe3f4;
  border-radius: 99px;
  background: #fff9;
  color: #59647a;
  font-size: 11px;
  font-weight: 700;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25b87a;
  box-shadow: 0 0 0 4px #25b87a1c;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(54px, 7vw, 84px);
  margin: 24px 0;
}

h1 em {
  font-style: normal;
  color: var(--blue);
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero .actions {
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 13px 30px #245cff35;
}

.secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 55px;
}

.stats div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stats b {
  font: 700 20px "Space Grotesk";
}

.stats span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.hero-art {
  min-height: 480px;
  display: grid;
  place-items: center;
  position: relative;
}

.ring {
  position: absolute;
  border: 1px solid #d8e1f2;
  border-radius: 50%;
}

.r1 {
  width: 390px;
  height: 390px;
  transform: scaleX(1.12) rotate(-18deg);
}

.r2 {
  width: 470px;
  height: 280px;
  transform: rotate(28deg);
  border-color: #e4e9f4;
}

.dev-card {
  position: relative;
  width: min(410px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: #ffffffe6;
  border: 1px solid #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.top {
  display: flex;
  justify-content: space-between;
  color: #a0a9ba;
  font-size: 11px;
}

.pill {
  padding: 6px 9px;
  border-radius: 99px;
  background: #eaf8f2;
  color: #267457;
  font-weight: 700;
}

.avatar {
  width: 72px;
  height: 72px;
  margin: 32px 0 16px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, #172449, #315de1);
  color: #fff;
  font: 700 22px "Space Grotesk";
  box-shadow: 0 15px 30px #245cff2e;
}

.dev-card h3 {
  font-size: 24px;
  margin: 0;
}

.dev-card > p {
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.code {
  overflow: hidden;
  border-radius: 15px;
  background: #10172b;
}

.dots {
  padding: 10px 12px;
  border-bottom: 1px solid #ffffff12;
}

.dots i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68738a;
  margin-right: 4px;
}

.code pre {
  margin: 0;
  padding: 13px 18px 16px;
  color: #dbe1f0;
  font: 12px/1.75 ui-monospace, monospace;
}

.code pre span {
  color: #a992ff;
}

.code pre b {
  color: #76d8a9;
  font-weight: 400;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dev-card .tags {
  margin-top: 15px;
}

.tags span,
.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: #fbfcff;
  border-radius: 8px;
  color: #58647a;
  font-size: 10px;
  font-weight: 700;
}

.section {
  padding-top: 105px;
}

.heading {
  display: grid;
  grid-template-columns: 1fr 370px;
  align-items: end;
  gap: 50px;
  margin-bottom: 40px;
}

.heading small,
.contact-card > div > small,
.entry > small,
.modal-body > small,
.modal-cols small {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 800;
}

.heading h2 {
  font-size: clamp(38px, 5vw, 56px);
  margin: 10px 0 0;
}

.heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.project {
  min-height: 310px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffffb8;
  box-shadow: 0 10px 35px #14234b0b;
  cursor: pointer;
  transition: 0.25s;
}

.project:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: #c7d2eb;
}

.thumb {
  height: 148px;
  border-radius: 17px;
  overflow: hidden;
  position: relative;
  padding: 16px;
  display: flex;
  align-items: flex-end;
}

.thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ffffff1c, transparent 55%);
}

.t-blue {
  background: linear-gradient(135deg, #121c3b, #315de1);
}

.t-purple {
  background: linear-gradient(135deg, #241a42, #6b54c9);
}

.t-slate {
  background: linear-gradient(135deg, #17243d, #5f75d8);
}

.t-green {
  background: linear-gradient(135deg, #102f32, #3b8f88);
}

.t-orange {
  background: linear-gradient(135deg, #42251a, #c97842);
}

.t-dark {
  background: linear-gradient(135deg, #121827, #3c4c67);
}

.symbol {
  position: relative;
  z-index: 2;
  color: #fff;
  font: 700 40px "Space Grotesk";
}

.mini-ui {
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 14px;
  width: 45%;
  height: 80%;
  padding: 8px;
  border: 1px solid #ffffff2d;
  border-radius: 11px;
  background: #ffffff17;
}

.mini-ui i {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #ffffff45;
  margin-bottom: 6px;
}

.mini-ui i:nth-child(2) {
  width: 75%;
}

.mini-ui i:nth-child(3) {
  width: 88%;
}

.mini-ui i:nth-child(4) {
  width: 58%;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.type {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.year {
  color: #8993a6;
  font-size: 10px;
}

.project h3 {
  font-size: 22px;
  margin: 7px 0;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.glass {
  background: #ffffffbd;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px #14234b0d;
  backdrop-filter: blur(18px);
}

.about-main {
  padding: 42px;
  border-radius: 24px;
}

.quote {
  color: var(--blue);
  font: 700 68px/1 "Space Grotesk";
}

.about-main .big {
  font: 600 22px/1.48 "Space Grotesk";
  letter-spacing: -0.025em;
}

.about-main p:not(.big) {
  color: var(--muted);
  font-size: 13px;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info {
  padding: 21px;
  border-radius: 19px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
}

.info > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf2ff;
  color: var(--blue);
  font-weight: 700;
}

.info h3 {
  margin: 1px 0 5px;
  font-size: 17px;
}

.info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.timeline article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
}

.timeline time {
  padding-top: 25px;
  color: var(--blue);
  font: 700 11px "Space Grotesk";
}

.entry {
  padding: 24px 28px;
  border-radius: 19px;
}

.entry h3 {
  font-size: 21px;
  margin: 6px 0 2px;
}

.entry label {
  color: var(--muted);
  font-size: 11px;
}

.entry p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}

.contact {
  padding-bottom: 25px;
}

.contact-card {
  padding: 48px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, #ffffffe8, #f0f4ffca);
}

.contact-card h2 {
  font-size: 44px;
  margin: 9px 0;
}

.contact-card p {
  max-width: 580px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 2px 10px;
  color: #8a93a7;
  font-size: 10px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #080e1e7a;
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(850px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fbfcff;
  border-radius: 28px;
  box-shadow: 0 35px 100px #050d234d;
  transform: translateY(15px) scale(0.98);
  transition: 0.2s;
}

.backdrop.open .modal {
  transform: none;
}

.close {
  position: absolute;
  right: 17px;
  top: 17px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #0c122459;
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

.modal-visual {
  height: 250px;
}

.modal-visual .thumb {
  height: 100%;
  border-radius: 0;
}

.modal-body {
  padding: 34px 38px 40px;
}

.modal-body h2 {
  font-size: 40px;
  margin: 8px 0 2px;
}

.modal-body label {
  color: #7d879b;
  font-size: 11px;
}

.modal-desc {
  color: #59657d;
  font-size: 14px;
  line-height: 1.75;
  margin-top: 20px;
}

.modal-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.modal-cols > div > small {
  display: block;
  color: #7d879b;
  margin-bottom: 10px;
}

.modal-cols p {
  margin: 0;
  color: #59657d;
  font-size: 12px;
}

.modal-links {
  margin-top: 25px;
}

.muted {
  color: #8791a5;
  font-size: 11px;
  margin-left: 5px;

}

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

  .hero-art {
    min-height: 420px;
  }

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

  .heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

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

@media (max-width: 650px) {
  .wrap {
    width: min(100% - 30px, 1160px);
  }

  .links {
    display: none;
  }

  .hero {
    padding: 55px 0 40px;
    min-height: auto;
  }

  h1 {
    font-size: 53px;
  }

  .lead {
    font-size: 16px;
  }

  .stats {
    gap: 18px;
    margin-top: 40px;
  }

  .hero-art {
    min-height: 370px;
  }

  .dev-card {
    transform: none;
    padding: 19px;
  }

  .r1 {
    width: 300px;
    height: 300px;
  }

  .r2 {
    width: 340px;
    height: 210px;
  }

  .section {
    padding-top: 75px;
  }

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

  .about-main {
    padding: 28px;
  }

  .about-main .big {
    font-size: 20px;
  }

  .timeline article {
    grid-template-columns: 30px 1fr;
    gap: 15px;
  }

  .timeline time {
    font-size: 0;
  }

  .timeline time:after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 13px 0 0 10px;
    border-radius: 50%;
    background: var(--blue);
  }

  .contact-card {
    padding: 30px;
  }

  .contact-card h2 {
    font-size: 35px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }

  .modal-body {
    padding: 28px 22px 30px;
  }

  .modal-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-body h2 {
    font-size: 33px;
  }
}
