/* ============================================================
   Soft-TechBd — style.css
   Style: Simple, clean, friendly, Bangla-first
   ============================================================ */

:root {
  --ink: #0b1530;
  --navy: #12285c;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --grad: linear-gradient(120deg, #2563eb, #38bdf8);
  --bg: #ffffff;
  --soft: #f3f6ff;
  --card: #ffffff;
  --line: #e6ebf7;
  --text: #43506b;
  --heading: #0f1f44;
  --green: #16a34a;
  --radius: 16px;
  --shadow: 0 14px 40px -18px rgba(15, 31, 68, .16);
  --tint: #eaf1ff;
  --tint-line: #d7e4ff;
  color-scheme: light;
  --font-bn: 'Hind Siliguri', sans-serif;
  --font-h: 'Sora', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-bn);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-h); color: var(--heading); line-height: 1.3; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-bn); font-weight: 700; font-size: 16px;
  padding: 13px 30px; border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  min-height: 46px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(37, 99, 235, .6); }
.btn-ghost { background: transparent; border-color: #cbd5ef; color: var(--heading); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ------- Navbar ------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 31, 68, .06);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.navbar.scrolled {
  border-bottom-color: rgba(15, 31, 68, .1);
  box-shadow: 0 6px 24px -18px rgba(15, 31, 68, .28);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; transition: height .3s ease;
}
.navbar.scrolled .nav-inner { height: 64px; }

/* Shared brand logo — header and footer use the exact same base */
.brand-logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-logo-img {
  width: 46px; height: 46px; object-fit: contain; border-radius: 12px;
  background: #fff; border: 1px solid rgba(15, 31, 68, .08);
  box-shadow: 0 6px 18px -8px rgba(15, 31, 68, .35); padding: 5px;
}
.brand-logo-text { display: flex; flex-direction: column; align-items: center; font-family: var(--font-h); font-weight: 800; font-size: 21px; color: var(--heading); letter-spacing: -.4px; line-height: 1.1; }
.brand-logo-text small { font-size: 6px; font-weight: 700; color: var(--brand); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
.brand-logo-side { height: 30px; width: auto; object-fit: contain; flex: 0 0 auto; }

/* ------- Language switcher + theme toggle ------- */
.nav-controls { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang-btn { border: 0; background: transparent; cursor: pointer; font-family: var(--font-bn); font-size: 13.5px; font-weight: 700; color: var(--text); padding: 7px 11px; border-radius: 999px; line-height: 1; transition: background .2s, color .2s; }
.lang-btn:hover { color: var(--brand); }
.lang-btn.active { background: var(--brand); color: #fff; box-shadow: 0 5px 12px -6px rgba(37, 99, 235, .55); }
.lang-bar { color: var(--text); opacity: .55; font-size: 13px; font-weight: 600; }

.theme-toggle {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
  color: var(--heading); font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .4); }
.theme-toggle:active { transform: translateY(0) scale(.96); }

.mobile-controls { display: none; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 600; font-size: 15.5px; color: var(--heading);
  padding: 10px 16px; border-radius: 9px; position: relative;
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn-nav):hover { color: var(--brand); background: rgba(37, 99, 235, .05); }
.nav-links a:not(.btn-nav)::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px; background: var(--brand); transition: width .25s ease;
}
.nav-links a:not(.btn-nav).active { color: var(--brand); }
.nav-links a.active::after { width: 18px; }

.btn-nav {
  background: var(--brand); color: #fff !important;
  padding: 10px 22px !important; border-radius: 10px; margin-left: 10px;
  font-size: 15px !important; font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .5);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-nav:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .55); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--heading); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------- Hero ------- */
.hero { position: relative; background: linear-gradient(180deg, #eef2ff 0%, #fbfcff 100%); padding: 64px 0; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3; pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; background: #2563eb; top: -120px; right: -100px; }
.hero-glow-2 { width: 360px; height: 360px; background: #38bdf8; bottom: -140px; left: -140px; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }

.bismillah { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bismillah-text {
  font-family: 'Aref Ruqaa', serif; font-weight: 700; direction: rtl;
  font-size: clamp(18px, 2vw, 26px);
  background: linear-gradient(135deg, #8a5a00, #d9a92b 45%, #b07c12);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-kicker {
  display: inline-block; font-weight: 700; font-size: 15px; color: var(--brand);
  background: var(--tint); border: 1px solid var(--tint-line); padding: 7px 16px; border-radius: 100px; margin-bottom: 16px;
}

.hero h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.dash-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; }
.dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dash-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.dash-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.dash-title b { display: block; font-family: var(--font-h); font-size: 15px; color: var(--heading); }
.dash-title span { font-size: 12.5px; color: var(--text); }
.dash-badge { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green); background: #ecfdf3; padding: 5px 12px; border-radius: 100px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat { background: var(--soft); border-radius: 12px; padding: 12px; text-align: center; }
.dash-stat span { display: block; font-size: 12px; color: var(--text); }
.dash-stat b { display: block; font-family: var(--font-h); font-size: 13px; line-height: 1.4; margin-top: 3px; color: var(--heading); }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 16px 10px 0; background: var(--soft); border-radius: 12px; }
.bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--grad); animation: growup 1.2s ease; }
.bar-1 { height: 38%; } .bar-2 { height: 62%; } .bar-3 { height: 48%; }
.bar-4 { height: 78%; } .bar-5 { height: 55%; } .bar-6 { height: 88%; } .bar-7 { height: 66%; }
@keyframes growup { from { height: 4%; } to { height: var(--h); } }

/* ------- Sections ------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 6px; }
.section-sub-en { font-family: var(--font-h); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head p:last-child { font-size: 17px; }
.section-tag {
  display: inline-block; font-family: var(--font-h); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand);
  background: var(--tint); border: 1px solid var(--tint-line); padding: 7px 15px; border-radius: 100px; margin-bottom: 14px;
}

.grid { display: grid; gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* ------- Services ------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service { padding: 26px; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.snum { font-family: var(--font-h); font-weight: 800; font-size: 15px; color: #b7c2dd; }
.sico { font-size: 30px; line-height: 1; }
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.sen { font-family: var(--font-h); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--brand); margin-bottom: 10px; }
.service p:last-child { font-size: 15.5px; }

/* ------- Why ------- */
.why { background: var(--soft); }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-card { padding: 26px 22px; text-align: center; }
.wemoji { display: inline-flex; width: 56px; height: 56px; border-radius: 15px; background: var(--tint); align-items: center; justify-content: center; font-size: 26px; margin-bottom: 12px; }
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 15px; }

/* ------- About ------- */
.about-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 44px; box-shadow: var(--shadow); }
.about-text h2 { font-size: clamp(25px, 2.8vw, 34px); font-weight: 800; margin-bottom: 16px; }
.about-text p { font-size: 16.5px; margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }
.about-illu { display: grid; gap: 14px; }
.illu-card { display: flex; align-items: center; gap: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.benefit-ic {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); font-size: 24px; line-height: 1;
}
.benefit-body b { display: block; font-family: var(--font-h); font-size: 16.5px; color: var(--heading); margin-bottom: 2px; }
.benefit-body p { font-size: 14px; color: var(--text); margin: 0; line-height: 1.6; }

/* ------- Work ------- */
.work { background: var(--ink); }
.work .section-head h2 { color: #fff; }
.work .section-head p:last-child { color: #c6cff0; }
.work-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-step {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px; padding: 26px 22px; transition: background .25s, border-color .25s, transform .25s;
}
.work-step:hover { background: rgba(255, 255, 255, .08); border-color: rgba(56, 189, 248, .5); transform: translateY(-4px); }
.wstep {
  display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 800; font-size: 19px; color: #fff; background: var(--grad); margin-bottom: 14px;
}
.work-step h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.work-step p { color: #c6cff0; font-size: 14.5px; }

/* ------- Simple UI / UX ------- */
.uiux { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.uiux-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }

.uiux-visual { position: relative; }
.uiux-screen {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 20px;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.screen-cols { display: flex; gap: 8px; }
.sc-col { width: 26px; height: 8px; border-radius: 100px; background: #e3e9f8; }
.sc-col:first-child { width: 48px; background: var(--brand); }
.sc-col:last-child { width: 34px; }

.screen-btn {
  border: 1px solid var(--line); background: var(--soft); color: var(--brand);
  border-radius: 9px; padding: 8px 15px; font-family: var(--font-bn);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s;
}
.screen-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.screen-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.screen-btn.primary:hover { box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .6); }

.screen-name { margin: 0 auto; font-family: var(--font-h); font-weight: 700; font-size: 13px; color: var(--heading); letter-spacing: .3px; }
.screen-body { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin-bottom: 16px; }
.screen-side { display: flex; flex-direction: column; gap: 6px; }
.side-item { font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 12px; border-radius: 9px; background: var(--soft); }
.side-item.active { background: var(--brand); color: #fff; }
.screen-main { display: flex; flex-direction: column; gap: 12px; }
.screen-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.panel-title { display: block; font-family: var(--font-h); font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.screen-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.t-row { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 8px; padding: 8px 13px; font-size: 13px; border-bottom: 1px solid var(--line); color: var(--text); }
.t-row:last-child { border-bottom: 0; }
.t-head { background: var(--soft); font-weight: 700; color: var(--heading); }
.empty-hint { display: inline-flex; font-size: 13px; color: var(--text); opacity: .72; padding: 10px 0 4px; }
.screen-cta { display: flex; justify-content: flex-end; gap: 10px; }

.uiux-list { gap: 16px; }
.ucard { display: flex; align-items: flex-start; gap: 16px; padding: 22px 20px; }
.uicon {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); font-size: 23px; line-height: 1;
}
.ucard h3 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.ucard p { font-size: 15px; margin: 0; line-height: 1.65; }
.uiux-quote {
  margin: 20px 0 0; padding: 18px 22px; border-left: 4px solid var(--brand);
  background: var(--tint); border-radius: 12px; font-size: 16.5px; font-weight: 600;
  color: var(--heading); line-height: 1.7;
}

/* ------- Projects ------- */
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project { overflow: hidden; }
.project-img { display: flex; align-items: center; justify-content: center; height: 170px; font-size: 52px; }
.p1 { background: linear-gradient(135deg, #eaf1ff, #dbe7ff); }
.p2 { background: linear-gradient(135deg, #ecfdf3, #d8f5e4); }
.p3 { background: linear-gradient(135deg, #fff5e8, #ffe9cc); }
.project-body { padding: 20px 24px 26px; }
.project-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.project-body p { font-size: 15px; }

/* ------- Contact ------- */
.contact { background: linear-gradient(180deg, #fff 0%, #eef2ff 100%); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: clamp(25px, 2.8vw, 34px); font-weight: 800; margin-bottom: 14px; }
.contact-info > p { font-size: 16.5px; margin-bottom: 26px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.c-ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.contact-list label { display: block; font-size: 12px; font-weight: 700; color: #8b96b5; }
.contact-list a { font-weight: 650; font-size: 15.5px; color: var(--heading); }
.contact-list a:hover { color: var(--brand); }

.contact-form { padding: 32px 30px; }
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font-bn); font-size: 16px; color: var(--heading); background: var(--soft);
  min-height: 46px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #dc2626; }

/* ------- Footer ------- */
.footer { background: var(--ink); color: #b9c5e6; }
.brand-logo-light .brand-logo-text { color: #fff; }
.brand-logo-light .brand-logo-text small { color: #7dd3fc; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; align-items: start;
  padding: 44px 0 36px;
}
.f-brand { display: flex; flex-direction: column; align-items: flex-start; }
.f-brand .brand-logo { margin-bottom: 14px; }
.f-brand p {
  font-size: 15px; line-height: 1.7; color: #aeb9dc; max-width: 280px;
  margin: 0;
}
.f-col h5 {
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .6px;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.f-col a {
  display: block; font-size: 15px; line-height: 1.6; color: #b9c5e6;
  padding: 3px 0; margin-bottom: 6px; transition: color .2s, transform .2s, padding-left .2s;
}
.f-col a:last-child { margin-bottom: 0; }
.f-col a:hover { color: #7dd3fc; transform: translateX(3px); padding-left: 2px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 18px 0; font-size: 13.5px; color: #8b96b5;
}

/* ------- Back to top ------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 17px; box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .6);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ------- Reveal ------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ------- Responsive ------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-box { grid-template-columns: 1fr; }
  .uiux-wrap { grid-template-columns: 1fr; }
  .uiux-visual { max-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 38px; }
  .footer-top .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 5% 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .32s ease; z-index: 99;
    box-shadow: 0 30px 50px -30px rgba(15, 31, 68, .35);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .navbar.scrolled .nav-links { top: 64px; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 16.5px; padding: 13px 16px; border-radius: 11px; }
  .nav-links a:not(.btn-nav)::after { display: none; }
  .nav-links a:not(.btn-nav).active { background: rgba(37, 99, 235, .07); }
  .nav-links a:hover { background: var(--soft); }
  .btn-nav { text-align: center; margin: 10px 0 0; padding: 13px 16px !important; }
  .nav-controls { justify-content: center; margin: 8px 0 4px; }
  .nav-controls .theme-toggle { width: 42px; height: 42px; }
  .nav-links .lang-btn { padding: 12px 18px; font-size: 14px; }
  [data-theme='dark'] .nav-links { background: rgba(13, 22, 48, .98); }
  .nav-toggle { display: flex; }
  .mobile-controls { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 4px; }
  .nav-links .nav-controls { display: none; }
  .mobile-controls .lang-switch { padding: 3px; gap: 2px; }
  .mobile-controls .lang-btn { padding: 6px 9px; font-size: 12px; }
  .mobile-controls .lang-bar { font-size: 11px; }
  .mobile-controls .theme-toggle { width: 38px; height: 38px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-links a { font-size: 14px; padding: 8px 11px; }
  .btn-nav { padding: 8px 14px !important; margin-left: 6px; }
  .nav-controls { gap: 6px; margin-left: 4px; }
}

/* ------- Language mode tweaks ------- */
.lang-en .section-sub-en,
.lang-en .sen { display: none; }

/* ------- Dark theme ------- */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #050B1D;
  --navy: #1B2B5C;
  --brand: #2F80FF;
  --brand-2: #60A5FA;
  --grad: linear-gradient(120deg, #2F80FF, #38BDF8);
  --bg: #080F24;
  --soft: #0D1630;
  --card: #111C38;
  --line: #1E2B4E;
  --text: #AAB6D3;
  --heading: #F5F7FF;
  --green: #34D399;
  --tint: #16224A;
  --tint-line: #2A3A66;
  --shadow: 0 16px 44px -20px rgba(0, 0, 0, .65);
}

[data-theme='dark'] .navbar { background: rgba(13, 22, 48, .9); border-bottom-color: rgba(148, 163, 198, .14); }
[data-theme='dark'] .navbar.scrolled { border-bottom-color: rgba(148, 163, 198, .18); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .8); }
[data-theme='dark'] .hero { background: linear-gradient(180deg, #0D1630 0%, #080F24 100%); }
[data-theme='dark'] .hero-glow { opacity: .16; }
[data-theme='dark'] .hero-glow-2 { opacity: .12; }
[data-theme='dark'] .uiux { background: linear-gradient(180deg, #0D1630 0%, #080F24 100%); }
[data-theme='dark'] .contact { background: linear-gradient(180deg, #0D1630 0%, #080F24 100%); }
[data-theme='dark'] .dash-badge { background: rgba(52, 211, 153, .15); }
[data-theme='dark'] .sc-col { background: #26335C; }
[data-theme='dark'] .snum { color: #57638E; }
[data-theme='dark'] .nav-links a:not(.btn-nav):hover { background: rgba(47, 128, 255, .1); }
[data-theme='dark'] .p1 { background: linear-gradient(135deg, #16305E, #0F2447); }
[data-theme='dark'] .p2 { background: linear-gradient(135deg, #0E3A2A, #0B2A20); }
[data-theme='dark'] .p3 { background: linear-gradient(135deg, #3A2A10, #2A1D0B); }
[data-theme='dark'] .btn-ghost { border-color: rgba(150, 165, 205, .35); }
[data-theme='dark'] .form-note.err { color: #F87171; }
[data-theme='dark'] .field input:focus,
[data-theme='dark'] .field select:focus,
[data-theme='dark'] .field textarea:focus { box-shadow: 0 0 0 4px rgba(47, 128, 255, .22); }

[data-theme='dark'] .brand-logo-img,
[data-theme='dark'] .dash-logo img { background: #fff; }

/* ------- Smooth theme transition ------- */
body, .navbar, section, .hero, .why, .work, .uiux, .contact, .footer,
.card, .about-box, .uiux-screen, .dash-card, .illu-card, .work-step,
.contact-form, .screen-panel, .side-item, .screen-table, .t-row, .t-head,
.theme-toggle, .lang-switch, .lang-btn, .screen-btn, .btn, .btn-nav,
input, select, textarea {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease,
              box-shadow .25s ease, transform .25s ease, opacity .25s ease;
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: clamp(30px, 8vw, 37px); line-height: 1.25; }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; padding: 15px 20px; }
  .service { padding: 24px 20px; }
  .why-card { padding: 24px 18px; }
  .work-step { padding: 24px 18px; }
  .uiux-wrap { gap: 28px; }
  .uiux-screen { padding: 14px; }
  .screen-body { grid-template-columns: 1fr; gap: 12px; }
  .screen-side { flex-direction: row; flex-wrap: wrap; }
  .side-item { flex: 1 1 auto; text-align: center; }
  .screen-main { gap: 12px; }
  .screen-cta { flex-direction: column; }
  .screen-cta .screen-btn { justify-content: center; padding: 12px 16px; }
  .uiux-quote { font-size: 15.5px; }
  .row2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-wrap { gap: 28px; }
  .contact-form { padding: 26px 20px; }
  .about-box { padding: 28px 20px; gap: 28px; }
  .footer-top { grid-template-columns: 1fr; row-gap: 32px; padding: 40px 0 30px; }
  .f-brand p { max-width: 100%; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .nav-inner { height: 68px; }
  .nav-links { top: 68px; }
  .navbar.scrolled .nav-inner { height: 62px; }
  .navbar.scrolled .nav-links { top: 62px; }
  .brand-logo-img { width: 42px; height: 42px; padding: 4px; }
  .brand-logo-text { font-size: 17px; }
  .brand-logo-side { display: none; }
  .mobile-controls { gap: 6px; margin-right: 2px; }
  .mobile-controls .lang-btn { padding: 5px 8px; font-size: 11.5px; }
  .mobile-controls .theme-toggle { width: 36px; height: 36px; }
  .bismillah { flex-wrap: wrap; margin-bottom: 14px; }
  .bismillah-text { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 31px); }
  .hero-kicker { font-size: 14px; }
  .dash-card { padding: 16px; }
  .dash-stats { gap: 8px; }
  .dash-bars { height: 100px; }
  .screen-top { margin-bottom: 12px; }
  .screen-name { font-size: 12px; }
  .side-item { font-size: 12px; padding: 9px 8px; border-radius: 8px; }
  .panel-title { font-size: 12px; margin-bottom: 8px; }
  .t-row { padding: 7px 10px; font-size: 12px; gap: 6px; }
  .empty-hint { font-size: 12px; }
  .ucard { padding: 18px 16px; }
}

@media (max-width: 360px) {
  .brand-logo-text small { font-size: 5px; letter-spacing: 1.2px; }
  .mobile-controls { gap: 5px; }
  .mobile-controls .lang-btn { padding: 4px 7px; font-size: 11px; }
  .mobile-controls .theme-toggle { width: 34px; height: 34px; }
  .nav-toggle { min-width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { animation: none; }
  .reveal, .reveal.visible { transition: none; opacity: 1; transform: none; }
  .card, .btn, .btn-nav, .theme-toggle, .lang-btn, .screen-btn, .work-step { transition: none; }
}