/* =========================================================
   FONT
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* =========================================================
   VARIABLES
========================================================= */

:root {
  --bg: #020913;
  --card: #06131f;
  --card-2: #071724;

  --line: #162a3d;
  --line-light: #1c3042;

  --text: #edf1f6;
  --muted: #8d99a8;

  --purple: #7b20db;
  --violet: #a541ff;

  --cyan: #27d9ff;
  --yellow: #ffd42b;
}

/* =========================================================
   RESET
========================================================= */

/* ===================== TOKENS ===================== */
:root {
  --bg: #060a16;
  --bg-alt: hsl(225, 56%, 7%);
  --surface: #0d1428;
  --surface-2: #111a33;
  --border: #1b2440;
  --border-soft: #161f38;
  --purple: #6f03ad;
  --purple-2: #9941fd;
  --purple-deep: #6f029b98;
  --cyan: #06c2db;
  --text: #f3f5fb;
  --text-dim: #a6adc4;
  --text-mute: #6b738f;
  --green: #02fa72;
  --font: "Cairo", "Tajawal", sans-serif;
  --neon-green: #00ff88;
  --neon-glow: rgba(0, 255, 136, 0.25);

  /* ---- Unified type scale (was scattered 8px/9px/10px/11px/13px) ---- */
  --fs-2xs: 11px; /* chips, tiny meta */
  --fs-xs: 11.5px; /* small labels, captions */
  --fs-sm: 12.5px; /* nav links, buttons, secondary text */
  --fs-base: 13.5px; /* body copy / paragraphs */
  --fs-md: 14.5px; /* card titles */
  --fs-lg: 16px; /* section headings */
  --fs-xl: 22px; /* page title */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  font-size: var(--fs-sm);
}
ul {
  list-style: none;
}

p {
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* Icons: give every Bootstrap Icon a consistent baseline so mixed
   icon+text rows (nav, buttons, metrics, info list) line up instead
   of sitting at whatever size the surrounding text happens to be. */
.bi {
  line-height: 1;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-fluid {
  width: 100%;
  padding: 0 30px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 25px !important;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg,
.btn .bi {
  flex-shrink: 0;
}
.btn--primary {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-deep) 100%
  );
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.65);
  display: inline-flex;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(124, 92, 255, 0.8);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--purple-2);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--purple-2);
  background: rgba(124, 92, 255, 0.06);
}
.btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
  margin-top: 18px;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  padding: 20px 30px;
  direction: ltr !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 200px;
}
.brand__logo {
  width: 48px;
  height: 48px;
  border: 2px solid #8d2bdf;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: grid;
  place-items: center;
  color: #f8f7f8;
  font-weight: 800;
  font-size: 17px;
  background: rgb(104, 3, 236);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
  direction: rtl !important;
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.nav__link:hover {
  color: var(--text);
}
.nav__link--active {
  color: var(--text);
}
.nav__link--active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -27px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 8px 4px;
}
.lang-switch .chev {
  opacity: 0.6;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  flex-shrink: 0;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons duplicated inside the mobile hamburger menu.
   Hidden everywhere by default; only revealed on small screens
   when the mobile nav is open (see the 860px media query). */
.nav__mobile-actions {
  display: none;
}
.nav__mobile-btn-wrap {
  display: block;
  width: 100%;
}

/* =========================================================
   MAIN
========================================================= */

main {
  width: 100%;
  padding: 17px 27px 30px;
  max-width: 1800px;
  margin: 0 auto;
}

/* Breadcrumb */

.crumb {
  margin: 2px 0 14px;
  color: #9ca6b2;
  font-size: var(--fs-2xs);
}

.crumb i {
  padding: 0 8px;
  color: #596676;
  font-style: normal;
}

.crumb span {
  color: #d4d8de;
}

/* =========================================================
   QUICK ACTIONS
   (the negative top-margin used to pull this row up over the
   breadcrumb, which is what made the buttons look "clashed"
   into the profile card below. Given its own row height instead.)
========================================================= */

.quick {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin: 0 0 10px;
}

.quick button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: #d4d9df;
  font-size: var(--fs-xs);
}

.quick button:hover {
  color: #b24cff;
}

/* =========================================================
   LAYOUT
========================================================= */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
}

.left,
.right {
  min-width: 0;
}

/* =========================================================
   PANELS
========================================================= */

.panel,
.hero-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, #071522, #04111c);
}

/* =========================================================
   PROFILE
========================================================= */

.profile {
  height: 260px;
  position: relative;
  overflow: hidden;
  margin-bottom: 13px;
}

/* Background */

.profile-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #071321e8, #07132188 50%, #06121dd0),
    radial-gradient(circle at 68% 30%, #164e82, #071321 55%),
    repeating-linear-gradient(90deg, #0b2942 0 1px, transparent 1px 62px);
}

.profile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #04111de8, transparent 45%),
    repeating-linear-gradient(165deg, transparent 0 70px, #1e86d51a 71px 72px);
}

/* Profile content */

.profile-content {
  height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 280px;
  align-items: center;
  padding: 24px 27px;
  gap: 20px;
}

/* Company Logo */

.company-logo {
  width: 122px;
  height: 122px;
  position: relative;
  display: grid;
  place-items: center;
  border: 3px solid #e6eaeb;
  border-radius: 50%;
  background: #f0f3f4;
  color: #3eb0aa;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 0 35px #0008;
}

.company-logo span {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7d22dd;
  color: #fff;
  font-size: 13px;
}

/* Profile info */

.name-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.name-line h1 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #40116d;
  color: #ca7cff;
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}

.meta {
  display: flex;
  gap: 22px;
  margin: 13px 0 10px;
  color: #d6dbe2;
  font-size: var(--fs-sm);
}

.meta i {
  margin-right: 6px;
  color: #b7c0cb;
}

.profile-info p {
  max-width: 560px;
  margin: 0 0 11px;
  color: #d0d5dc;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips span {
  padding: 5px 10px;
  border: 1px solid #48246d;
  border-radius: 4px;
  background: #15172a;
  color: #c9b1df;
  font-size: var(--fs-2xs);
}

/* =========================================================
   CONTACT BOX
   (fixed 39px height clipped the two-line "Request a Meeting"
   label on narrower widths — switched to min-height so the
   buttons never crowd their own text/icon.)
========================================================= */

.contact-box {
  padding: 15px;
  border: 1px solid #203449;
  border-radius: 7px;
  background: #06121edc;
}

.contact-box button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  padding: 10px 13px;
  border: 1px solid #1d3245;
  border-radius: 5px;
  background: #06121f;
  color: #e5e8ed;
  font-size: var(--fs-sm);
}

.contact-box button > a {
  display: flex;
  align-items: center;
  width: 100%;
}

.contact-box button span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-box button:last-child {
  margin-bottom: 0;
}

.contact-box button:hover {
  border-color: #7130ae;
}

/* =========================================================
   METRICS
========================================================= */

.metrics {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 13px;
  padding: 10px;
}

.metrics div {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 0 17px;
  border-right: 1px solid #182b3c;
}

.metrics div:last-child {
  border-right: 0;
}

.metrics i {
  grid-row: 1 / 3;
  color: #a13fff;
  font-size: 22px;
}

.metrics strong {
  font-size: var(--fs-md);
  font-weight: 700;
}

.metrics small {
  color: #d0d5dc;
  font-size: var(--fs-2xs);
}

/* =========================================================
   TABS
========================================================= */

.tabs {
  min-height: 45px;
  display: flex;
  margin-bottom: 9px;
  overflow: hidden;
}

.tab {
  flex: 1;
  min-width: 90px;
  border: 0;
  background: transparent;
  color: #e2e5ea;
  font-size: var(--fs-sm);
  border-bottom: 2px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.tab:hover {
  color: #b44cff;
}

.tab.active {
  color: #fff;
  border-bottom-color: #9a35f4;
  background: #24113b55;
}

/* =========================================================
   ABOUT + SERVICES
========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.38fr;
  gap: 9px;
}

.about,
.services {
  min-height: 260px;
  padding: 17px 21px;
}

.panel h2 {
  margin: 0 0 15px;
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* About */

.about p {
  margin: 0 0 12px;
  color: #b9c1cb;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.about ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about li {
  margin: 9px 0;
  color: #c6cdd6;
  font-size: var(--fs-sm);
}

.about li::before {
  content: "♢";
  margin-right: 11px;
  color: #a23fff;
}

/* =========================================================
   SECTION HEAD
========================================================= */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.section-head a,
.all {
  color: #b254f8;
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.section-head a:hover,
.all:hover {
  color: #d083ff;
}

/* =========================================================
   SERVICES
========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 25px;
}

.service-grid > div {
  display: flex;
  gap: 11px;
  min-width: 0;
}

.service-grid i {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #48216b;
  border-radius: 5px;
  background: #2a1050;
  color: #b34dff;
  font-size: 15px;
}

.service-grid b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.service-grid small {
  display: block;
  margin-top: 3px;
  color: #99a5b3;
  font-size: var(--fs-xs);
  line-height: 1.45;
}

/* =========================================================
   PROJECTS
========================================================= */

.projects {
  margin-top: 9px;
  padding: 15px 19px 13px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.project {
  overflow: hidden;
  border: 1px solid #1c3042;
  border-radius: 6px;
  background: #06131e;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.project:hover {
  transform: translateY(-2px);
  border-color: #493065;
}

/* Project image */

.project-image {
  height: 91px;
  position: relative;
}

.project-image span {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 4px;
  background: #6417ba;
  font-size: var(--fs-2xs);
  color: #fff;
}

.p2 .project-image span,
.p4 .project-image span {
  background: #198a99;
}

/* Project backgrounds */

.p1 .project-image {
  background: linear-gradient(145deg, #18354d, #7791a1 50%, #17232f);
}

.p2 .project-image {
  background: linear-gradient(145deg, #9eafbb, #e5c994 45%, #33413e);
}

.p3 .project-image {
  background: linear-gradient(145deg, #8798a3, #d9d4c5 40%, #27363e);
}

.p4 .project-image {
  background: linear-gradient(145deg, #3a4b5c, #142235 50%, #6d523d);
}

/* Project body */

.project-body {
  padding: 9px;
}

.project-body > b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.project-body > small {
  display: block;
  margin: 4px 0 13px;
  color: #8f9aa7;
  font-size: var(--fs-2xs);
}

.project-body > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.project-body strong {
  font-size: var(--fs-md);
}

.project-body strong small {
  display: block;
  margin-top: 2px;
  color: #8e99a6;
  font-size: 9px;
  font-weight: 400;
}

/* =========================================================
   RATING
========================================================= */

.rating {
  min-height: 309px;
  padding: 18px 25px 13px;
}

.rating-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rating-main strong {
  font-size: 32px;
  font-weight: 700;
}

.stars {
  display: inline-block;
  margin-left: 10px;
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: 2px;
}

.rating-main small {
  display: block;
  margin-top: 3px;
  color: #b1bac5;
  font-size: var(--fs-xs);
}

/* Circle */

.circle {
  width: 71px;
  height: 71px;
  flex: none;
  display: grid;
  place-items: center;
  border: 7px solid #1aa9b9;
  border-right-color: #7430d9;
  border-top-color: #21c6d2;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.circle small {
  margin: 0;
  color: #b1bac5;
  font-size: 8px;
  text-align: center;
  font-weight: 400;
}

/* Rating bars */

.bars {
  margin-top: 14px;
}

.bars p {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #c2c8d0;
  font-size: var(--fs-xs);
}

.bars b {
  height: 5px;
  display: block;
  border-radius: 5px;
  background: #7c20d8;
}

.bars em {
  font-style: normal;
  text-align: right;
}

.all {
  display: block;
  margin-top: 17px;
  text-align: center;
}

/* =========================================================
   PARTNER INFO
========================================================= */

.info {
  min-height: 287px;
  margin-top: 10px;
  padding: 17px 25px;
}

.info p {
  display: grid;
  grid-template-columns: 24px 100px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 13px 0;
  color: #a7b0bb;
  font-size: var(--fs-xs);
}

.info p i {
  color: #ad4bff;
  font-size: 14px;
}

.info b {
  color: #d7dce2;
  font-weight: 400;
  font-size: var(--fs-xs);
  text-align: right;
  overflow-wrap: anywhere;
}

.info .link {
  color: #b74cff;
}

/* =========================================================
   INDUSTRIES
========================================================= */

.industries {
  margin-top: 10px;
  padding: 17px 20px;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-chips span {
  padding: 6px 11px;
  border: 1px solid #233648;
  border-radius: 15px;
  background: #071421;
  color: #c3cbd4;
  font-size: var(--fs-2xs);
}

/* =========================================================
   READY CARD
   (the CTA button previously had no background set, so it
   rendered as white text on nothing — invisible/clashing
   against the card. Gradient background added to match the
   rest of the primary buttons.)
========================================================= */

.ready {
  min-height: 143px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 19px 21px;
  border: 1px solid #8a30d9;
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 80%, #54158c66, transparent 45%), #06131f;
}

.ready > i {
  position: absolute;
  top: 23px;
  left: 21px;
  color: #b548ff;
  font-size: 20px;
}

.ready h2 {
  margin: 2px 0 8px 43px;
  font-size: var(--fs-lg);
  font-weight: 700;
}

.ready p {
  margin: 0 0 12px 43px;
  color: #aab4bf;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.ready button {
  width: 207px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 43px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-deep) 100%
  );
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.ready .glow {
  width: 180px;
  height: 100px;
  position: absolute;
  right: -30px;
  bottom: -55px;
  border-radius: 50%;
  box-shadow: 0 0 60px 35px #7c2ce855;
  pointer-events: none;
}

/* =========================================================
   TOAST
========================================================= */

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 999;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 11px 18px;
  border: 1px solid #8633c8;
  border-radius: 6px;
  background: #0b1b2b;
  color: #fff;
  font-size: var(--fs-sm);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1200px) {
  .brand {
    width: 190px;
  }
}

/* =========================================================
   RESPONSIVE
   Breakpoints: 1200 (large tablet) / 992 (tablet) /
   768 (mobile landscape, nav collapses) / 560 (mobile) /
   400 (small mobile)
========================================================= */

/* ---------- 1200px — large tablet / small laptop ---------- */
@media (max-width: 1200px) {
  .container,
  .container-fluid {
    padding: 0 20px;
  }

  main {
    padding: 17px 20px 30px;
  }

  .brand {
    width: 160px;
  }

  .nav {
    gap: 20px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .profile-content {
    grid-template-columns: 120px minmax(0, 1fr) 240px;
    padding: 22px;
  }

  .company-logo {
    width: 100px;
    height: 100px;
    font-size: 24px;
  }

  .two-col {
    grid-template-columns: 1fr 1.15fr;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 992px — tablet: stack the right rail ---------- */
@media (max-width: 992px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .right {
    margin-top: 16px;
  }

  .profile {
    height: auto;
  }

  .profile-content {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding: 20px;
  }

  .contact-box {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .company-logo {
    width: 88px;
    height: 88px;
    font-size: 20px;
  }

  .name-line h1 {
    font-size: 19px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 14px;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid #182b3c;
    padding: 0 12px 10px;
  }

  .metrics div:nth-child(3n) {
    border-right: 0;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 768px — mobile: header collapses to burger ---------- */
@media (max-width: 768px) {
  .header__inner {
    height: 64px;
    padding: 14px 20px;
  }

  .header__actions {
    display: none;
  }

  .mega {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr;
    transform: none;
    box-shadow: none;
  }

  main {
    padding: 14px 16px 24px;
  }

  .quick {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .profile-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 18px;
  }

  .name-line {
    justify-content: center;
  }

  .meta {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .profile-info p {
    max-width: 100%;
  }

  .chips {
    justify-content: center;
  }

  .contact-box {
    width: 100%;
  }

  .two-col,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics div:nth-child(3n) {
    border-right: 1px solid #182b3c;
  }

  .metrics div:nth-child(2n) {
    border-right: 0;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    min-width: 110px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rating-main {
    flex-wrap: wrap;
    gap: 14px;
  }

  .info p {
    grid-template-columns: 20px 1fr;
    row-gap: 2px;
  }

  .info b {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 30px;
  }

  .ready {
    padding: 18px;
  }

  .ready > i {
    top: 18px;
    left: 18px;
  }

  .ready h2,
  .ready p {
    margin-left: 38px;
  }

  .ready button {
    width: 100%;
    margin-left: 38px;
    max-width: calc(100% - 38px);
  }
}

/* ---------- 560px — small mobile ---------- */
@media (max-width: 560px) {
  .crumb {
    white-space: nowrap;
    overflow-x: auto;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .name-line h1 {
    font-size: 17px;
  }

  .company-logo {
    width: 76px;
    height: 76px;
    font-size: 18px;
  }

  .company-logo span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .bars p {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    gap: 6px;
  }

  .rating-main strong {
    font-size: 28px;
  }

  .contact-box button {
    font-size: var(--fs-xs);
  }
}

/* ---------- 400px — very small phones ---------- */
@media (max-width: 400px) {
  .container,
  .container-fluid {
    padding: 0 14px;
  }

  main {
    padding: 12px 14px 20px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metrics div {
    padding: 0 6px 10px;
  }

  .quick button span {
    display: none;
  }

  .chips span,
  .industry-chips span {
    font-size: 10px;
  }
}

/* ---------- 768px — Mobile Navbar ---------- */
@media (max-width: 768px) {
  .header__inner {
    height: 64px;
    padding: 0 20px;
  }

  .header__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 40;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    flex: none;
    width: 100%;

    gap: 0;
    padding: 20px;

    background: var(--surface);
    border-top: 1px solid var(--border-soft);

    overflow-y: auto;

    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;

    padding: 12px 4px;

    font-size: 14px;

    border-bottom: 1px solid var(--border-soft);
  }

  .nav__pages {
    width: 100%;
  }

  .nav__pages-trigger {
    width: 100%;
  }

  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 18px;
  }

  .nav__mobile-btn-wrap {
    width: 100%;
  }

  .mega {
    position: static;

    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: 1fr;

    margin-top: 5px;

    padding: 10px 15px;

    transform: none;
    box-shadow: none;
  }

  .nav__pages.is-open .mega {
    transform: none;
  }

  .nav__link--active::after {
    display: none;
  }
}

/* =========================================================
   MOBILE NAVBAR — FINAL FIX
========================================================= */

@media screen and (max-width: 768px) {
  /* Header */
  .header__inner {
    height: 64px !important;
    padding: 0 20px !important;
  }

  /* Hide desktop actions */
  .header__actions {
    display: none !important;
  }

  /* Show burger */
  .burger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ================= NAV ================= */

  .header .nav {
    position: fixed !important;

    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    z-index: 999 !important;

    width: 100% !important;
    height: calc(60vh - 64px) !important;

    /* THIS IS THE IMPORTANT PART */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    flex: none !important;

    gap: 0 !important;

    padding: 20px !important;

    background: var(--surface, #0d1428) !important;
    border-top: 1px solid var(--border-soft, #161f38);

    overflow-y: auto !important;
    overflow-x: hidden !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(-10px) !important;

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease !important;
  }

  /* Open */
  .header .nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  /* ================= LINKS ================= */

  .header .nav > .nav__link {
    display: flex !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    align-items: center !important;
    justify-content: flex-start !important;

    padding: 15px 5px !important;

    margin: 0 !important;

    font-size: 14px !important;
    text-align: right !important;

    border-bottom: 1px solid var(--border-soft, #161f38);

    white-space: normal !important;
  }

  /* Remove desktop active underline */
  .header .nav__link--active::after {
    display: none !important;
  }

  /* ================= MOBILE BUTTONS ================= */

  .header .nav__mobile-actions {
    display: flex !important;

    flex-direction: column !important;

    align-items: stretch !important;

    width: 100% !important;

    flex: 0 0 auto !important;

    gap: 10px !important;

    margin-top: 20px !important;
  }

  .header .nav__mobile-btn-wrap {
    display: block !important;
    width: 100% !important;
  }

  .header .nav__mobile-actions .lang-switch {
    display: flex !important;
    width: 100% !important;

    align-items: center !important;
    justify-content: flex-start !important;

    padding: 12px 5px !important;
  }

  .header .nav__mobile-actions .btn {
    width: 100% !important;
  }
}
