/* 
 * GrowthDigiTech Premium Style System
 * Custom tokens, editorial grids, and restrained premium motion.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-white: #ffffff;
  --bg-ice: #f7fcff;
  --bg-navy: #0a1128;
  --bg-navy-light: #101c3f;

  --text-navy: #0a1128;
  --text-charcoal: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --text-white-muted: #94a3b8;

  --cyan: #06b6d4;
  --cyan-bright: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.15);
  --cyan-glow-strong: rgba(0, 240, 255, 0.4);

  --blue-primary: #0284c7;
  --blue-secondary: #0369a1;
  --blue-light: #e0f2fe;
  --border-light: #e2f1fc;
  --border-navy: #1e293b;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --radius-btn: 12px;
  --radius-card: 24px;
  --radius-inner: 16px;

  /* Transitions */
  --t-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-std: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 600ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-hero: 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Accessibility and Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color: var(--text-charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text-charcoal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-navy);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--t-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Accessibility Outlines --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 4px;
}

/* --- Layout Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* --- Button Component --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-btn);
  transition: var(--t-std);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
  color: var(--text-white);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-secondary), var(--blue-primary));
  opacity: 0;
  z-index: -1;
  transition: var(--t-std);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3), 0 0 12px var(--cyan-glow-strong);
}

.btn-primary svg {
  transition: transform var(--t-fast);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-navy);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-ice);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--bg-navy-light);
  color: var(--text-white);
  border: 1px solid var(--border-navy);
}

.btn-navy:hover {
  background: var(--bg-navy);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-text {
  padding: 8px 0;
  font-weight: 600;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text:hover {
  color: var(--cyan);
}

.btn-text svg {
  transition: transform var(--t-fast);
}

.btn-text:hover svg {
  transform: translateX(3px);
}

/* --- Global Header & Nav --- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--t-std);
  background: transparent;
}

.header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  transition: var(--t-std);
}

.header-wrapper.scrolled .header-container {
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-navy);
}

.logo span {
  color: var(--cyan);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-navy);
  padding: 8px 0;
  position: relative;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue-primary);
  transition: var(--t-std);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
}

/* Services Dropdown Nav Indicator */
.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link-dropdown svg {
  transition: transform var(--t-std);
}

.nav-link-dropdown:hover svg,
.nav-link-dropdown.open svg {
  transform: rotate(180deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-micro {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--blue-primary);
  transition: var(--t-fast);
}

.contact-micro:hover {
  background-color: var(--bg-ice);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --- Services Mega Dropdown --- */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 40px rgba(10, 17, 40, 0.05);
  z-index: 99;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-std), transform var(--t-std);
  pointer-events: none;
}

.mega-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 3fr;
  gap: 40px;
  padding: 48px 0;
}

.mega-col-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--t-fast);
}

.mega-item:hover {
  background-color: var(--bg-ice);
}

.mega-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-item-title svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--t-fast);
  color: var(--cyan);
}

.mega-item:hover .mega-item-title svg {
  opacity: 1;
  transform: translateX(0);
}

.mega-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mega-featured {
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-feat-img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.mega-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-feat-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--bg-navy);
  color: var(--cyan-bright);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.mega-feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 8px;
}

.mega-feat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* --- Mobile Header & Drawer --- */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 101;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-navy);
  transition: var(--t-std);
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Drawer Backdrop Overlay */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 40, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-std);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-white);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right var(--t-std);
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  color: var(--text-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t-fast);
}

.mobile-drawer-close:hover {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-navy);
}

.mobile-nav-link.active {
  color: var(--blue-primary);
}

.mobile-accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-std);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 16px;
  margin-top: 12px;
}

.mobile-accordion-content.open {
  max-height: 500px;
}

.mobile-sub-link {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Hero Section & Custom Cockpit Visual --- */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 70% 30%, var(--bg-ice) 0%, var(--bg-white) 70%);
  padding-top: 160px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(2, 132, 199, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-copy p {
  font-size: 1.15rem;
  color: var(--text-charcoal);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom Cockpit Component */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cockpit-wrapper {
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 10;
}

.browser-mock {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(10, 17, 40, 0.06);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.5;
  display: flex;
  flex-direction: column;
  transition: var(--t-slow);
}

.browser-head {
  height: 32px;
  background: var(--bg-ice);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dot:nth-child(1) {
  background: #ef4444;
}

.browser-dot:nth-child(2) {
  background: #eab308;
}

.browser-dot:nth-child(3) {
  background: #22c55e;
}

.browser-body {
  flex: 1;
  padding: 20px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-dashboard {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  height: 100%;
}

.mock-dash-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-dash-card {
  border: 1px solid var(--border-light);
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-ice);
}

.mock-dash-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mock-dash-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-navy);
}

.mock-dash-chart {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-ice) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  height: 140px;
}

/* SVG Chart Mock */
.mock-chart-svg {
  width: 100%;
  height: 80px;
  overflow: visible;
}

.mock-chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawChart 2.5s ease forwards 0.5s;
}

.mock-chart-area {
  fill: url(#chart-gradient);
  opacity: 0.15;
}

/* Floating Device Canvas overlays */
.device-phone {
  position: absolute;
  width: 130px;
  height: 240px;
  background: var(--bg-white);
  border: 4px solid var(--text-navy);
  border-radius: 24px;
  bottom: -40px;
  right: -20px;
  z-index: 20;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-header {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-ice);
  margin-bottom: 8px;
}

.phone-card {
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-line {
  height: 6px;
  border-radius: 3px;
  background: var(--blue-light);
  width: 60%;
}

.phone-line-long {
  width: 90%;
  background: #cbd5e1;
}

.device-chip {
  position: absolute;
  background: var(--bg-navy);
  color: var(--text-white);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-navy);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 0.8rem;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-1 {
  top: -20px;
  left: -20px;
}

.chip-2 {
  bottom: 20px;
  left: -30px;
}

.chip-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
  animation: pulseCyan 1.5s infinite;
}

/* Animations for cockpit */
@keyframes drawChart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseCyan {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 12px var(--cyan-bright);
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

/* --- Trust Signal Rail --- */
.trust-rail {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
  padding: 24px 0;
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-navy);
}

.trust-item svg {
  color: var(--cyan);
}

.trust-rating {
  font-weight: 700;
  color: #f59e0b;
}

/* --- Business Bottleneck Diagnostic --- */
.diagnostic-section {
  background-color: var(--bg-ice);
}

.diagnostic-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.diag-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--t-std);
  position: relative;
  overflow: hidden;
}

.diag-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--t-fast);
}

.diag-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 17, 40, 0.04);
  border-color: var(--blue-light);
}

.diag-panel:hover::before {
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan-bright));
}

.diag-icon {
  margin-bottom: 28px;
  color: var(--blue-primary);
  width: 48px;
  height: 48px;
}

.diag-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.diag-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.diag-question {
  background: var(--bg-ice);
  border-radius: var(--radius-inner);
  padding: 16px 20px;
  margin-bottom: 32px;
  border-left: 3px solid var(--cyan);
}

.diag-q-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.diag-q-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-navy);
}

/* --- Integrated Capability Map --- */
.capability-section {
  position: relative;
  overflow: hidden;
}

.capability-map {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 60px 40px;
  position: relative;
}

/* Growth Path SVG connector */
.growth-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.growth-path-line {
  fill: none;
  stroke: url(#growth-path-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

.cap-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.cap-node {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 32px 24px;
  transition: var(--t-std);
  position: relative;
}

.cap-node:hover {
  border-color: var(--cyan);
  box-shadow: 0 10px 30px var(--cyan-glow);
  transform: translateY(-4px);
}

.cap-node-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
}

.cap-node-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cap-node-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Selected Work / Proof Stage --- */
.portfolio-grid-home {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
}

.portfolio-card-large {
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 520px;
  position: relative;
  overflow: hidden;
  transition: var(--t-std);
}

.portfolio-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.portfolio-info {
  max-width: 50%;
  z-index: 10;
}

.portfolio-meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.portfolio-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-charcoal);
  margin-bottom: 32px;
}

.portfolio-metrics {
  display: flex;
  gap: 24px;
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-primary);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.portfolio-visual-container {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 85%;
  border-top-left-radius: var(--radius-inner);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
  box-shadow: -10px -10px 40px rgba(10, 17, 40, 0.03);
  overflow: hidden;
}

.portfolio-visual-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.portfolio-card-large:hover .portfolio-visual-container img {
  transform: scale(1.03);
}

.portfolio-stack-small {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.portfolio-card-small {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 244px;
  transition: var(--t-std);
}

.portfolio-card-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  border-color: var(--blue-light);
}

/* --- Why GrowthDigiTech Section (Dark Navy) --- */
.why-section {
  background-color: var(--bg-navy);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.why-section .section-title {
  color: var(--text-white);
}

.why-section .section-desc {
  color: var(--text-white-muted);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.why-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 24px;
  padding-top: 12px;
  transition: var(--t-std);
}

.why-card:hover {
  border-left-color: var(--cyan);
}

.why-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan-bright);
  margin-bottom: 16px;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-white-muted);
}

/* --- Service Pathways (Selector Panel) --- */
.pathway-selector {
  max-width: 800px;
  margin: 0 auto;
}

.pathway-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

.pathway-tab {
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-white);
  transition: var(--t-fast);
}

.pathway-tab:hover {
  background: var(--bg-ice);
  border-color: var(--cyan);
}

.pathway-tab.active {
  background: var(--bg-navy);
  color: var(--text-white);
  border-color: var(--bg-navy);
}

.pathway-content {
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 48px;
  min-height: 280px;
  transition: opacity 200ms ease;
}

.pathway-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.pathway-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pathway-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pathway-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Modern Service Workstream Cards --- */
.service-division-box {
  border-bottom: 1px solid var(--border-light);
}

.service-list-row {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 32px);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(10, 17, 40, 0.03);
  transition: transform var(--t-std), box-shadow var(--t-std), border-color var(--t-std);
}

.service-list-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 17, 40, 0.08);
  border-color: var(--blue-primary);
}

.service-list-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-list-name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.service-list-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

@media (min-width: 768px) {
  .service-list-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .service-list-name {
    width: 30%;
    flex-shrink: 0;
  }

  .service-list-details {
    width: 65%;
    grid-template-columns: 2fr 1fr;
    border-top: none;
    padding-top: 0;
  }
}

.pathway-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.pathway-feature-item svg {
  color: var(--cyan);
  margin-top: 4px;
}

/* --- Google Review Stories --- */
.reviews-section {
  background: var(--bg-white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 36px;
  background: var(--bg-ice);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-charcoal);
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 0.85rem;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-navy);
}

.review-author-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Delivery Journey --- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.journey-step {
  display: flex;
  flex-direction: column;
  position: relative;
}

.journey-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-ice);
  border: 2px solid var(--border-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
  transition: var(--t-std);
}

.journey-step:hover .journey-step-num {
  border-color: var(--cyan);
  background: var(--bg-navy);
  color: var(--text-white);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.journey-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.journey-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.journey-step-deliverable {
  margin-top: 16px;
  font-size: 0.8rem;
  background: var(--bg-ice);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 2px solid var(--cyan);
  font-weight: 600;
  color: var(--text-navy);
}

/* --- Hosur to India Presence --- */
.presence-section {
  background: var(--bg-ice);
}

.presence-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}

.presence-map-container {
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
}

/* SVG Abstract Map */
.presence-map-svg {
  width: 90%;
  height: 90%;
}

.map-outline {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.map-node-hosur {
  fill: var(--cyan-bright);
  stroke: var(--blue-primary);
  stroke-width: 4;
  animation: pulseHosur 2s infinite;
}

.map-nodes-india {
  fill: var(--blue-primary);
  opacity: 0.6;
}

@keyframes pulseHosur {
  0% {
    r: 6;
    opacity: 1;
  }

  50% {
    r: 12;
    opacity: 0.4;
  }

  100% {
    r: 6;
    opacity: 1;
  }
}

/* --- Insight Preview --- */
.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.insight-card-large {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;
  transition: var(--t-std);
}

.insight-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.insight-img-container {
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.insight-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.insight-card-large:hover .insight-img-container img,
.insight-card-compact:hover .insight-img-container img {
  transform: scale(1.03);
}

.insight-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.insight-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.insight-card-compact {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
  transition: var(--t-std);
}

.insight-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.insight-compact-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-compact-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* --- Final Conversion Canvas --- */
.cta-canvas-section {
  background: var(--bg-white);
  position: relative;
}

.cta-canvas {
  background: var(--bg-navy);
  color: var(--text-white);
  border-radius: var(--radius-card);
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.cta-canvas-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 60px;
  position: relative;
  z-index: 10;
}

.cta-canvas-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-canvas-title {
  color: var(--text-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.cta-canvas-desc {
  color: var(--text-white-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 600;
}

.cta-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-navy-light);
  border: 1px solid var(--border-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
}

.cta-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-inner);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white-muted);
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-navy);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-white);
  transition: var(--t-fast);
}

.form-input:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Validation styling */
.form-input.invalid {
  border-color: #ef4444;
}

.form-error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.form-input.invalid+.form-error-msg {
  display: block;
}

.form-promise {
  font-size: 0.75rem;
  color: var(--text-white-muted);
  text-align: center;
  margin-top: 16px;
}

/* --- Enterprise Footer --- */
.footer {
  background: var(--bg-ice);
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 3fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-brand h4 span {
  color: var(--cyan);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-navy);
  transition: var(--t-fast);
}

.footer-social-icon:hover {
  background-color: var(--bg-navy);
  color: var(--text-white);
  border-color: var(--bg-navy);
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-navy);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--blue-primary);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item svg {
  color: var(--blue-primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

/* --- Mobile Sticky Conversion Bar --- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  display: none;
  grid-template-columns: 1fr 1fr 2fr;
  z-index: 90;
  padding: 10px 16px;
  gap: 10px;
}

.mobile-sticky-action {
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
}

.mobile-sticky-call {
  background: var(--bg-ice);
  color: var(--blue-primary);
}

.mobile-sticky-whatsapp {
  background: #25d366;
  color: var(--text-white);
  border-color: #25d366;
}

.mobile-sticky-quote {
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
  color: var(--text-white);
  border: none;
}

/* --- Free Quote Guided Step Page Layout --- */
.quote-page-container {
  display: grid;
  grid-template-columns: 3.5fr 6.5fr;
  min-height: 100vh;
}

.quote-sidebar {
  background: var(--bg-navy);
  color: var(--text-white);
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.quote-sidebar::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}

.quote-sb-header a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-white);
}

.quote-sb-header a span {
  color: var(--cyan);
}

.quote-sb-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.quote-sb-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.4;
  transition: var(--t-std);
}

.quote-sb-step-item.active {
  opacity: 1;
}

.quote-sb-step-item.completed {
  opacity: 0.7;
}

.quote-sb-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--text-white-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: transparent;
  transition: var(--t-std);
}

.quote-sb-step-item.active .quote-sb-step-num {
  border-color: var(--cyan-bright);
  background: var(--cyan-bright);
  color: var(--bg-navy);
}

.quote-sb-step-item.completed .quote-sb-step-num {
  border-color: var(--blue-primary);
  background: var(--blue-primary);
  color: var(--text-white);
}

.quote-sb-step-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-sb-footer {
  font-size: 0.85rem;
  color: var(--text-white-muted);
}

/* --- Modern Quote Form Aesthetics --- */
.modern-quote-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 20px 60px rgba(10, 17, 40, 0.06);
  position: relative;
  overflow: hidden;
}

.modern-quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan));
}

.modern-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .modern-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.modern-input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modern-input-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-input-icon {
  position: absolute;
  left: 16px;
  color: var(--blue-primary);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast);
}

.modern-input,
.modern-select,
.modern-textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-navy);
  background: var(--bg-ice);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.modern-textarea {
  padding: 14px 16px 14px 48px;
  resize: vertical;
}

.modern-select {
  padding-right: 40px;
  cursor: pointer;
}

.modern-select-arrow {
  position: absolute;
  right: 16px;
  pointer-events: none;
  color: var(--text-muted);
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
  border-color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.modern-input-wrapper:focus-within .modern-input-icon {
  color: var(--cyan);
}

.modern-input::placeholder,
.modern-textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* --- Modern Custom Select Component --- */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-navy);
  background: var(--bg-ice);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-sizing: border-box;
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(10, 17, 40, 0.12);
  padding: 8px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.custom-select-wrapper.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-fast), color var(--t-fast);
}

.custom-select-option:hover {
  background: var(--bg-ice);
  color: var(--blue-primary);
}

.custom-select-option.selected {
  background: var(--blue-light);
  color: var(--blue-primary);
  font-weight: 700;
}

/* --- Responsive Two-Column Quote Page Layout --- */
.quote-two-column-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.quote-form-column {
  order: 1;
}

.quote-process-column {
  order: 2;
}

@media (min-width: 1024px) {
  .quote-two-column-layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 48px;
    align-items: start;
  }

  .quote-process-column {
    order: 1;
    position: sticky;
    top: 104px;
  }

  .quote-form-column {
    order: 2;
  }
}

/* --- Multi-Select Services Component --- */
.service-multiselect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .service-multiselect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-pill-opt {
  background: var(--bg-ice);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
}

.service-pill-opt:hover {
  background: #ffffff;
  border-color: var(--blue-primary);
}

.service-pill-opt.selected {
  background: var(--blue-light);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.service-pill-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.service-pill-opt.selected .service-pill-checkbox {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
}

.service-pill-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-navy);
}

.quote-canvas {
  background: var(--bg-white);
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-form-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.quote-step-panel {
  display: none;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity var(--t-std), transform var(--t-std);
}

.quote-step-panel.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.quote-step-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.quote-step-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.quote-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .quote-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Blog & Contact Responsive Utilities */
.blog-grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .blog-grid-split {
    grid-template-columns: 2fr 1fr;
    gap: 48px;
  }
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: clamp(20px, 4vw, 40px);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(10, 17, 40, 0.04);
}

.contact-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-routes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.route-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-std), box-shadow var(--t-std), border-color var(--t-std);
  height: 100%;
  box-sizing: border-box;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 17, 40, 0.08);
  border-color: var(--blue-primary);
}

.route-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-ice);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-navy);
}

.route-val {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 8px;
}

.quote-card-opt {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 24px;
  cursor: pointer;
  transition: var(--t-std);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.quote-card-opt:hover {
  background: var(--bg-ice);
  border-color: var(--blue-primary);
}

.quote-card-opt.selected {
  background: var(--bg-ice);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.quote-card-icon {
  width: 32px;
  height: 32px;
  color: var(--blue-primary);
}

.quote-card-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-navy);
}

.quote-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.quote-actions {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

.quote-success-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quote-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.quote-ref {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-primary);
  background: var(--bg-ice);
  padding: 10px 20px;
  border-radius: 8px;
  margin: 16px 0 32px;
  border: 1px solid var(--border-light);
}

/* --- Mobile-First Layout & Component System --- */

/* Mobile is Default (0px - 767px) */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Base 1-column layouts on mobile */
.grid-2,
.grid-3,
.grid-4,
.diagnostic-panels,
.cap-map-grid,
.portfolio-grid-home,
.why-grid,
.pathway-body,
.reviews-grid,
.journey-grid,
.presence-grid,
.insights-grid,
.cta-canvas-grid,
.footer-top,
.contact-routes,
.contact-split,
.quote-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.section-padding {
  padding-block: clamp(40px, 6vw, 96px);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw + 0.8rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 720px;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Fluid Heading Helpers */
h1 {
  font-size: clamp(1.75rem, 5.5vw + 0.5rem, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  line-height: 1.3;
}

/* Mobile Hero Layout & Visual Mockup Fixes */
.hero-section {
  padding-top: clamp(100px, 12vw, 160px);
  padding-bottom: clamp(40px, 8vw, 120px);
  overflow: hidden;
}

.hero-copy h1 {
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-copy p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
}

.hero-ctas .btn {
  width: 100%;
}

.hero-visual {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  position: relative;
}

.cockpit-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.browser-mock {
  aspect-ratio: auto;
  min-height: 240px;
  width: 100%;
}

.mock-dash-top {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .mock-dash-top {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.device-phone {
  width: 105px;
  height: 180px;
  bottom: -15px;
  right: -5px;
  border-width: 3px;
  border-radius: 16px;
}

.device-chip {
  padding: 6px 12px;
  font-size: 0.72rem;
  border-radius: 8px;
}

.chip-1 {
  top: -12px;
  left: 0px;
}

.chip-2 {
  bottom: -10px;
  left: 0px;
}

/* Portfolio Mobile Card Adjustments */
.portfolio-card-large {
  height: auto;
  min-height: 400px;
  padding: 28px 20px;
}

.portfolio-info {
  max-width: 100%;
}

.portfolio-visual-container {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: 24px;
  border-radius: var(--radius-inner);
}

.portfolio-title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

/* Pathway Tabs Mobile Scroll */
.pathway-tabs {
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.pathway-tab {
  white-space: nowrap;
  flex-shrink: 0;
}

.pathway-content {
  padding: 24px 16px;
}

/* CTA Canvas Mobile */
.cta-canvas {
  padding: 40px 20px;
  border-radius: 20px;
}

.cta-canvas-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.cta-form {
  padding: 24px 16px;
}

/* Mobile Header Button Cleanups */
@media (max-width: 576px) {
  .header-right .btn-primary {
    display: none;
  }
}

/* Scoping Wizard Mobile Layout */
.quote-page-container {
  display: flex;
  flex-direction: column;
}

.quote-sidebar {
  width: 100%;
  padding: 24px 16px;
  position: relative;
}

.quote-sb-steps {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.quote-canvas {
  padding: 40px 16px;
}

/* Mobile Default Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  transition: var(--t-std);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  box-sizing: border-box;
}

.btn-full-mobile {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
  color: var(--text-white);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-navy);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-ice);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

/* --- Header Logo Component --- */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
}

.header-logo-img {
  width: clamp(130px, 35vw, 190px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--t-std);
}

/* --- Floating Action Buttons Stack --- */
.floating-actions-stack {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 17, 40, 0.18);
  transition: transform var(--t-std), box-shadow var(--t-std), opacity var(--t-std);
  text-decoration: none;
  position: relative;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(10, 17, 40, 0.28);
}

.float-btn-call {
  background: linear-gradient(135deg, #0b4f6c, #0a1128);
}

.float-btn-wa {
  background: #25d366;
}

.float-btn-top {
  background: #ffffff;
  color: var(--text-navy);
  border: 1px solid var(--border-light);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
}

.float-btn-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* WhatsApp Chat Widget Box */
.whatsapp-chat-box {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(74px, 12vw, 88px);
  width: 340px;
  max-width: calc(100vw - 28px);
  height: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(10, 17, 40, 0.22);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--border-light);
}

.whatsapp-chat-box.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-chat-header {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-chat-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
}

.wa-chat-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.wa-chat-status {
  font-size: 0.7rem;
  color: #d1fae5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.wa-chat-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.85;
  line-height: 1;
  padding: 2px 6px;
}

.wa-chat-close:hover {
  opacity: 1;
}

.wa-chat-body {
  flex: 1;
  background: #efeae2;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-msg-bubble {
  background: #ffffff;
  border-radius: 0 12px 12px 12px;
  padding: 12px 14px;
  max-width: 88%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.4;
  position: relative;
}

.wa-msg-time {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

.wa-chat-footer {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-chat-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wa-chat-input:focus {
  border-color: #128c7e;
}

.wa-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #128c7e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.wa-chat-send:hover {
  background: #075e54;
  transform: scale(1.05);
}

/* --- Validation Error Messaging --- */
.field-error-msg {
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 6px;
  display: block;
  animation: fadeIn 0.2s ease-in;
}

.form-input.invalid,
textarea.invalid,
select.invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* --- Progressive Enhancements: Tablet (min-width: 768px) --- */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .diagnostic-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-ctas {
    flex-direction: row;
    width: auto;
  }

  .hero-ctas .btn {
    width: auto;
  }

  .btn-full-mobile {
    width: auto;
  }

  .why-grid,
  .reviews-grid,
  .journey-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-routes {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-split {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .quote-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Progressive Enhancements: Laptop & Desktop (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex !important;
  }

  .menu-btn {
    display: none !important;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .diagnostic-panels {
    grid-template-columns: repeat(3, 1fr);
  }

  .cap-map-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-grid-home {
    grid-template-columns: 7fr 5fr;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .journey-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .presence-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .insights-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .cta-canvas-grid {
    grid-template-columns: 6fr 5fr;
  }

  .footer-top {
    grid-template-columns: 3fr 2fr 2fr 3fr;
  }

  .quote-page-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
  }

  .quote-sb-steps {
    display: flex;
    flex-direction: column;
  }

  .mega-dropdown {
    display: block;
  }
}

/* --- Progressive Enhancements: Large Screens (min-width: 1440px) --- */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* --- Reduced Motion System --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* --- Mobile Horizontal Overflow Safeguards --- */
@media (max-width: 767px) {

  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .container {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  .project-card,
  .guide-box,
  .service-list-row {
    padding: clamp(16px, 4vw, 24px) !important;
  }

  .services-nav-rail {
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .portfolio-masonry {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .portfolio-card-large {
    min-height: auto !important;
    padding-bottom: 220px !important;
  }

  .portfolio-visual-container {
    width: 100% !important;
    height: 200px !important;
  }

  .blog-nav-sticky {
    padding: 12px 16px !important;
  }
}

/* --- Global Elementor-Style Hero Section Entrance Motion System --- */
body.hero-js-loaded .hero-section .hero-copy,
body.hero-js-loaded main > section:first-of-type .hero-copy {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1), transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.hero-js-loaded .hero-section .hero-visual,
body.hero-js-loaded main > section:first-of-type .hero-visual {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1), transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Desktop Directional Rules (min-width: 768px): Text from Left (-50px), Image from Right (+50px) */
@media (min-width: 768px) {
  body.hero-js-loaded .hero-section .hero-copy,
  body.hero-js-loaded main > section:first-of-type .hero-copy {
    transform: translateX(-50px);
  }

  body.hero-js-loaded .hero-section .hero-visual,
  body.hero-js-loaded main > section:first-of-type .hero-visual {
    transform: translateX(50px) scale(0.96);
  }
}

/* Mobile Screens (max-width: 767px): Subtle bottom-to-top fade to prevent horizontal overflow */
@media (max-width: 767px) {
  body.hero-js-loaded .hero-section .hero-copy,
  body.hero-js-loaded main > section:first-of-type .hero-copy,
  body.hero-js-loaded .hero-section .hero-visual,
  body.hero-js-loaded main > section:first-of-type .hero-visual {
    transform: translateY(24px);
  }
}

/* Revealed Active State: Transition to opacity 1, transform (0,0), remains permanently visible */
body.hero-js-loaded .hero-section .hero-copy.hero-revealed,
body.hero-js-loaded main > section:first-of-type .hero-copy.hero-revealed,
body.hero-js-loaded .hero-section .hero-visual.hero-revealed,
body.hero-js-loaded main > section:first-of-type .hero-visual.hero-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Fail-safe fallback if JS disabled: content remains 100% visible */
body:not(.hero-js-loaded) .hero-copy,
body:not(.hero-js-loaded) .hero-visual {
  opacity: 1 !important;
  transform: none !important;
}

/* Scroll Reveal for Remaining Page Content (Cards, Images, Forms) */
body.anim-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  will-change: opacity, transform;
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.anim-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1) !important;
}

/* Respect Accessibility Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  body.anim-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PURE CODE HERO MOTION VISUAL ANIMATION SYSTEM
   ========================================================================== */

/* Keyframe Motion Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 6px var(--cyan)); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px var(--cyan)); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -40; }
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes barGrow {
  0%, 100% { transform: scaleY(0.65); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes heartbeatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

@keyframes shimmerPass {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Component Container Styling */
.hero-motion-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: 0 20px 45px rgba(10, 17, 40, 0.07);
  position: relative;
  overflow: hidden;
  animation: floatGentle 5s ease-in-out infinite;
}

.hero-motion-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-motion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-ice);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: heartbeatPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-cyan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: heartbeatPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- 4-Card Responsive Reviews Carousel Slider System --- */
.reviews-slider-container {
  position: relative;
  width: 100%;
}

.reviews-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  color: var(--text-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(10, 17, 40, 0.05);
}

.review-nav-btn:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.reviews-slider-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 16px 0;
}

.reviews-slider-viewport::-webkit-scrollbar {
  display: none;
}

.reviews-slider-track {
  display: flex;
  gap: 20px;
}

.review-card-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(10, 17, 40, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 17, 40, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}

/* 4 Cards per row on Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .review-card-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}

/* 2 Cards per row on Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .review-card-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* 1 Card per row on Mobile (< 768px) */
@media (max-width: 767px) {
  .review-card-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Pagination Dots */
.reviews-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--cyan);
}