:root {
  --bg-0: #05070f;
  --bg-1: #070c18;
  --bg-2: #0c1322;
  --bg-3: #101a2e;
  --surface: rgba(18, 26, 45, 0.55);
  --surface-solid: #0e1628;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #eef2f9;
  --text-dim: #9aa8bd;
  --text-faint: #64748b;
  --blue: #38bdf8;
  --indigo: #6366f1;
  --violet: #a78bfa;
  --grad: linear-gradient(120deg, var(--blue), var(--indigo) 55%, var(--violet));
  --grad-soft: linear-gradient(120deg, rgba(56, 189, 248, 0.16), rgba(167, 139, 250, 0.16));
  --glow-blue: rgba(56, 189, 248, 0.22);
  --glow-violet: rgba(167, 139, 250, 0.2);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(3, 6, 15, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

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

.muted {
  color: var(--text-dim);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--grad);
}

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

.section {
  padding: 108px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 60ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 8, 16, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(5, 8, 16, 0.82);
  border-bottom-color: var(--line);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--font-display);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #061022;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px var(--glow-blue);
  flex: none;
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}

.brand-text span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.25s var(--ease);
}

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

.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta {
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #061022;
  background: var(--grad);
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--grad);
  color: #061022;
  box-shadow: 0 10px 30px rgba(56, 122, 246, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.16);
}

.btn-icon svg {
  animation: bob 2.4s ease-in-out infinite;
}

.btn-block {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: none;
}

.chip-accent {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}

.chip-accent svg {
  color: var(--violet);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(760px 520px at 8% 90%, rgba(56, 189, 248, 0.1), transparent 60%),
    var(--bg-1);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(1000px 600px at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(1000px 600px at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.hero-sub {
  max-width: 54ch;
  color: var(--text-dim);
  font-size: 1.06rem;
  margin-bottom: 34px;
}

.hero-sub strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 460px;
  gap: 8px;
}

.hero-stats div {
  padding: 14px 16px;
  border-left: 1px solid var(--line-strong);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats dd {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.visual-glow-blue {
  width: 340px;
  height: 340px;
  background: var(--glow-blue);
  top: -40px;
  left: -40px;
}

.visual-glow-violet {
  width: 300px;
  height: 300px;
  background: var(--glow-violet);
  bottom: -30px;
  right: -30px;
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbital {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.ring-outer {
  width: min(92%, 440px);
  aspect-ratio: 1;
  animation: spin 46s linear infinite;
}

.ring-mid {
  width: min(64%, 305px);
  aspect-ratio: 1;
  border-style: solid;
  border-color: rgba(99, 102, 241, 0.22);
  animation: spin-reverse 30s linear infinite;
}

.core {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #081020;
  box-shadow: 0 0 60px var(--glow-blue), 0 0 120px var(--glow-violet), inset 0 2px 10px rgba(255, 255, 255, 0.35);
  animation: core-pulse 5s ease-in-out infinite;
}

.core svg {
  width: 52px;
  height: 52px;
  opacity: 0.9;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.orbit-dot--2 {
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet);
  top: 50%;
  left: auto;
  right: -5px;
  transform: translateY(-50%);
}

.visual-caption {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

.caption-ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: ping 2.2s ease-out infinite;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  height: 44px;
  width: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.7;
  transition: opacity 0.25s var(--ease);
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll-line {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--grad);
  animation: scroll-drip 1.8s var(--ease) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  75%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}

@keyframes scroll-drip {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.about-copy p {
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 62ch;
}

.about-copy strong {
  color: var(--text);
}

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-card {
  padding: 30px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.about-list li:last-child {
  border-bottom: 0;
}

.tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  font-size: 0.7rem;
}

.about-card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.avatar-ring {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad);
}

.avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Experience ---------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding-left: 44px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--indigo);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.16), 0 0 18px var(--glow-blue);
}

.experience-card {
  padding: 34px;
}

.exp-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.exp-org-mark {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #061022;
  letter-spacing: 0.04em;
  box-shadow: 0 0 30px var(--glow-blue);
}

.exp-meta {
  flex: 1 1 240px;
}

.exp-meta h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exp-company {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 2px;
}

.exp-badge {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--violet);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.exp-summary {
  margin: 20px 0 18px;
  color: var(--text-dim);
  max-width: 70ch;
}

.exp-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

.exp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.exp-list svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: #34d399;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 26px 24px;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(24, 34, 58, 0.7);
  box-shadow: 0 20px 44px rgba(3, 6, 15, 0.5);
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--blue);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-card:hover .skill-icon {
  background: var(--grad);
  color: #061022;
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- AI Transition ---------- */
.ai-section {
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(99, 102, 241, 0.13), transparent 62%),
    var(--bg-1);
}

.ai-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.ai-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.ai-intro > p:first-child {
  color: var(--text-dim);
  font-size: 1.06rem;
  margin-bottom: 22px;
}

.learn-focus-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--indigo), var(--violet));
  opacity: 0.5;
}

.roadmap-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-node {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 2px solid var(--indigo);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.14), 0 0 22px var(--glow-blue);
  margin-bottom: 20px;
}

.step-node span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue);
}

.step-body {
  width: 100%;
  padding: 22px 18px;
  border-color: var(--line);
}

.step-body:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(3, 6, 15, 0.45);
}

.step-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-body p {
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  padding: 30px 26px 26px;
  border-style: dashed;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(24, 34, 58, 0.55);
}

.project-soon {
  position: absolute;
  top: 14px;
  right: -30px;
  transform: rotate(45deg);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #061022;
  background: var(--grad);
  padding: 3px 34px;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
  margin-bottom: 18px;
}

.project-icon svg {
  width: 22px;
  height: 22px;
}

.project-card:hover .project-icon {
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.4);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 6px;
  margin-bottom: 30px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--blue);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.contact-list a {
  display: block;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s var(--ease);
}

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

.contact-list p {
  color: var(--text);
  font-size: 0.98rem;
}

.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.social-btn svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--text-dim);
}

.social-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.social-btn small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  font-style: italic;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
}

.social-btn:hover svg {
  color: var(--blue);
}

.contact-form {
  padding: 34px;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 26, 0.6);
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa8bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

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

.form-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: #34d399;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  padding: 44px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-brand span.muted {
  display: block;
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

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

.footer-copy {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero {
    min-height: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 380px;
  }

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

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

  .roadmap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .roadmap::before {
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--violet));
  }

  .roadmap-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
    padding-left: 34px;
  }

  .step-node {
    position: absolute;
    left: 0;
    top: 12px;
    margin: 0;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 28px 24px;
    background: rgba(6, 10, 20, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 1.15rem;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav a.active::after {
    display: none;
  }

  .site-nav a.active {
    color: var(--blue);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 76px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-stats div {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: 12px 0;
  }

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

  .skill-card {
    padding: 20px 16px;
  }

  .skill-icon {
    width: 42px;
    height: 42px;
  }

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

  .experience-card,
  .contact-form {
    padding: 24px;
  }

  .exp-meta h3 {
    font-size: 1.15rem;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .container {
    width: min(var(--container), 100% - 40px);
  }
}

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

  .brand-text span {
    display: none;
  }
}