/* SikderX IT & Design: tech.sikderx.com.bd
   Palette is taken from the logo: charcoal, signal red, white.
   The one memorable element is the diagonal slash from the logo's X. */

:root {
  --paper: #ffffff;
  --mist: #f3f3f4;
  --ink: #3a3a3a;
  --deep: #232323;
  --red: #e5101a;
  --red-bright: #ff1111;
  --line: #dcdcdf;
  --muted: #5d5d63;
  --cut: clamp(28px, 5vw, 76px);
  --wrap: 1120px;
  --gutter: 20px;
  --font-latin: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="bn"] body { font-family: var(--font-bn); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; padding: 10px 12px; border-radius: 4px;
  font-size: 0.95rem; font-weight: 500;
}
.nav a:hover { color: var(--red); }
.nav .nav-cta { background: var(--ink); color: #fff; margin-left: 8px; padding-inline: 16px; }
.nav .nav-cta:hover { background: var(--red); color: #fff; }

.top-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 0.85rem; font-weight: 600; line-height: 1.2;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: var(--red); }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 2px solid transparent; border-radius: 4px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b80b13; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 11vw, 132px) 0 clamp(48px, 8vw, 96px); isolation: isolate; overflow: clip; --slash-o: 1; }
.slash {
  position: absolute; z-index: -1; right: 0; top: 0; height: 100%;
  width: min(40vw, 480px); overflow: visible; opacity: var(--slash-o);
}
.slash-red { fill: var(--red-bright); }
.slash-ink { fill: var(--ink); }
.hero-copy { max-width: 37rem; }
.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 700;
}
html[lang="bn"] .hero h1 { line-height: 1.32; letter-spacing: 0; }
.lead { margin-top: 24px; font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-list {
  display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: clamp(40px, 7vw, 72px); max-width: 34rem;
  font-weight: 600; font-size: clamp(0.95rem, 2vw, 1.1rem);
}
.hero-list li { display: flex; align-items: center; }
.hero-list li + li::before {
  content: ""; width: 3px; height: 1.3em; background: var(--red); margin: 0 18px; transform: skewX(-28deg);
}

/* one orchestrated moment: the slash sweeps in once */
@media (prefers-reduced-motion: no-preference) {
  .slash { animation: sweep 0.9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes sweep { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: var(--slash-o); } }
}

/* ---------- Services (dark band) ---------- */
.services {
  --pad: calc(var(--cut) + clamp(40px, 6vw, 80px));
  background: var(--deep); color: #fff;
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding: var(--pad) 0;
}
.services h2, .work h2, .process h2, .about h2, .contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700;
}
html[lang="bn"] .services h2, html[lang="bn"] .work h2, html[lang="bn"] .process h2,
html[lang="bn"] .about h2, html[lang="bn"] .contact h2 { line-height: 1.35; letter-spacing: 0; }
.section-lead { margin-top: 16px; max-width: 40rem; color: var(--muted); }
.services .section-lead { color: #c9c9ce; }

.svc {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: 36px 0; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.services .section-lead + .svc { margin-top: 40px; }
.svc h3 {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; font-weight: 600;
}
.svc h3::before {
  content: ""; flex: none; width: 6px; height: 1.1em; background: var(--red-bright); transform: skewX(-28deg);
}
.svc p { color: #dedee2; max-width: 36rem; }
.svc ul { margin-top: 18px; display: grid; gap: 8px; }
.svc li { position: relative; padding-left: 22px; color: #fff; }
.svc li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em; width: 3px; height: 0.95em;
  background: var(--red-bright); transform: translateY(-50%) skewX(-28deg);
}
@media (min-width: 860px) {
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .svc ul { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}

/* ---------- Work ---------- */
.work { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.work-grid { margin-top: 36px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: border-color 0.15s, transform 0.15s; }
.project:hover { border-color: var(--red); transform: translateY(-3px); }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--mist); }
.project div { padding: 18px 20px 22px; }
.project h3 { font-size: 1.15rem; font-weight: 600; }
.project p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.project small { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--red); }
.work-empty {
  grid-column: 1 / -1; border: 2px dashed var(--line); border-radius: 6px;
  padding: clamp(28px, 5vw, 56px); max-width: 44rem;
}
.work-empty p { color: var(--muted); }
.work-empty a { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--red); }

/* ---------- Process ---------- */
.process { background: var(--mist); padding: clamp(56px, 8vw, 104px) 0; }
.steps {
  counter-reset: step; margin-top: 40px;
  display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 8px;
  font-size: 2.2rem; line-height: 1; font-weight: 700; color: var(--red);
}
.steps h3 { font-size: 1.2rem; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--muted); }

/* ---------- About ---------- */
.about { padding: clamp(56px, 8vw, 104px) 0; }
.about-grid { display: grid; gap: 24px; }
.about p { max-width: 38rem; }
.about p + p { margin-top: 14px; color: var(--muted); }
.group-link {
  display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.group-link:hover { color: var(--red); }
@media (min-width: 860px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }

/* ---------- Contact ---------- */
.contact { padding: 0 0 clamp(56px, 8vw, 104px); }
.contact-grid { display: grid; gap: 40px; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 0.85rem; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.1rem; text-decoration: none; border-bottom: 2px solid var(--line); width: fit-content; }
.contact-list a:hover { border-color: var(--red); }
.form { background: var(--mist); border-radius: 6px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(229, 16, 26, 0.35); border-color: var(--red); }
.field .bad { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #0c7a3d; }
.form-status.err { color: var(--red); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: #d6d6da; padding: 28px 0; font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--red-bright); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .burger { display: block; }
  .top-tools { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 4px; border-bottom: 0; }
  .hero { --slash-o: 0.14; }
  .hero-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .hero-list li::before, .hero-list li + li::before {
    content: ""; width: 3px; height: 1.3em; background: var(--red); margin: 0 10px 0 0; transform: skewX(-28deg);
  }
  .slash { width: 70vw; right: -22vw; }
  .hero-actions .btn { flex: 1 1 200px; }
}
@media (max-width: 400px) {
  .brand img { height: 36px; }
  .lang button { padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
