/* ============================================================
   Ganesh Patil — portfolio
   Plain CSS. No frameworks, no build step.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08080f;
  --bg-soft: #0c0d17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1ff;
  --text-soft: #d7dcf0;
  --muted: #98a1b8;
  --muted-dim: #747d94;
  --primary: #8b93ff;
  --secondary: #63c9ff;
  --green: #4ade80;
  --grad: linear-gradient(120deg, #b0b5ff 0%, #8b93ff 42%, #63c9ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 147, 255, 0.16), rgba(99, 201, 255, 0.06));
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1160px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(139, 147, 255, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #262a3d;
  border: 2px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3f5c;
}

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

img,
svg {
  max-width: 100%;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

ul {
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

section {
  scroll-margin-top: 90px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #08080f;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- background ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(139, 147, 255, 0.14), transparent 62%),
    radial-gradient(700px 500px at 2% 18%, rgba(99, 201, 255, 0.07), transparent 65%),
    linear-gradient(180deg, #08080f 0%, #08080f 60%, #07070d 100%);
}

.pg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}
.pg-glow-a {
  width: 520px;
  height: 520px;
  top: 34%;
  right: -220px;
  background: rgba(139, 147, 255, 0.18);
}
.pg-glow-b {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -160px;
  background: rgba(99, 201, 255, 0.1);
}

.pg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 78%);
  opacity: 0.65;
}

/* ---------- layout ---------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(7, 7, 13, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #090a12;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 22px rgba(139, 147, 255, 0.28);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  transform: scaleX(1);
}

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

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 86px;
  left: 16px;
  right: 16px;
  z-index: 99;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0b0c15;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
}
.mobile-menu a:last-child {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  color: var(--primary);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s, box-shadow 0.22s, color 0.22s;
}
.btn .ico {
  width: 15px;
  height: 15px;
  transition: transform 0.22s var(--ease);
}
.btn:hover .ico {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--grad);
  color: #0a0b12;
  font-weight: 600;
  box-shadow: 0 10px 32px rgba(139, 147, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(139, 147, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-outline:hover {
  border-color: rgba(139, 147, 255, 0.5);
  color: var(--text);
  background: rgba(139, 147, 255, 0.06);
}

.btn-resume {
  background: linear-gradient(180deg, rgba(139, 147, 255, 0.2), rgba(139, 147, 255, 0.09));
  border-color: rgba(139, 147, 255, 0.45);
  color: #e8eaff;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 18px rgba(139, 147, 255, 0.16);
}
.btn-resume:hover {
  background: linear-gradient(180deg, rgba(139, 147, 255, 0.3), rgba(139, 147, 255, 0.15));
  border-color: rgba(139, 147, 255, 0.72);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px rgba(139, 147, 255, 0.28);
}
.btn-resume:hover .ico {
  transform: translateY(2px);
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 0.82rem;
  border-radius: 10px;
}
.btn-sm .ico {
  width: 14px;
  height: 14px;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(139, 147, 255, 0.22);
  border-radius: 999px;
  background: rgba(139, 147, 255, 0.07);
  font-size: 0.76rem;
  color: #c7ccff;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  color: #aab2c8;
  letter-spacing: 0.01em;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.dot-java { background: #f89820; }
.dot-spring { background: #6db33f; }
.dot-react { background: #61dafb; }
.dot-ms { background: #8b93ff; }
.dot-db { background: #63c9ff; }

.hero h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 6.4vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.hero-hello {
  display: block;
  color: var(--text);
}

.hero-name {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 27px;
  font-size: 0.8rem;
  color: var(--muted-dim);
}
.hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta .ico {
  width: 14px;
  height: 14px;
}
.meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3a4058;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 52px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-dim);
  transition: color 0.2s, opacity 0.4s;
}
.scroll-hint:hover {
  color: var(--muted);
}
.scroll-hint .ico {
  width: 13px;
  height: 13px;
}

.bounce {
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* hero visual */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 470px;
  isolation: isolate;
}

.halo {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  max-width: 560px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(139, 147, 255, 0.3), rgba(139, 147, 255, 0.05) 62%, transparent 75%),
    radial-gradient(closest-side at 65% 70%, rgba(99, 201, 255, 0.28), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  animation: halo-breathe 9s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.code-card {
  width: 100%;
  max-width: 510px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(11, 13, 24, 0.9);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(139, 147, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  transform: rotate(-1.4deg);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  will-change: transform;
}
.code-card:hover {
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(139, 147, 255, 0.14) inset;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}
.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c3147;
}
.window-dots i:nth-child(1) { background: #ff6b7a; opacity: 0.75; }
.window-dots i:nth-child(2) { background: #ffcf70; opacity: 0.75; }
.window-dots i:nth-child(3) { background: #5fd69a; opacity: 0.75; }

.code-file {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8a93ad;
  letter-spacing: 0.01em;
}

.code-badge {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(139, 147, 255, 0.25);
  border-radius: 5px;
  background: rgba(139, 147, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #a8aeff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-body {
  margin: 0;
  padding: 19px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 1.1vw, 0.76rem);
  line-height: 1.78;
  color: #c3cae0;
  tab-size: 2;
}

.code-body code {
  display: block;
  min-width: max-content;
}

.ln {
  display: inline-block;
  width: 2.6em;
  margin-right: 1em;
  text-align: right;
  color: #3f4661;
  user-select: none;
}

.tok-anno { color: #ffcb6b; }
.tok-key { color: #c792ea; }
.tok-type { color: #82d8ff; }
.tok-fn { color: #c3e88d; }
.tok-str { color: #c3e88d; }

.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
}
.build-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6fe0a5;
}
.build-ok i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}
.build-time {
  color: #6b7390;
  letter-spacing: 0.02em;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(13, 15, 27, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.69rem;
  color: #c2c8dc;
  letter-spacing: 0.01em;
  animation: float 7s ease-in-out infinite;
  z-index: 2;
}
.float-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
}
.chip-1 { top: 4%; left: -4%; animation-delay: -1s; }
.chip-3 { bottom: 0; right: 3%; animation-delay: -4s; }
.chip-3 svg { stroke: var(--secondary); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(84px, 9.5vw, 124px) 0;
  position: relative;
}

.section-tight {
  padding-top: 30px;
  padding-bottom: clamp(84px, 9.5vw, 124px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a9b0ff;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section h2,
.contact-card h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 780px;
}

.lead {
  margin-top: 15px;
  max-width: 620px;
  font-size: clamp(0.94rem, 1.3vw, 1.02rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5.5vw, 72px);
  margin-top: 38px;
  align-items: start;
}

.about-lede {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.62;
  color: var(--text-soft);
  letter-spacing: -0.012em;
}
.about-lede strong {
  color: var(--text);
  font-weight: 600;
}

.about-copy > p + p {
  margin-top: 18px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
}

.text-link {
  color: var(--text);
  border-bottom: 1px solid rgba(139, 147, 255, 0.42);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  color: #aeb6cc;
  letter-spacing: 0.01em;
}

.fact-card {
  padding: 26px 26px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(139, 147, 255, 0.08), rgba(255, 255, 255, 0.018) 55%),
    rgba(10, 11, 20, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  position: sticky;
  top: 100px;
}

.fact-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.fact-head strong {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
}

.fact-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #090a12;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.fact-hi {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.fact-row:last-child {
  border-bottom: 0;
}

.fact-label {
  flex: none;
  font-size: 0.75rem;
  color: var(--muted-dim);
}

.fact-value {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: right;
  line-height: 1.45;
}

.fact-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a9e8bf;
}

/* ---------- experience ---------- */

.timeline {
  margin-top: 48px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(139, 147, 255, 0.5), rgba(99, 201, 255, 0.25) 55%, transparent);
}

.tl-item {
  position: relative;
  padding-left: 38px;
}
.tl-item + .tl-item {
  margin-top: 26px;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(139, 147, 255, 0.1), 0 0 18px rgba(139, 147, 255, 0.35);
}

.tl-card {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
  transition: border-color 0.3s, background 0.3s;
}
.tl-card:hover {
  border-color: rgba(139, 147, 255, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.tl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tl-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.tl-company {
  margin-top: 3px;
  font-size: 0.83rem;
  color: var(--primary);
}

.tl-date {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted-dim);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}

.tl-bullets {
  margin-top: 16px;
  padding-left: 17px;
  display: grid;
  gap: 8px;
}
.tl-bullets li {
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--muted);
}
.tl-bullets li::marker {
  color: rgba(139, 147, 255, 0.8);
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}
.tl-tags .tag {
  font-size: 0.69rem;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.cred-card {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}
.cred-card h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cred-card p {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
.cred-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted-dim);
}

.cred-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 147, 255, 0.2);
  border-radius: 10px;
  background: rgba(139, 147, 255, 0.08);
  color: #b6bbff;
}
.cred-icon svg {
  width: 19px;
  height: 19px;
}

/* ---------- projects ---------- */

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s, background 0.32s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 147, 255, 0.32);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42), 0 0 40px rgba(139, 147, 255, 0.07);
}

.project-art {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
  background: #0a0c17;
  overflow: hidden;
}
.project-art svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-art svg {
  transform: scale(1.035);
}

.project-body {
  padding: 19px 21px 21px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.project-top h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-arrow {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}
.project-arrow .ico {
  width: 13px;
  height: 13px;
}
.project-card:hover .project-arrow {
  border-color: rgba(139, 147, 255, 0.5);
  background: rgba(139, 147, 255, 0.1);
  color: var(--text);
  transform: rotate(0deg) translate(1px, -1px);
}

.project-desc {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--muted);
}

.project-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
}
.project-body .tag {
  font-size: 0.67rem;
  padding: 3px 8px;
}

/* featured client project */

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: stretch;
}

.project-card--featured .project-art {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 0;
  border-right: 1px solid var(--border);
  background: #eef2f8;
}
.project-card--featured .project-art img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.project-card--featured:hover .project-art img {
  transform: scale(1.03);
}

.project-card--featured .project-body {
  padding: clamp(24px, 3.2vw, 38px);
  justify-content: center;
}
.project-card--featured .project-top {
  justify-content: flex-start;
}
.project-card--featured .project-top h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}
.project-card--featured .project-desc {
  margin-top: 12px;
  max-width: 46ch;
  font-size: 0.9rem;
}
.project-card--featured .project-body .tags {
  margin-top: 22px;
  padding-top: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.07);
  color: #a7f3c4;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}

.project-eyebrow {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
}
.project-cta .ico {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.project-card:hover .project-cta .ico {
  transform: translate(2px, -2px);
}
.project-card:not(.project-card--featured) .project-cta {
  margin-top: 15px;
  font-size: 0.78rem;
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.service-card {
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 147, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 147, 255, 0.22);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(139, 147, 255, 0.14), rgba(99, 201, 255, 0.05));
  color: #b3b9ff;
  margin-bottom: 18px;
}
.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-card p {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.process-step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.process-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 2px;
}

.process-step h3 {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.01em;
}
.process-step p {
  margin-top: 5px;
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--muted-dim);
}

/* ---------- skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.skill-group {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
}

.skill-group h3 {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted-dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.chip {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  color: #b8c0d6;
  letter-spacing: 0.005em;
}

.skills-note {
  margin-top: 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted-dim);
}
.note-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: 1px;
}
.note-chip {
  color: var(--text-soft);
}

/* ---------- contact ---------- */

.contact-card {
  padding: clamp(30px, 5.6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(620px 320px at 88% 0%, rgba(139, 147, 255, 0.17), transparent 62%),
    radial-gradient(520px 300px at 4% 100%, rgba(99, 201, 255, 0.09), transparent 68%),
    rgba(255, 255, 255, 0.022);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  border: 1px solid rgba(139, 147, 255, 0.16);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.contact-card h2 {
  max-width: 520px;
}

.contact-card > .contact-grid p,
.contact-grid > div > p {
  margin-top: 15px;
  max-width: 470px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px !important;
  font-size: 0.79rem !important;
  color: var(--muted-dim) !important;
}

.contact-list {
  display: grid;
  gap: 9px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.contact-list a:hover {
  border-color: rgba(139, 147, 255, 0.35);
  background: rgba(139, 147, 255, 0.055);
  transform: translateX(3px);
}

.contact-ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #b7bdf5;
}
.contact-ico svg {
  width: 17px;
  height: 17px;
}

.contact-text {
  min-width: 0;
  font-size: 0.83rem;
  color: var(--text-soft);
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.contact-text small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted-dim);
}

.contact-arrow {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: var(--muted-dim);
  transition: color 0.25s, transform 0.25s;
}
.contact-list a:hover .contact-arrow {
  color: var(--text);
  transform: translate(1px, -1px);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 26px;
  background: rgba(255, 255, 255, 0.012);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.footer-brand p {
  margin-top: 1px;
  font-size: 0.72rem;
  color: var(--muted-dim);
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.68rem;
}

.footer-note {
  font-size: 0.74rem;
  color: var(--muted-dim);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-links a {
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--muted-dim);
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--text-soft);
}
.footer-bottom .ico {
  width: 12px;
  height: 12px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 250;
  padding: 11px 16px;
  border: 1px solid rgba(139, 147, 255, 0.35);
  border-radius: 10px;
  background: rgba(13, 15, 27, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  color: var(--text-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease var(--d, 0ms), transform 0.75s var(--ease) var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid {
    gap: 36px;
  }
  .hero-visual {
    min-height: 420px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 128px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero h1 {
    font-size: clamp(3rem, 10.5vw, 4.6rem);
  }
  .hero-visual {
    min-height: 0;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .code-card {
    transform: none;
  }
  .float-chip {
    display: none;
  }
  .scroll-hint {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .fact-card {
    position: static;
    max-width: 560px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-art {
    aspect-ratio: 16 / 9;
  }
  .project-card--featured {
    grid-template-columns: 1fr;
  }
  .project-card--featured .project-art {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact-card h2 {
    max-width: 100%;
  }

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

@media (max-width: 720px) {
  .credentials {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    justify-content: flex-start;
  }
  .footer-note {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 36px);
  }
  .nav {
    height: 68px;
  }
  .mobile-menu {
    top: 78px;
  }
  .nav-resume {
    display: inline-flex;
    height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
    border-radius: 9px;
  }
  .nav-resume .ico {
    display: none;
  }
  .hero {
    padding-top: 112px;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 13.2vw, 3.4rem);
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .hero-meta {
    gap: 8px 10px;
  }
  .hero-meta > .meta-divider-last,
  .hero-meta > .meta-stack {
    display: none;
  }
  .hero-visual {
    margin-top: 2px;
  }
  .float-chip {
    padding: 6px 9px;
    font-size: 0.62rem;
  }
  .float-chip svg {
    width: 11px;
    height: 11px;
  }
  .code-body {
    font-size: 0.6rem;
    padding: 16px 0;
  }
  .code-file {
    font-size: 0.62rem;
  }
  .code-badge {
    display: none;
  }

  .section {
    padding: 74px 0;
  }
  .section-tight {
    padding-top: 10px;
    padding-bottom: 74px;
  }
  .timeline {
    margin-top: 34px;
  }
  .tl-item {
    padding-left: 26px;
  }
  .timeline::before {
    left: 5px;
  }
  .tl-dot {
    width: 11px;
    height: 11px;
    top: 10px;
  }
  .tl-card {
    padding: 20px;
  }
  .tl-date {
    font-size: 0.68rem;
  }
  .tl-bullets li {
    font-size: 0.84rem;
  }

  .fact-row {
    flex-direction: column;
    gap: 2px;
  }
  .fact-value {
    text-align: left;
  }

  .projects-head {
    align-items: flex-start;
  }
  .project-body {
    padding: 17px 18px 19px;
  }
  .project-card--featured .project-body {
    padding: 22px 20px 24px;
  }

  .process {
    margin-top: 32px;
  }

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

  .contact-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .contact-actions .btn {
    flex: 1 1 auto;
  }
  .contact-list a {
    padding: 12px;
  }
  .contact-text {
    font-size: 0.78rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
