/* ==========================================================================
   MONTREALOGIC DESIGN SYSTEM
   High-assurance digital platforms & distributed systems architecture.
   - Deep slate pitch-black (#07090e)
   - Luminous glowing 3D ribbon curves / ambient glow
   - Floating pill navigation capsule
   - Frosted glass cards (backdrop-filter: blur(20px)) with 1px subtle borders
   - Generous negative space & refined typography
   - Blurred/glowing headline treatments
   ========================================================================== */

:root {
  --bg-pitch: #06070a;
  --bg-deep: #090b10;
  --bg-card: rgba(18, 22, 30, 0.45);
  --bg-card-hover: rgba(26, 32, 44, 0.65);
  --bg-pill: rgba(14, 18, 26, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-pill: rgba(255, 255, 255, 0.12);

  --text-main: #f1f4f8;
  --text-muted: #8b95a5;
  --text-dim: #545e6d;
  --text-white: #ffffff;

  /* Luminous Ice-Cyan / Soft Electric Blue-White Accent */
  --glow-accent: #70b8ff;
  --glow-cyan: #00f2fe;
  --glow-subtle: rgba(112, 184, 255, 0.15);
  --glow-beam: rgba(160, 210, 255, 0.85);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --container-width: 1180px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-pitch);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-pitch);
}

.mono {
  font-family: var(--font-mono);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ==========================================================================
   AMBIENT BACKGROUND: WebGL Canvas Layer
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   FLOATING PILL NAVIGATION (Capsule Style)
   ========================================================================== */
.nav-header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 3rem;
  max-width: 1360px;
  margin-inline: auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(12, 15, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.brand-badge:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.brand-logo-icon {
  width: 26px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-icon svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(112, 184, 255, 0.45));
  transition: var(--transition);
}

.brand-badge:hover .brand-logo-icon svg {
  filter: drop-shadow(0 0 12px rgba(112, 184, 255, 0.85));
}

/* Hero Brand Emblem */
.hero-brand-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.hero-brand-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-emblem::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(112, 184, 255, 0.3) 0%, rgba(112, 184, 255, 0.08) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.hero-brand-logo-img {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(112, 184, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: block;
}

.hero-brand-logo-img:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(112, 184, 255, 0.4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 55px rgba(112, 184, 255, 0.45);
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-pill);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-white);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.btn-contact-pill {
  display: flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  background: rgba(14, 18, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-contact-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-solid-dark {
  background: #0d0f15;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-solid-dark:hover {
  background: #151922;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost-dark:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 13rem;
  padding-bottom: 7rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-white);
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* Blurred Gradient Headline effect */
.headline-blur-group {
  display: inline-block;
  position: relative;
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-blurred {
  color: rgba(180, 205, 235, 0.4);
  filter: blur(1.5px);
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-inline: auto;
}

/* ==========================================================================
   SECTIONS & SECTION HEADERS
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding-block: 7rem;
}

.section-center-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 4.5rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  color: var(--glow-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   FROSTED GLASS CARDS (Specular Spotlight Aesthetic)
   ========================================================================== */
.glass-card-refined {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Dynamic specular cursor illumination glow */
.glass-card-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(112, 184, 255, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card-refined:hover::before {
  opacity: 1;
}

.glass-card-refined:hover {
  background: var(--bg-card-hover);
  border-color: rgba(112, 184, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 35px -8px rgba(0, 242, 254, 0.12);
}

.services-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title-lg {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   WHY CHOOSE US SECTION (Floating Pill Cards)
   ========================================================================== */
.why-choose-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

.pill-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  max-width: 360px;
  transition: var(--transition);
}

.pill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pill-card-icon {
  color: var(--glow-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pill-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.pill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   OUR PROCESS SECTION: STAGGERED SPATIAL ROADMAP
   ========================================================================== */
.process-spatial-container {
  position: relative;
  width: 100%;
  max-width: 1120px;
  min-height: 580px;
  margin-inline: auto;
  margin-top: 3.5rem;
}

/* Curved Bezier filament SVG connector */
.process-spatial-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.process-spatial-card {
  position: absolute;
  z-index: 2;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.process-spatial-card:hover {
  border-color: rgba(112, 184, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(0, 242, 254, 0.15);
}

/* Staggered Spatial Coordinates */
.process-card-step1 {
  top: 0;
  left: 2%;
  width: 320px;
}

.process-card-step2 {
  top: 36%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
}

.process-card-step2:hover {
  transform: translateX(-50%) translateY(-4px);
}

.process-card-step3 {
  bottom: 0;
  right: 2%;
  width: 340px;
}

/* Luminous pulsating diamond checkpoints */
.process-diamond {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--glow-cyan);
  z-index: 3;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 16px var(--glow-cyan), 0 0 32px rgba(0, 242, 254, 0.6);
  animation: diamondPulse 2.8s ease-in-out infinite alternate;
}

.process-diamond-1 {
  left: 36%;
  top: 24%;
}

.process-diamond-2 {
  left: 68%;
  top: 72%;
}

@keyframes diamondPulse {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.9);
    box-shadow: 0 0 10px var(--glow-cyan);
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    box-shadow: 0 0 24px var(--glow-cyan), 0 0 45px rgba(112, 184, 255, 0.8);
  }
}

@media (max-width: 900px) {
  .process-spatial-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .process-spatial-svg, .process-diamond {
    display: none;
  }
  .process-spatial-card {
    position: static;
    width: 100%;
    transform: none !important;
  }
}

.process-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.process-icon {
  color: var(--glow-accent);
}

.process-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
}

.process-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   PORTFOLIO & CASE STUDY CARD STYLES
   ========================================================================== */
.portfolio-grid-refined {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.portfolio-card-large {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.portfolio-card-large:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7);
}

.portfolio-card-preview {
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-project-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.portfolio-project-tagline {
  font-size: 1.05rem;
  color: var(--glow-accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.portfolio-project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-pill {
  font-size: 0.76rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.card-arrow-icon {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.portfolio-card-large:hover .card-arrow-icon {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}

/* Two-column sub-portfolio cards */
.portfolio-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-card-medium {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portfolio-card-medium:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.portfolio-preview-box {
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  height: 240px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   CASE STUDY DETAIL PAGE (Structured Technical Blueprint)
   ========================================================================== */
.case-study-hero {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.case-study-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.case-study-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 720px;
  margin-inline: auto;
}

.mockup-canvas-wrapper {
  background: radial-gradient(circle at 50% 50%, rgba(20, 26, 38, 0.6) 0%, #06070a 80%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  margin-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Systems Architecture Schematic */
.system-schematic-box {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #06080e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.schematic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.schematic-badge {
  font-size: 0.72rem;
  color: var(--glow-accent);
  letter-spacing: 0.06em;
}

.schematic-status {
  font-size: 0.68rem;
  color: #7ee787;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.schematic-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 8px #7ee787;
}

.schematic-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block: 1.75rem;
}

.schematic-node {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--transition);
}

.schematic-node.active {
  background: rgba(112, 184, 255, 0.04);
  border-color: rgba(112, 184, 255, 0.3);
  box-shadow: 0 0 20px rgba(112, 184, 255, 0.08);
}

.schematic-node-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.schematic-node-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.schematic-arrow {
  color: var(--glow-accent);
  font-size: 1.1rem;
  opacity: 0.6;
}

.schematic-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Architecture Blueprint Canvas for Detail Pages */
.architecture-blueprint-canvas {
  width: 100%;
  max-width: 880px;
  background: #06080e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8);
}

.blueprint-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.blueprint-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.blueprint-layer-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.blueprint-layer-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--glow-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.blueprint-layer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.blueprint-layer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.blueprint-summary-strip {
  background: #090c14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.case-study-section {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 5.5rem;
}

.case-study-label {
  font-size: 0.78rem;
  color: var(--glow-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.case-study-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.case-study-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.capabilities-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.capabilities-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 1.25rem;
}

.capabilities-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--glow-accent);
  font-size: 1.3rem;
}

.features-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-quad-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

.feature-quad-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.65rem;
}

.feature-quad-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */
.about-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.about-block h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.about-block p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.tech-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-block: 2rem;
  opacity: 0.7;
}

.tech-logo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   CONTACT PAGE & BOTTOM CTA
   ========================================================================== */
.contact-container {
  max-width: 680px;
  margin-inline: auto;
}

.contact-card-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-field-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input-refined {
  background: #090b10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input-refined:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.cta-banner-center {
  text-align: center;
  padding-block: 6rem;
}

.cta-banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-banner-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-copy {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MOCKUP INTERFACE COMPONENTS (Restaurant Delivery / FeastFlow)
   ========================================================================== */
.mockup-delivery-app {
  width: 100%;
  max-width: 720px;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.mockup-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #0d1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.m-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mockup-card-sub {
  background: #11151f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .services-tri-grid,
  .process-flow {
    grid-template-columns: 1fr;
  }
  .portfolio-card-large {
    grid-template-columns: 1fr;
  }
  .portfolio-duo-grid {
    grid-template-columns: 1fr;
  }
  .features-quad-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Navigation Toggle & Drawer */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(14, 18, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  z-index: 102;
}

.nav-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(12, 16, 24, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-pill);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  z-index: 99;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.nav-mobile-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-mobile-item:hover,
.nav-mobile-item.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta {
  margin-top: 0.75rem;
  text-align: center;
  justify-content: center;
  width: 100%;
  padding-block: 0.85rem;
}

@media (max-width: 768px) {
  .nav-header {
    padding-inline: 1.5rem;
  }
  .nav-capsule {
    display: none;
  }
  .btn-contact-pill {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .nav-mobile-drawer {
    display: block;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .features-quad-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3D WebGL Canvas Layer
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
