/* ==========================================================================
   Mahiuddin Mahi — SEO & Link Building consultant site
   Single stylesheet, mobile-first. Sections:
   1 Tokens  2 Reset  3 Base type  4 Layout  5 Buttons/badges  6 Header/nav
   7 Hero  8 Cards/services  9 Why-me + process  10 Tools  11 Portfolio/sheets
   12 Blog  13 Article  14 Contact form  15 Footer  16 404/misc  17 Motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --navy-950: #050b12;
  --navy-900: #081320;
  --navy-850: #0b1a29;
  --navy-800: #0f2233;
  --surface: #0d1b2a;
  --surface-2: #122334;
  --border: rgba(151, 187, 220, 0.14);
  --border-strong: rgba(151, 187, 220, 0.26);

  /* Text */
  --text: #eaf2f9;
  --text-muted: #a3b6c9;
  --text-dim: #7f94a8;

  /* Accent */
  --accent: #17c98b;
  --accent-bright: #4ee0a8;
  --accent-deep: #0e9c6a;
  --accent-soft: rgba(23, 201, 139, 0.12);
  --accent-line: rgba(23, 201, 139, 0.32);

  /* Support (used sparingly) */
  --info: #6bb8ff;
  --warn: #ffb454;

  /* Type */
  --font-body: "Inter", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-bengali: "Noto Sans Bengali", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.89rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.65rem);
  --step-3: clamp(1.55rem, 1.32rem + 1.1vw, 2.15rem);
  --step-4: clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem);
  --step-5: clamp(2.2rem, 1.6rem + 2.9vw, 3.8rem);

  /* Spacing */
  --sp-2xs: 0.375rem;
  --sp-xs: 0.625rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.25rem;
  --sp-xl: 3.25rem;
  --sp-2xl: 4.75rem;

  /* Radius & shadow */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 30px 70px -35px rgba(0, 0, 0, 0.8);

  /* Layout */
  --container: 1160px;
  --container-narrow: 780px;
  --gutter: clamp(1.15rem, 1rem + 2.2vw, 2.5rem);
  --header-h: 70px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  min-height: 100vh;
  background-color: var(--navy-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page glow — one fixed layer, no extra requests */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(23, 201, 139, 0.13), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(107, 184, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 42%, #04080e 100%);
}

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

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

button { background: none; border: 0; cursor: pointer; }

ul[class],
ol[class] { list-style: none; padding: 0; }

a { color: var(--accent-bright); text-decoration-color: var(--accent-line); }
a:hover { color: #7cf3c4; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: #fff;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   3. Base typography helpers
   -------------------------------------------------------------------------- */
[lang="bn"],
.lang-bn {
  font-family: var(--font-bengali);
  line-height: 1.85;
  letter-spacing: 0;
}
[lang="bn"] h1, [lang="bn"] h2, [lang="bn"] h3, [lang="bn"] h4 { letter-spacing: 0; }

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 62ch;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.accent-text { color: var(--accent-bright); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-line);
}
[lang="bn"] .eyebrow { letter-spacing: 0.06em; text-transform: none; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 2.2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); }
.section--alt {
  background:
    linear-gradient(180deg, rgba(18, 35, 52, 0.55), rgba(13, 27, 42, 0.2));
  border-block: 1px solid var(--border);
}

.section-head { max-width: 66ch; margin-bottom: var(--sp-lg); }
.section-head h2 { font-size: var(--step-3); margin-block: 0.6rem 0.75rem; }
.section-head--split {
  display: grid;
  gap: var(--sp-sm);
  align-items: end;
  max-width: none;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr auto; }
}

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.6vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .split--64 { grid-template-columns: 1.35fr 1fr; }
  .split--46 { grid-template-columns: 1fr 1.25fr; }
}

.stack > * + * { margin-top: var(--sp-sm); }
.stack-lg > * + * { margin-top: var(--sp-md); }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }

/* Page banner used on inner pages */
.page-banner {
  padding-block: clamp(3rem, 2rem + 5vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(23, 201, 139, 0.07), transparent 70%);
}
.page-banner h1 {
  font-size: var(--step-4);
  margin-block: 0.85rem 1rem;
}
.page-banner .lead { font-size: var(--step-1); }

/* --------------------------------------------------------------------------
   5. Buttons, badges, chips
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.86rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.22s ease,
    background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  --btn-fg: #04160f;
  --btn-bd: transparent;
  background-image: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 12px 28px -14px rgba(23, 201, 139, 0.75);
}
.btn--primary:hover { color: #04160f; box-shadow: 0 18px 34px -14px rgba(23, 201, 139, 0.85); }

.btn--ghost { --btn-fg: var(--text); }
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); color: #fff; }

.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--sp-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(151, 187, 220, 0.08);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.badge--sample {
  border-color: rgba(255, 180, 84, 0.42);
  background: rgba(255, 180, 84, 0.12);
  color: #ffcb8a;
}
.badge--live {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(18, 35, 52, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: #04160f;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 11, 18, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9);
}
.site-header.is-scrolled::after { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-image: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  color: #04160f;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 20px -10px rgba(23, 201, 139, 0.9);
}
.brand__text { display: grid; line-height: 1.15; font-size: 1.02rem; }
.brand__role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
[lang="bn"] .brand__role { text-transform: none; letter-spacing: 0; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
}
.nav__toggle:hover { border-color: var(--accent-line); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__list {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.nav__list.is-open { display: flex; }
.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav__link:hover { color: #fff; background: rgba(151, 187, 220, 0.08); }
.nav__link[aria-current="page"] { color: var(--accent-bright); }
.nav__link[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.nav__actions { display: none; align-items: center; gap: 0.6rem; }

/* Language switch pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(151, 187, 220, 0.06);
}
.lang-switch a {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

/* Mobile drawer */
@media (max-width: 999px) {
  .nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.6rem;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 13, 21, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav__list.is-open { display: flex; }
  .nav__link {
    padding: 0.9rem 0.4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(151, 187, 220, 0.08);
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__list .nav__cta { margin-top: 1rem; }
  .nav__list .lang-switch { margin-top: 0.75rem; align-self: flex-start; }
  .nav__cta-desktop { display: none; }
}

@media (min-width: 1000px) {
  .nav__toggle { display: none; }
  .nav__list { display: flex; }
  .nav__actions { display: flex; }
  .nav__list .lang-switch { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem); }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin-block: 1rem 1.15rem;
}
.hero h1 .highlight {
  background-image: linear-gradient(120deg, var(--accent-bright), #8ff0c6 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-bottom: 0.35rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { width: 15px; height: 15px; color: var(--accent); }

/* Hero side panel */
.hero__panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(19, 40, 59, 0.92), rgba(9, 19, 30, 0.92));
  box-shadow: var(--shadow-lg);
  padding: clamp(1.15rem, 0.8rem + 1.4vw, 1.75rem);
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--accent-line), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
[lang="bn"] .hero__panel-head { text-transform: none; letter-spacing: 0; }

/* Availability card */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 7px rgba(23, 201, 139, 0.06); }
}

/* --------------------------------------------------------------------------
   8. Cards & services
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(18, 35, 52, 0.8), rgba(9, 18, 28, 0.72));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.15rem;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.card__icon svg { width: 22px; height: 22px; }
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card__link:hover svg { transform: translateX(4px); }
.card--numbered { padding-top: 2.9rem; }
.card__num {
  position: absolute;
  top: 1.05rem;
  left: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.list-check { display: grid; gap: 0.6rem; }
.list-check li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.list-check li strong { color: var(--text); font-weight: 600; }

/* Service detail block */
.service-block {
  display: grid;
  gap: var(--sp-md);
  padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(18, 35, 52, 0.7), rgba(8, 16, 25, 0.6));
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-block + .service-block { margin-top: clamp(1.25rem, 0.8rem + 1.6vw, 2rem); }
.service-block__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.service-block__head h2,
.service-block__head h3 { font-size: var(--step-2); flex: 1 1 260px; }
.service-block__grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
}
@media (min-width: 860px) {
  .service-block__grid { grid-template-columns: repeat(2, 1fr); }
}
.service-block__grid > div h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.55rem;
}
[lang="bn"] .service-block__grid > div h3 { text-transform: none; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   9. Why-me + process
   -------------------------------------------------------------------------- */
.process { counter-reset: step; display: grid; gap: 1.1rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.6rem; }
  .process__item::before {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(100% + 0.55rem);
    width: calc(100% - 42px);
    border-top: 1px dashed var(--border-strong);
  }
  .process__item:last-child::before { display: none; }
}
.process__item {
  position: relative;
  counter-increment: step;
  padding-left: 3.1rem;
}
.process__item::marker { display: none; }
.process__num {
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-weight: 700;
}
.process__num::before { content: counter(step, decimal-leading-zero); font-size: 0.92rem; }
.process__item h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.process__item p { color: var(--text-muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   10. Tools
   -------------------------------------------------------------------------- */
.tools {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.tool {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 30, 45, 0.65);
}
.tool__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(151, 187, 220, 0.1);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.tool__name { font-weight: 600; font-size: 0.98rem; }
.tool__use { color: var(--text-dim); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   11. Portfolio + spreadsheet mockups
   -------------------------------------------------------------------------- */
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(11, 23, 36, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.work-card__body { padding: clamp(1rem, 0.8rem + 1vw, 1.4rem); display: grid; gap: 0.6rem; }
.work-card__body h3 { font-size: var(--step-1); }
.work-card__body p { color: var(--text-muted); font-size: 0.94rem; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.work-card__tags li {
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.sheet {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 33, 50, 0.9), rgba(10, 20, 31, 0.9));
  overflow: hidden;
}
.sheet__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 14, 22, 0.7);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.sheet__dots { display: inline-flex; gap: 5px; margin-right: 0.25rem; }
.sheet__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(151,187,220,.28); }
.sheet__dots i:first-child { background: #ff6b6b; }
.sheet__dots i:nth-child(2) { background: #ffb454; }
.sheet__dots i:last-child { background: var(--accent); }
.sheet__scroll { overflow-x: auto; }
.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  white-space: nowrap;
}
.sheet caption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sheet th,
.sheet td {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(151, 187, 220, 0.1);
  text-align: left;
}
.sheet thead th {
  position: sticky;
  top: 0;
  background: rgba(9, 20, 31, 0.98);
  color: var(--accent-bright);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sheet tbody tr:nth-child(even) td { background: rgba(151, 187, 220, 0.035); }
.sheet .row-hl td { background: rgba(23, 201, 139, 0.07); }
.sheet .num { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.75rem; }
.sheet .yes { color: var(--accent-bright); font-weight: 600; }
.sheet .no { color: #ff9f9f; font-weight: 600; }
.sheet .maybe { color: var(--warn); font-weight: 600; }

.sheet--large { font-size: 0.88rem; }
.sheet--large th,
.sheet--large td { white-space: normal; min-width: 110px; }

/* --------------------------------------------------------------------------
   12. Blog listing
   -------------------------------------------------------------------------- */
.post-card {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 27, 42, 0.72);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.post-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.post-card h3 { font-size: var(--step-1); line-height: 1.35; }
.post-card h3 a { color: #fff; text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-bright); }
.post-card p { color: var(--text-muted); font-size: 0.94rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.post-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.3rem; }
.post-meta time { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Article
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3rem);
  align-items: start;
}
@media (min-width: 1080px) {
  .article-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .article-layout--no-toc { grid-template-columns: minmax(0, 1fr); }
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 27, 42, 0.7);
  font-size: 0.88rem;
}
.toc__title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}
[lang="bn"] .toc__title { text-transform: none; letter-spacing: 0; }
.toc ol { display: grid; gap: 0.15rem; counter-reset: toc; }
.toc a {
  display: block;
  padding: 0.34rem 0.55rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover { color: #fff; background: rgba(151, 187, 220, 0.07); }
.toc .is-active > a,
.toc a.is-active {
  color: var(--accent-bright);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 1079px) {
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
}

.article { max-width: 74ch; }
.article h1 { font-size: var(--step-4); margin-block: 0.9rem 1rem; }
.article h2 {
  font-size: var(--step-2);
  margin-block: 2.4em 0.85em;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article h3 { font-size: var(--step-1); margin-block: 1.9em 0.7em; }
.article p { margin-bottom: 1.15em; color: #d3e2ee; }
.article ul:not([class]),
.article ol:not([class]) { margin: 0 0 1.25em 1.15rem; }
.article li { margin-bottom: 0.45em; color: #d3e2ee; }
.article ul:not([class]) li { list-style: disc; }
.article ul:not([class]) { padding-left: 0.6rem; }
.article ol:not([class]) { padding-left: 1.35rem; }
.article strong { color: #fff; font-weight: 650; }
.article a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: rgba(151, 187, 220, 0.12);
  font-family: var(--font-mono);
  font-size: 0.87em;
}
.article figure { margin: 1.6em 0; }
.article figcaption { margin-top: 0.6rem; font-size: 0.83rem; color: var(--text-dim); }
.article blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: #dcf5ea;
}
.article hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.83rem;
  color: var(--text-dim);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-bright); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: rgba(151, 187, 220, 0.4);
}
.breadcrumbs [aria-current="page"] { color: var(--text); }

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share__label { font-size: 0.83rem; color: var(--text-dim); margin-right: 0.2rem; }
.share a,
.share button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(151, 187, 220, 0.06);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.share a:hover,
.share button:hover { border-color: var(--accent-line); color: var(--accent-bright); background: var(--accent-soft); }
.share svg { width: 17px; height: 17px; }

.author-card {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: var(--sp-lg);
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 27, 42, 0.72);
}
@media (min-width: 640px) { .author-card { grid-template-columns: 72px 1fr; } }
.author-card img,
.author-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent-deep));
  display: grid;
  place-items: center;
  color: #04160f;
  font-size: 1.6rem;
  font-weight: 800;
}
.author-card h3 { font-size: var(--step-1); }
.author-card p { font-size: 0.92rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Contact form
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--warn); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(6, 14, 22, 0.65);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(127, 148, 168, 0.75); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(6, 14, 22, 0.85);
}
.field__hint { font-size: 0.8rem; color: var(--text-dim); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #ff8f8f; }
.field.is-invalid .field__error { color: #ff9f9f; font-size: 0.8rem; }
.field__error { display: none; }
.field.is-invalid .field__error { display: block; }

.form-status {
  display: none;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: #cff5e6;
  font-size: 0.92rem;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: rgba(255, 143, 143, 0.5); background: rgba(255, 143, 143, 0.1); color: #ffd6d6; }

.composed {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(6, 14, 22, 0.5);
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}
.composed[hidden] { display: none; }

.contact-info { display: grid; gap: 0.85rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 27, 42, 0.7);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-item:hover { border-color: var(--accent-line); transform: translateY(-2px); color: var(--text); }
.contact-item svg { width: 20px; height: 20px; color: var(--accent-bright); flex: none; margin-top: 3px; }
.contact-item__label { font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); }
[lang="bn"] .contact-item__label { text-transform: none; letter-spacing: 0; }
.contact-item__value { font-weight: 600; word-break: break-word; }

/* --------------------------------------------------------------------------
   15. CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.25rem);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(23, 201, 139, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(19, 40, 59, 0.95), rgba(8, 16, 25, 0.95));
}
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-band p { color: var(--text-muted); max-width: 58ch; margin-top: 0.7rem; }

.site-footer {
  margin-top: clamp(3rem, 2rem + 5vw, 5rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 16, 25, 0.85), rgba(4, 8, 14, 0.95));
}
.footer__grid {
  display: grid;
  gap: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
}
@media (min-width: 780px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
[lang="bn"] .footer h3 { text-transform: none; letter-spacing: 0; }
.footer__links { display: grid; gap: 0.55rem; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-size: 0.93rem; }
.footer__links a:hover { color: var(--accent-bright); text-decoration: underline; }
.footer__about p { color: var(--text-muted); font-size: 0.93rem; max-width: 42ch; margin-top: 0.75rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
}
.footer__bottom a { color: var(--text-muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   16. Misc (404, callouts, table, note)
   -------------------------------------------------------------------------- */
.note {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 180, 84, 0.08);
  color: #ffe2bd;
  font-size: 0.92rem;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--warn); margin-top: 2px; }
.note--info {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #cdf3e4;
}
.note--info svg { color: var(--accent-bright); }

.error-page { padding-block: clamp(4rem, 3rem + 8vw, 8rem); text-align: center; }
.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background-image: linear-gradient(150deg, var(--accent-bright), rgba(107, 184, 255, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: var(--step-3); margin-block: 1rem 0.75rem; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare-table caption { text-align: left; color: var(--text-dim); font-size: 0.85rem; padding-bottom: 0.6rem; }
.compare-table th,
.compare-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table thead th { color: var(--accent-bright); font-weight: 600; }

/* Placeholder photo frame (replace with real image) */
.photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(23, 201, 139, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(19, 40, 59, 0.9), rgba(8, 16, 25, 0.9));
  color: var(--text-dim);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
.photo-frame svg { width: 54px; height: 54px; opacity: 0.5; margin-bottom: 0.75rem; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .card--hover:hover, .work-card:hover, .chip:hover,
  .post-card:hover, .contact-item:hover { transform: none; }
}

::selection { background: rgba(23, 201, 139, 0.32); color: #fff; }

/* Thin scrollbars inside wide tables */
.sheet__scroll::-webkit-scrollbar { height: 8px; }
.sheet__scroll::-webkit-scrollbar-thumb { background: rgba(151, 187, 220, 0.25); border-radius: 99px; }
