:root {
  color-scheme: dark;
  --page: #0d0c0b;
  --surface: #151413;
  --surface-raised: #1c1a18;
  --text: #f5f2eb;
  --muted: #a39e96;
  --quiet: #757068;
  --line: rgba(245, 242, 235, 0.11);
  --line-strong: rgba(245, 242, 235, 0.22);
  --accent: #d7fa72;
  --accent-ink: #11130a;
  --violet: #a38cf4;
  --cyan: #38bdf8;
  --green: #4ade80;
  --amber: #fbbf24;
  --shadow: rgba(0, 0, 0, 0.32);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Noto Sans Bengali", system-ui, sans-serif;
  --bengali: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --bengali-display: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  --mono: "DM Mono", "JetBrains Mono", monospace;
  --max-width: 1260px;
  --gutter: clamp(20px, 5vw, 80px);
  --header-height: 80px;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #f7f6f1;
  --surface: #fffefa;
  --surface-raised: #f0eee7;
  --text: #22211d;
  --muted: #66645d;
  --quiet: #8a877e;
  --line: rgba(34, 33, 29, 0.11);
  --line-strong: rgba(34, 33, 29, 0.22);
  --accent: #634fc9;
  --accent-ink: #ffffff;
  --violet: #8c72db;
  --cyan: #0284c7;
  --green: #16a34a;
  --amber: #d97706;
  --shadow: rgba(45, 38, 70, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

/* Subtle ambient radial highlights behind canvas */
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 12%, color-mix(in srgb, var(--violet) 9%, transparent), transparent 42%),
    radial-gradient(ellipse at 15% 45%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 36%);
  content: "";
}

button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--accent-ink); background: var(--accent); }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}

.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 10px 14px; transform: translateY(-150%);
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  border-radius: 6px; transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* SPIDER-MAN WEB CANVAS LAYER - PURE BACKGROUND */
.spiderman-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.reading-progress { position: fixed; z-index: 85; inset: 0 0 auto; height: 2px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

.site-shell {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

/* HEADER & BRAND */
.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .25s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  display: grid; width: 38px; height: 38px; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 12px 12px 12px 4px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-radius .35s ease, background-color .3s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg); border-radius: 50%; }
.brand-mark span { color: var(--accent); }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -.05em; }
.brand-name span { color: var(--accent); font-weight: 600; }

.site-nav {
  display: flex; align-items: center;
  gap: clamp(18px, 2.8vw, 40px);
  margin-left: auto; margin-right: clamp(20px, 3.5vw, 50px);
}
.site-nav a, .header-tools, .back-to-top { font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.site-nav a { color: var(--muted); position: relative; transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  position: absolute; right: 100%; bottom: -6px; left: 0;
  height: 1px; background: var(--accent); content: "";
  transition: right .25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.header-tools { display: flex; align-items: center; gap: 9px; }
.language-toggle, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 10px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.language-toggle:hover, .theme-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.language-toggle-label { color: var(--text); }
.language-divider { color: var(--quiet); }
.theme-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
.menu-toggle { display: none; }

.section-wrap { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--gutter); }

/* HERO SECTION */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-top: 10px;
  padding-bottom: 30px;
}
.hero-copy { position: relative; z-index: 3; padding: 0 0 10px; }

.eyebrow, .section-label, .project-meta small, .process-number, .sample-footnote, .dialog-kicker {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: var(--muted); }
.eyebrow-dot, .caption-dot {
  width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 65%, transparent);
}

.hero h1 {
  max-width: 760px; margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600; letter-spacing: -.085em; line-height: .95;
}
h1 em, h2 em {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.065em;
}

.hero-intro {
  max-width: 485px; margin: 15px 0 18px;
  color: var(--muted); font-size: clamp(13.5px, 1.15vw, 15.5px); line-height: 1.75;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.button {
  display: inline-flex; min-height: 45px; align-items: center; justify-content: center;
  gap: 14px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px var(--shadow); }
.button svg, .copy-email svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; transition: color .2s ease; }
.text-link:hover { color: var(--text); }
.text-link span:last-child { color: var(--accent); font-size: 16px; }

/* SOCIAL LINKS BAR (HERO) */
.hero-social-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.social-btn {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s ease, background-color .2s ease, box-shadow .25s ease;
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  color: #fff;
}
.social-btn.social-github:hover { background: #24292e; box-shadow: 0 6px 18px rgba(255,255,255,0.18); }
.social-btn.social-facebook:hover { background: #1877f2; box-shadow: 0 6px 18px rgba(24,119,242,0.45); }
.social-btn.social-whatsapp:hover { background: #25d366; box-shadow: 0 6px 18px rgba(37,211,102,0.45); }
.social-btn.social-linkedin:hover { background: #0a66c2; box-shadow: 0 6px 18px rgba(10,102,194,0.45); }
.social-btn.social-x:hover { background: #000; box-shadow: 0 6px 18px rgba(255,255,255,0.2); }
.social-btn.social-telegram:hover { background: #229ed9; box-shadow: 0 6px 18px rgba(34,158,217,0.45); }
.social-btn.social-discord:hover { background: #5865f2; box-shadow: 0 6px 18px rgba(88,101,242,0.45); }
.social-btn.social-email:hover { background: #10b981; box-shadow: 0 6px 18px rgba(16,185,129,0.45); }

/* Tooltip on Social Buttons */
.social-btn::after {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 9px;
  border-radius: 6px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  content: attr(data-tooltip);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  z-index: 50;
}
.social-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* SPIDER-MAN WEB STATUS BADGE */
.hero-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
}
.spiderman-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.spiderman-badge.is-inactive {
  opacity: 0.78;
  border-color: rgba(255, 255, 255, 0.12);
}
.spiderman-badge.is-inactive:hover {
  opacity: 1;
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
}
.spiderman-badge.is-active {
  opacity: 1;
  border-color: var(--cyan);
  color: var(--text);
  background: color-mix(in srgb, var(--cyan) 15%, var(--surface));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.38);
}
.spiderman-badge.is-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.55);
}
.spiderman-badge .web-icon { font-size: 13px; animation: web-pulse 3s infinite ease-in-out; }
@keyframes web-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ========================================================
   HERO ART (MATCHING USER SCREENSHOT EXACTLY)
   ======================================================== */
.hero-art {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

/* Studio Ambient Dual Backlight Glow (Warm Amber on left, Cool Violet/Cyan on right) */
.art-ambient-glow {
  position: absolute;
  inset: -10% -15%;
  pointer-events: none;
  z-index: 0;
}
.glow-warm {
  position: absolute;
  top: 15%;
  left: 2%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  animation: glow-breathe 8s infinite alternate ease-in-out;
}
.glow-cool {
  position: absolute;
  top: 10%;
  right: 2%;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 112, 245, 0.28) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 70%);
  filter: blur(40px);
  animation: glow-breathe 8s infinite alternate-reverse ease-in-out;
}
@keyframes glow-breathe {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* ORBIT RINGS & GEOMETRIC GUIDES FROM SCREENSHOT */
.orbit-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.orbit-ring-outer {
  width: 104%;
  height: 88%;
  top: 6%;
  left: -2%;
  transform: rotate(-18deg);
  border-color: rgba(163, 140, 244, 0.22);
}
.orbit-ring-inner {
  width: 96%;
  height: 94%;
  top: 3%;
  left: 2%;
  transform: rotate(24deg);
  border-color: rgba(74, 222, 128, 0.16);
}

/* Orbit Node with Diamond Icon (From Screenshot) */
.orbit-node-diamond {
  position: absolute;
  top: 42%;
  left: 3%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  color: var(--cyan);
  font-size: 13px;
  z-index: 4;
  animation: diamond-pulse 4s infinite ease-in-out;
}
@keyframes diamond-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(56, 189, 248, 0.4); }
  50% { transform: scale(1.12); box-shadow: 0 0 24px rgba(56, 189, 248, 0.75); }
}

.orbit-node-dot {
  position: absolute;
  top: 44%;
  left: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 4;
}

/* PORTRAIT CARD (ARCHED SHAPE MATCHING USER SCREENSHOT) */
.portrait-card {
  position: relative;
  z-index: 2;
  width: min(390px, 82%);
  aspect-ratio: 0.82;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 48% 48% 24px 24px;
  background: linear-gradient(155deg, #24222a 0%, #131215 70%);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.6), 0 0 45px rgba(139, 92, 246, 0.15);
  transition: transform .6s cubic-bezier(.2,.65,.2,1), box-shadow .6s ease;
}
.portrait-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.7), 0 0 55px rgba(139, 92, 246, 0.25);
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.95) contrast(1.02);
  transition: transform .7s cubic-bezier(.2,.65,.2,1);
}
.portrait-card:hover img { transform: scale(1.04); }

.portrait-shade {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(10, 9, 12, 0.88));
  pointer-events: none;
}
.portrait-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portrait-stamp {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: white;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  backdrop-filter: blur(8px);
}
.portrait-stamp span { color: var(--accent); }

/* FLOATING BADGES AROUND PORTRAIT (FROM SCREENSHOT) */
.hero-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .25s ease, box-shadow .25s ease;
}

/* Status dots & radar pulses */
.badge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-green {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: ping-green 2.5s infinite;
}
.dot-cyan {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: ping-cyan 2.5s infinite;
}
@keyframes ping-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.2); }
}
@keyframes ping-cyan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}

/* 1. TOP-LEFT GITHUB BADGE (FROM SCREENSHOT) */
.badge-github {
  top: 10%;
  left: 6%;
  gap: 12px;
  padding: 10px 16px;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(13, 20, 16, 0.88);
  cursor: pointer;
  animation: float-github 6s ease-in-out infinite;
}
.badge-github:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--green);
  box-shadow: 0 18px 42px rgba(74, 222, 128, 0.22);
}
.badge-icon-wrap {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.badge-icon.icon-github { width: 18px; height: 18px; fill: currentColor; }
.badge-text-col { display: flex; flex-direction: column; text-align: left; }
.badge-primary-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.badge-sub-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .02em;
}
.badge-arrow-icon {
  color: var(--green);
  font-size: 15px;
  margin-left: 2px;
  transition: transform .2s ease;
}
.badge-github:hover .badge-arrow-icon { transform: translate(2px, -2px); }

/* 2. TOP-RIGHT LOCATION BADGE (DHAKA) (FROM SCREENSHOT) */
.badge-location {
  top: 9%;
  right: 5%;
  gap: 8px;
  padding: 8px 16px;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(12, 19, 28, 0.85);
  animation: float-location 6.5s ease-in-out infinite;
}
.badge-location:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.location-text {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}

/* 3. BOTTOM-LEFT CREATOR.TS CODE CARD (FROM SCREENSHOT) */
.hero-code-card {
  position: absolute;
  bottom: 8%;
  left: 4%;
  z-index: 5;
  width: 195px;
  padding: 13px 15px 14px;
  border-radius: 13px;
  background: rgba(14, 16, 23, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  animation: float-code 7s ease-in-out infinite;
}
.hero-code-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}
.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window-dots { display: flex; align-items: center; gap: 5px; }
.wdot { width: 8px; height: 8px; border-radius: 50%; }
.wdot-red { background: #ff5f56; }
.wdot-yellow { background: #ffbd2e; }
.wdot-green { background: #27c93f; }
.code-filename {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--quiet);
  letter-spacing: .04em;
}
.code-card-body {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: #e2e8f0;
}
.code-card-body code { font-family: inherit; }
.syn-kw { color: #c084fc; font-weight: 500; }
.syn-var { color: #93c5fd; }
.syn-prop { color: #cbd5e1; }
.syn-str { color: #86efac; font-weight: 500; }

/* 4. BOTTOM-RIGHT TECH BADGE (FROM SCREENSHOT) */
.badge-tech {
  bottom: 12%;
  right: 5%;
  gap: 8px;
  padding: 8px 15px;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(24, 19, 13, 0.85);
  animation: float-tech 6.8s ease-in-out infinite;
}
.badge-tech:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}
.tech-bolt-icon { color: var(--amber); font-size: 13px; }
.tech-text {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
}

/* Floating Animations for Screenshot elements */
@keyframes float-github {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes float-location {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float-code {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-tech {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-bottom-line {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}
.hero-bottom-line span:first-child, .hero-bottom-line span:last-child {
  color: var(--accent); font-size: 12px;
}

/* SECTION RULES & COMMONS */
.section-rule { border-top: 1px solid var(--line); }
.intro-section, .skills-section, .work-section, .approach-section, .story-section {
  padding-top: 36px; padding-bottom: 105px;
}
.section-label { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.section-number { color: var(--accent); }
.section-heading {
  margin: 0; font-size: clamp(38px, 5.8vw, 74px);
  font-weight: 600; letter-spacing: -.075em; line-height: 1.02;
}

/* INTRO / ABOUT SECTION */
.intro-grid {
  display: grid; grid-template-columns: 1fr .74fr; gap: 10%;
  align-items: start; padding: 62px 5% 68px 6%;
}
.intro-lead {
  margin: 0 0 17px; color: var(--text);
  font-size: clamp(15px, 1.6vw, 19px); font-weight: 500; line-height: 1.7; letter-spacing: -.025em;
}
.body-copy { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 24px;
}
.metric-box {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.metric-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.metric-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.metric-lbl {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--quiet);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-list span {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: .025em;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.marquee {
  overflow: hidden; width: 100%; border-block: 1px solid var(--line);
  padding: 14px 0; color: var(--quiet); font-family: var(--mono);
  font-size: 9px; letter-spacing: .18em; white-space: nowrap;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { padding-right: 30px; }
.marquee-track i { padding: 0 18px; color: var(--accent); font-style: normal; }

/* LOCATION PIN ICON */
.location-pin-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}
.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 03 SKILLS / CAPABILITIES & TOOLBOX SECTION */
.skills-section { padding-top: 35px; padding-bottom: 95px; }
.skills-heading-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding: 55px 3% 35px;
}
.skills-subtext { max-width: 400px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.skills-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.skill-tab {
  min-height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--muted);
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all .25s ease;
}
.skill-tab:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-2px); }
.skill-tab.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(215, 250, 114, 0.25); }

.skills-matrix-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.skill-card {
  display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.skill-card:hover {
  border-color: var(--line-strong);
  background: var(--surface); box-shadow: 0 16px 40px var(--shadow);
  transform: translateY(-4px);
}
.skill-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.skill-icon { font-size: 26px; }
.skill-level {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.skill-name { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.skill-desc { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.7; flex-grow: 1; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span {
  font-family: var(--mono); font-size: 8.5px; padding: 3px 8px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--quiet);
  background: color-mix(in srgb, var(--surface-raised) 50%, transparent);
}

/* 04 FULLY INTERACTIVE CLI TERMINAL SECTION */
.terminal-section { padding-top: 35px; padding-bottom: 95px; }
.terminal-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 55px 3% 35px; }
.terminal-subtext { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.full-terminal-container {
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: #09090b; overflow: hidden; font-family: var(--mono);
  box-shadow: 0 25px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}
.full-terminal-mac-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #141417; color: var(--muted); font-size: 11px;
}
.mac-traffic-lights { display: flex; gap: 7px; }
.mac-traffic-lights span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mac-btn-red { background: #ff5f56; box-shadow: 0 0 6px rgba(255,95,86,0.4); }
.mac-btn-yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.4); }
.mac-btn-green { background: #27c93f; box-shadow: 0 0 6px rgba(39,201,63,0.4); }
.full-terminal-mac-title { font-weight: 600; color: #a1a1aa; letter-spacing: .02em; }
.terminal-status-tag { color: #34d399; font-size: 9px; letter-spacing: .08em; font-weight: 600; }

.full-terminal-screen {
  padding: 24px; min-height: 290px; max-height: 440px; overflow-y: auto;
  font-size: 12.5px; line-height: 1.8; color: #e4e4e7;
  cursor: text;
}
.term-welcome { color: #a1a1aa; margin: 0 0 16px; line-height: 1.7; }
.term-highlight { color: var(--accent); font-weight: 700; }
.term-history-entry { margin-bottom: 12px; }
.term-history-cmd { color: var(--cyan); font-weight: 600; }
.term-history-res { color: #d4d4d8; white-space: pre-wrap; margin-top: 6px; line-height: 1.7; }
.term-history-res.matrix-mode { color: #22c55e; font-weight: 700; text-shadow: 0 0 8px rgba(34,197,94,0.7); }

.terminal-input-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.term-path { color: var(--accent); font-weight: 700; font-family: var(--mono); }
.terminal-cli-input {
  flex-grow: 1; border: 0; background: none; color: #fff; font-family: inherit; font-size: inherit;
  outline: none; caret-color: var(--accent);
}
.terminal-quick-buttons {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06); background: #101013;
  font-size: 11px; color: var(--quiet); flex-wrap: wrap;
}
.term-chip {
  padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); color: var(--muted); font-family: var(--mono);
  font-size: 10px; cursor: pointer; transition: all .2s ease;
}
.term-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(215, 250, 114, 0.08); transform: translateY(-1px); }

/* WORK / PROJECTS SECTION */
.work-heading-row {
  display: flex; align-items: end; justify-content: space-between;
  gap: 50px; padding: 56px 2% 40px 6%;
}
.work-side-note { max-width: 320px; margin: 0 2% 4px 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
/* Carousel Container & Navigation Controls */
.projects-carousel-container {
  position: relative;
  width: 100%;
}
.carousel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: -10px 0 20px;
}
.carousel-track-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.carousel-hint {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  margin-right: 4px;
}
.carousel-nav-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.carousel-nav-btn svg { width: 14px; height: 14px; }
.carousel-nav-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-raised);
}

/* HORIZONTAL SCROLL TRACK */
.projects-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px 10px 42px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.projects-track::-webkit-scrollbar {
  height: 6px;
}
.projects-track::-webkit-scrollbar-track {
  background: transparent;
}
.projects-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

/* CARD STACKING DEPTH & 3D PERSPECTIVE ANIMATION ("card ektar por ekta stack hoi") */
.project-stack-item {
  position: relative;
  flex: 0 0 min(440px, 86vw);
  scroll-snap-align: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: opacity .3s ease;
}
.project-stack-item[hidden] {
  display: none;
}

/* Realistic translucent deck card layers beneath the front card */
.stack-card-layer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  pointer-events: none;
  transition: transform .45s cubic-bezier(.2, .75, .2, 1), opacity .35s ease, border-color .35s ease;
}
.layer-back {
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  transform: translate(-10px, 12px) rotate(-2.4deg) scale(0.96);
  z-index: 1;
  opacity: 0.6;
}
.layer-mid {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transform: translate(8px, 6px) rotate(1.6deg) scale(0.985);
  z-index: 2;
  opacity: 0.8;
}

/* Hover Stack Expansion - cards dynamically fan out and elevate! */
.project-stack-item:hover .layer-back {
  transform: translate(-18px, 20px) rotate(-4.2deg) scale(0.94);
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.18);
}
.project-stack-item:hover .layer-mid {
  transform: translate(14px, 10px) rotate(2.8deg) scale(0.98);
  opacity: 0.95;
  border-color: rgba(255, 255, 255, 0.22);
}

/* The Front Interactive Card */
.project-card-stacked {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform .45s cubic-bezier(.2, .75, .2, 1), border-color .3s ease, box-shadow .4s ease;
}
.project-stack-item:hover .project-card-stacked,
.project-card-stacked:focus-visible {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--line-strong);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.55), 0 0 35px rgba(56, 189, 248, 0.15);
}

/* Stack Badge at Top */
.card-stack-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.cs-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.cs-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-purple {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}
.cs-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--quiet);
  text-transform: uppercase;
}

/* Mockup Browser Window Header */
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(10, 10, 14, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.m-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
}
.m-dot.r { background: #ef4444; }
.m-dot.y { background: #f59e0b; }
.m-dot.g { background: #10b981; }
.mockup-url {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: .02em;
}

/* Visual Artwork Containers */
.project-visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.15;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0e12;
}
.visual-hover-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10;
}
.project-stack-item:hover .visual-hover-action {
  opacity: 1;
  transform: translateY(0);
}

/* Project 1: likhon.bro.bd Visuals */
.visual-likhonbro {
  background: radial-gradient(circle at 75% 20%, #064e3b 0%, #061917 55%, #050b0b 100%);
  color: #e6fcf5;
}
.visual-likhonbro-core {
  position: relative;
  height: calc(100% - 31px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.core-grid-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(16, 185, 129, 0.08) 24px),
              repeating-linear-gradient(90deg, transparent 0 23px, rgba(16, 185, 129, 0.08) 24px);
}
.core-glow-sphere {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 78, 59, 0.1) 60%, transparent 80%);
  filter: blur(20px);
  animation: glow-breathe 6s infinite alternate ease-in-out;
}
.core-content, .ai-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.platform-sub {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .16em;
  color: var(--green);
  margin-bottom: 4px;
}
.platform-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1.1;
}
.platform-title span { color: var(--accent); }
.core-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.c-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Project 2: AI Studio 1 Visuals */
.visual-aistudio1 {
  background: radial-gradient(circle at 30% 25%, #311b92 0%, #0d122b 55%, #05060f 100%);
  color: #f3e8ff;
}
.visual-ai-core {
  position: relative;
  height: calc(100% - 31px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.ai-neural-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}
.ai-energy-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(22px);
  animation: glow-breathe 7s infinite alternate ease-in-out;
}
.orb-gemini {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(139, 92, 246, 0.3) 45%, transparent 75%);
}
.orb-multimodal {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(245, 158, 11, 0.25) 50%, transparent 75%);
}

/* Project 3: AI Studio 2 Visuals */
.visual-aistudio2 {
  background: radial-gradient(circle at 70% 30%, #4a044e 0%, #150928 55%, #080312 100%);
  color: #fae8ff;
}
.ai-waveform-pulse {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(236, 72, 153, 0.06) 17px, transparent 18px 32px);
}

/* Card Action Footers */
.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.direct-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.direct-visit-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--accent-ink);
}
.card-click-hint {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--quiet);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.c-dot {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: width .25s ease, background-color .25s ease;
}
.c-dot.is-active {
  width: 44px;
  background: var(--accent);
}

.project-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.project-meta > span:first-child { display: grid; gap: 4px; }
.project-meta small { color: var(--quiet); font-size: 7.5px; letter-spacing: .12em; }
.project-meta b { font-size: 13.5px; font-weight: 700; letter-spacing: -.03em; }
.project-arrow {
  display: grid; width: 30px; height: 30px; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  font-size: 14px; transition: background .2s ease, color .2s ease;
}
.project-card-stacked:hover .project-arrow { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.project-description { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

.sample-footnote {
  display: flex; align-items: center; gap: 9px; margin: 44px 0 0;
  color: var(--quiet); font-size: 8.5px; letter-spacing: .035em; text-transform: none;
}
.sample-footnote span { color: var(--accent); font-size: 13px; }

/* 05 EXPERIENCE & TIMELINE SECTION WITH STACKING CARDS & NON-LINEAR SLALOM TRACKER BALL */
.experience-section { padding-top: 40px; padding-bottom: 120px; }
.experience-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 55px 3% 45px; }
.experience-intro { max-width: 400px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.timeline-container {
  position: relative;
  margin-inline: 3%;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 70px;
  overflow: visible;
}

/* Base Spine Track */
.timeline-laser-track {
  position: absolute;
  top: 15px;
  bottom: 40px;
  left: 145px;
  width: 2px;
  background: transparent;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Slalom Serpentine S-Curve Wave SVG Track */
.timeline-slalom-svg {
  position: absolute;
  top: 0;
  left: -70px;
  width: 140px;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.slalom-base-path {
  fill: none;
  stroke: color-mix(in srgb, var(--line) 75%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}
.slalom-glow-path {
  fill: none;
  stroke: url(#laserWaveGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 16px var(--cyan));
  transition: stroke-dashoffset 0.25s ease-out;
}

/* Flowing Glowing Laser Beam */
.timeline-laser-glow {
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 0%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--cyan) 60%, rgba(56, 189, 248, 0.1) 100%);
  box-shadow: 0 0 14px var(--accent), 0 0 28px var(--cyan);
  transition: height 0.3s ease-out;
  display: none; /* Replaced by glowing SVG curve */
}

/* Non-linear Serpentine Slalom Tracker Photon: Curves right to card, left past marker */
.timeline-traveling-photon {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 14px var(--accent), 0 0 28px var(--cyan), 0 0 42px #ffffff;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: photon-slalom-weave 7s ease-in-out infinite;
  transition: top 0.2s ease-out, transform 0.2s ease-out;
}

@keyframes photon-slalom-weave {
  0% {
    top: 1%;
    transform: translate(calc(-50% + 0px), -50%) scale(0.8);
    opacity: 0.3;
  }
  16% {
    /* Swings RIGHT toward Card 1 */
    top: 18%;
    transform: translate(calc(-50% + 55px), -50%) scale(1.25);
    opacity: 1;
    box-shadow: 0 0 16px var(--accent), 0 0 35px var(--cyan), 0 0 50px #fff;
  }
  36% {
    /* Curves LEFT past marker 1 into between-space */
    top: 38%;
    transform: translate(calc(-50% - 30px), -50%) scale(0.95);
    opacity: 0.9;
  }
  56% {
    /* Swings RIGHT toward Card 2 */
    top: 56%;
    transform: translate(calc(-50% + 60px), -50%) scale(1.3);
    opacity: 1;
    box-shadow: 0 0 18px var(--accent), 0 0 40px var(--cyan), 0 0 55px #fff;
  }
  76% {
    /* Curves LEFT past marker 2 */
    top: 74%;
    transform: translate(calc(-50% - 30px), -50%) scale(0.95);
    opacity: 0.9;
  }
  92% {
    /* Swings RIGHT toward Card 3 */
    top: 92%;
    transform: translate(calc(-50% + 55px), -50%) scale(1.25);
    opacity: 1;
    box-shadow: 0 0 16px var(--accent), 0 0 35px var(--cyan), 0 0 50px #fff;
  }
  100% {
    top: 99%;
    transform: translate(calc(-50% + 0px), -50%) scale(0.8);
    opacity: 0.3;
  }
}

/* Timeline Cards Stacking: Sticky overlapping cards with physical depth */
.timeline-entry {
  display: grid;
  grid-template-columns: 130px 30px 1fr;
  gap: 22px;
  position: sticky;
  top: calc(88px + var(--entry-idx, 0) * 28px);
  z-index: calc(var(--entry-idx, 0) + 2);
  transform-origin: top center;
  transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1), transform .35s cubic-bezier(0.16, 1, 0.3, 1), filter .5s ease;
}

/* Active / Revealed Milestone State */
.timeline-entry.is-active,
.timeline-entry.is-visible {
  opacity: 1;
  filter: blur(0);
}

.timeline-meta { text-align: right; }
.timeline-year { display: block; font-weight: 700; color: var(--text); font-size: 11px; font-family: var(--mono); letter-spacing: .05em; }
.timeline-badge {
  display: inline-block; font-family: var(--mono); font-size: 8.5px; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); margin-top: 6px; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.timeline-marker {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.marker-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 0 4px var(--page);
  transition: all .35s ease;
}

.timeline-entry.is-active .marker-dot,
.timeline-entry:hover .marker-dot {
  background: var(--accent);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px var(--page), 0 0 16px var(--accent);
}

/* Expanding concentric pulse ring around active marker */
.marker-pulse-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

.timeline-entry.is-active .marker-pulse-ring {
  animation: timeline-marker-ripple 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes timeline-marker-ripple {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Connector Laser Beam shooting from marker to card */
.marker-connector {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--line);
  transition: all .3s ease;
  pointer-events: none;
}
.timeline-entry.is-active .marker-connector,
.timeline-entry:hover .marker-connector {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--cyan) 70%, transparent));
  box-shadow: 0 0 8px var(--accent);
  height: 2px;
}

.timeline-content {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
  position: relative;
}
.timeline-entry.is-active .timeline-content {
  border-color: color-mix(in srgb, var(--line-strong) 80%, var(--accent) 20%);
}
.timeline-content:hover {
  transform: translateX(6px) translateY(-2px);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 16px 45px var(--shadow), 0 0 24px rgba(215, 250, 114, 0.08);
}
.timeline-content h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.timeline-org { margin: 0 0 12px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.timeline-desc { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.timeline-tags span {
  font-family: var(--mono); font-size: 9px; padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--quiet); background: color-mix(in srgb, var(--surface-raised) 50%, transparent);
  transition: all .2s ease;
}
.timeline-content:hover .timeline-tags span {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--text);
}
.timeline-cta-row { text-align: center; margin-top: 48px; }

/* 09 TESTIMONIALS SECTION */
.testimonials-section { padding-top: 40px; padding-bottom: 105px; }
.testimonials-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 55px 3% 45px; }
.testimonials-intro { max-width: 380px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

/* Testimonials Sticky Card Stack Deck ("9 er card gulo ekta arektar por stick howar animation hobe") */
.testimonials-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  padding-bottom: 50px;
}
.testimonial-card {
  position: sticky;
  top: calc(95px + var(--stack-idx, 0) * 26px);
  z-index: calc(var(--stack-idx, 0) + 1);
  padding: 34px 38px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .35s ease, border-color .35s ease;
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 70px var(--shadow), 0 0 30px rgba(215, 250, 114, 0.08);
}
.testimonial-stars { color: #facc15; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { margin: 0 0 20px; color: var(--text); font-size: 13px; line-height: 1.85; font-style: italic; flex-grow: 1; }
.testimonial-author strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.testimonial-author span { font-size: 11px; color: var(--quiet); }

/* 10 FAQ SECTION */
.faq-section { padding-top: 40px; padding-bottom: 110px; }
.faq-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 55px 3% 45px; }
.faq-intro { max-width: 380px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.faq-accordion { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  overflow: hidden; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
  border-color: var(--line-strong); background: var(--surface);
  box-shadow: 0 12px 36px var(--shadow);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; cursor: pointer; font-size: 15px; font-weight: 700;
  color: var(--text); list-style: none; user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron {
  font-size: 20px; font-weight: 300; color: var(--accent);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), color .2s ease;
  line-height: 1; width: 20px; height: 20px; display: grid; place-items: center;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); color: #f87171; }
.faq-answer { padding: 0 26px 22px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.faq-answer p { margin: 0; }

/* INTERACTIVE CV DIALOG MODAL */
.cv-dialog {
  width: min(860px, 94vw); max-height: 90vh; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: 0 28px 80px rgba(0,0,0,0.7);
  overflow: hidden;
}
.cv-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cv-dialog-shell { display: flex; flex-direction: column; max-height: 90vh; }
.cv-dialog-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 30px 36px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
}
.cv-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cv-dialog-header h2 { margin: 4px 0 6px; font-size: clamp(32px, 4vw, 42px); letter-spacing: -.05em; line-height: 1; }
.cv-subtitle { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.cv-contacts-bar { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 10px; color: var(--quiet); }
.cv-contacts-bar span { display: inline-flex; align-items: center; gap: 4px; }
.cv-header-right { display: flex; align-items: center; gap: 12px; }
.cv-print-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 7px 14px; min-height: 34px; border-radius: 999px; }
.cv-print-btn svg { width: 14px; height: 14px; }

.cv-dialog-body { padding: 32px 36px; overflow-y: auto; flex-grow: 1; }
.cv-section { margin-bottom: 30px; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section-title {
  margin: 0 0 14px; font-size: 12px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.cv-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.cv-skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-skill-group h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.cv-skill-group p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.cv-exp-list { display: flex; flex-direction: column; gap: 20px; }
.cv-exp-header { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); }
.cv-exp-sub { margin: 2px 0 8px; color: var(--accent); font-size: 12px; font-weight: 600; }
.cv-exp-item ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }

.cv-dialog-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 36px; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
}
.cv-footer-brand { font-family: var(--mono); font-size: 10px; color: var(--quiet); }


/* STORY SECTION */
.story-heading-grid {
  display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 12%; padding: 58px 5% 48px 6%;
}
.story-intro { max-width: 440px; padding-bottom: 5px; }
.story-lead {
  margin: 0 0 12px; color: var(--text); font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600; line-height: 1.6; letter-spacing: -.035em;
}
.story-intro > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

.story-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.story-card {
  position: relative; overflow: hidden; min-height: 320px; padding: 18px 20px 24px;
  border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .35s ease, background-color .3s ease;
}
.story-card:hover {
  transform: translateY(-6px); border-color: var(--line-strong);
  background: var(--surface); box-shadow: 0 18px 44px var(--shadow);
}
.story-card-index {
  display: flex; justify-content: space-between; color: var(--quiet);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .09em;
}
.story-card-index i { color: var(--accent); font-size: 14px; font-style: normal; }
.story-card-art {
  position: relative; display: flex; height: 140px; align-items: center; justify-content: center;
  overflow: hidden; margin: 15px -20px 18px;
}
.learning-art { background: #e4d7c7; color: #383026; }
.learning-art::before, .learning-art::after {
  position: absolute; width: 110px; height: 110px; border: 1px solid rgba(68,55,42,.18); border-radius: 50%; content: "";
}
.learning-art::after { width: 150px; height: 150px; }
.learning-art > span {
  position: relative; z-index: 1; font-family: var(--serif); font-size: 31px;
  line-height: .86; letter-spacing: -.07em; transform: rotate(-5deg);
}
.learning-art > span em { color: #735dcb; font-size: 26px; }
.learning-art > i { position: absolute; top: 21px; right: 25px; color: #735dcb; font-size: 20px; font-style: normal; }

.language-art {
  gap: 12px; background: #e9e6f2; color: #292436;
  font-family: var(--bengali-display); font-size: 31px; font-weight: 700;
}
.language-art b {
  display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%;
  background: #7160c9; color: white; font-family: var(--sans); font-size: 16px; font-weight: 400;
}
.language-art > span:first-child { transform: translateY(-5px); }
.language-art > span:last-child { margin-top: 15px; font-family: var(--mono); font-size: 25px; font-weight: 400; }

.visual-art { background: #24212e; color: #f2efe8; }
.visual-ring {
  position: absolute; width: 152px; height: 152px; border: 1px solid rgba(215,250,114,.6); border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(215,250,114,.04), 0 0 60px rgba(155,131,239,.25);
  animation: ring-breathe 5s ease-in-out infinite;
}
.visual-ring::before, .visual-ring::after {
  position: absolute; inset: 14px; border: 1px solid rgba(163,140,244,.55); border-radius: inherit; content: "";
}
.visual-ring::after { inset: 29px; border-color: rgba(215,250,114,.33); }
.visual-star { position: absolute; z-index: 1; top: 21px; right: 28px; color: #d7fa72; font-size: 22px; animation: star-turn 18s linear infinite; }
.visual-word { position: relative; z-index: 1; font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: .17em; text-align: center; }

.story-card h3 { margin: 0 0 7px; font-size: 14.5px; font-weight: 700; letter-spacing: -.035em; }
.story-card p { max-width: 330px; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.85; }

.story-signoff {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  margin-top: 28px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted);
}
.story-signoff-mark {
  display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong);
  border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 15px; font-style: italic;
}
.story-signoff p { margin: 0; font-family: var(--serif); font-size: clamp(14px, 2vw, 19px); font-style: italic; }
.story-signoff-spark { color: var(--accent); font-size: 17px; }

/* CONTACT SECTION */
.contact-section { padding-top: 10px; padding-bottom: 78px; }
.contact-card {
  position: relative; overflow: hidden; padding: clamp(38px, 7vw, 78px) clamp(28px, 8vw, 100px);
  border-radius: 14px; background: var(--accent); color: var(--accent-ink);
}
.contact-card::before, .contact-card::after {
  position: absolute; z-index: 0; border: 1px solid rgba(24,28,14,.17); border-radius: 50%; content: ""; pointer-events: none;
}
.contact-card::before { width: 440px; height: 440px; right: -4%; top: -47%; }
.contact-card::after { width: 310px; height: 310px; right: 1%; top: -28%; }
.contact-card > :not(.contact-flare) { position: relative; z-index: 1; }
.contact-flare { position: absolute; right: 9%; bottom: 2%; color: rgba(24,28,14,.22); font-size: 175px; line-height: 1; }
.contact-label { color: rgba(24,28,14,.65); }
.contact-label .section-number { color: inherit; }
.contact-card h2 {
  margin: 36px 0 14px; font-size: clamp(48px, 8vw, 92px);
  font-weight: 600; letter-spacing: -.09em; line-height: .94;
}
.contact-card h2 em { color: #3d471e; }
.contact-card > p { max-width: 450px; margin: 0; color: rgba(24,28,14,.76); font-size: 12.5px; line-height: 1.85; }

.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.button-light { min-height: 45px; background: #171a11; color: #f3f0e7; }
.copy-email {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px;
  border: 0; background: none; color: #343a24; font-size: 10px; font-weight: 700;
}
.copy-email:hover { color: #111; }
.copy-email svg { width: 16px; height: 16px; }

.contact-social-pills {
  display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(24, 28, 14, 0.14);
  color: rgba(24, 28, 14, 0.95);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(24, 28, 14, 0.18);
  transition: background .25s ease, transform .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.contact-chip .chip-icon {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}
.contact-chip:hover {
  transform: translateY(-2px);
  background: rgba(24, 28, 14, 0.32);
}
.chip-whatsapp {
  background: #25D366;
  border-color: #1eb857;
  color: #073815 !important;
  font-weight: 700;
}
.chip-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.chip-facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff !important; }
.chip-telegram:hover { background: #229ED9; border-color: #229ED9; color: #fff !important; }
.chip-github:hover { background: #111; border-color: #333; color: #fff !important; }
.chip-linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff !important; }
.chip-x:hover { background: #000; border-color: #222; color: #fff !important; }
.contact-aside { display: block; margin-top: 36px; color: rgba(24,28,14,.63); font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; }

/* FOOTER */
.site-footer {
  display: flex; min-height: 85px; align-items: center; gap: 26px;
  border-top: 1px solid var(--line);
}
.footer-brand { margin-right: auto; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9.5px;
  font-family: var(--mono);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.footer-social-links a svg {
  width: 12.5px;
  height: 12.5px;
  flex-shrink: 0;
}
.footer-social-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}
.site-footer p, .site-footer small { color: var(--quiet); font-size: 9px; }
.site-footer small { font-family: var(--mono); }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.back-to-top span:last-child { color: var(--accent); font-size: 14px; }

.back-top-float {
  position: fixed; z-index: 60; right: 22px; bottom: 22px;
  display: grid; width: 40px; height: 40px; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--text);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-top-float.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* FLOATING SOCIAL BAR (DESKTOP DOCK) */
.floating-social-bar {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fs-item {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
  color: var(--muted);
  transition: transform .25s ease, color .2s ease, border-color .2s ease;
}
.fs-item svg { width: 15px; height: 15px; }
.fs-item:hover {
  transform: translateY(-3px) scale(1.1);
  color: var(--text);
  border-color: var(--accent);
}
.fs-line {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
  margin-top: 4px;
}
.fs-item::after {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 4px 8px;
  border-radius: 5px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  content: attr(data-tooltip);
}
.fs-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* DIALOG */
.project-dialog {
  position: fixed; width: min(520px, calc(100% - 34px)); padding: 35px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,.5);
}
.project-dialog::backdrop { background: rgba(5,4,6,.75); backdrop-filter: blur(6px); }
.project-dialog form { position: absolute; top: 14px; right: 14px; }
.dialog-close {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 23px; line-height: 1;
}
.dialog-kicker { color: var(--accent); font-size: 8px; }
.project-dialog h2 { margin: 24px 0 12px; font-size: 30px; letter-spacing: -.06em; }
.project-dialog p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.dialog-links { margin-top: 20px; }
.dialog-live-btn { font-size: 10px; min-height: 40px; padding: 0 16px; }
.dialog-note { margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--quiet); font-family: var(--mono); font-size: 9px; }

/* TOAST */
.toast {
  position: fixed; z-index: 95; bottom: 24px; left: 50%;
  padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 99px;
  background: var(--surface-raised); color: var(--text); font-size: 10px; font-weight: 600;
  opacity: 0; pointer-events: none; transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* REVEAL ANIMATIONS */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .75s cubic-bezier(.2,.65,.2,1), transform .75s cubic-bezier(.2,.65,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="90"] { transition-delay: .09s; }
[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="130"] { transition-delay: .13s; }
[data-reveal-delay="150"] { transition-delay: .15s; }
[data-reveal-delay="180"] { transition-delay: .18s; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring-breathe { 0%, 100% { transform: scale(.96); opacity: .82; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes star-turn { to { transform: rotate(360deg); } }

/* BANGLA TYPOGRAPHY */
html[lang="bn"] body { font-family: var(--bengali); font-size: 16.5px; letter-spacing: 0; }
html[lang="bn"] .hero h1, html[lang="bn"] .section-heading, html[lang="bn"] .contact-card h2 {
  font-family: var(--bengali-display); letter-spacing: 0; line-height: 1.25; font-weight: 700;
}
html[lang="bn"] h1 em, html[lang="bn"] h2 em { font-family: "Noto Serif Bengali", serif; font-weight: 500; }
html[lang="bn"] .hero h1 { font-size: clamp(52px, 7.8vw, 98px); }
html[lang="bn"] .section-heading { font-size: clamp(36px, 5.5vw, 68px); }
html[lang="bn"] .hero-intro, html[lang="bn"] .intro-lead, html[lang="bn"] .body-copy,
html[lang="bn"] .story-intro, html[lang="bn"] .story-card p, html[lang="bn"] .work-side-note,
html[lang="bn"] .contact-card > p { line-height: 1.9; }
html[lang="bn"] .story-card h3, html[lang="bn"] .skill-group-title { font-family: var(--bengali-display); font-size: 16px; font-weight: 700; }
html[lang="bn"] .story-signoff p { font-family: var(--bengali); font-style: normal; font-weight: 500; }
html[lang="bn"] .section-label, html[lang="bn"] .project-meta small, html[lang="bn"] .eyebrow { letter-spacing: .015em; }

/* LIGHT THEME ADJUSTMENTS */
html[data-theme="light"] .contact-label,
html[data-theme="light"] .contact-card > p,
html[data-theme="light"] .contact-aside,
html[data-theme="light"] .copy-email { color: rgba(255,255,255,.9); }
html[data-theme="light"] .contact-card h2 em { color: #eee8ff; }
html[data-theme="light"] .contact-flare { color: rgba(255,255,255,.17); }
html[data-theme="light"] .contact-card::before,
html[data-theme="light"] .contact-card::after { border-color: rgba(255,255,255,.22); }
html[data-theme="light"] .contact-chip { background: rgba(255,255,255,0.2); color: #fff; }

/* ========================================================
   RESPONSIVE DESIGN (INCLUDING MOBILE PORTRAIT ENHANCEMENT)
   ======================================================== */
@media (max-width: 1040px) {
  .floating-social-bar { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; }
  .badge-github { left: 2%; top: 8%; }
  .badge-location { right: 2%; top: 7%; }
  .hero-code-card { left: 1%; bottom: 6%; }
  .badge-tech { right: 2%; bottom: 10%; }
}

@media (max-width: 900px) {
  :root { --header-height: 72px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 45px;
    padding-bottom: 75px;
  }
  .hero-copy { padding: 0 0 35px; text-align: left; }
  .hero h1 { font-size: clamp(56px, 11vw, 84px); }
  
  /* CRITICAL: USER PICTURE ON MOBILE IS PROMINENT, CENTERED & HIGH QUALITY */
  .hero-art {
    width: min(100%, 460px);
    min-height: 510px;
    margin: 15px auto 0;
    align-self: center;
  }
  .portrait-card {
    width: min(340px, 80%);
    aspect-ratio: 0.82;
  }
  .badge-github {
    top: 6%;
    left: 0;
    transform: scale(0.92);
  }
  .badge-location {
    top: 6%;
    right: 0;
    transform: scale(0.92);
  }
  .hero-code-card {
    bottom: 5%;
    left: -4px;
    width: 175px;
    transform: scale(0.9);
  }
  .badge-tech {
    bottom: 10%;
    right: 0;
    transform: scale(0.92);
  }

  .intro-grid { grid-template-columns: 1fr; gap: 24px; padding: 42px 0 46px; }
  .story-heading-grid { grid-template-columns: 1fr; gap: 20px; padding: 40px 0 28px; }
  .project-stack-item { flex: 0 0 min(380px, 86vw); }
  .site-nav { gap: 18px; margin-right: 20px; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; --header-height: 68px; }
  html { scroll-padding-top: 75px; }
  .site-header { padding-inline: var(--gutter); }

  .menu-toggle {
    display: grid; width: 38px; height: 38px; place-items: center;
    margin-left: auto; border: 1px solid var(--line); border-radius: 50%;
    background: transparent; color: var(--text);
  }
  .menu-bars { display: grid; gap: 4px; }
  .menu-bars i { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

  .header-tools { margin-left: 9px; }
  .language-toggle, .theme-toggle { min-height: 34px; padding-inline: 8px; }
  .theme-toggle span { display: none; }

  .site-nav {
    position: absolute; top: calc(100% + 1px); right: 0; left: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line); background: var(--page);
    opacity: 0; pointer-events: none; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .site-nav a:last-child { border: 0; }

  .hero h1 { font-size: clamp(50px, 14vw, 76px); }
  .hero-intro { font-size: 13.5px; margin: 18px 0 24px; }

  /* MOBILE HERO ART & USER'S PHOTO */
  .hero-art {
    width: 100%;
    min-height: 460px;
    margin-top: 10px;
  }
  .portrait-card {
    width: min(290px, 78%);
  }
  .portrait-caption {
    display: none;
  }
  .badge-github {
    top: 4%;
    left: 2px;
    transform: scale(0.84);
    transform-origin: top left;
  }
  .badge-location {
    top: 4%;
    right: 2px;
    transform: scale(0.84);
    transform-origin: top right;
  }
  .hero-code-card {
    bottom: 3%;
    left: 2px;
    width: 165px;
    transform: scale(0.82);
    transform-origin: bottom left;
  }
  .badge-tech {
    bottom: 8%;
    right: 2px;
    transform: scale(0.84);
    transform-origin: bottom right;
  }

  .orbit-node-diamond { left: -4px; width: 26px; height: 26px; font-size: 11px; }

  .hero-social-bar { width: 100%; justify-content: space-around; }
  .metrics-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric-box { padding: 10px 6px; }
  .metric-num { font-size: 18px; }
  .metric-lbl { font-size: 7px; }

  .project-stack-item { flex: 0 0 min(305px, 86vw); }
  .projects-track { gap: 18px; padding-inline: 4px; }

  .contact-card { padding: 35px 22px 30px; }
  .contact-card h2 { font-size: clamp(44px, 12vw, 64px); }
  .site-footer { flex-wrap: wrap; gap: 14px; padding-block: 22px; }
  .footer-brand { width: 100%; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 46px; }
  .portrait-card { width: min(255px, 80%); }
  .badge-github { transform: scale(0.76); }
  .badge-location { transform: scale(0.76); }
  .hero-code-card { transform: scale(0.76); }
  .badge-tech { transform: scale(0.76); }
}

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


/* Responsive rules for Sections 03, 04, 08, 09, 10 */
@media (max-width: 980px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .timeline-laser-track { left: 105px; }
  .timeline-entry { grid-template-columns: 95px 25px 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  .skills-heading-row, .terminal-heading-row, .experience-heading-row, .testimonials-heading-row, .faq-heading-row {
    display: block; padding-inline: 0;
  }
  .skills-subtext, .terminal-subtext, .experience-intro, .testimonials-intro, .faq-intro { margin-top: 14px; }
  
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .skills-matrix-grid { grid-template-columns: 1fr; }
  
  .timeline-laser-track { left: 14px; }
  .timeline-entry { display: flex; flex-direction: column; padding-left: 32px; gap: 8px; }
  .timeline-meta { text-align: left; }
  .timeline-marker { position: absolute; left: 8px; top: 4px; }
  .marker-connector { display: none; }
  
  .cv-dialog-header { padding: 22px 18px; flex-direction: column; gap: 14px; }
  .cv-dialog-body { padding: 20px 18px; }
  .cv-skills-grid { grid-template-columns: 1fr; }
  .cv-dialog-footer { padding: 16px 18px; flex-direction: column; gap: 12px; }
}


/* Mobile Card Stacking Deck for Production Stack / Skills ("production stack a teo stack animation add korba for mobile") */
@media (max-width: 768px) {
  .skills-matrix-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    position: relative !important;
    padding-bottom: 40px !important;
  }
  .skill-card {
    position: sticky !important;
    top: calc(75px + var(--skill-idx, 0) * 14px) !important;
    z-index: calc(var(--skill-idx, 0) + 1) !important;
    background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    transform-origin: top center !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  }
  
  /* Timeline responsive adjustment */
  .timeline-slalom-svg {
    left: -20px !important;
    width: 60px !important;
  }
}
