/* ===== MDM SecureTech (Pvt) Ltd — Site Stylesheet ===== */

:root {
  --charcoal: #2b2b2b;
  --charcoal-soft: #3d3d3d;
  --navy: #0c1524;
  --navy-soft: #131f33;
  --blue: #159AE0;
  --blue-dark: #1477C6;
  --blue-light: #3CB6F0;
  --gray-bg: #f5f7fa;
  --gray-line: #e4e8ee;
  --text-body: #43494f;
  --text-muted: #6a7178;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 30, 50, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 30, 50, 0.16);
  --container: 1180px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--charcoal); font-weight: 800; line-height: 1.2; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.bg-alt { background: var(--gray-bg); }
.bg-navy { background: var(--navy); color: #cbd5e1; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.bg-navy .eyebrow { color: var(--blue-light); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 17px; }
.bg-navy .section-head p { color: #a8b3c2; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(21, 154, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(21, 154, 224, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--gray-line);
  box-shadow: 0 4px 20px rgba(15, 30, 50, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 800; color: var(--charcoal); }
.brand-text span { font-size: 10.5px; letter-spacing: 1.5px; color: var(--blue-dark); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal-soft);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--charcoal); }
.header-phone svg { width: 18px; height: 18px; color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(circle at 18% 20%, #16233c 0%, var(--navy) 55%), var(--navy);
  color: var(--white);
  padding: 190px 0 130px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,154,224,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,154,224,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 40%, black 0%, transparent 70%);
  z-index: -2;
}
.hero-glow {
  position: absolute;
  top: -180px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(60,182,240,0.35) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.5px;
  min-height: 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tagline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 12px var(--blue-light); flex-shrink: 0; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: var(--white); font-weight: 800; }
.hero h1 span { color: var(--blue-light); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: #b7c2d0; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; max-width: 560px; }
.hero-stat { border-top: 2px solid rgba(255,255,255,0.15); padding-top: 12px; }
.hero-stat strong { display: block; font-size: 26px; color: var(--white); font-weight: 800; }
.hero-stat span { font-size: 12.5px; color: #9fb0c3; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 44px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-art-card img { width: 240px; margin: 0 auto; display: block; border-radius: 18px; box-shadow: 0 20px 40px rgba(21,154,224,0.35); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.about-text p + p { margin-top: 16px; }
.mv-cards { display: grid; gap: 18px; }
.mv-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.mv-card h3 { font-size: 18px; margin-bottom: 8px; }
.mv-card p { color: var(--text-muted); font-size: 15px; }

/* ===== Icon tiles ===== */
.icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(21,154,224,0.35);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon-tile { margin-bottom: 18px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p.desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.service-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-body);
  margin-bottom: 9px;
}
.service-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
}

/* ===== Industries ===== */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.industry-card:hover { transform: translateY(-4px); background: rgba(21,154,224,0.1); border-color: rgba(60,182,240,0.4); }
.industry-card .icon-tile { margin: 0 auto 14px; background: rgba(60,182,240,0.15); box-shadow: none; color: var(--blue-light); }
.industry-card h4 { color: var(--white); font-size: 15px; font-weight: 700; }

/* ===== Why choose us ===== */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.why-card { text-align: left; }
.why-card .icon-tile { margin-bottom: 16px; }
.why-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); }

/* ===== Leadership ===== */
.leadership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cert-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  box-shadow: var(--shadow);
}
.cert-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.focus-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
}
.focus-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

/* ===== Commitment / CTA banner ===== */
.commitment {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0e6bb0 100%);
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.commitment::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.commitment p { position: relative; font-size: 19px; max-width: 780px; margin: 0 auto; line-height: 1.7; }
.commitment .tagline-strip { position: relative; margin-top: 28px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.commitment .tagline-strip span {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-card {
  background: var(--navy-soft);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-card h3 { color: var(--white); font-size: 20px; margin-bottom: 22px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.contact-item .icon-tile svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 14px; color: #a8b3c2; margin-bottom: 3px; font-weight: 600; }
.contact-item a, .contact-item span.value { font-size: 15.5px; font-weight: 700; color: var(--white); }
.contact-item a:hover { color: var(--blue-light); }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background var(--transition);
}
.social-row a:hover { background: var(--blue); }
.social-row svg { width: 17px; height: 17px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--charcoal-soft); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,154,224,0.15);
}
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: none;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-alert.show { display: block; }
.form-alert.success { border-color: #35b088; color: #1c7a5c; background: #eafaf4; }
.form-alert.error { border-color: #d64545; color: #b93434; background: #fdecec; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #93a1b3; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; gap: 40px; }
.footer-brand img { height: 110px; margin-bottom: 18px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.footer-brand p { font-size: 14px; color: #8592a3; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 14.5px; margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; color: #93a1b3; transition: color var(--transition); }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6d7a8c;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Back to top ===== */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  border: none;
  cursor: pointer;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 20px; }
  .hero-art-card img { width: 160px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 22px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-line);
    box-shadow: var(--shadow-lg);
  }
  .hero { padding: 150px 0 90px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .commitment { padding: 36px 24px; }
  .section { padding: 64px 0; }
}
