:root {
  --bg: #071524;
  --bg-soft: #0b1f3a;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #102033;
  --muted: #617188;
  --line: rgba(13, 35, 64, 0.12);
  --brand: #0c61ff;
  --brand-dark: #0a2d68;
  --accent: #7aa7ff;
  --silver: #dce4ee;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(7, 21, 36, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 76px;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-text strong {
  display: block;
  font-family: Arial, "Manrope", Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.8px;
  color: #012169;
  text-transform: uppercase;
}

.brand-text span {
  display: block;
  margin-top: 3px;
  font-family: Arial, "Manrope", Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.8px;
  color: #012169;
  text-transform: uppercase;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 24px rgba(12, 97, 255, 0.24);
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text { display: grid; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a { color: #29394f; }
.nav-links a:hover { color: var(--brand); }

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 1.25rem;
}

.section { padding: 88px 0; }
.section.alt { background: var(--surface-soft); }

.hero {
  color: #fff;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(12, 97, 255, 0.42), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(122, 167, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #06111f 0%, #0b1f3a 52%, #071524 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 75px 0 auto 0;
  height: 620px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 68%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero .eyebrow { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 5.45rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
}

.hero-actions, .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary { color: #fff; background: var(--brand); box-shadow: 0 16px 34px rgba(12, 97, 255, 0.30); }
.btn.secondary { color: #fff; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); }
.btn:hover { transform: translateY(-1px); }

.hero-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 32px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 30px 90px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
}

.metric-card {
  min-height: 132px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
}
.metric-card span { display: block; color: rgba(255,255,255,0.62); font-weight: 700; margin-bottom: 8px; }
.metric-card strong { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.1; }

.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 0;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.9rem;
}

.split-grid, .approach-grid, .contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 54px;
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
.section-heading p { color: var(--muted); max-width: 680px; }
.centered { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.centered p { margin-left: auto; margin-right: auto; }

.content-card, .contact-form {
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.value-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.value-grid div {
  min-height: 136px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}
.value-grid strong { display: block; margin-bottom: 10px; }
.value-grid span { color: var(--muted); font-size: 0.92rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card, .sector {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(7, 21, 36, 0.06);
}
.service-card h3, .sector h3 { line-height: 1.2; margin-bottom: 12px; }
.service-card p, .sector p { color: var(--muted); margin-bottom: 0; }
.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--brand-dark);
  background: #e9f0ff;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.step span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 900;
}
.step p { margin-bottom: 0; color: var(--muted); }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-section {
  color: #fff;
  background: linear-gradient(135deg, #071524, #0b1f3a);
}
.contact-section .section-heading p, .contact-copy p { color: rgba(255,255,255,0.72); }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.055em; }
.contact-list { align-items: flex-start; flex-direction: column; margin-top: 26px; }
.contact-list a, .contact-list span { color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.16); }

.contact-form { color: var(--text); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: var(--surface-soft);
}
textarea { resize: vertical; }
.contact-form small { display: block; margin-top: 14px; color: var(--muted); }

.site-footer {
  padding: 30px 0;
  background: #050d17;
  color: rgba(255,255,255,0.78);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-grid div:last-child {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-grid p { margin: 4px 0 0; color: rgba(255,255,255,0.55); }

.reveal { opacity: 0; transform: translateY(18px); transition: 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .hero { min-height: auto; padding-top: 84px; }
  .hero-grid, .split-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid, .trust-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 52px; }
  .services-grid, .sector-grid, .trust-grid, .value-grid { grid-template-columns: 1fr; }
  .content-card, .contact-form { padding: 22px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

/* === Bulag Mind Engineering Brandbook Override === */

:root {
  --bme-blue: #012169;
  --bme-red: #C8102E;
  --bme-black: #2D2926;
  --bme-white: #ffffff;
  --bme-soft: #f5f7fb;
  --bme-muted: #64748b;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--bme-black);
}

h1,
h2,
h3,
.brand-text strong,
.focus-card strong,
.btn,
.main-nav {
  font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(1, 33, 105, 0.10);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  background: var(--bme-blue);
  color: var(--bme-white);
}

.brand-text strong {
  color: var(--bme-blue);
}

.brand-text span {
  color: var(--bme-black);
}

.main-nav {
  color: var(--bme-black);
}

.main-nav a:hover {
  color: var(--bme-red);
}

.contact-pill {
  background: var(--bme-white);
  color: var(--bme-blue);
  border: 1px solid rgba(1, 33, 105, 0.12);
}

.hero {
  background:
    linear-gradient(120deg, rgba(1, 33, 105, 0.96), rgba(45, 41, 38, 0.80)),
    radial-gradient(circle at 72% 18%, rgba(200, 16, 46, 0.28), transparent 28%),
    linear-gradient(135deg, var(--bme-blue), var(--bme-black));
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(1, 33, 105, 0.94), rgba(45, 41, 38, 0.45)),
    url("hero-bg.jpg");
  opacity: 0.18;
}

.hero::after {
  background: rgba(200, 16, 46, 0.18);
}

.eyebrow,
.section-heading p,
.dark-section .section-heading p {
  color: var(--bme-red);
}

.hero h1 {
  color: var(--bme-white);
}

.lead {
  color: rgba(255, 255, 255, 0.82);
}

.btn-primary {
  background: var(--bme-red);
  color: var(--bme-white);
  box-shadow: 0 18px 35px rgba(200, 16, 46, 0.30);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--bme-white);
}

.focus-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.focus-card span {
  color: rgba(255, 255, 255, 0.68);
}

.section-heading h2 {
  color: var(--bme-blue);
}

.dark-section .section-heading h2 {
  color: var(--bme-white);
}

.service-card span,
.method-row span {
  color: var(--bme-white);
  background: var(--bme-blue);
}

.service-card:hover,
.text-card:hover,
.method-row > div:hover {
  border-color: rgba(1, 33, 105, 0.28);
}

.sector-list span {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.footer {
  background: var(--bme-black);
}
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-current {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.language-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 150px;
  display: none;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  z-index: 100;
}

.language-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
}

.language-menu a:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.language-switcher:hover .language-menu {
  display: block;
}

@media (max-width: 980px) {
  .language-switcher {
    width: 100%;
  }

  .language-current {
    width: 100%;
    text-align: left;
  }

  .language-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}
