/* Premium light-theme layer — preserves the original structure and behavior. */
:root {
  --bg-primary: #f7f6f2;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: #e5e7eb;
  --border-hover: #cfd4dc;
  --text-primary: #14181f;
  --text-secondary: #56606f;
  --text-muted: #7b8491;
  --cyan: #2563eb;
  --cyan-glow: rgba(37, 99, 235, 0.2);
  --purple: #7857d8;
  --purple-glow: rgba(120, 87, 216, 0.18);
  --green: #15966d;
  --orange: #d97706;
  --gradient-cyan: linear-gradient(135deg, #2563eb, #1847c7);
  --gradient-purple: linear-gradient(135deg, #7857d8, #5b3db7);
  --radius: 26px;
  --radius-sm: 14px;
  --shadow: 0 20px 70px rgba(28, 36, 49, 0.08);
  --shadow-glow-cyan: 0 22px 60px rgba(37, 99, 235, 0.12);
  --shadow-glow-purple: 0 22px 60px rgba(120, 87, 216, 0.12);
  --premium-blue: #3156e8;
  --premium-ink: #161a21;
  --premium-cream: #f7f6f2;
  --premium-line: rgba(20, 24, 31, 0.1);
}

html {
  scroll-padding-top: 88px;
}

body {
  background:
    radial-gradient(circle at 4% 4%, rgba(236, 191, 115, 0.12), transparent 26rem),
    radial-gradient(circle at 94% 8%, rgba(49, 86, 232, 0.08), transparent 32rem),
    var(--premium-cream);
  color: var(--text-primary);
  min-height: 100vh;
}

body::before {
  background-image:
    linear-gradient(rgba(20, 24, 31, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 34rem);
}

body::after {
  display: none;
}

::selection {
  color: #fff;
  background: var(--premium-blue);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--premium-ink);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: 1280px;
  padding-inline: 32px;
}

header {
  background: rgba(247, 246, 242, 0.82);
  border-bottom-color: rgba(20, 24, 31, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nav {
  height: 82px;
}

.logo {
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--premium-ink);
  border: 1px solid var(--premium-ink);
  box-shadow: 0 10px 25px rgba(20, 24, 31, 0.15);
}

.logo:hover .logo-icon {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
  box-shadow: 0 12px 28px rgba(49, 86, 232, 0.2);
  transform: rotate(-3deg);
}

.logo-text {
  color: var(--premium-ink);
  font-size: 13px;
  letter-spacing: 2.2px;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  color: #59616d;
  font-size: 11px;
  letter-spacing: 1.15px;
  padding: 10px 15px;
}

.nav-links a:hover {
  color: var(--premium-ink);
  background: rgba(20, 24, 31, 0.045);
}

.nav-links a:not(.btn-contact) {
  position: relative;
}

.nav-links a:not(.btn-contact)::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--premium-blue);
  box-shadow: 0 0 10px rgba(49, 86, 232, 0.38);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.btn-contact).is-active {
  color: var(--premium-ink);
  background: rgba(49, 86, 232, 0.06);
}

.nav-links a:not(.btn-contact).is-active::after {
  right: calc(50% - 11px);
  left: calc(50% - 11px);
}

.nav-links .btn-contact.is-active {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
  box-shadow: 0 10px 25px rgba(49, 86, 232, 0.2);
}

.nav-links .btn-contact {
  color: #fff;
  background: var(--premium-ink);
  border: 1px solid var(--premium-ink);
  box-shadow: none;
  margin-left: 10px;
  padding-inline: 19px;
}

.nav-links .btn-contact:hover {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
  box-shadow: 0 10px 25px rgba(49, 86, 232, 0.18);
}

.lang-toggle {
  color: var(--premium-ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 24, 31, 0.12);
  box-shadow: 0 5px 18px rgba(20, 24, 31, 0.05);
}

.lang-toggle:hover {
  color: var(--premium-ink);
  background: #fff;
  border-color: rgba(49, 86, 232, 0.32);
}

.nav-toggle span {
  background: var(--premium-ink);
}

/* Hero */
.hero {
  padding: 76px 0 54px;
  text-align: left;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(540px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 28px;
  color: #59616d;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(20, 24, 31, 0.1);
  box-shadow: 0 8px 24px rgba(20, 24, 31, 0.05);
}

.hero-badge .dot {
  background: #16a270;
  box-shadow: 0 0 0 4px rgba(22, 162, 112, 0.12);
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 25px;
  color: var(--premium-ink);
  font-size: clamp(50px, 5.45vw, 76px);
  font-weight: 760;
  line-height: 0.99;
  letter-spacing: -4.1px;
}

.hero h1 .gradient-text {
  color: var(--premium-blue);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero p {
  max-width: 590px;
  margin: 0;
  color: #5d6673;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 31px;
}

.btn-primary,
.btn-cv {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  padding: 0 21px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.05px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--premium-ink);
  border: 1px solid var(--premium-ink);
  box-shadow: 0 14px 30px rgba(20, 24, 31, 0.15);
}

.btn-primary:hover {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
  box-shadow: 0 16px 34px rgba(49, 86, 232, 0.22);
  transform: translateY(-2px);
}

.btn-cv {
  color: var(--premium-ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(20, 24, 31, 0.12);
  box-shadow: 0 8px 24px rgba(20, 24, 31, 0.055);
  backdrop-filter: blur(14px);
}

.btn-cv:hover {
  color: var(--premium-ink);
  background: #fff;
  border-color: rgba(49, 86, 232, 0.35);
  box-shadow: 0 12px 28px rgba(20, 24, 31, 0.09);
  transform: translateY(-2px);
}

.hero-signature {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
  color: #7e8792;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-signature i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #adb3bc;
}

/* From idea to product showcase */
.process-showcase {
  position: relative;
  min-height: 570px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 31, 0.095);
  border-radius: 36px;
  background:
    radial-gradient(circle at 75% 35%, rgba(49, 86, 232, 0.13), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 239, 247, 0.95));
  box-shadow:
    0 35px 90px rgba(30, 39, 56, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  isolation: isolate;
}

@media (min-width: 1121px) {
  .hero-layout .process-showcase {
    left: clamp(18px, 1.7vw, 24px);
  }
}

.process-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 24, 31, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, 0.034) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.process-showcase::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -130px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(49, 86, 232, 0.1);
  filter: blur(3px);
}

.process-topline {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.process-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--premium-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.process-topline h2 {
  max-width: 320px;
  color: var(--premium-ink);
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.7px;
}

.process-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(20, 24, 31, 0.09);
  border-radius: 999px;
  color: #5f6874;
  background: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.process-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53b8e8;
  box-shadow: 0 0 0 4px rgba(83, 184, 232, 0.13);
}

.workflow-canvas {
  position: relative;
  min-height: 410px;
  margin-top: 9px;
}

.workflow-card,
.product-card-demo {
  position: absolute;
  border: 1px solid rgba(20, 24, 31, 0.1);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(27, 35, 49, 0.13);
}

.workflow-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d7581;
  font-size: 8px;
  letter-spacing: 1.15px;
}

.workflow-card-head span {
  color: var(--premium-blue);
  font-weight: 850;
}

.workflow-card-head strong {
  font-weight: 780;
}

.wireframe-card {
  left: 1%;
  top: 45px;
  z-index: 1;
  width: 42%;
  padding: 17px;
  background: rgba(255, 255, 255, 0.92);
  --process-rest-transform: rotate(-5deg);
  --process-stage-shift: 58px;
  transform: var(--process-rest-transform);
}

.wireframe-window {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #d9dde4;
  border-radius: 12px;
  background: #f8f9fb;
}

.wireframe-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 17px;
}

.wireframe-nav i {
  width: 17px;
  height: 17px;
  border: 1.5px solid #bdc4ce;
  border-radius: 5px;
}

.wireframe-nav span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 8px;
  background: #d7dbe1;
}

.wireframe-nav span:last-child {
  width: 19px;
  margin-left: auto;
}

.wireframe-hero b,
.wireframe-hero span,
.wireframe-hero small {
  display: block;
  border-radius: 5px;
  background: #d1d6de;
}

.wireframe-hero b {
  width: 75%;
  height: 10px;
}

.wireframe-hero span {
  width: 56%;
  height: 6px;
  margin-top: 8px;
  background: #dce0e6;
}

.wireframe-hero small {
  width: 43px;
  height: 16px;
  margin-top: 13px;
  background: #c5ccd6;
}

.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 19px;
}

.wireframe-grid i {
  display: block;
  aspect-ratio: 1;
  border: 1px solid #d7dbe2;
  border-radius: 6px;
  background: #eef0f3;
}

.wireframe-card p {
  margin-top: 11px;
  color: #8a929e;
  font-size: 8px;
}

.code-card {
  left: 24%;
  top: 146px;
  z-index: 2;
  width: 48%;
  padding: 17px;
  color: #d9e1ef;
  background: #19212e;
  border-color: rgba(255, 255, 255, 0.09);
  --process-rest-transform: rotate(2.5deg);
  --process-stage-shift: 20px;
  transform: var(--process-rest-transform);
}

.code-card .workflow-card-head {
  color: #9ca9bb;
}

.code-card .workflow-card-head span {
  color: #82d8ff;
}

.code-card pre {
  margin-top: 14px;
  overflow: hidden;
  color: #d9e1ef;
  font: 8px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.code-card code em {
  color: #c7a7ff;
  font-style: normal;
}

.code-card code b {
  color: #84d7ff;
  font-weight: 600;
}

.code-card code strong {
  color: #8ce2b6;
  font-weight: 600;
}

.product-card-demo {
  right: 1%;
  bottom: 0;
  z-index: 4;
  width: 38%;
  padding: 15px 15px 12px;
  background: rgba(255, 255, 255, 0.94);
  --process-rest-transform: rotate(2deg);
  --process-stage-shift: -48px;
  transform: var(--process-rest-transform);
}

.product-card-demo > .workflow-card-head {
  margin-bottom: 10px;
}

.product-phone {
  position: relative;
  height: 310px;
  padding: 28px 13px 13px;
  overflow: hidden;
  border: 7px solid #151a22;
  border-radius: 34px;
  color: #19212d;
  background: #f8f9fb;
  box-shadow: 0 18px 35px rgba(19, 25, 34, 0.18);
}

.phone-sensor {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 50px;
  height: 11px;
  border-radius: 999px;
  background: #151a22;
  transform: translateX(-50%);
}

.demo-appbar {
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo-appbar i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--premium-blue);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.demo-appbar span {
  color: #68717e;
  font-size: 7px;
  font-weight: 650;
}

.demo-appbar b {
  margin-left: auto;
  color: #8d95a0;
  font-size: 8px;
  letter-spacing: 1px;
}

.demo-balance {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #3156e8, #233db0);
  box-shadow: 0 12px 22px rgba(49, 86, 232, 0.2);
}

.demo-balance small,
.demo-balance strong,
.demo-balance span {
  display: block;
}

.demo-balance small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 6px;
  letter-spacing: 0.5px;
}

.demo-balance strong {
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.8px;
}

.demo-balance span {
  margin-top: 4px;
  color: #bfe6d3;
  font-size: 6px;
}

.demo-chart {
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 15px 4px 0;
}

.demo-chart i {
  flex: 1;
  min-height: 8px;
  border-radius: 4px 4px 2px 2px;
  background: #d8deec;
}

.demo-chart i:nth-child(4),
.demo-chart i:nth-child(6) {
  background: var(--premium-blue);
}

.demo-task {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 9px;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  background: #fff;
}

.demo-task > i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #18a271;
  font-size: 8px;
  font-style: normal;
}

.demo-task span b,
.demo-task span small {
  display: block;
}

.demo-task span b {
  font-size: 7px;
}

.demo-task span small {
  margin-top: 2px;
  color: #9299a4;
  font-size: 5px;
}

.demo-nav {
  position: absolute;
  right: 13px;
  bottom: 9px;
  left: 13px;
  display: flex;
  justify-content: space-around;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 24, 31, 0.08);
}

.demo-nav i {
  width: 10px;
  height: 3px;
  border-radius: 3px;
  background: #cdd2da;
}

.demo-nav i:first-child {
  background: var(--premium-blue);
}

.process-legend {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 5px;
}

.process-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 24, 31, 0.1);
}

.process-legend b {
  color: var(--premium-blue);
  font-size: 8px;
}

.process-legend i {
  color: #737c88;
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.85px;
}

.process-showcase.process-motion-ready .workflow-card,
.process-showcase.process-motion-ready .product-card-demo {
  opacity: 0;
  will-change: opacity, transform;
}

.process-showcase.process-motion-ready .process-legend span {
  position: relative;
  opacity: 0.45;
  will-change: opacity;
}

.process-showcase.process-motion-ready .process-legend span::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--premium-blue);
}

.process-showcase.process-motion-ready.process-stage-1 .wireframe-card {
  animation: process-card-drop 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.process-showcase.process-motion-ready.process-stage-2 .code-card {
  animation: process-card-drop 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.process-showcase.process-motion-ready.process-stage-3 .product-card-demo {
  animation: process-card-drop 0.54s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.process-showcase.process-motion-ready.process-stage-1 .process-legend span:nth-child(1) {
  animation: process-label-focus 0.24s ease-out 0.28s forwards;
}

.process-showcase.process-motion-ready.process-stage-2 .process-legend span:nth-child(2) {
  animation: process-label-focus 0.24s ease-out 0.28s forwards;
}

.process-showcase.process-motion-ready.process-stage-3 .process-legend span:nth-child(3) {
  animation: process-label-focus 0.24s ease-out 0.3s forwards;
}

.process-showcase.process-motion-ready.process-stage-1 .process-legend span:nth-child(1)::after {
  animation: process-line-fill 0.24s ease-out 0.28s forwards;
}

.process-showcase.process-motion-ready.process-stage-2 .process-legend span:nth-child(2)::after {
  animation: process-line-fill 0.24s ease-out 0.28s forwards;
}

.process-showcase.process-motion-ready.process-stage-3 .process-legend span:nth-child(3)::after {
  animation: process-line-fill 0.24s ease-out 0.3s forwards;
}

@keyframes process-card-drop {
  0% { opacity: 0; transform: translateY(-80px) translateX(var(--process-stage-shift)) scale(0.9) var(--process-rest-transform); }
  58% { opacity: 1; transform: translateY(0) translateX(var(--process-stage-shift)) scale(1) var(--process-rest-transform); }
  100% { opacity: 1; transform: var(--process-rest-transform); }
}

@keyframes process-label-focus {
  0% { opacity: 0.45; }
  100% { opacity: 1; }
}

@keyframes process-line-fill {
  0% { width: 0; opacity: 0; }
  100% { width: 100%; opacity: 0.68; }
}

/* Sections and project cards */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 0 34px;
  text-align: center;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
}

.section-label {
  color: var(--premium-blue);
  font-size: 9px;
  letter-spacing: 1.8px;
}

.section-title {
  color: var(--premium-ink);
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 740;
  letter-spacing: -2px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

.projects-grid {
  align-items: stretch;
  gap: 22px;
  padding-bottom: 78px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-color: rgba(20, 24, 31, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 45px rgba(29, 37, 50, 0.06);
  transform-style: preserve-3d;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(20, 24, 31, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(29, 37, 50, 0.12);
}

.project-card-image {
  flex: 0 0 auto;
  margin: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
  border-radius: 21px;
  border: 1px solid rgba(20, 24, 31, 0.055);
  background: #e8f5f5;
}

.project-card:nth-child(2) .project-card-image {
  background: #efedfa;
}

.project-card:nth-child(3) .project-card-image {
  background: #eaf4e9;
}

.project-card .phone-mockup {
  background: #fff;
  border-color: #1a1e25;
  box-shadow: 0 22px 38px rgba(24, 30, 40, 0.2);
}

.project-card .phone-mockup::before {
  height: 15px;
  background: #1a1e25;
}

.card-mockup {
  width: 58%;
  height: 112%;
  margin-top: 38px;
  border-width: 6px;
  border-radius: 30px 30px 0 0;
}

.project-card-image img {
  object-fit: contain;
}

.project-card:hover .project-card-image img {
  transform: scale(1.025);
}

.project-card-overlay {
  opacity: 1;
  padding: 0;
  background: none;
  pointer-events: none;
}

.project-role-text {
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  min-height: 22px;
  margin-bottom: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #747e8b;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.72px;
  line-height: 1.45;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
}

.project-role-text::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--premium-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.project-card:nth-child(2) .project-role-text::before {
  background: #7c63d8;
}

.project-card:nth-child(3) .project-role-text::before {
  background: #4d9c70;
}

.project-card:hover .project-role-text {
  opacity: 1;
  transform: none;
}

.project-card-cta {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 10px;
  color: #596370;
  background: #f5f6f8;
  border: 1px solid #e3e6eb;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.58px;
  transform: none;
  box-shadow: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.project-card-cta::after {
  content: "↗";
  color: var(--premium-blue);
  font-size: 10px;
  line-height: 1;
}

.project-card:hover .project-card-cta {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
  transform: none;
}

.project-card:hover .project-card-cta::after {
  color: #fff;
}

.project-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eceef2;
}

.project-card-footer .project-card-tags {
  flex: 1;
}

.project-card-name {
  color: var(--premium-ink);
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0.15px;
}

.project-card-sub {
  color: #77808c;
  min-height: 38px;
  margin: 0 0 16px;
  font-size: 11.5px;
  line-height: 1.55;
}

.tag {
  padding: 5px 9px;
  border-radius: 8px;
  color: #66707c;
  background: #f5f6f8;
  border-color: #e5e8ed;
  font-size: 8px;
}

.tag-cyan,
.tag-purple,
.tag-orange {
  color: #66707c;
  background: #f5f6f8;
  border-color: #e5e8ed;
}

/* Bento */
.bottom-row {
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  align-items: stretch;
  gap: 22px;
  padding: 0 0 88px;
}

.bento-card {
  min-width: 0;
  padding: 34px;
  border-color: rgba(20, 24, 31, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(29, 37, 50, 0.06);
}

.bento-card:hover {
  border-color: rgba(20, 24, 31, 0.14);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(29, 37, 50, 0.095);
}

.card-label {
  color: var(--premium-blue);
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 1.65px;
}

.card-title {
  color: var(--premium-ink);
  margin-bottom: 0;
  font-size: clamp(27px, 3vw, 32px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -1.1px;
  text-wrap: balance;
}

.card-stack {
  display: flex;
  flex-direction: column;
  border-color: rgba(20, 24, 31, 0.09);
  box-shadow: 0 18px 48px rgba(29, 37, 50, 0.06);
}

.card-stack:hover {
  border-color: rgba(20, 24, 31, 0.14);
  box-shadow: 0 26px 65px rgba(29, 37, 50, 0.1);
}

.card-stack .stack-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 26px;
}

.stack-item {
  min-width: 0;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 15px;
  background: #f8f9fa;
}

.stack-item:hover {
  border-color: #d9dde4;
  background: #fff;
  transform: translateY(-1px);
}

.stack-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #68717e !important;
  border-color: #e0e3e8;
  border-radius: 12px;
  background: #fff !important;
}

.card-stack .stack-item:nth-child(-n + 3) {
  border-color: rgba(49, 86, 232, 0.12);
  background: linear-gradient(145deg, rgba(49, 86, 232, 0.055), rgba(255, 255, 255, 0.94));
}

.card-stack .stack-item:nth-child(1) .stack-icon {
  color: #42a5f5 !important;
}

.card-stack .stack-item:nth-child(2) .stack-icon {
  color: #0175c2 !important;
}

.card-stack .stack-item:nth-child(3) .stack-icon {
  color: #f59e0b !important;
}

.stack-name {
  color: var(--premium-ink);
  font-size: 9px;
  letter-spacing: 0.7px;
}

.stack-sub {
  color: #858e99;
  font-size: 9px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(93, 129, 255, 0.3), transparent 15rem),
    #17202d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 65px rgba(23, 32, 45, 0.2);
}

.contact-card:hover {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(93, 129, 255, 0.38), transparent 15rem),
    #17202d;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 76px rgba(23, 32, 45, 0.26);
}

.contact-card .card-label {
  color: #91a7ff;
}

.contact-card .card-title {
  max-width: 350px;
  color: #fff;
}

.contact-card .stack-list {
  gap: 9px;
  margin-top: auto !important;
  padding-top: 28px;
}

.contact-card .stack-item {
  min-height: 74px;
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.09);
}

.contact-card .stack-item::after {
  content: "↗";
  margin-left: auto;
  color: #91a7ff;
  font-size: 14px;
}

.contact-card .stack-item:hover {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-card .stack-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.11);
}

.contact-card .stack-item:hover .stack-icon.email,
.contact-card .stack-item:hover .stack-icon.github {
  color: #00e5ff !important;
  border-color: #00e5ff;
  background: rgba(0, 229, 255, 0.08) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.contact-card .stack-name {
  color: #fff;
}

.contact-card .stack-sub {
  color: #b9c1cd;
}

/* Modals */
.modal-overlay {
  padding: 22px;
  background: rgba(24, 31, 43, 0.64);
  backdrop-filter: blur(18px);
  transition-duration: 0.28s;
}

.modal {
  width: min(1180px, 96vw);
  max-width: 1180px;
  max-height: 92vh;
  border-color: rgba(20, 24, 31, 0.1);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 110px rgba(13, 19, 29, 0.3);
  transform: scale(0.97) translateY(18px);
  transition-duration: 0.34s;
}

.modal-content {
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  max-height: 92vh;
}

.modal-close {
  top: 18px;
  right: 18px;
  color: #4e5764;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(20, 24, 31, 0.11);
  box-shadow: 0 9px 24px rgba(20, 24, 31, 0.08);
}

.modal-close:hover {
  color: #fff;
  background: var(--premium-ink);
  border-color: var(--premium-ink);
}

.modal-mockups {
  padding: 55px 35px 34px;
  background:
    radial-gradient(circle at 50% 40%, rgba(49, 86, 232, 0.12), transparent 22rem),
    #edf1f6;
  border-right-color: rgba(20, 24, 31, 0.08);
}

.mockup-scroll {
  gap: 26px;
  padding: 16px calc(50% - 122px);
}

.slider-mockup {
  width: 244px;
  height: 488px;
  border: 7px solid #151a22;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 28px 55px rgba(22, 29, 40, 0.22);
}

.slider-mockup img {
  background: #fff;
}

.mockup-nav {
  margin-top: 21px;
}

.mockup-nav-btn {
  color: #515a66;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(20, 24, 31, 0.1);
  box-shadow: 0 7px 20px rgba(20, 24, 31, 0.06);
}

.mockup-nav-btn:hover {
  color: #fff;
  background: var(--premium-ink);
}

.mockup-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.mockup-dot {
  padding: 0;
  border: 0;
  background: #c7ccd4;
  appearance: none;
}

.mockup-dot.active {
  background: var(--premium-blue);
  box-shadow: none;
}

.modal-details {
  padding: 55px 45px 42px;
  background: #fff;
}

.modal-details::-webkit-scrollbar-thumb {
  background: #d8dce2;
}

.modal-badge {
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 8px;
}

.modal-badge.cyan,
.modal-badge.purple,
.modal-badge.teal {
  color: var(--premium-blue);
  background: rgba(49, 86, 232, 0.07);
  border-color: rgba(49, 86, 232, 0.14);
}

.modal-title {
  margin-bottom: 13px;
  color: var(--premium-ink);
  font-size: 39px;
  font-weight: 760;
  letter-spacing: -1.8px;
}

.modal-description {
  color: #65707e;
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 31px;
}

.detail-section {
  margin-bottom: 25px;
  padding-top: 1px;
}

.detail-label {
  color: #8a939f;
  font-size: 8px;
  letter-spacing: 1.65px;
}

.detail-text {
  color: #515c6a;
  font-size: 12px;
  line-height: 1.75;
}

.tech-chip {
  color: #596370;
  background: #f6f7f9;
  border-color: #e5e8ed;
  border-radius: 10px;
  font-size: 10px;
}

.tech-chip:hover {
  color: var(--premium-blue);
  background: rgba(49, 86, 232, 0.055);
  border-color: rgba(49, 86, 232, 0.22);
}

.features-list {
  gap: 10px;
}

.features-list li {
  color: #5e6875;
  font-size: 11px;
}

.features-list li::before {
  color: var(--premium-blue);
}

.project-link-btn {
  color: #505a67;
  background: #fff;
  border-color: #dfe3e9;
  box-shadow: 0 7px 20px rgba(20, 24, 31, 0.05);
}

.project-link-btn:hover,
.project-link-btn.github:hover,
.project-link-btn.store:hover {
  color: #fff;
  background: var(--premium-ink);
  border-color: var(--premium-ink);
  box-shadow: 0 12px 26px rgba(20, 24, 31, 0.16);
}

/* Contact modal */
.contact-modal {
  width: min(610px, 94vw);
  max-width: 610px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 43px;
  color: var(--premium-ink);
  background: #fff;
  border-color: rgba(20, 24, 31, 0.1);
  border-radius: 28px;
  box-shadow: 0 40px 110px rgba(13, 19, 29, 0.3);
  transform: scale(0.97) translateY(18px);
  transition-duration: 0.34s;
}

.contact-modal-header {
  margin-bottom: 29px;
}

.contact-modal-icon {
  width: 50px;
  height: 50px;
  color: #fff;
  background: var(--premium-blue);
  border: none;
  border-radius: 15px;
  box-shadow: 0 14px 30px rgba(49, 86, 232, 0.2);
}

.contact-modal-title {
  color: var(--premium-ink);
  font-size: 28px;
  letter-spacing: -0.8px;
}

.contact-modal-desc {
  color: #6a7481;
}

.form-label {
  color: #77818d;
  font-size: 9px;
}

.form-input,
.form-textarea {
  color: var(--premium-ink);
  background: #f8f9fa;
  border-color: #e1e5ea;
  border-radius: 12px;
}

.form-input:focus,
.form-textarea:focus {
  color: var(--premium-ink);
  background: #fff;
  border-color: var(--premium-blue);
  box-shadow: 0 0 0 4px rgba(49, 86, 232, 0.1);
}

.form-submit-btn {
  color: #fff;
  background: var(--premium-ink);
  border-color: var(--premium-ink);
  border-radius: 12px;
}

.form-submit-btn:hover {
  color: #fff;
  background: var(--premium-blue);
  border-color: var(--premium-blue);
  box-shadow: 0 13px 28px rgba(49, 86, 232, 0.18);
}

.form-status.success {
  color: #16845f;
}

.form-status.error {
  color: #c2413b;
}

/* Footer and finishing */
footer {
  background: rgba(255, 255, 255, 0.46);
  border-top-color: rgba(20, 24, 31, 0.08);
}

.footer-copy {
  color: #7b8490;
}

.social-icon {
  color: #6b7480;
  background: #fff;
  border-color: #e1e4e9;
}

.social-icon:hover {
  color: #fff;
  background: var(--premium-ink);
  border-color: var(--premium-ink);
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.14);
}

.glow-cursor {
  width: 500px;
  height: 500px;
  opacity: 0.45;
  background: radial-gradient(circle, rgba(49, 86, 232, 0.07), transparent 70%);
}

::-webkit-scrollbar-track {
  background: #f2f1ee;
}

::-webkit-scrollbar-thumb {
  background: #cfd3d8;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8bec6;
}

:where(a, button, [role="button"], input, textarea):focus-visible {
  outline: 3px solid rgba(49, 86, 232, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero h1 {
    max-width: 780px;
  }

  .process-showcase {
    width: 100%;
    max-width: 820px;
    min-height: 590px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    padding-inline: 24px;
  }

  .nav-links {
    top: 82px;
    padding: 22px 24px 26px;
    background: rgba(247, 246, 242, 0.97);
    border-bottom-color: rgba(20, 24, 31, 0.1);
    box-shadow: 0 18px 40px rgba(20, 24, 31, 0.09);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .nav-links .btn-contact {
    margin: 6px 0 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }

  .bottom-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-card {
    min-height: 330px;
  }

  .modal {
    width: min(720px, 96vw);
    max-height: 94vh;
  }

  .modal-content {
    display: block;
    max-height: 94vh;
    overflow-y: auto;
  }

  .modal-mockups {
    min-height: 590px;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 24, 31, 0.08);
  }

  .modal-details {
    max-height: none;
    overflow: visible;
    border: 0;
  }
}

@media (max-width: 680px) {
  .container {
    padding-inline: 18px;
  }

  .nav {
    height: 74px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 11px;
  }

  .nav-links {
    top: 74px;
  }

  .hero {
    padding: 52px 0 38px;
  }

  .hero-layout {
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.7vw, 58px);
    letter-spacing: -3px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-cv {
    width: 100%;
  }

  .hero-signature {
    gap: 8px;
  }

  .process-showcase {
    min-height: 505px;
    padding: 24px 20px 20px;
    border-radius: 28px;
  }

  .process-topline h2 {
    max-width: 245px;
    font-size: 19px;
  }

  .process-status {
    display: none;
  }

  .workflow-canvas {
    min-height: 365px;
  }

  .wireframe-card,
  .code-card {
    display: none;
  }

  .product-card-demo {
    right: auto;
    bottom: 2px;
    left: 50%;
    width: min(225px, 76%);
    --process-rest-transform: translateX(-50%) rotate(1deg);
    --process-stage-shift: 0px;
    transform: var(--process-rest-transform);
  }

  .product-phone {
    height: 290px;
  }

  .process-legend {
    gap: 6px;
  }

  .process-legend span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .section-header {
    padding-top: 56px;
    padding-bottom: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .project-card:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }

  .project-card-image {
    margin: 8px;
    aspect-ratio: 1.08 / 1;
  }

  .card-mockup {
    width: 55%;
    margin-top: 30px;
  }

  .card-stack .stack-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .bento-card {
    padding: 24px;
  }

  .bottom-row {
    padding-bottom: 72px;
  }

  .contact-card {
    min-height: 300px;
  }

  .contact-card .stack-list {
    padding-top: 24px;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .modal-content {
    max-height: 100dvh;
  }

  .modal-mockups {
    min-height: 520px;
    padding: 54px 18px 28px;
  }

  .mockup-scroll {
    padding-inline: calc(50% - 96px);
  }

  .slider-mockup {
    width: 192px;
    height: 384px;
    border-radius: 31px;
  }

  .modal-details {
    padding: 34px 23px 58px;
  }

  .modal-title {
    font-size: 31px;
  }

  .contact-modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 38px 22px 26px;
  }
}

@media (max-width: 420px) {
  .section-header {
    padding-top: 50px;
    padding-bottom: 20px;
  }

  .section-title {
    font-size: 30px;
    letter-spacing: -1.35px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -2.5px;
  }

  .hero-signature span:last-child,
  .hero-signature i:nth-last-child(2) {
    display: none;
  }

  .process-showcase {
    min-height: 485px;
  }

  .product-card-demo {
    width: 220px;
  }

  .card-stack .stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card-stack .stack-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 88px;
    padding: 12px;
  }

  .card-stack .stack-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .contact-card {
    min-height: 0;
  }

  .contact-card .stack-item {
    min-height: 68px;
  }

  .footer-copy {
    font-size: 10px;
  }
}

@media (max-width: 680px) {
  .project-card-info {
    padding: 18px 18px 20px;
  }

  .project-role-text {
    gap: 7px;
    min-height: 0;
    font-size: 7.5px;
    letter-spacing: 0.58px;
    overflow-wrap: anywhere;
  }

  .project-card-footer {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .project-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .project-card-footer .project-card-tags {
    width: 100%;
  }

  .project-card-cta {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glow-cursor {
    display: none;
  }

  .animate-in {
    opacity: 1 !important;
    animation: none !important;
  }
}
