/* ── CSS Variables ───────────────────────────── */
    :root {
      --navy:      #071828;
      --blue:      #0b5ea8;
      --blue-mid:  #1374cf;
      --cyan:      #10b4e8;
      --ice:       #e8f4fd;
      --white:     #ffffff;
      --slate:     #5a7a96;
      --text:      #1e3448;
      --border:    rgba(11,94,168,.15);
      --font-head: 'Rajdhani', sans-serif;
      --font-body: 'Nunito Sans', sans-serif;
    }

    /* ── Reset & Base ─────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      color: var(--text);
      background: var(--white);
      overflow-x: hidden !important;
      position: relative;
      min-width: 0;
    }
    /* Add these specific fixes */
.phb-1, .phb-2 {
  display: none; /* Hide background blobs on mobile if causing issues */
}

@media (max-width: 767px) {
  .phb-1, .phb-2 {
    display: block;
    opacity: .15; /* Reduce opacity */
  }
}

/* Ensure stats band doesn't overflow */
#stats-band .row {
  margin: 0 -8px;
}

#stats-band .row > div {
  padding: 0 8px;
}

/* Fix any potential image overflow */
.story-img-frame,
.story-img-inner,
.team-avatar {
  max-width: 100%;
  overflow: hidden;
}


     /* ── Container Fix ── */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* Prevent horizontal scroll */
html, body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden !important;
}

/* Responsive images and SVGs only (not all elements) */
img, svg, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure embedded SVGs are responsive */
svg { width: 100%; height: auto; }
    /* ── Topbar ───────────────────────────────────── */
    #topbar {
      background: var(--navy);
      padding: 8px 0;
      font-size: .82rem;
      letter-spacing: .03em;
      color: rgba(255,255,255,.78);
    }
    #topbar a { color: var(--cyan); text-decoration: none; transition: color .2s; }
    #topbar a:hover { color: #fff; }
    #topbar .sep { margin: 0 12px; opacity: .35; }
    /* Topbar mobile responsive */
    @media (max-width: 768px) {
      #topbar .d-flex:last-child span { display: none; }
      #topbar { padding: 6px 0; font-size: .7rem; }
    }

    /* ── Navbar ───────────────────────────────────── */
    #mainNav {
      background: #f7f7f5;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 2px solid var(--border);
      padding: 0;
      transition: box-shadow .3s;
    }
    #mainNav.scrolled {
      box-shadow: 0 4px 32px rgba(7,24,40,.14);
    }
    .navbar-brand {
      display: flex; align-items: center; gap: 1px;
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 700;
      color: var(--navy) !important;
      letter-spacing: .02em;
      padding: 0 0;
    }
    /* Responsive navbar logo */
    .navbar-logo {
      width: 140px;
      height: 90px;
      object-fit: contain;
    }
    @media (max-width: 767px) {
      .navbar-logo {
        width: 110px;
        height: 70px;
      }
    }
    @media (max-width: 480px) {
      .navbar-logo {
        width: 90px;
        height: 60px;
      }
    }
    .brand-icon {
      width: 42px; height: 42px;
      /*background: linear-gradient(135deg, var(--blue), var(--cyan));*/
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: #fff;
      font-size: 1.2rem;
      flex-shrink: 0;
      box-shadow: 0 3px 12px rgba(11,94,168,.35);
    }
    .brand-sub {
      font-size: .58rem;
      font-family: var(--font-body);
      letter-spacing: .18em;
      color: var(--slate);
      font-weight: 600;
      line-height: 1;
      display: block;
      text-transform: uppercase;
    }
    .nav-link {
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: .05em;
      color: var(--text) !important;
      padding: 1.5rem 1rem !important;
      position: relative;
      transition: color .25s;
    }
    .nav-link::after {
      content: '';
      position: absolute; bottom: 0; left: 50%; right: 50%;
      height: 3px;
      background: linear-gradient(90deg, var(--blue), var(--cyan));
      transition: left .3s, right .3s;
    }
    .nav-link:hover { color: var(--blue) !important; }
    .nav-link:hover::after, .nav-link.active::after { left: 12%; right: 12%; }
    .navbar-toggler {
      border: 2px solid var(--blue);
      border-radius: 6px;
      padding: 4px 8px;
    }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230b5ea8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Dropdown */
    .dropdown-menu {
      border: none;
      border-radius: 10px;
      box-shadow: 0 12px 40px rgba(7,24,40,.15);
      padding: 8px;
      margin-top: 8px !important;
    }
    .dropdown-item {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: .95rem;
      letter-spacing: .04em;
      color: var(--text);
      border-radius: 7px;
      padding: 9px 16px;
      display: flex; align-items: center; gap: 10px;
      transition: background .2s, color .2s;
    }
    .dropdown-item i { color: var(--blue); font-size: 1.1rem; }
    .dropdown-item:hover { background: var(--ice); color: var(--blue); }

        /* Submenu: hidden by default, positioned to the right */
.dropdown-submenu .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
}

/* Show on hover (desktop only) */
@media (hover: hover) {
  .dropdown-submenu:hover > .submenu {
    display: block;
  }
}

/* Rotate the arrow to point right */
.dropdown-submenu > .dropdown-toggle::after {
  transform: rotate(-90deg);
  float: right;
  margin-top: 5px;
}

    /* ── Offcanvas (mobile) ───────────────────────── */
    .offcanvas-header { background: var(--navy); }
    .offcanvas-body {
      background: #f5faff;
      padding: 0;
    }
    .offcanvas .nav-link {
      padding: 14px 24px !important;
      border-bottom: 1px solid rgba(11,94,168,.1);
      font-size: 1.1rem;
    }
    .offcanvas .nav-link::after { display: none; }
    .offcanvas .dropdown-menu {
      position: static !important; transform: none !important;
      box-shadow: none;
      background: rgba(11,94,168,.06);
      border-radius: 0;
      margin: 0 !important;
      padding: 0;
    }
    .offcanvas .dropdown-item { border-radius: 0; padding: 11px 36px; }

    /* ── Hero ─────────────────────────────────────── */
    #hero {
      min-height: 100vh;
      background: var(--navy);
      position: relative;
      display: flex; align-items: center;
      overflow: hidden;
    }
    /* Blueprint grid */
    #hero::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(16,180,232,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,180,232,.07) 1px, transparent 1px);
      background-size: 50px 50px;
      animation: gridDrift 25s linear infinite;
    }
    @keyframes gridDrift { from { transform: translate(0,0); } to { transform: translate(50px, 50px); } }

    /* Geometric blobs */
    .hero-blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(70px);
      opacity: .35;
      animation: blobFloat 8s ease-in-out infinite;
    }
    .hero-blob-1 {
      width: 520px; height: 520px;
      background: radial-gradient(circle, #1374cf, transparent);
      top: -120px; right: -100px;
    }
    .hero-blob-2 {
      width: 360px; height: 360px;
      background: radial-gradient(circle, #10b4e8, transparent);
      bottom: 60px; left: -80px;
      animation-delay: -4s;
    }
    @keyframes blobFloat {
      0%,100% { transform: scale(1) translate(0,0); }
      50%      { transform: scale(1.08) translate(15px,-20px); }
    }

    /* Blueprint decoration lines */
    .blueprint-deco {
      position: absolute;
      right: 5%;
      top: 50%;
      transform: translateY(-50%);
      opacity: .12;
      width: 420px;
    }
    .blueprint-deco svg { width: 100%; height: auto; }

    .hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(16,180,232,.15);
      border: 1px solid rgba(16,180,232,.4);
      color: var(--cyan);
      font-family: var(--font-head);
      font-size: .8rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      padding: 5px 14px;
      border-radius: 100px;
      margin-bottom: 24px;
      animation: fadeUp .7s .1s both;
    }
    .hero-eyebrow span { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.4;transform:scale(.7);} }
    h1.hero-title {
      font-family: var(--font-head);
      font-size: clamp(2.6rem, 6vw, 4.6rem);
      font-weight: 700;
      line-height: 1.1;
      color: var(--white);
      letter-spacing: -.01em;
      animation: fadeUp .7s .25s both;
    }
    h1.hero-title .accent {
      background: linear-gradient(90deg, var(--cyan), #58d0f0);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-sub {
      font-size: 1.12rem;
      color: rgba(255,255,255,.65);
      max-width: 820px;
      line-height: 1.75;
      margin: 20px 0 36px;
      animation: fadeUp .7s .4s both;
    }
    .hero-ctas { animation: fadeUp .7s .55s both; display: flex; gap: 14px; flex-wrap: wrap; }
    .btn-primary-hero {
      background: linear-gradient(135deg, var(--blue), var(--blue-mid));
      color: #fff;
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 14px 32px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 8px 28px rgba(11,94,168,.45);
      transition: transform .25s, box-shadow .25s;
      text-decoration: none;
      display: inline-block;
    }
    .btn-primary-hero:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(11,94,168,.55); color: #fff; }
    .btn-outline-hero {
      background: transparent;
      color: rgba(255,255,255,.85);
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 14px 32px;
      border: 2px solid rgba(255,255,255,.3);
      border-radius: 8px;
      cursor: pointer;
      transition: border-color .25s, color .25s;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 8px;
    }
    .btn-outline-hero:hover { border-color: var(--cyan); color: var(--cyan); }

    /* Stats strip */
    .hero-stats { animation: fadeUp .7s .7s both; margin-top: 56px; display: flex; gap: 40px; flex-wrap: wrap; }
    .stat-item { text-align: left; }
    .stat-num {
      font-family: var(--font-head);
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1;
    }
    .stat-num span { color: var(--cyan); }
    .stat-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 2px; }

    /* Scroll indicator */
    .scroll-hint {
      position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      color: rgba(255,255,255,.35); font-size: .72rem; letter-spacing: .12em;
      text-transform: uppercase; z-index: 2;
      animation: fadeIn 1s 1.2s both;
    }
    .scroll-dot {
      width: 24px; height: 38px;
      border: 2px solid rgba(255,255,255,.2);
      border-radius: 12px;
      display: flex; justify-content: center; padding-top: 5px;
    }
    .scroll-dot::before {
      content: '';
      width: 4px; height: 8px;
      background: var(--cyan);
      border-radius: 2px;
      animation: scrollBounce 2s ease-in-out infinite;
    }
    @keyframes scrollBounce { 0%,100%{transform:translateY(0);opacity:1;} 60%{transform:translateY(12px);opacity:.3;} }

    /* ── Section Shared ───────────────────────────── */
    section { padding: 96px 0; }
    .section-eyebrow {
      font-family: var(--font-head);
      font-size: .78rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--blue);
      font-weight: 700;
      margin-bottom: 10px;
    }
    .section-title {
      font-family: var(--font-head);
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 700;
      color: var(--navy);
      line-height: 1.2;
      letter-spacing: -.01em;
    }
    .title-line {
      display: inline-block;
      width: 50px; height: 4px;
      background: linear-gradient(90deg, var(--blue), var(--cyan));
      border-radius: 2px;
      margin-top: 16px;
    }

    /* Animations */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity .65s ease, transform .65s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-left {
      opacity: 0; transform: translateX(-30px);
      transition: opacity .65s ease, transform .65s ease;
    }
    .reveal-left.visible { opacity: 1; transform: translateX(0); }
    .reveal-right {
      opacity: 0; transform: translateX(30px);
      transition: opacity .65s ease, transform .65s ease;
    }
    .reveal-right.visible { opacity: 1; transform: translateX(0); }

    /* ── About ────────────────────────────────────── */
    #about { background: #f8fbff; }
    .about-img-wrap {
      position: relative;
    }
    .about-img-frame {
      background: linear-gradient(135deg, var(--blue), var(--navy));
      border-radius: 16px;
      padding: 4px;
      box-shadow: 0 24px 64px rgba(11,94,168,.25);
    }
    .about-img-inner {
      background: var(--navy);
      border-radius: 13px;
      aspect-ratio: 4/3;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      /*overflow: hidden;*/
    }
    /* SVG engineering illustration */
    .about-badge {
      position: absolute;
      bottom: -18px; right: -18px;
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      color: #fff;
      font-family: var(--font-head);
      font-size: .7rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-weight: 700;
      padding: 14px 20px;
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(11,94,168,.4);
      text-align: center;
      line-height: 1.4;
    }
    .about-badge strong { font-size: 1.8rem; display: block; line-height: 1; }

    .about-feature {
      display: flex; align-items: flex-start; gap: 16px;
      margin-bottom: 20px;
    }
    .feat-icon {
      width: 44px; height: 44px; flex-shrink: 0;
      background: var(--ice);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      color: var(--blue);
      font-size: 1.2rem;
      transition: background .3s, color .3s, transform .3s;
    }
    .about-feature:hover .feat-icon {
      background: var(--blue);
      color: #fff;
      transform: rotate(-8deg) scale(1.08);
    }
    .feat-body h6 {
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: .04em;
      margin-bottom: 3px;
    }
    .feat-body p { font-size: .88rem; color: var(--slate); line-height: 1.6; }

    /* ── Services ─────────────────────────────────── */
    #services { background: var(--white); }
    .service-card {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 36px 30px;
      height: 100%;
      position: relative;
      overflow: hidden;
      transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
      cursor: default;
    }
    .service-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--blue), var(--cyan));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .4s ease;
    }
    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 60px rgba(11,94,168,.14);
      border-color: rgba(11,94,168,.3);
    }
    .service-card:hover::before { transform: scaleX(1); }

    .svc-icon-wrap {
      width: 64px; height: 64px;
      background: var(--ice);
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 24px;
      transition: background .35s, transform .35s;
    }
    .svc-icon-wrap svg { width: 32px; height: 32px; }
    .service-card:hover .svc-icon-wrap {
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      transform: rotate(-6deg) scale(1.1);
    }
    .service-card:hover .svc-icon-wrap svg path,
    .service-card:hover .svc-icon-wrap svg circle,
    .service-card:hover .svc-icon-wrap svg rect,
    .service-card:hover .svc-icon-wrap svg polyline,
    .service-card:hover .svc-icon-wrap svg line {
      stroke: #fff !important;
    }
    .svc-num {
      position: absolute; top: 24px; right: 24px;
      font-family: var(--font-head);
      font-size: 3.5rem;
      font-weight: 700;
      color: rgba(11,94,168,.06);
      line-height: 1;
      transition: color .35s;
    }
    .service-card:hover .svc-num { color: rgba(11,94,168,.1); }
    .svc-title {
      font-family: var(--font-head);
      font-size: 1.28rem;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: .02em;
      margin-bottom: 12px;
    }
    .svc-desc { font-size: .9rem; color: var(--slate); line-height: 1.7; }
    .svc-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
    .svc-tag {
      font-size: .72rem;
      font-family: var(--font-head);
      letter-spacing: .08em;
      text-transform: uppercase;
      font-weight: 600;
      padding: 4px 10px;
      background: var(--ice);
      color: var(--blue);
      border-radius: 5px;
      transition: background .25s, color .25s;
    }
    .service-card:hover .svc-tag { background: rgba(11,94,168,.1); }

    /* ── Portfolio ────────────────────────────────── */
    #portfolio { background: #f8fbff; }
    .portfolio-card {
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(7,24,40,.08);
      transition: transform .35s ease, box-shadow .35s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .portfolio-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 48px rgba(11,94,168,.15);
    }
    .portfolio-img {
      position: relative;
      overflow: hidden;
      background: var(--navy);
      aspect-ratio: 16/10;
    }
    .portfolio-img svg {
      width: 100%;
      height: 100%;
      display: block;
      transition: transform .5s ease;
    }
    .portfolio-card:hover .portfolio-img svg {
      transform: scale(1.05);
    }
    .portfolio-content {
      padding: 28px 26px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .portfolio-meta {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }
    .portfolio-category, .portfolio-location {
      font-size: .76rem;
      font-family: var(--font-head);
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--blue);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .portfolio-category i, .portfolio-location i {
      font-size: .9rem;
    }
    .portfolio-title {
      font-family: var(--font-head);
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: .01em;
      margin-bottom: 12px;
      line-height: 1.3;
    }
    .portfolio-desc {
      font-size: .9rem;
      color: var(--slate);
      line-height: 1.7;
      margin-bottom: 20px;
      flex: 1;
    }
    .portfolio-specs {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }
    .spec-item {
      text-align: center;
      flex: 1;
    }
    .spec-item strong {
      display: block;
      font-family: var(--font-head);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 4px;
    }
    .spec-item span {
      display: block;
      font-size: .7rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--slate);
      font-weight: 600;
    }

    /* Portfolio Stats */
    .portfolio-stats-wrap {
      background: linear-gradient(135deg, var(--blue), var(--navy));
      border-radius: 16px;
      padding: 48px 32px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 32px;
    }
    .portfolio-stat-item {
      text-align: center;
    }
    .portfolio-stat-icon {
      width: 56px;
      height: 56px;
      background: rgba(255,255,255,.15);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      color: var(--cyan);
      font-size: 1.6rem;
      transition: background .3s, transform .3s;
    }
    .portfolio-stat-item:hover .portfolio-stat-icon {
      background: rgba(255,255,255,.25);
      transform: scale(1.1);
    }
    .portfolio-stat-num {
      font-family: var(--font-head);
      font-size: 2.4rem;
      font-weight: 700;
      color: #fff;
      line-height: 1;
      margin-bottom: 8px;
    }
    .portfolio-stat-num span {
      color: var(--cyan);
    }
    .portfolio-stat-label {
      font-size: .8rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(255,255,255,.6);
      font-weight: 600;
    }

    /* ── Process ──────────────────────────────────── */
    #process { background: var(--navy); }
    .process-step {
      text-align: center;
      padding: 0 16px;
      position: relative;
    }
    .process-step::after {
      content: '';
      position: absolute;
      top: 36px; right: -16px;
      width: 32px; height: 2px;
      background: linear-gradient(90deg, var(--blue), transparent);
    }
    .process-step:last-child::after { display: none; }
    .step-num {
      width: 72px; height: 72px;
      border-radius: 50%;
      background: rgba(11,94,168,.2);
      border: 2px solid rgba(11,94,168,.5);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 20px;
      font-family: var(--font-head);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--cyan);
      transition: background .3s, border-color .3s, transform .3s;
    }
    .process-step:hover .step-num {
      background: var(--blue);
      border-color: var(--cyan);
      transform: scale(1.1);
    }
    .step-title {
      font-family: var(--font-head);
      font-size: 1.05rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: .04em;
      margin-bottom: 8px;
    }
    .step-desc { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.65; }

    /* ── Contact CTA ──────────────────────────────── */
    #cta {
      background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 60%);
      position: relative; overflow: hidden;
    }
    #cta::before {
      content: '';
      position: absolute; inset: 0;
      background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
      background-size: 40px 40px;
    }
    .cta-inner { position: relative; z-index: 1; }
    .cta-title {
      font-family: var(--font-head);
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 700;
      color: #fff;
      letter-spacing: -.01em;
    }
    .cta-sub { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-top: 10px; }

    /* ── Footer ───────────────────────────────────── */
    footer {
      background: var(--navy);
      border-top: 1px solid rgba(255,255,255,.06);
      padding: 56px 0 28px;
    }
    .footer-brand {
      font-family: var(--font-head);
      font-size: 1.5rem;
      font-weight: 700;
      color: #fff;
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 14px;
    }
    .footer-desc { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 260px; }
    .footer-heading {
      font-family: var(--font-head);
      font-size: .78rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--cyan);
      font-weight: 700;
      margin-bottom: 16px;
    }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 9px; }
    .footer-links a {
      color: rgba(255,255,255,.5);
      text-decoration: none;
      font-size: .9rem;
      transition: color .2s, padding-left .2s;
      display: inline-block;
    }
    .footer-links a:hover { color: var(--cyan); padding-left: 5px; }
    .footer-contact-item {
      display: flex; align-items: flex-start; gap: 10px;
      color: rgba(255,255,255,.5);
      font-size: .88rem;
      margin-bottom: 10px;
    }
    .footer-contact-item i { color: var(--cyan); margin-top: 2px; flex-shrink: 0; }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.07);
      margin-top: 40px; padding-top: 20px;
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 10px;
      font-size: .8rem;
      color: rgba(255,255,255,.3);
    }
    .social-links { display: flex; gap: 10px; }
    .social-btn {
      width: 36px; height: 36px;
      border-radius: 8px;
      background: rgba(255,255,255,.07);
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,.5);
      text-decoration: none;
      transition: background .25s, color .25s;
    }
    .social-btn:hover { background: var(--blue); color: #fff; }

    /* ── Back to Top ──────────────────────────────── */
    #backToTop {
      position: fixed; bottom: 28px; right: 28px;
      width: 46px; height: 46px;
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      color: #fff;
      border: none;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      box-shadow: 0 6px 20px rgba(11,94,168,.4);
      cursor: pointer;
      opacity: 0; pointer-events: none;
      transform: translateY(12px);
      transition: opacity .3s, transform .3s;
      z-index: 999;
    }
    #backToTop.show { opacity: 1; pointer-events: all; transform: translateY(0); }
    #backToTop:hover { transform: translateY(-3px); }

    /* ── RESPONSIVE DESIGN ────────────────────────── */
    
    /* Tablet and below */
    @media (max-width: 991px) {
      .desktop-nav { display: none !important; }
      #topbar .d-flex { font-size: .75rem; }
      #topbar .sep { margin: 0 8px; }
      .hero-content { padding: 100px 0 64px; }
      h1.hero-title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
      .hero-sub { font-size: 1rem; }
      .hero-stats { gap: 28px; margin-top: 40px; }
      .stat-num { font-size: 1.8rem; }
      .stat-label { font-size: .72rem; }
      .blueprint-deco { display: none !important; }
      section { padding: 72px 0; }
      .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
      .portfolio-specs { flex-direction: column; gap: 12px; }
      .spec-item { text-align: left; }
      .portfolio-stats-wrap { 
        grid-template-columns: repeat(2, 1fr); 
        padding: 36px 24px; 
        gap: 24px; 
      }
    }

    /* Mobile */
    @media (max-width: 767px) {
      section { padding: 64px 0; }
      #topbar { font-size: .7rem; padding: 6px 0; }
      #topbar .d-flex { gap: 4px !important; }
      #topbar .sep { display: none; }
      .navbar-brand img { width: 110px !important; height: 70px !important; }
      .hero-content { padding: 80px 0 50px; }
      h1.hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
      .hero-sub { font-size: .95rem; margin: 16px 0 28px; }
      .hero-ctas { gap: 10px; }
      .btn-primary-hero, .btn-outline-hero { 
        padding: 12px 24px; 
        font-size: .9rem; 
      }
      .hero-stats { 
        flex-direction: column;
        gap: 12px; 
        margin-top: 32px; 
      }
      .stat-item { text-align: center; }
      .stat-num { font-size: 2rem; }
      .scroll-hint { bottom: 20px; font-size: .68rem; }
      .about-badge { 
        bottom: -12px; 
        right: -12px; 
        padding: 10px 16px; 
        font-size: .65rem; 
      }
      .about-badge strong { font-size: 1.4rem; }
      .service-card { padding: 28px 24px; }
      .svc-icon-wrap { width: 56px; height: 56px; }
      .svc-icon-wrap svg { width: 28px; height: 28px; }
      .svc-num { font-size: 2.8rem; top: 20px; right: 20px; }
      .svc-title { font-size: 1.15rem; }
      .svc-desc { font-size: .88rem; }
      .portfolio-content { padding: 22px 20px; }
      .portfolio-title { font-size: 1.2rem; }
      .portfolio-desc { font-size: .88rem; }
      .portfolio-specs { 
        flex-direction: row; 
        gap: 8px; 
      }
      .spec-item strong { font-size: 1rem; }
      .spec-item span { font-size: .65rem; }
      .portfolio-stats-wrap { 
        grid-template-columns: 1fr; 
        padding: 28px 20px; 
        gap: 20px; 
      }
      .portfolio-stat-icon { width: 48px; height: 48px; font-size: 1.4rem; }
      .portfolio-stat-num { font-size: 2rem; }
      .portfolio-stat-label { font-size: .75rem; }
      .process-step::after { display: none; }
      .step-num { width: 60px; height: 60px; font-size: 1.3rem; }
      .step-title { font-size: .95rem; }
      .step-desc { font-size: .82rem; }
      .cta-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
      .cta-sub { font-size: .95rem; }
      .footer-brand { font-size: 1.3rem; }
      .footer-desc { font-size: .85rem; }
      .footer-heading { font-size: .72rem; }
      .footer-bottom { 
        flex-direction: column; 
        text-align: center; 
        gap: 16px; 
      }
      section:not(#hero):not(#page-hero) {
        text-align: center;
      }
      section:not(#hero):not(#page-hero) .row {
        justify-content: center;
      }
      section:not(#hero):not(#page-hero) .btn-primary-hero,
      section:not(#hero):not(#page-hero) .btn-outline-hero {
        margin-left: auto;
        margin-right: auto;
      }
      #backToTop { 
        width: 42px; 
        height: 42px; 
        bottom: 20px; 
        right: 20px; 
      }
    }

    /* Extra small mobile - 320px */
    @media (max-width: 480px) {
      /* Force container padding for very small screens */
      .container { padding-left: 12px; padding-right: 12px; }
      
      /* Navbar fixes */
      .navbar-brand img { width: 90px !important; height: 60px !important; }
      
      /* Hero section */
      h1.hero-title { font-size: 1.7rem; }
      .hero-sub { font-size: .9rem; margin: 12px 0 20px; }
      .hero-eyebrow { font-size: .7rem; padding: 4px 12px; }
      .hero-content { padding: 70px 0 40px; }
      
      /* Buttons */
      .btn-primary-hero, .btn-outline-hero { 
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: .85rem;
      }
      
      /* Section titles */
      .section-title { font-size: 1.5rem; }
      .section-eyebrow { font-size: .65rem; }
      
      /* Portfolio */
      .portfolio-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
      .portfolio-specs { 
        flex-wrap: wrap;
      }
      .spec-item { 
        flex: 1 1 45%;
        min-width: 45%;
      }
      
      /* Hero stats */
      .hero-stats { gap: 10px; }
      .stat-num { font-size: 1.8rem; }
      .stat-label { font-size: .65rem; }
      
      /* Cards and components */
      .service-card, .portfolio-card { padding: 20px 16px; }
      .svc-num { font-size: 2.4rem; top: 12px; right: 12px; }
      
      /* Ensure SVGs don't overflow */
      svg { max-width: 100% !important; }
    }

    /* Large desktop optimization */
    @media (min-width: 1400px) {
      .container { max-width: 1320px; }
      .hero-content { padding: 140px 0 100px; }
      section { padding: 110px 0; }
      .portfolio-stats-wrap { grid-template-columns: repeat(4, 1fr); }
    }

    /* Landscape mobile specific */
    @media (max-height: 600px) and (orientation: landscape) {
      #hero { min-height: auto; padding: 60px 0; }
      .hero-content { padding: 60px 0 40px; }
      .scroll-hint { display: none; }
      .hero-stats { margin-top: 24px; }
    }

    /* High DPI displays */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
      .service-card, .portfolio-card, .about-img-frame {
        box-shadow: 0 8px 32px rgba(7,24,40,.12);
      }
    }

    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .hero-blob { animation: none; }
      #hero::before { animation: none; }
    }

    /* Print styles */
    @media print {
      #topbar, #mainNav, .scroll-hint, #backToTop, footer { display: none; }
      section { page-break-inside: avoid; }
      .portfolio-card, .service-card { page-break-inside: avoid; }
    }