/* ==========================================================================
   Microzensys — Corporate IT Services & Consulting
   Design system: colors, typography, components
   ========================================================================== */

:root {
  --mz-navy: #1b0a2e;
  --mz-navy-2: #240f3d;
  --mz-blue: #790d86;
  --mz-blue-dark: #5a0a63;
  --mz-cyan: #d6409f;
  --mz-purple: #9c1fae;
  --mz-bg: #f8f6fb;
  --mz-text: #2b3446;
  --mz-text-light: #667085;
  --mz-border: #e9e2ee;
  --mz-radius: 16px;
  --mz-shadow: 0 10px 30px rgba(27, 10, 46, 0.10);
  --mz-shadow-lg: 0 20px 50px rgba(27, 10, 46, 0.16);
  --mz-gradient: linear-gradient(135deg, var(--mz-blue) 0%, var(--mz-purple) 55%, var(--mz-cyan) 100%);
}

html {
  scroll-behavior: smooth;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mz-text);
  background: var(--mz-bg);
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: var(--mz-navy);
}

a { text-decoration: none; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--mz-blue);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.text-muted-light { color: var(--mz-text-light); }

/* Theme overrides for Bootstrap defaults used inline in views */
.text-primary { color: var(--mz-blue) !important; }
a { color: var(--mz-blue); }
a:hover { color: var(--mz-blue-dark); }
::selection { background: var(--mz-blue); color: #fff; }

.section { padding: 5.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.25rem 0; } }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border-radius: 50px;
  background: rgba(121, 13, 134, 0.1);
  color: var(--mz-blue-dark);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: .75rem 0 1rem; }
.section-subtitle { color: var(--mz-text-light); font-size: 1.05rem; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn-cta {
  background: var(--mz-gradient);
  background-size: 200% auto;
  color: #fff;
  border: none;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all .35s ease;
  box-shadow: 0 8px 20px rgba(121, 13, 134, 0.35);
}
.btn-cta:hover, .btn-cta:focus {
  background-position: right center;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(121, 13, 134, 0.45);
}

.btn-outline-cta {
  border: 2px solid var(--mz-navy);
  color: var(--mz-navy);
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all .3s ease;
  background: transparent;
}
.btn-outline-cta:hover { background: var(--mz-navy); color: #fff; }

.btn-outline-light-cta {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-outline-light-cta:hover { background: #fff; color: var(--mz-navy); border-color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--mz-navy); color: rgba(255,255,255,.85); font-size: .85rem; padding: .5rem 0; }
.topbar-info span { margin-right: 1.5rem; }
.topbar-info i { color: var(--mz-cyan); margin-right: .35rem; }
.topbar-social a { color: rgba(255,255,255,.75); margin-left: .9rem; transition: color .2s ease; }
.topbar-social a:hover { color: var(--mz-cyan); }

/* ---------- Navbar ---------- */
.site-navbar {
  background: #fff;
  padding: .85rem 0;
  transition: box-shadow .3s ease, padding .3s ease;
  border-bottom: 1px solid var(--mz-border);
}
.site-navbar.scrolled { box-shadow: var(--mz-shadow); padding: .5rem 0; }
.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--mz-navy) !important;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.footer-brand .logo-img {
  height: 32px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mz-gradient);
  color: #fff;
  margin-right: .5rem;
  font-size: 1.15rem;
}
.nav-links .nav-link {
  color: var(--mz-navy) !important;
  font-weight: 500;
  padding: .55rem 1rem !important;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links .nav-link:hover, .nav-links .nav-link.active {
  color: var(--mz-blue) !important;
  background: rgba(121, 13, 134,.08);
}
.nav-links .dropdown-toggle::after {
  vertical-align: middle;
}
.nav-links .dropdown-menu {
  border: 1px solid var(--mz-border);
  border-radius: 14px;
  box-shadow: var(--mz-shadow-lg);
  padding: .6rem;
  margin-top: .5rem;
}
.nav-links .dropdown-item {
  border-radius: 8px;
  padding: .55rem .85rem;
  font-weight: 500;
  color: var(--mz-text);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-links .dropdown-item i {
  color: var(--mz-blue);
  width: 18px;
  text-align: center;
}
.nav-links .dropdown-item:hover, .nav-links .dropdown-item:focus {
  background: rgba(121,13,134,.08);
  color: var(--mz-blue);
}
.nav-links .dropdown-divider {
  margin: .4rem .2rem;
}
@media (min-width: 992px) {
  .nav-links .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(6,194,198,.25), transparent 60%),
              linear-gradient(135deg, var(--mz-navy) 0%, var(--mz-navy-2) 55%, #142a52 100%);
  color: #fff;
  padding: 6.5rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
.hero-neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .85;
  pointer-events: none;
}
.hero-neural-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-visual { position: relative; z-index: 2; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--mz-radius);
  backdrop-filter: blur(10px);
  padding: 1.75rem;
  color: #fff;
}
.hero-stat { border-radius: 14px; background: rgba(255,255,255,.08); padding: 1rem 1.1rem; }
.hero-stat .num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--mz-cyan); }

/* ---------- Client logos ---------- */
.logo-strip { padding: 2.25rem 0; background: #fff; border-bottom: 1px solid var(--mz-border); }
.logo-strip .logo-item {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #98a2b3;
  font-size: 1.15rem;
  opacity: .8;
  transition: opacity .2s ease, color .2s ease;
}
.logo-strip .logo-item:hover { opacity: 1; color: var(--mz-navy); }

/* ---------- Cards ---------- */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--mz-gradient);
  margin-bottom: 1.1rem;
}

.service-card {
  background: #fff;
  border-radius: var(--mz-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid var(--mz-border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--mz-shadow-lg); border-color: transparent; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--mz-text-light); margin-bottom: 0; }
.service-card .card-link {
  color: var(--mz-blue);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
}

.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-item .feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(121, 13, 134,.1);
  color: var(--mz-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.process-step {
  background: #fff;
  border-radius: var(--mz-radius);
  padding: 1.75rem;
  border: 1px solid var(--mz-border);
  position: relative;
  height: 100%;
}
.process-step .step-num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  color: rgba(121, 13, 134,.15);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(121, 13, 134,.08);
  border: 1px solid rgba(121, 13, 134,.18);
  color: var(--mz-navy);
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s ease;
}
.tech-chip:hover { background: var(--mz-blue); border-color: var(--mz-blue); color: #fff; }
.tech-chip i { color: var(--mz-blue); }
.tech-chip:hover i { color: #fff; }

/* ---------- Stats ---------- */
.stats-section { background: var(--mz-gradient); color: #fff; }
.stat-block .num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.6rem; }
.stat-block .label { color: rgba(255,255,255,.85); font-weight: 500; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--mz-radius); padding: 2rem; border: 1px solid var(--mz-border); height: 100%; }
.testimonial-card .stars { color: #f5a623; letter-spacing: 2px; }
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mz-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Portfolio ---------- */
.filter-btn {
  border: 1px solid var(--mz-border);
  background: #fff;
  color: var(--mz-text);
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--mz-navy); color: #fff; border-color: var(--mz-navy); }
.portfolio-card { border-radius: var(--mz-radius); overflow: hidden; position: relative; border: 1px solid var(--mz-border); background: #fff; height: 100%; }
.portfolio-thumb {
  height: 210px;
  background: var(--mz-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.9);
  font-size: 2.5rem;
  position: relative;
}
.portfolio-thumb-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s ease;
}
.portfolio-card:hover .portfolio-thumb-img {
  transform: scale(1.05);
}
.portfolio-card .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,.9);
  color: var(--mz-navy);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
}
.portfolio-body { padding: 1.5rem; }
.portfolio-body h3 { font-size: 1.1rem; }
.portfolio-body p { color: var(--mz-text-light); font-size: .92rem; }

/* ---------- Team ---------- */
.team-card { background: #fff; border-radius: var(--mz-radius); overflow: hidden; border: 1px solid var(--mz-border); transition: transform .3s ease, box-shadow .3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--mz-shadow); }
.team-photo {
  height: 230px;
  background: linear-gradient(135deg, #dbe6ff, #f0e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--mz-blue-dark);
}
.team-body { padding: 1.25rem 1.4rem; }
.team-body .role { color: var(--mz-blue); font-weight: 600; font-size: .9rem; }
.team-social a { color: var(--mz-text-light); margin-right: .75rem; transition: color .2s ease; }
.team-social a:hover { color: var(--mz-blue); }

/* ---------- Careers ---------- */
.perk-card { background: #fff; border-radius: var(--mz-radius); padding: 1.75rem; border: 1px solid var(--mz-border); height: 100%; text-align: center; }
.perk-card .icon-box { margin: 0 auto 1.1rem; }
.job-item { background: #fff; border: 1px solid var(--mz-border); border-radius: var(--mz-radius); padding: 1.5rem 1.75rem; transition: box-shadow .3s ease, border-color .3s ease; }
.job-item:hover { box-shadow: var(--mz-shadow); border-color: transparent; }
.job-meta span { color: var(--mz-text-light); font-size: .85rem; margin-right: 1rem; }
.job-meta i { color: var(--mz-blue); margin-right: .3rem; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border-radius: var(--mz-radius); border: 1px solid var(--mz-border); padding: 2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.map-wrap {
  border-radius: var(--mz-radius);
  overflow: hidden;
  height: 320px;
  background: linear-gradient(135deg, var(--mz-navy), var(--mz-navy-2));
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.form-control, .form-select { border-radius: 10px; border: 1px solid var(--mz-border); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(121, 13, 134,.15); border-color: var(--mz-blue); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--mz-gradient); border-radius: 24px; padding: 3.5rem; color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--mz-navy); color: rgba(255,255,255,.75); padding-top: 4rem; }
.footer-brand { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; display: flex; align-items: center; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-links a:hover { color: var(--mz-cyan); }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  margin-right: .6rem;
  transition: background .2s ease;
}
.social-icons a:hover { background: var(--mz-blue); }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .88rem; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--mz-cyan); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mz-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
  box-shadow: var(--mz-shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Cookie consent banner ---------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #fff;
  border-top: 1px solid var(--mz-border);
  box-shadow: 0 -10px 30px rgba(27, 10, 46, 0.12);
  padding: 1.25rem 0;
  transform: translateY(110%);
  transition: transform .45s ease;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cookie-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--mz-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.cookie-text h6 { color: var(--mz-navy); }
.cookie-text p { color: var(--mz-text-light); font-size: .9rem; }
.cookie-text a { color: var(--mz-blue); font-weight: 600; }
.cookie-actions {
  display: flex;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .cookie-consent-inner {
    flex-wrap: wrap;
  }
  .cookie-actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--mz-navy) 0%, var(--mz-navy-2) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; margin-bottom: .5rem; }
.breadcrumb-mz a { color: rgba(255,255,255,.7); }
.breadcrumb-mz .active { color: var(--mz-cyan); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Anchor offset so sticky navbar doesn't cover jump targets (e.g. Industries page) */
[id] { scroll-margin-top: 110px; }

/* Accordion (services / FAQ) */
.mz-accordion .accordion-item { border: 1px solid var(--mz-border); border-radius: 12px !important; margin-bottom: .85rem; overflow: hidden; }
.mz-accordion .accordion-button { font-weight: 600; color: var(--mz-navy); }
.mz-accordion .accordion-button:not(.collapsed) { background: rgba(121, 13, 134,.06); color: var(--mz-blue-dark); box-shadow: none; }
.mz-accordion .accordion-button:focus { box-shadow: none; }

/* ---------- Sector / Industry pages ---------- */
.sector-header .sector-hero-icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #fff;
}
.sector-mockup-card {
  background: linear-gradient(135deg, var(--mz-navy) 0%, var(--mz-navy-2) 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--mz-shadow-lg);
}
.sector-mockup-row {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: .9rem 1.1rem;
}
.challenge-item {
  background: #fff;
  border: 1px solid var(--mz-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  height: 100%;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.challenge-item:hover { box-shadow: var(--mz-shadow); border-color: transparent; }
.challenge-item .feature-icon {
  background: rgba(121,13,134,.1);
  color: var(--mz-blue);
}