/* ============================================================
   Firoz Kabir — Portfolio
   Visual system: dark, glass, neon blue/purple/cyan, premium
   ============================================================ */

:root {
  /* surfaces */
  --bg-0:        #05060d;     /* deepest */
  --bg-1:        #08091a;     /* base canvas */
  --bg-2:        #0c0e22;     /* raised */
  --glass:       rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text:        #e9ecff;
  --text-dim:    #a8b0d6;
  --text-mute:   #6b7299;

  /* accents */
  --blue:        #4d8dff;
  --blue-bright: #6aa1ff;
  --purple:      #a855f7;
  --purple-deep: #7c3aed;
  --cyan:        #22d3ee;
  --cyan-soft:   #67e8f9;
  --pink:        #f472b6;

  /* spacing */
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1240px;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* type */
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body:    "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg-1);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "cv11";
  line-height: 1.5;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: rgba(77, 141, 255, 0.35); color: #fff; }

/* ============================================================
   GLOBAL DECOR — mesh + grain + mouse glow
   ============================================================ */

.bg-mesh {
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% 0%,   rgba(124,58,237,0.22), transparent 70%),
    radial-gradient(50% 50% at 0% 30%,   rgba(34,211,238,0.16), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(77,141,255,0.18), transparent 70%),
    var(--bg-1);
  pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0;
  z-index: -1;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 90%);
  pointer-events: none;
}
.bg-grain {
  position: fixed; inset: 0;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* mouse cursor glow */
.cursor-glow {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(77,141,255,0.18), rgba(168,85,247,0.08) 35%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  mix-blend-mode: screen;
  filter: blur(8px);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 18px;
  background: rgba(8, 9, 26, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-right: 14px;
  margin-right: 4px;
  border-right: 1px solid var(--line);
  height: 22px;
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 4px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.nav a.nav-link {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav a.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav .cta-sm {
  margin-left: 6px;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 500;
  box-shadow: 0 0 24px rgba(77,141,255,0.4);
  transition: transform .2s, box-shadow .2s;
}
.nav .cta-sm:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(77,141,255,0.55); }

@media (max-width: 760px) {
  .nav { gap: 0; padding: 8px 8px 8px 14px; }
  .nav a.nav-link, .nav-brand { display: none; }
  .nav-brand.is-mobile { display: flex; border-right: 0; padding-right: 0; margin-right: 0; }
}

/* ============================================================
   BUTTONS + CHIPS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow:
    0 10px 32px rgba(77,141,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(77,141,255,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(106,161,255,0.55); background: rgba(77,141,255,0.06); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  font-family: var(--f-mono);
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.chip .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* ============================================================
   HEADINGS / SECTION INTROS
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }

.h-display {
  font-size: clamp(42px, 7.2vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.section-intro p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.grad-text {
  background: linear-gradient(110deg, #fff 0%, var(--cyan-soft) 38%, var(--blue-bright) 60%, var(--purple) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-top: clamp(140px, 18vh, 200px);
  min-height: 92vh;
  display: flex; align-items: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-status .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  position: relative;
}
.hero-status .pulse-dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid #22c55e;
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring {
  0%   { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .stack {
  display: block; position: relative;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.05em;
  height: 0.08em;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  filter: blur(2px);
  opacity: 0.75;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 56px;
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-meta .stat .n {
  font-family: var(--f-display);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta .stat .l {
  font-size: 13px; color: var(--text-mute);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Hero visual — terminal + floating chips */
.hero-visual {
  position: relative;
  height: 480px;
}
.float {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

/* Terminal card */
.terminal {
  position: absolute;
  top: 40px; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(15,18,40,0.85), rgba(8,9,26,0.85));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(77,141,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  --rot: -2deg;
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}
.terminal::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(77,141,255,0.4), transparent 40%, rgba(168,85,247,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.term-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.term-head .dots { display: flex; gap: 6px; }
.term-head .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.term-head .dots span:nth-child(1) { background: #ff6058; }
.term-head .dots span:nth-child(2) { background: #ffbd2e; }
.term-head .dots span:nth-child(3) { background: #28ca42; }
.term-head .title {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.term-head .status {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan-soft);
  display: flex; align-items: center; gap: 6px;
}
.term-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.term-body {
  padding: 20px 22px 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  min-height: 240px;
}
.term-body .ln { display: block; white-space: pre; }
.term-body .prompt { color: var(--cyan); }
.term-body .cmd { color: #fff; }
.term-body .ok { color: #4ade80; }
.term-body .key { color: var(--purple); }
.term-body .str { color: #fbbf24; }
.term-body .com { color: var(--text-mute); }
.term-body .acc { color: var(--blue-bright); }
.term-body .caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--cyan);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

/* Floating mini cards */
.float-card {
  position: absolute;
  background: rgba(15,18,40,0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  z-index: 2;
}
.float-card .ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(77,141,255,0.25), rgba(168,85,247,0.25));
  border: 1px solid var(--line-strong);
}
.float-card .ic svg { width: 16px; height: 16px; }
.float-card .lbl { color: var(--text); font-weight: 500; line-height: 1.1; }
.float-card .sub { color: var(--text-mute); font-size: 11px; font-family: var(--f-mono); }

.float-card.fc-1 { top: 0; right: -10px; --rot: 4deg; transform: rotate(4deg); animation: float 5.5s ease-in-out infinite; }
.float-card.fc-2 { bottom: 40px; left: -20px; --rot: -3deg; transform: rotate(-3deg); animation: float 6.5s ease-in-out infinite 1s; }
.float-card.fc-3 { bottom: -10px; right: 20px; --rot: 2deg; transform: rotate(2deg); animation: float 7s ease-in-out infinite 0.4s; }

/* Connector lines svg */
.hero-visual .lines {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-visual .lines path {
  fill: none; stroke: rgba(77,141,255,0.4); stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: dash 12s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -100; } }

/* Hero glow blobs */
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow.g1 { top: -100px; right: -100px; background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 60%); }
.hero-glow.g2 { bottom: -200px; left: -100px; background: radial-gradient(circle, rgba(77,141,255,0.35), transparent 60%); }

/* marquee logos under hero */
.trust {
  margin-top: clamp(60px, 10vh, 120px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap; justify-content: space-between;
  opacity: 0.65;
}
.trust-row .lbl {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}
.trust-row .logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-bio p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.65;
}
.about-bio p strong { color: var(--text); font-weight: 500; }
.about-bio p:first-of-type::first-letter {
  float: left;
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  background: linear-gradient(135deg, var(--blue-bright), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.tech-stack {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 1px dashed var(--line-strong);
  padding-left: 28px;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 3px rgba(77,141,255,0.15), 0 0 16px rgba(77,141,255,0.5);
}
.timeline-item .yr {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cyan-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-item .ttl {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.timeline-item .desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ============================================================
   SERVICES — card grid w/ glow on hover
   ============================================================ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.svc::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(77,141,255,0.25), transparent 60%);
  border-radius: 50%;
  top: var(--my, -200px); left: var(--mx, -200px);
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)); }
.svc:hover::before { opacity: 1; }
.svc .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(77,141,255,0.18), rgba(168,85,247,0.18));
  border: 1px solid var(--line-strong);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.svc .ic svg { width: 22px; height: 22px; stroke: var(--cyan-soft); }
.svc h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.svc p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  position: relative; z-index: 1;
}
.svc .num {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

/* ============================================================
   PROJECTS
   ============================================================ */

.proj-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.proj-grid > .proj.feature { grid-row: span 2; }
.proj-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; grid-column: 2; }
.proj-grid .row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; grid-column: 2; }

.proj {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
  transition: transform .35s, border-color .35s;
  display: flex; flex-direction: column;
  gap: 18px;
}
.proj:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.proj.feature { padding: 28px; }
.proj-preview {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #0a0e24, #050811);
}
.proj.feature .proj-preview { aspect-ratio: 16/9.5; }
.proj-body { display: flex; flex-direction: column; gap: 10px; }
.proj h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
}
.proj h3 .live {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
  background: rgba(34,197,94,0.08);
}
.proj p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.proj-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.proj-stack { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-stack span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.proj-link {
  font-size: 13px;
  color: var(--cyan-soft);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.proj-link svg { width: 13px; height: 13px; transition: transform .25s; }
.proj-link:hover svg { transform: translate(2px, -2px); }

/* Mockup-specific styles, inside preview */
.mock { width: 100%; height: 100%; position: relative; }

/* Mockup 1 — dashboard with chart */
.mock-dash {
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(77,141,255,0.15), transparent 70%),
    linear-gradient(180deg, #0a0e24, #050811);
}
.mock-dash .topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mock-dash .topbar .badge {
  font-family: var(--f-mono); font-size: 9px;
  color: var(--text); padding: 3px 6px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 4px;
}
.mock-dash .topbar .ttl { font-size: 11px; font-weight: 600; }
.mock-dash .topbar .live {
  margin-left: auto; font-size: 9px;
  color: #4ade80; font-family: var(--f-mono);
  display: flex; align-items: center; gap: 4px;
}
.mock-dash .topbar .live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }

.mock-dash .panes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.mock-dash .pane {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.mock-dash .pane .lab { font-family: var(--f-mono); font-size: 9px; color: var(--text-mute); margin-bottom: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.mock-dash .pane .num { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.mock-dash .pane .delta { font-family: var(--f-mono); font-size: 10px; color: #4ade80; }
.mock-dash svg.chart { width: 100%; height: 70%; }

/* Mockup 2 — chat */
.mock-chat {
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(168,85,247,0.18), transparent 70%),
    linear-gradient(180deg, #0a0e24, #050811);
}
.mock-chat .ttl { font-family: var(--f-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.bubble {
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.4;
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.bubble.bot.typing { display: flex; gap: 3px; padding: 9px 12px; }
.bubble.bot.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-mute); animation: typebounce 1.2s ease-in-out infinite; }
.bubble.bot.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.bot.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typebounce { 0%,80%,100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-3px); opacity: 1; } }

/* Mockup 3 — workflow nodes */
.mock-flow {
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(34,211,238,0.12), transparent 70%),
    linear-gradient(180deg, #0a0e24, #050811);
  display: grid; place-items: center;
}
.flow-svg { width: 100%; height: 100%; }

/* Mockup 4 — leadgen */
.mock-leads {
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(77,141,255,0.15), transparent 70%),
    linear-gradient(180deg, #0a0e24, #050811);
}
.mock-leads .row {
  display: grid; grid-template-columns: 16px 1fr auto auto;
  gap: 8px; align-items: center;
  padding: 7px 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10.5px;
}
.mock-leads .row .av { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.mock-leads .row .nm { color: var(--text); }
.mock-leads .row .src { font-family: var(--f-mono); font-size: 9px; color: var(--text-mute); }
.mock-leads .row .st {
  font-family: var(--f-mono); font-size: 9px;
  padding: 2px 6px; border-radius: 4px;
}
.mock-leads .row .st.q { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.mock-leads .row .st.p { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.mock-leads .row .st.n { background: rgba(77,141,255,0.12); color: var(--blue-bright); border: 1px solid rgba(77,141,255,0.3); }

/* Mockup 5 — tools panel */
.mock-tools {
  padding: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(168,85,247,0.18), transparent 70%),
    linear-gradient(180deg, #0a0e24, #050811);
}
.tool-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.tool-tile .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(77,141,255,0.25), rgba(168,85,247,0.25)); border: 1px solid var(--line); }
.tool-tile .nm { font-size: 10px; font-weight: 500; }
.tool-tile .sub { font-family: var(--f-mono); font-size: 8.5px; color: var(--text-mute); }

/* ============================================================
   SKILLS — floating badges + bars
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.skill-bars { display: flex; flex-direction: column; gap: 18px; }
.bar { position: relative; }
.bar .lbl { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.bar .lbl .nm { font-family: var(--f-display); font-weight: 500; }
.bar .lbl .pc { font-family: var(--f-mono); font-size: 12px; color: var(--text-mute); }
.bar .track {
  height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.bar .fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(77,141,255,0.5);
  transition: width 1.4s cubic-bezier(.25,.85,.35,1);
}
.bar.in .fill { width: var(--w, 80%); }

.badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-content: flex-start;
}
.badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--text-dim);
  font-family: var(--f-mono);
  letter-spacing: 0.01em;
  transition: transform .25s, border-color .25s, color .25s, background .25s;
  cursor: default;
}
.badge:hover {
  transform: translateY(-2px) scale(1.03);
  color: var(--text);
  border-color: rgba(106,161,255,0.5);
  background: rgba(77,141,255,0.06);
  box-shadow: 0 8px 24px rgba(77,141,255,0.2);
}
.badge svg { width: 14px; height: 14px; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testi {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 22px;
  transition: transform .3s, border-color .3s;
}
.testi:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.testi .quote-mark {
  font-family: var(--f-display);
  font-size: 60px;
  line-height: 0.6;
  color: var(--blue);
  opacity: 0.4;
}
.testi blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi .who .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: 1px solid var(--line-strong);
}
.testi .who .meta .nm { font-size: 14px; font-weight: 500; }
.testi .who .meta .rl { font-size: 12px; color: var(--text-mute); font-family: var(--f-mono); }

/* ============================================================
   BLOG / WRITING
   ============================================================ */

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

.post {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
  cursor: pointer;
}
.post:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}
.post:hover .post-arr { transform: translate(2px, -2px); color: var(--cyan-soft); }
.post:hover .post-cover .glyph { transform: scale(1.04); }

/* Cover — gradient/glyph placeholder */
.post-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-cover .glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 120px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--cyan-soft) 40%, var(--blue) 75%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.post-cover.c1 { background: radial-gradient(70% 90% at 20% 20%, rgba(168,85,247,0.30), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(34,211,238,0.22), transparent 60%), linear-gradient(180deg, #0c0e22, #050811); }
.post-cover.c2 { background: radial-gradient(70% 90% at 80% 20%, rgba(34,211,238,0.28), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(77,141,255,0.25), transparent 60%), linear-gradient(180deg, #0c0e22, #050811); }
.post-cover.c3 { background: radial-gradient(80% 100% at 50% 0%, rgba(77,141,255,0.30), transparent 60%), radial-gradient(60% 80% at 50% 100%, rgba(168,85,247,0.20), transparent 60%), linear-gradient(180deg, #0c0e22, #050811); }
.post-cover.c4 { background: radial-gradient(70% 90% at 0% 50%, rgba(244,114,182,0.22), transparent 60%), radial-gradient(60% 80% at 100% 50%, rgba(34,211,238,0.22), transparent 60%), linear-gradient(180deg, #0c0e22, #050811); }

.post-cover::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
  opacity: 0.5;
  pointer-events: none;
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post.feature .post-body { padding: 28px; gap: 14px; }
.post.feature .post-cover .glyph { font-size: 180px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(77,141,255,0.08);
  border: 1px solid rgba(77,141,255,0.3);
  color: var(--blue-bright);
}
.post-tag.c { background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.3); color: var(--cyan-soft); }
.post-tag.p { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.3); color: #c084fc; }

.post h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: pretty;
}
.post.feature h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}
.post p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}
.post.feature p { font-size: 15.5px; }

.post-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.post-foot .meta { display: flex; align-items: center; gap: 10px; }
.post-foot .meta .sep { opacity: 0.4; }
.post-arr {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: transform .25s, color .25s, border-color .25s;
}
.post-arr svg { width: 12px; height: 12px; }

.blog-cta {
  margin-top: 28px;
  display: flex; justify-content: center;
}

/* ============================================================
   BLOG — full list + detail page (blog.html)
   ============================================================ */

.blog-page-header {
  padding-top: clamp(140px, 18vh, 180px);
  padding-bottom: 40px;
  text-align: center;
}
.blog-page-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.blog-page-header p { color: var(--text-dim); max-width: 580px; margin: 0 auto; font-size: 17px; }

.blog-all {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: clamp(80px, 12vh, 140px);
}
.blog-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.blog-filter-bar button {
  font-size: 13px;
  font-family: var(--f-mono);
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: border-color .25s, color .25s, background .25s;
}
.blog-filter-bar button:hover,
.blog-filter-bar button.active {
  border-color: rgba(106,161,255,0.55);
  color: var(--text);
  background: rgba(77,141,255,0.08);
}

/* Detail */
.post-detail {
  padding-top: clamp(120px, 16vh, 160px);
  padding-bottom: clamp(80px, 12vh, 140px);
  max-width: 760px;
  margin: 0 auto;
}
.post-detail .back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
  transition: color .2s;
}
.post-detail .back:hover { color: var(--cyan-soft); }
.post-detail .meta-row {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.post-detail h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.post-detail .lede {
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 36px;
}
.post-detail .post-hero-cover {
  height: 320px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.post-detail .post-hero-cover .glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 220px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--cyan-soft) 40%, var(--blue) 75%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-detail .post-hero-cover::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
  opacity: 0.4;
  pointer-events: none;
}
.post-body-md {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.75;
}
.post-body-md h1, .post-body-md h2, .post-body-md h3 {
  color: var(--text);
  margin-top: 42px; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.post-body-md h1 { font-size: clamp(28px, 3.5vw, 36px); }
.post-body-md h2 { font-size: clamp(22px, 2.6vw, 28px); }
.post-body-md h3 { font-size: 19px; }
.post-body-md p  { margin-bottom: 20px; }
.post-body-md ul, .post-body-md ol { margin: 0 0 22px 22px; }
.post-body-md li { margin-bottom: 8px; }
.post-body-md strong { color: var(--text); font-weight: 600; }
.post-body-md em { color: var(--cyan-soft); font-style: normal; }
.post-body-md code {
  font-family: var(--f-mono);
  font-size: 13.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--cyan-soft);
}
.post-body-md blockquote {
  border-left: 2px solid var(--blue);
  background: rgba(77,141,255,0.05);
  margin: 28px 0;
  padding: 16px 22px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text);
  font-style: italic;
}
.post-body-md blockquote p { margin: 0; }
.post-body-md a {
  color: var(--cyan-soft);
  border-bottom: 1px solid rgba(34,211,238,0.3);
  transition: border-color .2s;
}
.post-body-md a:hover { border-color: var(--cyan-soft); }
.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-mute);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ============================================================
   BLOG section divider end
   ============================================================ */

/* ============================================================
   CONTACT
   ============================================================ */

.contact-card {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(168,85,247,0.15), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(34,211,238,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(77,141,255,0.4), transparent 50%, rgba(168,85,247,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .25s, transform .25s, background .25s;
}
.contact-link:hover { border-color: rgba(106,161,255,0.5); transform: translateX(4px); background: rgba(77,141,255,0.06); }
.contact-link .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(77,141,255,0.2), rgba(168,85,247,0.2));
  border: 1px solid var(--line-strong);
}
.contact-link .ic svg { width: 18px; height: 18px; }
.contact-link .meta { display: flex; flex-direction: column; }
.contact-link .meta .l { font-size: 12px; color: var(--text-mute); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-link .meta .v { font-size: 14px; color: var(--text); }
.contact-link .arr { margin-left: auto; opacity: 0.4; transition: opacity .25s, transform .25s; }
.contact-link:hover .arr { opacity: 1; transform: translateX(2px); }

.socials { display: flex; gap: 10px; }
.soc {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, color .25s;
  color: var(--text-dim);
}
.soc:hover { border-color: var(--cyan-soft); color: var(--cyan-soft); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,211,238,0.25); }
.soc svg { width: 16px; height: 16px; }

/* form */
.contact-form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 14px 16px;
  background: rgba(5,6,13,0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: none;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus {
  border-color: rgba(106,161,255,0.6);
  background: rgba(5,6,13,0.8);
  box-shadow: 0 0 0 3px rgba(77,141,255,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.send-btn { margin-top: 6px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
  margin-top: clamp(60px, 10vh, 100px);
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.foot-row .built {
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.foot-row .built .heart {
  color: var(--cyan-soft);
  display: inline-block;
  animation: heart 2s ease-in-out infinite;
}
@keyframes heart { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.foot-row .meta { font-family: var(--f-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.1em; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ============================================================
   LOADING
   ============================================================ */

.loader {
  position: fixed; inset: 0;
  background: var(--bg-1);
  display: grid; place-items: center;
  z-index: 200;
  transition: opacity .8s ease, visibility .8s;
}
.loader.gone { opacity: 0; visibility: hidden; }
.loader .ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-top-color: var(--cyan);
  border-right-color: var(--blue);
  animation: spin 1s linear infinite;
  position: relative;
}
.loader .ring::before {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.05);
  border-bottom-color: var(--purple);
  animation: spin 1.4s linear infinite reverse;
}
.loader .lbl {
  position: absolute; bottom: 18%;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid, .about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 380px; }
  .svc-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-side { grid-template-rows: none; grid-template-columns: 1fr 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-grid > .proj.feature { grid-row: auto; }
  .proj-grid .row-2, .proj-grid .row-3 { grid-column: auto; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .svc-grid, .testi-grid, .proj-grid .row-2, .proj-grid .row-3 { grid-template-columns: 1fr; }
  .blog-grid .blog-side { grid-template-columns: 1fr; }
  .post-cover .glyph { font-size: 90px !important; }
  .post.feature .post-cover .glyph { font-size: 130px !important; }
  .hero-meta { gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
  .section-head { margin-bottom: 36px; }
}
