/* ==========================================================================
   MSQUARE CONSULTING ENGINEERS - GLOBAL & HEADER STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #07677F;       /* Deep Teal */
  --color-secondary: #0284C7;     /* Sky Blue */
  --color-accent-teal: #0d9488;   /* Emerald Teal Stop */
  --color-accent-sky: #0ea5e9;    /* Bright Cyan Stop */
  --color-dark: #111111;          /* Charcoal Black */
  --color-light: #FFFFFF;         /* Pure White */

  /* Background Colors */
  --bg-main: #FFFFFF;
  --bg-alt: #FBFBFA;
  --bg-input: #F8FAFC;
  --bg-dark-section: #05323E;
  --bg-header: rgba(255, 255, 255, 0.85);

  /* Text Colors */
  --text-heading: #111111;
  --text-body: #64748b;
  --text-muted: #8e8e93;
  --text-label: #07677F;

  /* Borders & Shadows */
  --border-color: #ECECEC;
  --border-accent: rgba(7, 103, 127, 0.15);
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-drawer: -10px 0 35px rgba(0, 0, 0, 0.12);

  /* Typography & Section Variables */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Master Typography Scale */
  --font-size-h1: clamp(2.6rem, 6vw, 4.8rem);       /* Hero Title: ~42px to ~76px */
  --font-size-h2: clamp(1.6rem, 3.2vw, 2.4rem);     /* Section Title: ~25px to ~38px (Noticeably smaller than H1) */
  --font-size-h3: clamp(1.2rem, 2.2vw, 1.6rem);     /* Card Title: ~19px to ~25px */
  --font-size-h4: clamp(1.0rem, 1.8vw, 1.25rem);    /* Minor Title: ~16px to ~20px */
  --font-size-eyebrow: clamp(10px, 1.2vw, 12px);    /* Eyebrow Label: ~10px to ~12px */
  --font-size-body: clamp(0.95rem, 1.4vw, 1.05rem); /* Body Text: ~15px to ~17px */


  --font-size-section-heading: var(--font-size-h2);
  --spacing-heading-to-desc: 20px;

  /* Layout */
  --container-max: 1400px;
  --spacing-container-max: 1400px;
  --header-height: 78px;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient-text {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #0d9488, #38bdf8) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  animation: gradientFlow 4s linear infinite !important;
}

/* Hero Scroll Down Indicator Animations */
@keyframes heroMouseWheelMove {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
  80% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes heroStreamLineFlow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.hero-mouse-wheel {
  animation: heroMouseWheelMove 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-stream-line {
  animation: heroStreamLineFlow 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}



/* ==========================================================================
   MASTER UNIFIED TYPOGRAPHY HIERARCHY RULES
   ========================================================================== */

/* H1 - HERO TITLE SCALE (Largest Heading) */
h1,
.common-hero-title,
.hero-title-h1 {
  font-family: var(--font-sans) !important;
  font-size: var(--font-size-h1) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  text-transform: uppercase !important;
}

/* H2 - UNIFIED SECTION TITLE SCALE (Consistent across all sections, slightly smaller than H1) */
h2,
section h2,
.text-\[var\(--font-size-section-heading\)\] {
  font-family: var(--font-sans) !important;
  font-size: var(--font-size-h2) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
}

/* H3 - CARD / SUBSECTION TITLE SCALE */
h3,
.section-subheading-h3 {
  font-family: var(--font-sans) !important;
  font-size: var(--font-size-h3) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

/* H4 - MINOR HEADINGS & NAMES */
h4,
.card-title-h4 {
  font-family: var(--font-sans) !important;
  font-size: var(--font-size-h4) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}


/* SECTION EYEBROW / CATEGORY BADGES */
.section-label-el,
.common-hero-eyebrow,
.eyebrow-text {
  font-family: var(--font-sans);
  font-size: var(--font-size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* BODY PARAGRAPHS */
p,
.msq-body-large,
.desc-paragraph {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: 1.65;
  color: var(--text-body);
}




/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-heading);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Utility */
.container-main {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container-main {
    padding-inline: 40px;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding-inline: 80px;
  }
}

/* --------------------------------------------------------------------------
   3. BUTTON DESIGN SYSTEM (.msq-btn)
   -------------------------------------------------------------------------- */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.msq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #07677f, #0ea5e9, #0d9488) 0 0 / 300% 300%;
  background-size: 300% 300%;
  color: var(--color-light);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(7, 103, 127, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradientFlow 6s ease infinite;
  user-select: none;
  white-space: nowrap;
}

.msq-btn:hover {
  color: var(--color-primary);
  background: var(--color-light);
  border-color: var(--color-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(7, 103, 127, 0.25);
}

.msq-btn:active {
  transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   4. HEADER COMPONENT (.msq-header)
   -------------------------------------------------------------------------- */
.msq-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(7, 103, 127, 0.08);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.msq-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-header);
  border-bottom-color: rgba(7, 103, 127, 0.12);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Header Brand / Logo */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .header-logo-img {
    height: 32px !important;
  }
}

.header-logo:hover .header-logo-img {
  transform: scale(1.02);
}

/* Desktop Navigation (>= 1024px) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

/* Center-expanding underline */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* Left corner tick mark */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 1px;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Right corner tick mark */
.nav-link span.tick-right {
  position: absolute;
  bottom: -1.5px;
  right: 0;
  width: 1px;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:hover span.tick-right,
.nav-link.active span.tick-right {
  opacity: 1;
}


/* Header Actions Right (Desktop CTA) */
.header-cta-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta-desktop {
    display: flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE / TABLET MEGA MENU TRIGGER (< 1024px)
   -------------------------------------------------------------------------- */
.mobile-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(7, 103, 127, 0.05);
  border: 1px solid rgba(7, 103, 127, 0.12);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .mobile-menu-trigger {
    display: none;
  }
}

.mobile-menu-trigger:hover {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

.mobile-menu-trigger {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: #F8FAFC !important;
  border: 1px solid rgba(7, 103, 127, 0.15) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 1070 !important;
  padding: 0 !important;
}

@media (max-width: 1023px) {
  .mobile-menu-trigger {
    display: flex !important;
  }
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger.active {
  background: #07677F !important;
  border-color: #07677F !important;
}

.hamburger-svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-svg line {
  stroke: #07677F;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, stroke 0.3s ease;
  transform-origin: 12px 12px;
}

.mobile-menu-trigger:hover .hamburger-svg line,
.mobile-menu-trigger.active .hamburger-svg line {
  stroke: #FFFFFF !important;
}

/* Morph State: Hamburger -> Perfectly Symmetrical Close (X) Icon */
.mobile-menu-trigger.active .hamburger-svg {
  transform: rotate(180deg);
}

.mobile-menu-trigger.active .line-top {
  transform: rotate(45deg) translateY(6px);
}

.mobile-menu-trigger.active .line-middle {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-trigger.active .line-bottom {
  transform: rotate(-45deg) translateY(-6px);
}

/* --------------------------------------------------------------------------
   6. RIGHT-SIDE MOBILE DRAWER SIDEBAR (< 1024px)
   -------------------------------------------------------------------------- */
/* Backdrop Overlay */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Drawer Panel */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88vw;
  max-width: 380px;
  background: var(--color-light);
  z-index: 1060;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-logo-img {
  height: 36px;
  width: auto;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.drawer-close-btn:hover {
  background: var(--color-primary);
  color: var(--color-light);
  transform: rotate(90deg);
}

/* Drawer Navigation Links */
.drawer-nav {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  background: transparent;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(7, 103, 127, 0.06);
  color: var(--color-primary);
  padding-left: 20px;
}

.drawer-link-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.drawer-link:hover .drawer-link-arrow {
  transform: translateX(4px);
}

/* Drawer Contact Info Section */
.drawer-contact-section {
  padding: 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

.drawer-contact-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.drawer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.4;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-primary);
  fill: none;
  margin-top: 2px;
}

.contact-item-text a {
  color: var(--text-heading);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-item-text a:hover {
  color: var(--color-primary);
}

/* Drawer Bottom Action */
.drawer-bottom-action {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--color-light);
}

.drawer-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. CONTACT HERO SECTION & CAD BLUEPRINT VECTORS
   -------------------------------------------------------------------------- */
.contact-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F4F6F8 0%, #FFFFFF 100%);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-cad-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.cad-vector-left {
  position: absolute;
  left: 6%;
  top: 30%;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  display: none;
}

@media (min-width: 768px) {
  .cad-vector-left { display: block; left: 8%; }
}

@media (min-width: 1200px) {
  .cad-vector-left { left: 12%; }
}

.cad-vector-right {
  position: absolute;
  right: 6%;
  top: 22%;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  display: none;
}

@media (min-width: 768px) {
  .cad-vector-right { display: block; right: 8%; }
}

@media (min-width: 1200px) {
  .cad-vector-right { right: 12%; }
}

.cad-vector-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-align: center;
  margin: 0;
}

.contact-hero-title .text-us-animated {
  background: linear-gradient(90deg, #07677f, #0ea5e9, #0d9488, #07677f) 0 0 / 300% 300%;
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
  display: inline-block;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   8. CONTACT FORM & BLUEPRINT CONTAINER SECTION
   -------------------------------------------------------------------------- */
.contact-section-body {
  padding-block: 70px 90px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.blueprint-card {
  background: var(--color-light);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  position: relative;
}

@media (min-width: 768px) {
  .blueprint-card {
    padding: 50px;
  }
}

.blueprint-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .blueprint-card-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-dark);
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  background: var(--color-light);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(7, 103, 127, 0.1);
}

.form-control::placeholder {
  color: #94A3B8;
  text-transform: uppercase;
  font-size: 12px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Info Cards Right Side */
.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 103, 127, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-content h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.info-card-content p,
.info-card-content a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
}

.info-card-content a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   9. DEEP TEAL BLUEPRINT PROJECT FORM SECTION
   -------------------------------------------------------------------------- */
.blueprint-form-wrapper {
  width: 100%;
  background-color: #07677F;
  position: relative;
  padding-top: 60px;
  padding-bottom: 90px;
  padding-inline: 24px;
  overflow: hidden;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .blueprint-form-wrapper {
    padding-top: 96px;
    padding-bottom: 96px;
    padding-inline: 48px;
  }
}

.blueprint-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.blueprint-drawings-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  user-select: none;
}

.blueprint-drawings-svg {
  width: 100%;
  height: 100%;
  stroke: #FFFFFF;
  fill: none;
}

.truss-group, .foundation-group {
  display: none;
}

@media (min-width: 1024px) {
  .truss-group, .foundation-group {
    display: block;
  }
}

.blueprint-frame-guidelines {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  user-select: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.frame-top-info, .frame-bottom-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.blueprint-left-axis {
  position: absolute;
  left: 40px;
  top: 80px;
  bottom: 80px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  display: none;
  z-index: 10;
}

@media (min-width: 768px) {
  .blueprint-left-axis { display: block; }
}

.axis-marker-top {
  position: absolute;
  top: 20%;
  left: -4px;
  font-family: monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  transform: rotate(-90deg);
  transform-origin: left center;
}

.axis-marker-bottom {
  position: absolute;
  top: 60%;
  left: -4px;
  font-family: monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  transform: rotate(-90deg);
  transform-origin: left center;
}

.blueprint-form-container {
  max-width: 850px;
  margin-inline: auto;
  position: relative;
  z-index: 20;
  text-align: center;
}

.blueprint-form-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 40px;
  width: 100%;
}

.text-gradient-cyan {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blueprint-form-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.blueprint-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blueprint-field-label {
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blueprint-input,
.blueprint-select {
  width: 100%;
  background: #FFFFFF;
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
}

.blueprint-input::placeholder {
  color: #94A3B8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blueprint-input:focus,
.blueprint-select:focus,
.blueprint-textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.blueprint-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2307677F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.blueprint-textarea {
  width: 100%;
  background: #FFFFFF;
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  resize: none;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.blueprint-textarea::placeholder {
  color: #94A3B8;
  font-size: 11px;
  text-transform: uppercase;
}

.blueprint-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .blueprint-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.blueprint-submit-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 16px !important;
}



/* --------------------------------------------------------------------------
   10. PIN CONTACT CARDS & ARCHITECTURAL MAP BLUEPRINT SECTION
   -------------------------------------------------------------------------- */
.contact-info-map-section {
  padding-block: 60px 80px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.map-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .map-section-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
  }
}

/* Left Stack Pin Cards */
.pin-card-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pin-card {
  position: relative;
  background-color: #07677F;
  background-image: 
    linear-gradient(135deg, rgba(7, 103, 127, 0.98) 0%, rgba(5, 77, 96, 1) 100%),
    radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 100% 100%, 14px 14px;
  border-radius: 4px;
  padding: 28px 32px;
  color: #FFFFFF;
  box-shadow: 0 16px 32px rgba(7, 103, 127, 0.35), 0 8px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card 1 & 3: Folded Bottom-Right Corner */
.pin-card-fold-right {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.pin-card-fold-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #032b34 50%, #07677f 50%);
  border-top-left-radius: 3px;
  box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.4);
}

/* Card 2: Folded Bottom-Left Corner */
.pin-card-fold-left {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.pin-card-fold-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, #032b34 50%, #07677f 50%);
  border-top-right-radius: 3px;
  box-shadow: 3px -3px 8px rgba(0, 0, 0, 0.4);
}

.pin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(7, 103, 127, 0.42);
}

/* Metallic Silver Paperclip 📎 */
.card-paperclip {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 26px;
  height: 46px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(3px 6px 7px rgba(0, 0, 0, 0.38));
  transition: transform 0.3s ease;
}

.pin-card:hover .card-paperclip {
  transform: translateY(-2px);
}


.pin-card-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px auto;
  stroke: #FFFFFF;
  stroke-width: 1.8;
  fill: none;
  display: block;
}

.pin-card-label {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 8px;
}

.pin-card-value {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.5;
  word-break: break-word;
}

  fill: none;
}

.pin-card-label {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #A5F3FC;
  margin-bottom: 6px;
}

.pin-card-value {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.5;
  word-break: break-word;
}

.pin-card-value a {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.pin-card-value a:hover {
  opacity: 0.85;
}

/* Right Column: Architectural Map Frame */
.blueprint-map-container {
  position: relative;
  width: 100%;
}

.map-cad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 10px;
  color: rgba(7, 103, 127, 0.6);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.map-cad-frame {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.map-iframe-box {
  width: 100%;
  height: 380px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.map-iframe-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map Header Floating Badge */
.map-badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #07677F;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(7, 103, 127, 0.4);
  pointer-events: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.map-badge-overlay:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Rolled Blueprint Cylinder Effect on Right Side */
.rolled-blueprint-effect {
  position: absolute;
  right: -25px;
  top: -15px;
  bottom: -15px;
  width: 45px;
  background: linear-gradient(90deg, #E2E8F0 0%, #FFFFFF 30%, #CBD5E1 70%, #94A3B8 100%);
  border-radius: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 15;
}

/* --------------------------------------------------------------------------
   11. FOOTER COMPONENT (.msq-footer)
   -------------------------------------------------------------------------- */
.msq-footer {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid #ECECEC;
  padding-top: 48px;
  padding-bottom: 20px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .msq-footer {
    padding-top: 64px;
  }
}

.footer-content-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-content-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-content-container {
    flex-wrap: nowrap;
    gap: 40px;
  }
}

/* Brand Column */
.footer-brand-col {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-brand-col {
    width: 45%;
  }
}

@media (min-width: 1024px) {
  .footer-brand-col {
    width: 22%;
  }
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #8e8e93;
  line-height: 1.65;
  font-weight: 500;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ECECEC;
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-circle-btn:hover {
  border-color: rgba(7, 103, 127, 0.6);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Navigation & Services Columns */
.footer-nav-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .footer-nav-col {
    width: 45%;
  }
}

@media (min-width: 1024px) {
  .footer-nav-col {
    width: auto;
  }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  white-space: nowrap;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #8e8e93;
  text-decoration: none;
  padding-block: 2px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Corner Ticks & Underline Animation */
.footer-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 1px;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-nav-link span.tick-right {
  position: absolute;
  bottom: -1.5px;
  right: 0;
  width: 1px;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-nav-link:hover {
  color: var(--color-primary);
}

.footer-nav-link:hover::before {
  transform: scaleX(1);
}

.footer-nav-link:hover::after,
.footer-nav-link:hover span.tick-right {
  opacity: 1;
}

/* Get In Touch Column */
.footer-touch-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

@media (min-width: 768px) {
  .footer-touch-col {
    width: 45%;
  }
}

@media (min-width: 1024px) {
  .footer-touch-col {
    width: 32%;
  }
}

.footer-touch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #8e8e93;
}

.touch-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.touch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.touch-text, .touch-link {
  color: #8e8e93;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.touch-link:hover {
  color: var(--color-primary);
}

/* CAD Background Drawings (Overlay) */
.footer-cad-left {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  select-none: none;
}

.footer-cad-right {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  margin-bottom: -30px;
  select-none: none;
}

@media (min-width: 768px) {
  .footer-cad-left, .footer-cad-right {
    max-width: 480px;
    max-height: 220px;
  }
}

@media (min-width: 1024px) {
  .footer-cad-left, .footer-cad-right {
    max-width: 520px;
    max-height: 330px;
  }
}

/* Bottom Bar */
.footer-bottom-bar {
  position: relative;
  z-index: 10;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #ECECEC;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #8e8e93;
}

.footer-bottom-container p {
  margin: 0;
}

.footer-bottom-container a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   12. PROJECTS HERO SECTION & CAD VECTOR OVERLAYS
   -------------------------------------------------------------------------- */
.projects-hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F4F6F8 0%, #FFFFFF 100%);
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.projects-cad-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

.projects-cad-left {
  position: absolute;
  left: 6%;
  top: 25%;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .projects-cad-left { display: block; left: 8%; }
}

@media (min-width: 1024px) {
  .projects-cad-left { left: 10%; }
}

.projects-cad-right {
  position: absolute;
  right: 6%;
  top: 20%;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .projects-cad-right { display: block; right: 8%; }
}

@media (min-width: 1024px) {
  .projects-cad-right { right: 10%; }
}

.projects-cad-center {
  position: absolute;
  left: 38%;
  bottom: 12%;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  display: none;
}

@media (min-width: 1024px) {
  .projects-cad-center { display: block; }
}

.projects-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0;
  position: relative;
  z-index: 10;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. PROJECTS PORTFOLIO INTERACTIVE LIST SECTION
   -------------------------------------------------------------------------- */
.projects-list-section {
  width: 100%;
  background-color: #FFFFFF;
  padding-top: 70px;
  padding-bottom: 70px;
  position: relative;
  z-index: 10;
}

.projects-list-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #E2E8F0;
}

.project-list-item {
  position: relative;
  width: 100%;
  padding-block: 22px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-list-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 28px;
  }
}

.project-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

@media (min-width: 640px) {
  .project-item-left {
    gap: 32px;
  }
}

.project-number {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #94A3B8;
  transition: color 0.3s ease;
}

.project-list-item:hover .project-number {
  color: #0284C7;
}

.project-title {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-list-item:hover .project-title {
  color: var(--color-primary);
  transform: translateX(8px);
}

.project-item-right {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

@media (max-width: 767px) {
  .project-list-item {
    display: grid !important;
    grid-template-columns: 36px 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 16px !important;
    row-gap: 6px !important;
  }

  .project-item-left {
    display: contents !important;
  }

  .project-item-right {
    display: contents !important;
  }

  .project-number {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    padding-top: 4px !important;
  }

  .project-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .project-meta-box {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .project-arrow-btn {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
  }
}



.project-meta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .project-meta-box {
    align-items: flex-end;
    text-align: right;
  }
}

.project-category-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.project-location-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #94A3B8;
  margin-top: 2px;
}

.project-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #FFFFFF;
}

.project-list-item:hover .project-arrow-btn {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #FFFFFF;
}

.project-arrow-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.project-list-item:hover .project-arrow-icon {
  transform: translate(2px, -2px);
}

/* Background Hover Thumbnail (Desktop) */
.project-thumb-bg {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  display: none;
}

@media (min-width: 1024px) {
  .project-thumb-bg {
    display: block;
  }
}

.project-list-item:hover .project-thumb-bg {
  opacity: 0.15;
  transform: translateY(-50%) scale(1.05);
}

/* --------------------------------------------------------------------------
   14. PROJECT CASE STUDY DETAIL PAGE STYLES
   -------------------------------------------------------------------------- */
.project-detail-hero {
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 50px;
  background: var(--bg-main);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-block: 24px;
  border-block: 1px solid var(--border-color);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .project-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-meta-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
}

.meta-item-label {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.meta-item-value {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.meta-status-completed {
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Horizontal Visual Gallery */
.gallery-scroll-section {
  width: 100%;
  background: var(--bg-main);
  padding-block: 50px 70px;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.gallery-scroll-track {
  display: flex;
  gap: 32px;
  width: max-content;
  overflow: visible;
  padding-bottom: 20px;
  will-change: transform;
}


.gallery-image-card {
  position: relative;
  height: 52vh;
  max-height: 520px;
  min-height: 320px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

@media (max-width: 767px) {
  .gallery-scroll-section {
    padding-block: 30px 40px !important;
  }

  .gallery-scroll-track {
    gap: 16px !important;
    padding-bottom: 10px !important;
  }

  .gallery-image-card {
    height: 42vh !important;
    min-height: 240px !important;
    max-height: 380px !important;
    border-radius: 12px !important;
  }
}

.gallery-image-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.gallery-img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}


.gallery-fig-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-dark);
  pointer-events: none;
  z-index: 10;
}

/* Next Projects Subsection */
.next-projects-section {
  width: 100%;
  background: var(--bg-main);
  padding-block: 70px;
  border-top: 1px solid var(--border-color);
}

.next-project-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 28px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border-radius: 8px;
}

.next-project-row .project-item-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.next-project-row .project-item-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .next-project-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .next-project-row .project-item-right {
    width: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .next-project-row {
    padding-inline: 10px !important;
  }

  .next-project-row .project-item-left {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .next-project-row .project-item-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 32px !important;
  }

  .next-project-row .next-project-thumb {
    width: 135px !important;
    height: 82px !important;
    flex-shrink: 0 !important;
  }
}

.next-project-row:hover {
  background: rgba(7, 103, 127, 0.04);
  padding-left: 24px;
  border-bottom-color: var(--color-primary);
}

.next-project-row .project-title {
  transition: color 0.3s ease;
}

.next-project-row:hover .project-title {
  color: var(--color-primary);
}

.next-project-row:hover .project-number {
  color: var(--color-primary);
}

.next-project-row .next-project-thumb {
  width: 170px;
  height: 105px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 4px;
  background: var(--bg-input);
  flex-shrink: 0;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.next-project-row:hover .next-project-thumb {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.next-project-row .next-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.next-project-row:hover .next-project-thumb img {
  transform: scale(1.08);
}

.next-project-row:hover .project-arrow-btn {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #FFFFFF;
}

.next-project-row:hover .project-arrow-icon {
  transform: translate(3px, -3px);
}


/* --------------------------------------------------------------------------
   15. SERVICES HERO SECTION & CAD VECTOR OVERLAYS
   -------------------------------------------------------------------------- */
.services-hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F4F6F8 0%, #FFFFFF 100%);
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.services-cad-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

.services-cad-left {
  position: absolute;
  left: 6%;
  top: 25%;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .services-cad-left { display: block; left: 8%; }
}

@media (min-width: 1024px) {
  .services-cad-left { left: 10%; }
}

.services-cad-right {
  position: absolute;
  right: 6%;
  top: 20%;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .services-cad-right { display: block; right: 8%; }
}

@media (min-width: 1024px) {
  .services-cad-right { right: 10%; }
}

.services-cad-center {
  position: absolute;
  left: 38%;
  bottom: 12%;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  display: none;
}

@media (min-width: 1024px) {
  .services-cad-center { display: block; }
}

.services-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0;
  position: relative;
  z-index: 10;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   16. SERVICES VERTICAL LISTING SECTION
   -------------------------------------------------------------------------- */
.services-vertical-section {
  position: relative;
  z-index: 10;
  width: 100%;
  background-color: #FFFFFF;
  padding-block: 70px;
  overflow: hidden !important;
}

.services-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow: visible;
}

@media (min-width: 1024px) {
  .services-vertical-list {
    gap: 60px;
  }
}

.service-vertical-block {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 48px;
  overflow: visible;
}

.service-vertical-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  .service-vertical-block {
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
    padding-bottom: 70px;
  }
  
  .service-left-col {
    grid-column: span 6;
  }
  
  .service-right-col {
    grid-column: span 6;
  }

  /* Alternating Order on Desktop */
  .service-vertical-block.even .service-left-col {
    order: 2;
  }
  .service-vertical-block.even .service-right-col {
    order: 1;
  }
}

.service-left-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: visible;
}

.service-watermark-num {
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: var(--font-sans);
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 900;
  color: rgba(226, 232, 240, 0.7);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

@media (max-width: 767px) {
  .service-watermark-num {
    left: 0 !important;
    top: -15px !important;
    font-size: 72px !important;
  }
}

.service-content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service-accent-line {
  width: 64px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: 9999px;
  margin-bottom: 16px;
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #64748B;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 0;
}

.service-right-col {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 240px;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-inline: auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.05) contrast(1.08);
}


/* --------------------------------------------------------------------------
   MAP 3D ROLLED BLUEPRINT SCROLL WRAPPER
   -------------------------------------------------------------------------- */
.map-scroll-wrapper {
  position: relative;
  width: 100%;
  padding-left: 0;
  padding-right: 18px;
  display: flex;
  align-items: center;
}

.map-scroll-wrapper .blueprint-map-container {
  position: relative;
  width: 100%;
  border-radius: 6px 0 0 6px !important;
  background: #05323E;
  padding: 0 !important;
  border: 1px solid rgba(7, 103, 127, 0.2);
  border-right: none !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  z-index: 5;
  overflow: hidden;
}


.map-scroll-wrapper .blueprint-roll-handle-right {
  position: absolute !important;
  right: -14px !important;
  top: -12px !important;
  bottom: -12px !important;
  height: calc(100% + 24px) !important;
  width: 32px !important;
  z-index: 30 !important;
}

.map-scroll-wrapper .roll-shadow-overlay-right {
  position: absolute !important;
  right: 18px !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 25px !important;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent) !important;
  pointer-events: none !important;
  z-index: 20 !important;
}

/* Mobile Responsiveness: Reduced Section Padding (Halved for Mobile View) & Extra right spacing for 3D blueprint roll handle */
@media (max-width: 991px) {
  .contact-info-map-section .container-main {
    padding-right: 32px !important;
  }
  .map-scroll-wrapper {
    margin-right: 8px !important;
  }
}

@media (max-width: 767px) {
  .contact-info-map-section {
    padding-block: 30px 40px !important;
  }
  .services-vertical-section {
    padding-block: 32px !important;
  }
  .services-blueprint-cta-section {
    padding-top: 24px !important;
    padding-bottom: 36px !important;
  }
  .projects-list-section {
    padding-block: 30px 40px !important;
  }
  #project-form-section {
    padding-top: 20px !important;
    padding-bottom: 35px !important;
  }
}


.services-blueprint-cta-section {
  position: relative;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: visible;
}

.blueprint-scroll-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}

.blueprint-scroll-card {
  position: relative;
  width: 100%;
  min-height: 360px;
  padding-block: 64px;
  border-radius: 8px;
  background-color: #05323E;
  background-image: radial-gradient(circle at center, #0a4454 0%, #05323E 80%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border-top: 2px solid rgba(247, 244, 236, 0.8);
  border-bottom: 2px solid rgba(247, 244, 236, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.blueprint-card-top-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to bottom, rgba(232, 226, 213, 0.6), transparent);
  opacity: 0.8;
  z-index: 10;
}

.blueprint-card-bottom-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to top, rgba(232, 226, 213, 0.6), transparent);
  opacity: 0.8;
  z-index: 10;
}

.blueprint-cad-svg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.blueprint-cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blueprint-cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 16px;
  display: block;
}

.blueprint-cta-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.blueprint-cta-heading .text-cyan-animated {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blueprint-cta-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: rgba(207, 250, 254, 0.85);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 32px;
}

/* 3D Rolled Blueprint Side Handles */
.blueprint-roll-handle-left {
  position: absolute;
  left: -12px;
  top: -10px;
  bottom: -10px;
  width: 35px;
  z-index: 30;
  border-radius: 6px;
  background: linear-gradient(to right, #cfc4ab, #fcfbf9, #cfc4ab);
  border-left: 1px solid rgba(194, 178, 145, 0.4);
  border-right: 1px solid rgba(194, 178, 145, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.25), 10px 0 20px rgba(0, 0, 0, 0.45);
}

.blueprint-roll-handle-right {
  position: absolute;
  right: -12px;
  top: -10px;
  bottom: -10px;
  width: 35px;
  z-index: 30;
  border-radius: 6px;
  background: linear-gradient(to right, #cfc4ab, #fcfbf9, #cfc4ab);
  border-left: 1px solid rgba(194, 178, 145, 0.4);
  border-right: 1px solid rgba(194, 178, 145, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 12px 0 24px rgba(0, 0, 0, 0.25), -10px 0 20px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .blueprint-roll-handle-left {
    left: -20px;
    width: 50px;
  }
  .blueprint-roll-handle-right {
    right: -20px;
    width: 50px;
  }
}

.roll-shadow-overlay-left {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 20;
}

.roll-shadow-overlay-right {
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 20;
}

@media (min-width: 768px) {
  .roll-shadow-overlay-left {
    left: 25px;
    width: 35px;
  }
  .roll-shadow-overlay-right {
    right: 25px;
    width: 35px;
  }
}

/* CTA Banner Buttons: Crisp 100% White Text, Primary Teal on Hover */
.blueprint-cta-content .msq-btn,
.blueprint-cta-content .blueprint-btn-white,
.services-blueprint-cta-section .msq-btn,
.services-blueprint-cta-section .blueprint-btn-white,
.blueprint-btn-white {
  background: linear-gradient(90deg, #07677f, #0ea5e9, #0d9488) 0 0 / 300% 300% !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.blueprint-cta-content .msq-btn *,
.blueprint-cta-content .blueprint-btn-white *,
.services-blueprint-cta-section .msq-btn *,
.services-blueprint-cta-section .blueprint-btn-white *,
.blueprint-btn-white * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}

.blueprint-cta-content .msq-btn:hover,
.blueprint-cta-content .blueprint-btn-white:hover,
.services-blueprint-cta-section .msq-btn:hover,
.services-blueprint-cta-section .blueprint-btn-white:hover,
.blueprint-btn-white:hover {
  background: #FFFFFF !important;
  color: #07677F !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4) !important;
}

.blueprint-cta-content .msq-btn:hover *,
.blueprint-cta-content .blueprint-btn-white:hover *,
.services-blueprint-cta-section .msq-btn:hover *,
.services-blueprint-cta-section .blueprint-btn-white:hover *,
.blueprint-btn-white:hover * {
  color: #07677F !important;
  -webkit-text-fill-color: #07677F !important;
  stroke: #07677F !important;
}

/* --------------------------------------------------------------------------
   CAD COMPASS IN-PLACE ANTI-CLOCKWISE DASHED LINE FLOW (ABOUT US PAGE)
   -------------------------------------------------------------------------- */
@keyframes dashFlowAntiClockwiseOuter {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes dashFlowAntiClockwiseInner {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -20;
  }
}

.compass-dash-line-outer {
  animation: dashFlowAntiClockwiseOuter 1.2s linear infinite !important;
}

/* --------------------------------------------------------------------------
   HOME PAGE ABOUT SECTION ORBIT SPIN ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes orbitSpinLinearCW {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinLinearCCW {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.animate-\[orbitSpinLinearCW_18s_linear_infinite\] {
  animation: orbitSpinLinearCW 18s linear infinite !important;
  transform-origin: center !important;
}

.animate-\[orbitSpinLinearCCW_14s_linear_infinite\] {
  animation: orbitSpinLinearCCW 14s linear infinite !important;
  transform-origin: center !important;
}

/* --------------------------------------------------------------------------
   CONTACT BLUEPRINT FORM STYLES
   -------------------------------------------------------------------------- */
@keyframes pulseSubtle {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* --------------------------------------------------------------------------
   DUAL TRACK CLIENTS MARQUEE SLIDER (HOME PAGE)
   -------------------------------------------------------------------------- */
@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.marquee-track-left {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 32px;
  animation: marqueeLeft 32s linear infinite !important;
  will-change: transform;
}

.marquee-track-right {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 32px;
  animation: marqueeRight 32s linear infinite !important;
  will-change: transform;
}

.marquee-track-left:hover,
.marquee-track-right:hover {
  animation-play-state: paused !important;
}

.logo-card-item {
  width: 280px;
  height: 130px;
  background: #FFFFFF;
  border: 1px solid rgba(7, 103, 127, 0.12);
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.logo-card-item:hover {
  border-color: rgba(7, 103, 127, 0.35);
  box-shadow: 0 8px 25px rgba(7, 103, 127, 0.15);
  transform: translateY(-4px);
}

.logo-card-item img {
  max-width: 98%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.05);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-card-item:hover img {
  filter: contrast(1.15);
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   OUR PROCESS SECTION - CLEAN COMPONENT STYLES
   -------------------------------------------------------------------------- */
.process-horizontal-track {
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .process-horizontal-track {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1024px) {
  .process-horizontal-track {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (min-width: 1400px) {
  .process-horizontal-track {
    padding-left: max(80px, calc((100vw - 1400px) / 2 + 80px));
    padding-right: max(80px, calc((100vw - 1400px) / 2 + 80px));
  }
}

.process-step-card {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .process-step-card {
    width: 330px;
  }
}

.process-card-watermark {
  position: absolute;
  top: -36px;
  left: 0;
  font-size: 80px;
  font-weight: 900;
  color: rgba(7, 103, 127, 0.05);
  user-select: none;
  pointer-events: none;
  font-family: var(--font-sans);
  line-height: 1;
  z-index: 0;
}

.process-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: #07677F;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  position: relative;
  z-index: 10;
  display: block;
}

.process-card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #07677F !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important; /* Normal Title Case */
  margin-bottom: 4px;
  position: relative;
  z-index: 10;
  font-family: var(--font-sans) !important;
}

@media (min-width: 640px) {
  .process-card-title {
    font-size: 20px !important;
  }
}

.process-card-accent-line {
  width: 44px;
  height: 2px;
  background-color: rgba(7, 103, 127, 0.3);
  border-radius: 9999px;
  margin: 10px 0 14px 0;
  position: relative;
  z-index: 10;
}

.process-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
  font-family: var(--font-sans);
}

@media (min-width: 640px) {
  .process-card-desc {
    font-size: 14.5px;
  }
}


.process-card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-family: monospace;
  color: #94A3B8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.process-card-tag-line {
  width: 24px;
  height: 1px;
  background-color: #CBD5E1;
}










/* ==========================================================================
   UNIFIED HERO SECTION SYSTEM (.common-hero-section)
   ========================================================================== */
.common-hero-section {
  position: relative !important;
  width: 100% !important;
  min-height: 200px !important;
  height: 200px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #F4F6F8 0%, #FFFFFF 100%) !important;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1) !important;
  text-align: center !important;
}

.common-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

.common-hero-eyebrow .eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

.common-hero-eyebrow .eyebrow-text {
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.common-hero-title {
  font-family: 'Poppins', var(--font-sans), sans-serif !important;
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

.common-hero-title .hero-title-black {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  font-weight: 900 !important;
}

.text-gradient-multicolor {
  background: linear-gradient(90deg, #07677F 0%, #0284C7 35%, #0D9488 70%, #07677F 100%) 0 0 / 300% 300% !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  animation: gradientFlow 6s ease infinite !important;
  display: inline-block !important;
}


/* Hero Background Vector Toggle Rules */
.common-hero-section .hero-bg-vector {
  display: none;
}

.common-hero-section.hero-mode-about .hero-bg-about {
  display: block !important;
}

.common-hero-section.hero-mode-services .hero-bg-services {
  display: block !important;
}

.common-hero-section.hero-mode-projects .hero-bg-projects {
  display: block !important;
}

.common-hero-section.hero-mode-contact .hero-bg-contact {
  display: block !important;
}

.common-hero-section.hero-mode-career .hero-bg-career {
  display: block !important;
}



/* --------------------------------------------------------------------------
   18. ABOUT PAGE STYLES & FOUNDERS TEAM SHOWCASE
   -------------------------------------------------------------------------- */

.about-hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F4F6F8 0%, #FFFFFF 100%);
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.about-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0;
  position: relative;
  z-index: 10;
  white-space: nowrap;
}

.about-hero-title .text-about-animated {
  background: linear-gradient(90deg, #07677f, #0ea5e9, #0d9488, #07677f) 0 0 / 300% 300%;
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s ease infinite;
  display: inline-block;
  margin-left: 8px;
}

/* Who We Are Section */
.who-we-are-section {
  position: relative;
  width: 100%;
  padding-block: 80px;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
  overflow: hidden;
}

/* Mission & Vision Section */
.mission-vision-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-block: 80px;
  background-color: #FBFBFA;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
}

.mv-card {
  border-left: 2px solid var(--color-primary);
  padding-left: 24px;
  padding-block: 8px;
}

.mv-card-right {
  border-left: 2px solid rgba(7, 103, 127, 0.4);
  padding-left: 24px;
  padding-block: 8px;
}

@media (min-width: 1024px) {
  .mv-card-right {
    border-left: none;
    border-right: 2px solid rgba(7, 103, 127, 0.4);
    padding-left: 0;
    padding-right: 24px;
  }
}

/* Why Choose Us Section Sticky Left Column */
.why-choose-us-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-block: 80px;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
}

@media (min-width: 1024px) {
  #why-choose-us .why-left-column {
    position: sticky !important;
    top: 110px !important;
    align-self: flex-start !important;
  }
}


.why-pillar-card {
  display: flex;
  gap: 20px;
  border: 1px solid rgba(7, 103, 127, 0.1);
  border-radius: 12px;
  padding: 24px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.why-pillar-card:hover {
  border-color: rgba(7, 103, 127, 0.3);
  box-shadow: 0 4px 20px rgba(7, 103, 127, 0.08);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(7, 103, 127, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.why-pillar-card:hover .pillar-icon-box {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* Leadership Team Showcase */
.team-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-block: 80px 0px;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
}

.team-composite-element {
  position: relative;
}

.ceo-cutout-box {
  position: absolute;
  bottom: 0;
  height: 90%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ceo-cutout-box img {
  height: 100%;
  width: auto;
  object-fit: contain;
}


.founder-cutout-left {
  position: relative;
  z-index: 20;
  height: 420px;
  width: auto;
  object-fit: contain;
}

.founder-cutout-right {
  position: relative;
  z-index: 20;
  height: 420px;
  width: auto;
  object-fit: contain;
}

.founders-3d-bg-box {
  position: relative;
  flex: 1;
  height: 380px;
  margin-inline: -40px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
}

.founders-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.04) brightness(1.03);
}

/* ==========================================================================
   19. PIN CONTACT CARDS WITH METALLIC PAPERCLIPS & BLUEPRINT CAD GRID
   ========================================================================== */
.pin-card-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.pin-card {
  position: relative !important;
  background-color: #07677F !important;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(14, 165, 233, 0.25) 0%, transparent 85%) !important;
  background-size: 20px 20px, 20px 20px, 100% 100% !important;
  border-radius: 8px !important;
  padding: 34px 28px 26px 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22) !important;
  overflow: visible !important;
  color: #FFFFFF !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.pin-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}

.card-paperclip {
  position: absolute !important;
  top: -22px !important;
  left: 28px !important;
  z-index: 25 !important;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)) !important;
  pointer-events: none !important;
}

.card-paperclip svg {
  width: 28px !important;
  height: 48px !important;
  display: block !important;
}

.pin-card-icon {
  width: 28px;
  height: 28px;
  stroke: #FFFFFF;
  fill: none;
  margin-bottom: 12px;
  display: block;
}

.pin-card-label {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #7dd3fc;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pin-card-value {
  font-family: 'Poppins', var(--font-sans), sans-serif;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700;
  color: #FFFFFF;
  word-break: break-word;
}

.pin-card-value a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pin-card-value a:hover {
  color: #7dd3fc;
}

.pin-card-fold-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent #FFFFFF #053643;
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.35));
}

.pin-card-fold-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 0 0 22px;
  border-color: transparent transparent transparent #FFFFFF;
  filter: drop-shadow(2px -2px 3px rgba(0, 0, 0, 0.35));
}

/* --------------------------------------------------------------------------
   TECHNICAL BLUEPRINT FOOTER COMPONENT (EXACT SCREENSHOT MATCH - LIGHT THEME)
   -------------------------------------------------------------------------- */
.msq-footer {
  position: relative;
  background-color: #FFFFFF;
  color: #333333;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgba(7, 103, 127, 0.1);
}

.msq-footer .footer-container {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding-inline: 20px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 2rem !important;
  position: relative !important;
  z-index: 10 !important;
}

@media (min-width: 768px) {
  .msq-footer .footer-container {
    padding-inline: 40px !important;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE FOOTER GRID (ALL 4 COLUMNS INLINE ON DESKTOP & LAPTOP SCREENS)
   -------------------------------------------------------------------------- */
.msq-footer .footer-container {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 36px 24px !important;
  align-items: start !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Tablet / Medium Screens (640px to 1023px): Clean 2x2 Grid */
@media (min-width: 640px) and (max-width: 1023px) {
  .msq-footer .footer-container {
    grid-template-columns: 1.1fr 1.3fr !important;
    gap: 40px 32px !important;
  }
}

/* Desktop & Laptop Screens (>= 1024px): ALL 4 COLUMNS INLINE ON 1 SINGLE ROW */
@media (min-width: 1024px) {
  .msq-footer .footer-container {
    grid-template-columns: 1.3fr 0.85fr 1.15fr 1.45fr !important;
    gap: clamp(16px, 2.4vw, 40px) !important;
    padding-inline: clamp(20px, 3.5vw, 64px) !important;
  }
}

/* Wide Screens (>= 1280px) */
@media (min-width: 1280px) {
  .msq-footer .footer-container {
    grid-template-columns: 300px 140px 220px 1fr !important;
    gap: 36px !important;
  }
}

/* 4K and Ultra-Wide Screens (>= 1440px) */
@media (min-width: 1440px) {
  .msq-footer .footer-container {
    grid-template-columns: 320px 140px 220px 360px !important;
    justify-content: space-between !important;
    gap: 40px !important;
    padding-inline: 80px !important;
  }
}

.footer-brand-col {
  width: 100% !important;
  max-width: 320px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.footer-nav-col {
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}

.footer-touch-col {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: none !important;
}

.footer-tagline {
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 320px;
  font-weight: 500;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #777777;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-circle-btn:hover {
  background: #07677F;
  border-color: #07677F;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 103, 127, 0.25);
}

.footer-col-title {
  color: #07677F;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.footer-col-title::after {
  display: none !important;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-link {
  color: #666666;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-nav-link:hover {
  color: #07677F;
  transform: translateX(4px);
}

.footer-touch-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.touch-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.touch-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #07677F;
}

.touch-link {
  color: #666666;
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.25s ease;
  word-break: break-word;
}

.touch-link:hover {
  color: #07677F;
}

.footer-cad-left {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 280px;
  width: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.footer-cad-right {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 280px;
  width: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.footer-bottom-bar {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #F1F5F9;
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-bottom-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #666666;
  font-size: 0.825rem;
  font-weight: 500;
}

.footer-bottom-container a {
  color: #07677F;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom-container a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   PROJECT LISTING ITEMS (EXACT REFERENCE SCREENSHOT MATCH)
   -------------------------------------------------------------------------- */
.projects-list-section {
  padding-top: 40px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
}

.projects-list-wrapper {
  display: flex;
  flex-direction: column;
}

.project-list-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 24px 0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.project-list-item:hover {
  background-color: rgba(7, 103, 127, 0.02) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.project-item-left {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.project-number {
  font-family: monospace, var(--font-mono) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #07677F !important;
  opacity: 0.85 !important;
}

.project-title {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem) !important;
  font-weight: 700 !important;
  color: #111111 !important;
  text-transform: none !important; /* Normal Title Case */
  letter-spacing: -0.015em !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  transition: color 0.25s ease !important;
}


.project-list-item:hover .project-title {
  color: #07677F !important;
}

.project-item-right {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

@media (min-width: 768px) {
  .project-meta-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  .project-list-item {
    display: grid !important;
    grid-template-columns: 32px 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 14px !important;
    row-gap: 4px !important;
    padding: 18px 0 !important;
  }

  .project-item-left,
  .project-item-right {
    display: contents !important;
  }

  .project-number {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    padding-top: 2px !important;
  }

  .project-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: left !important;
  }

  .project-meta-box {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin-top: 2px !important;
  }

  .project-category-text,
  .project-location-text {
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
  }

  .project-arrow-btn {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
  }
}

.project-category-text {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #07677F !important;
  text-transform: none !important;
  margin-bottom: 2px !important;
}

.project-location-text {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #888888 !important;
  text-transform: none !important;
}

.project-arrow-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #07677F !important;
  transition: all 0.3s ease !important;
}

.project-list-item:hover .project-arrow-btn {
  background: #07677F !important;
  border-color: #07677F !important;
  color: #FFFFFF !important;
  transform: scale(1.05) !important;
}

.project-arrow-icon {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  transition: transform 0.3s ease !important;
}

.project-list-item:hover .project-arrow-icon {
  transform: translate(2px, -2px) !important;
}


/* ==========================================================================
   OFFICIAL LENIS LINEAR SMOOTH SCROLL INTEGRATION CSS
   ========================================================================== */
html.lenis,
html.lenis body {
  height: auto !important;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


/* ==========================================================================
   MAJOR CLIENTS & PARTNER LOGO MARQUEE SLIDER RESPONSIVE STYLES
   ========================================================================== */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track-left,
.marquee-track-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.marquee-track-left {
  animation: marqueeLeft 32s linear infinite;
}

.marquee-track-right {
  animation: marqueeRight 32s linear infinite;
}

.marquee-container:hover .marquee-track-left,
.marquee-container:hover .marquee-track-right {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Logo Card Item Responsiveness - Large Cards with Grayscale to Color Hover Reveal */
.logo-card-item {
  width: 250px;
  height: 110px;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(7, 103, 127, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-card-item img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
  filter: grayscale(100%) opacity(0.85) !important;
  transition: all 0.3s ease;
}

.logo-card-item:hover {
  border-color: #07677F;
  box-shadow: 0 12px 30px rgba(7, 103, 127, 0.18);
  transform: translateY(-3px);
}

.logo-card-item:hover img {
  filter: grayscale(0%) opacity(1) !important;
}

/* Tablet Scale (640px to 1023px) */
@media (max-width: 1023px) {
  .logo-card-item {
    width: 190px;
    height: 88px;
    padding: 8px 14px;
    border-radius: 12px;
  }
  .logo-card-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
}


/* Mobile Scale (<640px) - Prominent & Clearly Visible Client Logos */
@media (max-width: 639px) {
  .marquee-container {
    gap: 0.75rem;
  }

  .marquee-track-left,
  .marquee-track-right {
    gap: 0.65rem;
  }

  .logo-card-item {
    width: 155px;
    height: 76px;
    padding: 6px 10px;
    border-radius: 10px;
  }

  .logo-card-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    filter: grayscale(100%) opacity(0.90) !important;
  }

  .logo-card-item:hover img {
    filter: grayscale(0%) opacity(1) !important;
  }
}

/* ==========================================================================
   STATS COUNTERS CONTAINER FULL-WIDTH SYSTEM
   ========================================================================== */
.stats-container-grid {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

@media (max-width: 1023px) {
  .stats-container-grid {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
  }
}

/* ==========================================================================
   MOBILE STATS COUNTERS 3-ROW LAYOUT (<640px)
   Row 1: 38+ and 6+ (inline pair)
   Row 2: 175+ (single center featured)
   Row 3: 50+ and 10+ (inline pair)
   ========================================================================== */
@media (max-width: 639px) {
  .stats-container-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 0.75rem !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  .stat-card-38 {
    order: 1 !important;
    grid-column: 1 !important;
  }

  .stat-card-6 {
    order: 2 !important;
    grid-column: 2 !important;
  }

  .stat-card-175 {
    order: 3 !important;
    grid-column: span 2 !important;
    margin: 0.5rem 0 !important;
  }

  .stat-card-50 {
    order: 4 !important;
    grid-column: 1 !important;
  }

  .stat-card-10 {
    order: 5 !important;
    grid-column: 2 !important;
  }
}


/* ==========================================================================
   COMPACT MOBILE DRAWER SIDEBAR STYLES (NO BLANK GAPS)
   ========================================================================== */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto !important;
  scrollbar-width: none !important; /* Firefox: hide scrollbar */
  -ms-overflow-style: none !important; /* IE/Edge: hide scrollbar */
}

.mobile-drawer::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari/Opera: hide scrollbar */
  width: 0 !important;
  height: 0 !important;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
  flex-shrink: 0;
}

.drawer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.drawer-close-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(7, 103, 127, 0.1) !important;
  border: 1px solid rgba(7, 103, 127, 0.2) !important;
  color: #07677F !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.drawer-close-btn:hover {
  background: #07677F !important;
  color: #FFFFFF !important;
  border-color: #07677F !important;
  transform: rotate(90deg) !important;
}

.drawer-close-btn:hover svg,
.drawer-close-btn:hover .drawer-close-icon {
  stroke: #FFFFFF !important;
}

/* Compact Top-Aligned Drawer Body & Scrollbar */
.drawer-body-scroll {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 1.25rem 1rem 2rem 1rem !important;
  gap: 1.75rem !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.drawer-body-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  gap: 0.25rem !important;
  flex-shrink: 0 !important;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  color: #111111;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(7, 103, 127, 0.08);
  color: #07677F;
  padding-left: 1.05rem;
}

.drawer-link-arrow {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.drawer-link:hover .drawer-link-arrow {
  transform: translateX(3px);
}

/* Compact Contact Section Directly Below Nav Links in Same Scroll Container */
.drawer-contact-section {
  padding: 1rem 1.15rem 1.25rem 1.15rem !important;
  border-top: 1px solid rgba(7, 103, 127, 0.12) !important;
  margin-top: 0 !important;
  background: #FAFBFD !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
}


/* ==========================================================================
   TECHNICAL FOOTER BACKGROUND ARTWORK RESPONSIVENESS
   ========================================================================== */
.footer-art-img {
  height: 300px;
  width: auto;
  opacity: 0.25;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .footer-art-img {
    height: 180px !important;
    opacity: 0.16 !important;
  }
}

@media (max-width: 767px) {
  .footer-art-img {
    height: 160px !important;
    max-width: 45vw !important;
    object-fit: contain !important;
    opacity: 0.22 !important;
  }
  .footer-brand-col,
  .footer-touch-col {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Primary Color Hover Effect for Footer Links & Contact Info */
.msq-footer a {
  color: #555555;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

.msq-footer a:hover,
.footer-nav-link:hover,
.footer-touch-col a:hover {
  color: #07677F !important;
}

.footer-social-links a.social-circle-btn:hover {
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto !important;
  scrollbar-width: none !important; /* Firefox: hide scrollbar */
  -ms-overflow-style: none !important; /* IE/Edge: hide scrollbar */
}

.mobile-drawer::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari/Opera: hide scrollbar */
  width: 0 !important;
  height: 0 !important;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(7, 103, 127, 0.1);
  flex-shrink: 0;
}

.drawer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.drawer-close-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(7, 103, 127, 0.1) !important;
  border: 1px solid rgba(7, 103, 127, 0.2) !important;
  color: #07677F !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.drawer-close-btn:hover {
  background: #07677F !important;
  color: #FFFFFF !important;
  border-color: #07677F !important;
  transform: rotate(90deg) !important;
}

.drawer-close-btn:hover svg,
.drawer-close-btn:hover .drawer-close-icon {
  stroke: #FFFFFF !important;
}

/* Compact Top-Aligned Drawer Body & Scrollbar */
.drawer-body-scroll {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 1.25rem 1rem 2rem 1rem !important;
  gap: 1.75rem !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.drawer-body-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  gap: 0.25rem !important;
  flex-shrink: 0 !important;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  color: #111111;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(7, 103, 127, 0.08);
  color: #07677F;
  padding-left: 1.05rem;
}

.drawer-link-arrow {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.drawer-link:hover .drawer-link-arrow {
  transform: translateX(3px);
}

/* Compact Contact Section Directly Below Nav Links in Same Scroll Container */
.drawer-contact-section {
  padding: 1rem 1.15rem 1.25rem 1.15rem !important;
  border-top: 1px solid rgba(7, 103, 127, 0.12) !important;
  margin-top: 0 !important;
  background: #FAFBFD !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
}


/* ==========================================================================
   TECHNICAL FOOTER BACKGROUND ARTWORK RESPONSIVENESS
   ========================================================================== */
.footer-art-img {
  height: 300px;
  width: auto;
  opacity: 0.25;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .footer-art-img {
    height: 180px !important;
    opacity: 0.16 !important;
  }
}

@media (max-width: 767px) {
  .footer-art-img {
    height: 160px !important;
    max-width: 45vw !important;
    object-fit: contain !important;
    opacity: 0.22 !important;
  }
  .footer-brand-col,
  .footer-touch-col {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Primary Color Hover Effect for Footer Links & Contact Info */
.msq-footer a {
  color: #555555;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

.msq-footer a:hover,
.footer-nav-link:hover,
.footer-touch-col a:hover {
  color: #07677F !important;
}

.footer-social-links a.social-circle-btn:hover {
  border-color: #07677F !important;
  background-color: #07677F !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   4K & ULTRA-WIDE / TV DISPLAY CONTAINER OPTIMIZATION (min-width: 2000px)
   Constrains all full-width sections to a balanced, premium container
   preventing oversized stretches on 4K TVs, monitors & ultra-wide displays.
   Preserves full-bleed backgrounds while capping content gracefully.
   ========================================================================== */
@media (min-width: 2000px) {
  :root {
    --container-max: 1600px;
    --spacing-container-max: 1600px;
  }

  /* 1. Expand standard container width gracefully for 4K without edge-stretching */
  .container-main,
  .max-w-\[1400px\],
  .header-container,
  .footer-container,
  .process-header-container {
    max-width: 1600px !important;
  }

  /* 2. Top Header & Navigation Container */
  .msq-header .header-container {
    max-width: 1600px !important;
  }

  /* 3. Hero Section (#hero) on 4K / TV Screens */
  #hero {
    max-height: 980px;
    min-height: 800px;
  }
  #hero #hero-frame-canvas {
    max-width: 2000px;
    left: 50% !important;
    transform: translateX(-50%);
  }
  #hero #hero-text-overlay {
    max-width: 1600px !important;
  }

  /* 4. Horizontal Pinned Slider (#our-process) */
  #our-process > div.w-full {
    max-width: 1920px;
    margin-inline: auto;
  }
  #our-process .process-horizontal-track {
    max-width: 1920px;
  }

  /* 5. Industries Masterplan (#industries) */
  #industries > div.sticky {
    max-height: 1000px;
    top: 50% !important;
    transform: translateY(-50%);
  }

  /* 6. Major Clients Infinite Marquee (#major-clients) */
  #major-clients .marquee-container {
    max-width: 1920px;
    margin-inline: auto;
    overflow: hidden;
  }

  /* 7. Contact Blueprint Card (#contact) */
  #contact {
    min-height: auto !important;
    max-height: 1050px;
    padding-block: 70px !important;
  }

  /* 8. Founders & Leadership Composite (#about-team in about.html) */
  #about-team .team-composite-element {
    max-width: 1600px;
    margin-inline: auto;
    border-radius: 20px;
  }

  /* 9. Contact Page Blueprint Form Wrapper (#project-form-section) */
  .blueprint-form-wrapper {
    max-width: 1800px;
    margin-inline: auto;
    border-radius: 24px;
  }

  /* 10. Gallery Scroll Track & Case Studies */
  .gallery-scroll-section .container-main,
  .next-projects-section .container-main,
  .projects-map-section .container-main,
  .projects-list-section .container-main,
  .services-vertical-section .container-main {
    max-width: 1600px !important;
  }

  /* 11. Footer Container */
  .msq-footer .footer-container {
    max-width: 1600px !important;
  }
}

/* --------------------------------------------------------------------------
   INTEGRATED ENGINEERING SERVICES SECTION RESPONSIVE STYLES
   -------------------------------------------------------------------------- */

/* Large Desktop Viewports (>= 1340px) */
@media (min-width: 1340px) {
  #services .service-card-title,
  #services .grid h3 {
    font-family: var(--font-sans) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
  }
}

/* Ultra-Wide / 4K Viewports (> 1799px) */
@media (min-width: 1800px) {
  #services .service-card-title,
  #services .grid h3 {
    font-size: 26px !important;
  }
}

/* Small PC & Laptop Viewports (1024px to 1339.98px) */
@media (min-width: 1024px) and (max-width: 1339.98px) {
  #services .service-card-title,
  #services .grid h3 {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
  }
  #services .service-card-item,
  #services .grid a {
    padding: 14px 16px !important;
    gap: 12px !important;
  }
  #services .grid a .font-mono {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }
  #services .grid {
    gap: 16px !important;
  }
}

/* Tablet Viewports (640px to 1023.98px) */
@media (min-width: 640px) and (max-width: 1023.98px) {
  #services .service-card-title,
  #services .grid h3 {
    font-family: var(--font-sans) !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
  }
  #services .service-card-item,
  #services .grid a {
    padding: 13px 15px !important;
    gap: 12px !important;
  }
  #services .grid a .font-mono {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }
  #services .grid {
    gap: 14px !important;
  }
}

/* Mobile Viewports (< 640px) */
@media (max-width: 639.98px) {
  #services .service-card-title,
  #services .grid h3 {
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
  }
  #services .service-card-item,
  #services .grid a {
    padding: 12px 14px !important;
    gap: 12px !important;
  }
  #services .grid a .font-mono {
    font-size: 9.5px !important;
    margin-bottom: 2px !important;
  }
  #services .grid {
    gap: 12px !important;
  }
}
