:root {
  --mb-ink: #102033;
  --mb-muted: #637184;
  --mb-blue: #1668e3;
  --mb-cyan: #1bb8d5;
  --mb-green: #2bb673;
  --mb-bg: #f5f8fb;
  --mb-line: #dfe8f1;
  --mb-dark: #0f1b2d;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--mb-ink);
  font-family: "Open Sans", sans-serif;
  background: #fff;
}

a {
  color: var(--mb-blue);
}

h1, h2, h3, h4, h5, h6,
#header .logo {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0;
}

#header.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 232, 241, 0.9);
  backdrop-filter: blur(14px);
  padding: 14px 0;
}

#header .logo a {
  color: var(--mb-ink);
  font-weight: 700;
}

.nav-menu a {
  color: #34445a;
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a {
  color: var(--mb-blue);
}

.mobile-nav-toggle i {
  color: var(--mb-ink);
}

#hero.hero-modern {
  min-height: 100vh;
  height: auto;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(246, 250, 254, 0.98) 0%, rgba(246, 250, 254, 0.92) 46%, rgba(255, 255, 255, 0.8) 100%),
    url("../img-port/mindbase-corporation-head-office.png") center right / cover no-repeat;
}

#hero.hero-modern:before {
  display: none;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--mb-ink);
  font-size: 54px;
  line-height: 1.08;
  font-weight: 700;
}

.hero-copy .lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #46576c;
  font-size: 18px;
  line-height: 1.75;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--mb-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn-primary-modern,
.btn-secondary-modern {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary-modern {
  color: #fff;
  background: var(--mb-blue);
  box-shadow: 0 16px 34px rgba(22, 104, 227, 0.24);
}

.btn-primary-modern:hover {
  color: #fff;
  background: #0d57c5;
  transform: translateY(-2px);
}

.btn-secondary-modern {
  color: var(--mb-ink);
  background: #fff;
  border: 1px solid var(--mb-line);
}

.btn-secondary-modern:hover {
  color: var(--mb-blue);
  border-color: rgba(22, 104, 227, 0.35);
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-metrics div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(223, 232, 241, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--mb-ink);
  font-size: 21px;
}

.hero-metrics span {
  margin-top: 6px;
  color: var(--mb-muted);
  font-size: 13px;
}

.profile-showcase {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(223, 232, 241, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 42, 71, 0.14);
}

.profile-showcase img,
.profile-grid img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.showcase-note {
  position: absolute;
  right: 26px;
  bottom: 26px;
  max-width: 300px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 27, 45, 0.9);
}

.showcase-note span,
.showcase-note strong {
  display: block;
}

.showcase-note span {
  color: #9fd8ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.showcase-note strong {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.35;
}

section {
  padding: 84px 0;
}

.section-bg-soft {
  background: var(--mb-bg);
}

.section-bg-dark {
  color: #fff;
  background: var(--mb-dark);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.company-section h2,
.contact-section h2,
.work-section h2 {
  margin: 0;
  color: var(--mb-ink);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
}

.section-bg-dark h2,
.section-bg-dark h3 {
  color: #fff;
}

.section-bg-dark p {
  color: #c8d3df;
}

.section-heading p,
.section-lead {
  margin-top: 16px;
  color: var(--mb-muted);
  font-size: 16px;
  line-height: 1.75;
}

.capability-grid,
.work-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.capability-card,
.solution-card,
.work-steps div {
  width: 100%;
  border-radius: 8px;
  padding: 26px;
}

.capability-card,
.solution-card {
  border: 1px solid var(--mb-line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(21, 42, 71, 0.06);
}

.capability-card i,
.solution-card i {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--mb-blue), var(--mb-cyan));
  font-size: 24px;
}

.capability-card h3,
.solution-card h3,
.work-steps h3 {
  margin: 0 0 10px;
  color: var(--mb-ink);
  font-size: 18px;
  font-weight: 700;
}

.capability-card p,
.solution-card p {
  margin: 0;
  color: var(--mb-muted);
  line-height: 1.65;
}

.solution-card {
  margin-bottom: 30px;
  transition: 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(21, 42, 71, 0.1);
}

.profile-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-grid-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.portfolio-group-heading-spaced {
  margin-top: 42px;
}

.portfolio-group-heading span {
  flex: 0 0 auto;
  color: #42526a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-group-heading p {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #8a97a8;
  font-size: 13px;
  line-height: 1.4;
}

.portfolio-group-heading p:before {
  content: "";
  display: block;
  flex: 1 1 auto;
  height: 1px;
  background: var(--mb-line);
}

.profile-grid figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(21, 42, 71, 0.07);
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 42, 71, 0.05);
  transition: 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(21, 42, 71, 0.08);
}

.portfolio-lightbox {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  background: #eef3f8;
}

.portfolio-lightbox:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 32, 51, 0);
  transition: 0.2s ease;
}

.portfolio-lightbox:after {
  content: "+";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mb-ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.portfolio-lightbox:hover:before {
  background: rgba(15, 32, 51, 0.14);
}

.portfolio-lightbox:hover:after {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #eef3f8;
}

.portfolio-card.logo-card img {
  padding: 28px;
  object-fit: contain;
}

.portfolio-card div {
  min-height: 76px;
  padding: 12px 16px 14px;
  border-top: 1px solid #eef3f8;
}

.portfolio-card span {
  display: block;
  margin-bottom: 4px;
  color: #6d7b8e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-card h3 {
  margin: 0;
  color: #17283d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.portfolio-viewer-active {
  overflow: hidden;
}

.portfolio-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px 76px;
  background: rgba(7, 14, 24, 0.88);
}

.portfolio-viewer.is-open {
  display: flex;
}

.portfolio-viewer figure {
  width: min(1120px, 100%);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.portfolio-viewer img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.portfolio-viewer figcaption {
  margin-top: 14px;
  color: #dce7f1;
  font-size: 14px;
  font-weight: 700;
}

.portfolio-viewer button {
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: 0.2s ease;
}

.portfolio-viewer button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.portfolio-viewer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
}

.portfolio-viewer-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  font-size: 26px;
  transform: translateY(-50%);
}

.portfolio-viewer-prev {
  left: 22px;
}

.portfolio-viewer-next {
  right: 22px;
}

.work-steps div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.work-steps span {
  display: block;
  margin-bottom: 14px;
  color: #7ad8ef;
  font-weight: 800;
}

.work-steps h3 {
  color: #fff;
}

.work-steps p {
  margin: 0;
  color: #c8d3df;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.logo-cloud img {
  width: 100%;
  height: 104px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  background: #fff;
  filter: saturate(0.75);
  transition: 0.2s ease;
}

.logo-cloud img:hover {
  filter: saturate(1);
  transform: translateY(-2px);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--mb-ink);
  font-weight: 700;
}

.contact-list i {
  color: var(--mb-blue);
  font-size: 21px;
}

.map-frame {
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(21, 42, 71, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#footer.footer-modern {
  color: #c8d3df;
  background: #0a1320;
}

.footer-modern .container {
  padding-top: 52px;
  padding-bottom: 26px;
}

.footer-modern h4 {
  color: #fff;
  font-weight: 700;
}

.footer-links-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links-modern a {
  color: #dce7f1;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.back-to-top i {
  border-radius: 8px;
  background: var(--mb-blue);
}

.privacy-page,
.maintenance-page {
  min-height: 100vh;
  padding: 56px 0;
  background: var(--mb-bg);
}

.privacy-shell,
.maintenance-shell {
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(21, 42, 71, 0.08);
}

.maintenance-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: 44px;
}

.maintenance-shell img {
  max-width: 260px;
  height: auto;
}

@media (max-width: 1199px) {
  .hero-copy h1 {
    font-size: 46px;
  }

  .logo-cloud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portfolio-grid-dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  #hero.hero-modern {
    padding-top: 110px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .portfolio-grid-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  section {
    padding: 64px 0;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .hero-copy .lead,
  .section-heading p,
  .section-lead {
    font-size: 15px;
  }

  .hero-metrics,
  .capability-grid,
  .work-steps {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .company-section h2,
  .contact-section h2,
  .work-section h2 {
    font-size: 28px;
  }

  .showcase-note {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid,
  .portfolio-grid-dense {
    grid-template-columns: 1fr;
  }

  .portfolio-viewer {
    padding: 56px 18px 34px;
  }

  .portfolio-viewer-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .portfolio-viewer-prev {
    left: 18px;
  }

  .portfolio-viewer-next {
    right: 18px;
  }

  .portfolio-viewer img {
    max-height: 70vh;
  }

  .map-frame {
    height: 340px;
  }

  .footer-links-modern {
    justify-content: flex-start;
  }

  .maintenance-shell {
    padding: 28px;
  }
}
