/* ==========================================================================
   Company website — lightweight, no framework. Light & dark themes.
   ========================================================================== */

:root {
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Bengali", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f0f3f9;
    --text: #0b1a3a;
    --text-2: #3a4658;
    --muted: #64748b;
    --border: #e3e8f0;
    --border-strong: #cbd5e1;

    /* Brand colours taken from the Software Solution BD logo */
    --primary: #1463ff;
    --primary-hover: #0b4fe0;
    --link: #1463ff;
    --primary-soft: rgba(20, 99, 255, .09);
    --cyan: #12b8ff;
    --accent: #0d9488;
    --grad: linear-gradient(135deg, #12b8ff 0%, #1463ff 55%, #0b3fd1 100%);
    --grad-text: linear-gradient(120deg, #0aa8f5 0%, #1463ff 55%, #0b3fd1 100%);

    --wa: #128c7e;
    --wa-hover: #0e7368;
    --star: #f59e0b;
    --success: #15803d;
    --success-soft: rgba(21, 128, 61, .1);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, .08);

    --code-bg: #0f172a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .14);
    --shadow-lg: 0 40px 80px -30px rgba(15, 23, 42, .35);
    --ring: 0 0 0 3px rgba(20, 99, 255, .28);

    --radius: 14px;
    --radius-lg: 22px;
    --header-h: 70px;
    --wave-rgb: 20, 99, 255;
    --glare: rgba(20, 99, 255, .07);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0a0f1c;
    --bg-alt: #0d1424;
    --surface: #111a2d;
    --surface-2: #17223a;
    --text: #edf1f9;
    --text-2: #c2cad9;
    --muted: #8b97ad;
    --border: #1f2b45;
    --border-strong: #2d3b5c;

    --primary: #2f74ff;
    --primary-hover: #4785ff;
    --link: #73b8ff;
    --primary-soft: rgba(80, 150, 255, .14);
    --cyan: #38c9ff;
    --accent: #2dd4bf;
    --grad: linear-gradient(135deg, #22c1ff 0%, #2f74ff 55%, #1d4ed8 100%);
    --grad-text: linear-gradient(120deg, #6fd6ff 0%, #8ab4ff 100%);

    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, .12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .12);

    --code-bg: #0b1222;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .75);
    --ring: 0 0 0 3px rgba(80, 150, 255, .35);
    --wave-rgb: 56, 201, 255;
    --glare: rgba(255, 255, 255, .07);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3, h4 { color: var(--text); line-height: 1.18; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.022em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: var(--primary); color: #fff; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--link); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 650; font-size: .97rem; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(20, 99, 255, .6); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 99, 255, .75); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--link); color: var(--link); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-light { background: #fff; color: #1e293b; }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--border); }
/* Touch screens: a live blur behind the sticky header is repainted on every scroll frame, which stutters on phones. */
@media (hover: none), (max-width: 960px) {
    .site-header::before { background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(20, 99, 255, .6);
}
.brand-logo { height: 40px; width: auto; }
.brand-mark-img { width: 42px; height: 42px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(20, 99, 255, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand-name span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; margin-top: 3px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); font-weight: 560; font-size: .94rem; padding: 8px 11px; border-radius: 9px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--link); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 11px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--link); }
.theme-toggle .moon, [data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .close, .nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }
.nav-cta-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(620px 340px at 88% 8%, rgba(18, 184, 255, .18), transparent 62%),
        radial-gradient(560px 320px at 6% 0%, rgba(20, 99, 255, .14), transparent 60%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-grid > *, .project-layout > *, .contact-layout > *, .cta-grid > * { min-width: 0; }
.pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: .86rem; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); }
.pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.16rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 560; color: var(--text-2); }
.hero-points .icon { color: var(--success); }

.hero-visual { position: relative; }
.code-card {
    position: relative; border-radius: var(--radius-lg); background: var(--code-bg); color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .18); box-shadow: var(--shadow-lg); overflow: hidden;
}
.code-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.code-head i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.code-head i:nth-child(2) { background: #f59e0b; }
.code-head i:nth-child(3) { background: #22c55e; }
.code-head span { margin-left: 10px; font-family: var(--mono); font-size: .78rem; color: #64748b; }
.code-card pre { margin: 0; padding: 22px 22px 48px; font-family: var(--mono); font-size: .86rem; line-height: 1.85; overflow-x: auto; }
.code-card .k { color: #c084fc; } .code-card .f { color: #60a5fa; } .code-card .s { color: #86efac; }
.code-card .p { color: #fbbf24; } .code-card .c { color: #64748b; font-style: italic; } .code-card .n { color: #f472b6; }
.float-chip {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .86rem; color: var(--text);
    animation: floaty 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: .92rem; }
.float-chip small { color: var(--muted); font-size: .76rem; }
.float-chip .chip-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.float-chip.c1 { left: -30px; bottom: -30px; }
.float-chip.c2 { right: -18px; top: -20px; animation-delay: -3s; }
.float-chip.c2 .chip-ic { background: rgba(245, 158, 11, .14); color: var(--star); }
.float-chip.c3 { right: -6px; bottom: 92px; animation-delay: -1.5s; }
.float-chip.c3 .chip-ic { background: var(--primary-soft); color: var(--link); }
@keyframes floaty { 0%, 100% { transform: translateZ(var(--z, 0)) translateY(0); } 50% { transform: translateZ(var(--z, 0)) translateY(-8px); } }

/* ---------- Stats & tech strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat {
    padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center;
}
.stat b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 560; }
/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.icon-box {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
    background: var(--primary-soft); color: var(--link);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }

.service-row {
    display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border);
}
.service-row .icon-box { margin: 0; width: 64px; height: 64px; border-radius: 18px; }
.service-row .prose { color: var(--text-2); }

/* Process */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    display: block; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--link); margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Why us */
.feature { display: flex; gap: 16px; }
.feature .icon-box { margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Projects ---------- */
.project-card {
    display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit;
    border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.project-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.thumb-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .92);
    background: var(--grad); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em;
}
.media-badges { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.media-badges span {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
    background: rgba(2, 6, 23, .66); color: #fff; font-size: .76rem; font-weight: 650; backdrop-filter: blur(6px);
}
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.chip {
    display: inline-block; align-self: flex-start; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
    background: var(--primary-soft); color: var(--link); font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { padding: 3px 10px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: .78rem; font-weight: 600; border: 1px solid var(--border); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filters a {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font-weight: 600; font-size: .9rem;
}
.filters a:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.filters a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Project detail */
.project-hero { padding: 56px 0 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .93rem; margin-bottom: 20px; }
.project-hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 760px; }
.project-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 48px; }
.project-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.info-card { position: sticky; top: calc(var(--header-h) + 20px); }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { color: var(--text); font-weight: 600; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 48px; }
.gallery-item {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; padding: 0;
    border: 1px solid var(--border); background: var(--surface-2); display: block; width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.is-video { cursor: pointer; }
.play-btn {
    position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #111827;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s ease;
}
.play-btn .icon { margin-left: 4px; }
.gallery-item:hover .play-btn, .t-video:hover .play-btn { transform: scale(1.08); }
.video-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1e293b, #334155); }
.video-ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .35); background: radial-gradient(120% 90% at 30% 20%, #334155, #0f172a); }
.duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 7px; background: rgba(2, 6, 23, .7); color: #fff; font-size: .76rem; font-weight: 650; }

/* Markdown content */
.prose { font-size: 1.04rem; line-height: 1.8; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.prose > :first-child { margin-top: 0; }

/* ---------- Testimonials & reviews ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars .on { color: var(--star); }
.stars .off { color: var(--border-strong); }
.t-wrap { position: relative; }
.t-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: max(280px, calc((100% - 44px) / 3)); gap: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 22px; scrollbar-width: thin;
}
.t-track > * { scroll-snap-align: start; }
.t-nav { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.t-card { display: flex; flex-direction: column; padding: 28px; }
.t-card .quote-ic { color: var(--link); opacity: .35; margin-bottom: 14px; }
.t-card > .stars { margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 22px; color: var(--text-2); font-size: 1.01rem; line-height: 1.75; flex: 1; }
.t-media {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
    aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; margin-bottom: 20px; background: var(--surface-2);
}
.t-media img { width: 100%; height: 100%; object-fit: cover; }
.t-media.portrait { aspect-ratio: 4 / 5; }
.t-type { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: rgba(2, 6, 23, .66); color: #fff; font-size: .74rem; font-weight: 700; }
.author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-weight: 750; font-size: 1rem;
}
.author strong { display: block; color: var(--text); font-size: .98rem; line-height: 1.3; }
.author small { color: var(--muted); font-size: .85rem; }
.author .author-meta { display: block; margin-top: 1px; font-size: .8rem; }

.rating-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.rating-summary .big { font-size: 3.4rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.04em; }
.review-card { display: flex; flex-direction: column; gap: 14px; }
.review-card p { margin: 0; color: var(--text-2); flex: 1; }
.review-meta { font-size: .82rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff;
    background: var(--grad); box-shadow: var(--shadow-lg); isolation: isolate;
}
.cta::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
    background: radial-gradient(400px 220px at 90% 0%, #fff, transparent 60%), radial-gradient(300px 200px at 0% 100%, #22d3ee, transparent 60%);
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .86); font-size: 1.08rem; max-width: 620px; margin-bottom: 28px; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 72px 0 60px; text-align: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(500px 240px at 80% 0%, rgba(18, 184, 255, .15), transparent 65%), radial-gradient(500px 240px at 15% 10%, rgba(20, 99, 255, .12), transparent 65%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* ---------- Contact & forms ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: inherit; margin-bottom: 14px; transition: border-color .2s ease, transform .2s ease; }
a.contact-item:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.contact-item .icon-box { margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.contact-item.wa .icon-box { background: rgba(18, 140, 126, .12); color: var(--wa); }
[data-theme="dark"] .contact-item.wa .icon-box { color: #34d399; }
.contact-item strong { display: block; color: var(--text); }
.contact-item span { color: var(--muted); font-size: .94rem; word-break: break-word; }

.form-card { padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 620; font-size: .92rem; color: var(--text); margin-bottom: 7px; }
.field label .opt { color: var(--muted); font-weight: 500; }
.input {
    width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field .error { color: var(--danger); font-size: .86rem; margin-top: 6px; }
.field .hint { color: var(--muted); font-size: .84rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 550; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--border-strong); margin: 0; transition: color .15s ease, transform .15s ease; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { box-shadow: var(--ring); border-radius: 6px; }
.file-input { display: flex; align-items: center; gap: 14px; }
.file-input input { flex: 1; min-width: 0; max-width: 100%; }
.file-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }

.review-project { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 26px; }
.review-project img, .review-project .thumb-placeholder { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; font-size: 1.2rem; flex-shrink: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 11px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600;
}
.pagination a:hover { text-decoration: none; border-color: var(--border-strong); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .45; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty .icon { margin: 0 auto 12px; color: var(--link); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--text-2); }
.footer-grid .about p { color: var(--muted); margin: 16px 0 20px; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.footer-contact .icon { margin-top: 3px; color: var(--link); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.socials a:hover { color: var(--link); border-color: var(--border-strong); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; margin-top: 56px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .6);
    transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.07); text-decoration: none; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 23, .92); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lb-stage { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-stage img, .lb-stage video { max-width: min(1400px, 100%); max-height: calc(100vh - 150px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #000; }
.lb-caption { color: #e2e8f0; margin-top: 14px; font-size: .95rem; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 24px; color: #94a3b8; font-size: .88rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .t-track { grid-auto-columns: max(280px, calc((100% - 22px) / 2)); }
}
@media (max-width: 1320px) {
    .nav-toggle { display: inline-grid; }
    .header-actions .btn { display: none; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0; flex-direction: column; align-items: stretch;
        gap: 4px; padding: 20px; background: var(--bg); border-top: 1px solid var(--border);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
        overflow-y: auto;
    }
    .nav.open { transform: none; opacity: 1; visibility: visible; }
    .nav a { padding: 14px 16px; font-size: 1.05rem; }
    .nav .nav-cta-mobile { display: flex; margin-top: 12px; }
    .nav .nav-cta-mobile .btn { color: #fff; font-size: 1rem; padding: 0 18px; }
    .nav .nav-cta-mobile .btn:hover { background: var(--primary-hover); }
    .nav .nav-cta-mobile .btn-wa:hover { background: var(--wa-hover); }
    .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
    .hero-grid, .project-layout, .contact-layout, .cta-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 72px; }
    .hero-visual { max-width: 560px; margin: 10px auto 0; width: 100%; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .info-card { position: static; }
    .cta { padding: 48px 32px; }
}
@media (max-width: 640px) {
    .section { padding: 68px 0; }
    .grid-3, .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .t-track { grid-auto-columns: 86%; }
    .float-chip.c1 { display: none; }
    .float-chip.c2 { right: 10px; top: -24px; }
    .code-card pre { font-size: .78rem; padding: 18px; }
    .hero h1 { font-size: 2.15rem; }
    .service-card { padding: 22px; }
    .service-card .icon-box { margin-bottom: 14px; }
    .service-row { grid-template-columns: 1fr; padding: 26px; }
    .form-card { padding: 24px; }
    .cta { padding: 40px 24px; border-radius: 22px; }
    .lightbox { padding: 60px 10px; }
    .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
    .btn-row .btn { flex: 1 1 auto; }
    .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
.rating-summary .star-empty { color: var(--star); }
@media (max-width: 640px) {
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .play-btn { width: 48px; height: 48px; }
}


/* ==========================================================================
   3D effects (no libraries): hero wave, tilt scene, tilt cards, tech sphere
   ========================================================================== */
.hero-wave {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; z-index: -1; pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, #000 35%, transparent); mask-image: linear-gradient(to top, #000 35%, transparent);
}
.scene-3d { perspective: 1300px; }
.scene-inner {
    position: relative; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg));
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.scene-inner .layer { transform: translateZ(var(--z, 0)); }
.scene-inner .code-card { box-shadow: 0 50px 90px -35px rgba(11, 63, 209, .55), var(--shadow-lg); }

[data-tilt] { position: relative; transform-style: preserve-3d; }
[data-tilt]::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), var(--glare), transparent 45%);
}
[data-tilt]:hover::after { opacity: 1; }

/* Numbers */
.stat { position: relative; }
.stat-ic { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--link); }

/* Client wall */
.client-wall { margin-top: 44px; }
.client-wall-title { display: flex; justify-content: center; align-items: center; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.client-wall-title strong { color: var(--text); font-size: 1.1rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 45s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.client-static .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
.client-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; color: var(--text); white-space: nowrap; }
.client-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 9px; background: #fff; padding: 3px; }
.client-initials { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .88rem; letter-spacing: .02em; }

/* Technologies + sphere */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tech-grid > * { min-width: 0; }
.tech-groups { display: grid; gap: 14px; margin-top: 26px; }
.tech-group { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tech-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 12px; }
.tech-group .icon-box { width: 34px; height: 34px; border-radius: 9px; margin: 0; }
.tech-group:first-child { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: 0 10px 30px -18px rgba(20, 99, 255, .5); }
.tech-group:first-child .tag { background: var(--primary-soft); color: var(--link); border-color: transparent; }
.sphere-wrap { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.sphere-wrap:active { cursor: grabbing; }
.sphere { position: absolute; inset: 0; }
.sphere-item {
    position: absolute; left: 50%; top: 50%; padding: 6px 13px; border-radius: 999px; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 650; font-size: .9rem;
    box-shadow: var(--shadow-sm); will-change: transform, opacity;
}
.sphere-item.hi { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(20, 99, 255, .7); }
.sphere:not(.ready) { position: static; height: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; }
.sphere:not(.ready) .sphere-item { position: static; }
.sphere-wrap::before, .sphere-wrap::after {
    content: ""; position: absolute; inset: 9%; border-radius: 50%; pointer-events: none;
    border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent);
    transform: rotateX(72deg) rotateZ(-18deg); animation: orbit 28s linear infinite;
}
.sphere-wrap::after { inset: 3%; border-style: solid; border-color: color-mix(in srgb, var(--cyan) 22%, transparent); transform: rotateY(68deg) rotateZ(24deg); animation-duration: 36s; animation-direction: reverse; }
@keyframes orbit { to { rotate: 360deg; } }
.sphere-glow { position: absolute; inset: 14%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, rgba(18, 184, 255, .32), rgba(20, 99, 255, .12) 50%, transparent 70%); filter: blur(8px); }
.sphere-hint { position: absolute; left: 0; right: 0; bottom: -4px; margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* Clients page */
.client-card { display: flex; flex-direction: column; gap: 14px; }
.client-card-head { display: flex; gap: 14px; align-items: center; }
.client-logo-box { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; overflow: hidden; }
.client-logo-box .client-logo { width: 56px; height: 56px; padding: 4px; }
.client-logo-box .client-initials { width: 100%; height: 100%; border-radius: 0; font-size: 1.2rem; }
.client-logo.is-photo { object-fit: cover; padding: 0; background: var(--surface-2); }
.client-logo.is-photo.is-portrait { object-position: center 25%; }
.client-logo-box:has(.client-logo:not(.is-photo)) { width: 96px; }
.client-logo-box .client-logo:not(.is-photo) { width: 88px; }
.client-chip .client-logo:not(.is-photo) { width: 64px; }
.client-logo-box:has(.is-photo) { border-color: transparent; background: var(--surface-2); box-shadow: 0 0 0 1px var(--border), 0 6px 16px rgba(2, 6, 23, .18); }
.client-logo-box .client-logo.is-photo { width: 100%; height: 100%; }
.client-card h3 { margin: 0 0 2px; }
.client-card-head p { margin: 0; font-size: .9rem; }
.client-count { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 650; color: var(--text); font-size: .92rem; }
.client-count .icon { color: var(--link); }
.client-projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.client-projects a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.client-projects a:hover { background: var(--surface-2); text-decoration: none; color: var(--link); }
.client-projects img, .mini-ph { width: 52px; height: 36px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.mini-ph { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; }
.client-site { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .86rem; }
.filter-note { text-align: center; margin: -16px 0 30px; color: var(--muted); }

/* CEO */
.ceo-card {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 330px 1fr; gap: 48px; align-items: center;
    padding: 38px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.ceo-card::before { content: ""; position: absolute; width: 460px; height: 460px; left: -140px; top: -160px; pointer-events: none; background: radial-gradient(circle, rgba(18, 184, 255, .2), transparent 65%); }
.ceo-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 34px 60px -26px rgba(20, 99, 255, .6); }
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; }
.ceo-role { font-weight: 650; color: var(--link); margin-bottom: 18px; }
.ceo-quote { margin: 0; padding-left: 18px; border-left: 3px solid var(--primary); font-size: 1.12rem; line-height: 1.75; color: var(--text-2); }
.ceo-mini { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--grad); color: #fff; }
.ceo-mini img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .6); }
.ceo-mini strong { display: block; }
.ceo-mini span { font-size: .9rem; opacity: .9; }
.about-banner { width: 100%; margin-top: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }

@media (max-width: 960px) {
    .tech-grid { grid-template-columns: 1fr; gap: 30px; }
    .sphere-wrap { max-width: 420px; }
    .ceo-card { grid-template-columns: 1fr; gap: 26px; padding: 26px; text-align: center; }
    .ceo-photo { max-width: 280px; margin: 0 auto; }
    .ceo-card .btn-row { justify-content: center; }
    .ceo-quote { border-left: 0; padding-left: 0; }
    .scene-inner { --rx: 4deg; --ry: -6deg; }
}
@media (max-width: 640px) {
    .float-chip.c3 { display: none; }
    .scene-inner .code-card pre { white-space: pre-wrap; word-break: break-word; font-size: .74rem; line-height: 1.7; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 18px 10px; }
    .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stat b { font-size: 1.7rem; }
    .stat-ic { width: 34px; height: 34px; margin-bottom: 8px; }
    .sphere-item { font-size: .8rem; padding: 5px 10px; }
    .client-wall { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee-track [aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Responsive hardening (320px phones → large desktops)
   ========================================================================== */
body { overflow-x: hidden; overflow-x: clip; }
p, li, blockquote, dd, h1, h2, h3, .prose, .review-card p, .t-card blockquote, .info-list li span, .contact-item span, .footer-contact li, .client-card h3 { overflow-wrap: anywhere; word-break: break-word; }
.code-card pre { white-space: pre-wrap; word-break: break-word; }
.grid > *, .section-head, .project-body, .t-card, .review-card { min-width: 0; }
.tech-section, .stats-band { overflow: hidden; }
.brand-name { font-size: clamp(.98rem, 3.6vw, 1.14rem); }

/* Tablets */
@media (max-width: 1140px) and (min-width: 961px) {
    .hero-grid { gap: 36px; }
    .code-card pre { font-size: .8rem; }
}
@media (max-width: 768px) {
    .section-head { margin-bottom: 36px; }
    .page-hero { padding: 54px 0 44px; }
    .project-hero { padding: 40px 0 28px; }
    .cta h2 { font-size: 1.6rem; }
}

/* Small phones */
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .header-inner { gap: 10px; }
    .brand { gap: 8px; }
    .brand-mark-img { width: 36px; height: 36px; }
    .icon-btn { width: 38px; height: 38px; }
    .header-actions { gap: 6px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-lead { font-size: 1.04rem; }
    .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
    .btn-lg { padding-left: 18px; padding-right: 18px; }
    .card, .form-card { padding: 20px; }
    .t-card { padding: 22px; }
    .project-body { padding: 18px; }
    .stat b { font-size: 1.5rem; }
    .stat span { font-size: .82rem; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
    .client-chip { padding: 7px 14px 7px 7px; font-size: .9rem; }
    .ceo-card { padding: 20px; }
    .ceo-photo { max-width: 220px; }
    .wa-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
    .filters a { padding: 7px 12px; font-size: .85rem; }
    .info-list li { flex-wrap: wrap; }
    .info-list li span:last-child { text-align: left; }
    .star-input label .icon { width: 30px; height: 30px; }
}
@media (max-width: 340px) {
    .brand small { display: none; }
    .brand-name { font-size: .92rem; }
    .hero h1 { font-size: 1.7rem; }
    .stats { grid-template-columns: 1fr; }
    .stat:last-child:nth-child(odd) { grid-column: auto; }
}

/* Long unbroken text inside chips, links and flex/grid items */
.tag, .chip, .client-site, .author strong, .author small, .review-meta, .crumbs span, .info-list a { overflow-wrap: anywhere; word-break: break-word; }
.tag, .chip, .client-site { max-width: 100%; }
.tags > *, .author > div, .form-grid > *, .field, .btn-row > *, .client-card > *, .info-list li > *, .contact-item > div { min-width: 0; }
.crumbs { flex-wrap: wrap; }
select.input { max-width: 100%; text-overflow: ellipsis; }
.float-chip.c2 { right: -10px; }
@media (max-width: 1140px) {
    .float-chip.c2, .float-chip.c3 { right: 8px; }
}

/* ---------- Portfolio, testimonial & review cards: responsive grids ---------- */
.grid.project-grid, .grid.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-masonry { columns: 3; column-gap: 22px; }
.t-masonry > * { break-inside: avoid; margin-bottom: 22px; }
.t-card .t-media { flex-shrink: 0; }
@media (max-width: 960px) {
    .grid.project-grid, .grid.review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t-masonry { columns: 2; }
}
/* Large phones / small tablets: keep two compact columns instead of one huge card */
@media (max-width: 640px) {
    .grid.project-grid, .grid.review-grid { gap: 16px; }
    .t-masonry { column-gap: 16px; }
    .t-masonry > * { margin-bottom: 16px; }
    .project-body { padding: 16px 16px 18px; }
    .project-body h3 { font-size: 1.04rem; }
    .project-body p { font-size: .88rem; margin-bottom: 12px; }
    .project-body .tags { gap: 5px; }
    .media-badges { left: 8px; bottom: 8px; }
    .t-card { padding: 20px; }
    .t-card blockquote { font-size: .95rem; line-height: 1.7; margin-bottom: 18px; }
    .t-media { margin-bottom: 16px; border-radius: 12px; }
    .review-card { padding: 20px; gap: 12px; }
    .t-track { grid-auto-columns: min(86%, 420px); align-items: start; }
}
@media (max-width: 540px) {
    .grid.project-grid, .grid.review-grid { grid-template-columns: 1fr; }
    .t-masonry { columns: 1; }
    .project-body { padding: 18px 20px 20px; }
    .project-body h3 { font-size: 1.1rem; }
    .project-body p { font-size: .93rem; }
}

/* ---------- Discourage saving images and videos (no drag-to-desktop, no long-press "Save image") ---------- */
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }

/* Language switch: one link to the other language (বাংলা / EN) */
.lang-switch {
    display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 11px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 650; white-space: nowrap;
    transition: border-color .2s ease, color .2s ease;
}
.lang-switch:hover { border-color: var(--border-strong); color: var(--link); text-decoration: none; }
.nav a { white-space: nowrap; }
.nav-theme { display: none; }
/* The header gets a wider row than the page content so the full menu fits; below 1320px it becomes the menu button. */
.site-header .container { max-width: 1360px; }
@media (max-width: 1400px) and (min-width: 1321px) {
    .nav { gap: 2px; }
    .nav a { padding: 8px 8px; }
}
/* Phones: the theme switch moves into the menu so the language link stays visible. */
@media (max-width: 520px) {
    .header-actions .theme-toggle { display: none; }
    .nav .nav-theme { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-size: 1.05rem; font-weight: 560; cursor: pointer; text-align: left; }
    .nav .nav-theme:hover { background: var(--surface-2); color: var(--text); }
}
@media (max-width: 400px) {
    .lang-switch { height: 38px; padding: 0 9px; font-size: .82rem; }
}

/* Bangla text: negative tracking breaks conjunct letters, and vowel signs need more line height */
html:lang(bn) body { line-height: 1.75; }
html:lang(bn) h1, html:lang(bn) h2, html:lang(bn) h3, html:lang(bn) h4 { letter-spacing: 0; line-height: 1.38; }
html:lang(bn) .eyebrow, html:lang(bn) .footer-grid h4, html:lang(bn) .brand small { letter-spacing: .02em; }

/* Experiments */
.stage { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--primary-soft); color: var(--link); }
.stage-prototype { background: color-mix(in srgb, #8b5cf6 16%, transparent); color: #7c3aed; }
.stage-beta { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
.stage-released { background: var(--success-soft); color: var(--success); }
.media-badges .stage { backdrop-filter: none; }
.project-thumb .media-badges .stage { background: rgba(2, 6, 23, .7); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.chip-row .chip { margin: 0; }
.info-list .info-note { color: var(--text-2); }
