/* ==========================================================================
   QUANG MINH TRÍ - THREE.JS MODERN PORTFOLIO DESIGN SYSTEM
   Editorial, Precision Engineering Aesthetic: White + Yellow + Blue
   ========================================================================== */

:root {
  /* Exactly Three Main Brand Colors */
  --brand-white: #FFFFFF;
  --brand-yellow: #F59E0B;
  --brand-yellow-bright: #FBBF24;
  --brand-yellow-light: #FEF08A;
  --brand-yellow-subtle: rgba(245, 158, 11, 0.12);

  --brand-blue: #1377C8;
  --brand-navy: #05295E;
  --brand-navy-deep: #031838;
  --brand-blue-electric: #2563EB;
  --brand-blue-light: #38BDF8;
  --brand-blue-subtle: rgba(19, 119, 200, 0.08);

  /* Typography & Neutrals */
  --brand-text-dark: #0A192F;
  --brand-text-body: #1E293B;
  --brand-text-muted: #52647E;
  --brand-text-light: #64748B;
  --brand-border: #E2E8F0;
  --brand-border-subtle: #F1F5F9;
  --brand-surface: #F8FAFC;

  /* Typography Scale */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, monospace;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--brand-white);
  color: var(--brand-text-body);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  position: relative;
  background-color: var(--brand-white);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Three.js Fixed WebGL Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  z-index: 0;
  pointer-events: none; /* Allows clicks to pass through to DOM elements */
  transition: opacity 0.5s ease;
}

/* Accent text helpers */
.text-yellow {
  color: var(--brand-yellow);
}

.text-blue {
  color: var(--brand-blue);
}

.text-navy {
  color: var(--brand-navy);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(5, 41, 94, 0.06);
}

.header-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 210px;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.8rem);
  flex-shrink: 1;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-yellow);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Language Switcher Pill [ EN | VI ] */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  padding: 2px;
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--brand-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-btn.is-active {
  background: var(--brand-navy);
  color: var(--brand-white);
  box-shadow: 0 2px 6px rgba(5, 41, 94, 0.2);
}

/* Pill CTA Buttons matching the reference */
.btn-pill-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--brand-navy);
  color: var(--brand-white);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--brand-navy);
  box-shadow: 0 4px 14px rgba(5, 41, 94, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-navy:hover {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 119, 200, 0.35);
}

.btn-pill-navy svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--brand-white);
  color: var(--brand-navy);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1.5px solid var(--brand-border);
  box-shadow: 0 2px 8px rgba(5, 41, 94, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-outline:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.btn-pill-outline svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

.btn-pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--brand-yellow);
  color: var(--brand-navy-deep);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-gold:hover {
  background-color: var(--brand-yellow-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5);
}

.btn-pill-gold svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--brand-navy);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION (Asymmetric Composition Inspired by Reference)
   ========================================================================== */
.hero-editorial {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content-col {
  max-width: 680px;
}

/* Eyebrow metadata */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: 1.5rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--brand-yellow);
}

/* Huge Editorial Headline */
.hero-display-headline {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.hero-display-headline .text-yellow {
  color: var(--brand-yellow);
  position: relative;
  display: inline-block;
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--brand-text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

/* Live 3D Ecosystem Status Badge */
.hero-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--brand-border);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.785rem;
  color: var(--brand-navy);
  box-shadow: 0 2px 8px rgba(5, 41, 94, 0.04);
}

.telemetry-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  box-shadow: 0 0 10px var(--brand-yellow);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Hero 3D Viewport Column (Transparent canvas passthrough with editorial HUD) */
.hero-visual-col {
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
}

.hero-hud-card {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(5, 41, 94, 0.08);
  font-size: 0.85rem;
}

.hud-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.hud-desc {
  color: var(--brand-text-muted);
  line-height: 1.5;
  font-size: 0.825rem;
}

/* ==========================================================================
   SECTION 01 — INTRODUCTION (Editorial Layout)
   ========================================================================== */
.intro-section {
  position: relative;
  z-index: 10;
  padding: 7rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--brand-border);
}

.intro-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.intro-lead-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.intro-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--brand-text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Architectural showcase card matching the reference image right banner */
.intro-visual-card {
  position: relative;
  background: linear-gradient(145deg, #F8FAFC 0%, #EDF2F7 100%);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(5, 41, 94, 0.06);
}

.intro-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-blue));
}

.intro-card-motto {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-navy);
  line-height: 2.0;
  text-transform: uppercase;
}

.intro-card-sub {
  font-size: 0.875rem;
  color: var(--brand-text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   SECTION 02 — SERVICES (Interactive 3D Ecosystem Grid)
   ========================================================================== */
.services-section {
  position: relative;
  z-index: 10;
  padding: 7rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--brand-border);
}

.section-header-block {
  max-width: 1320px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
}

.section-main-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  max-width: 820px;
}

.services-grid-3d {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(5, 41, 94, 0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.service-card.is-node-active {
  border-color: var(--brand-yellow);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.14);
}

.service-card.is-node-active {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
  transition: all 0.25s ease;
}

.service-card:hover .service-icon-box,
.service-card.is-node-active .service-icon-box {
  background: var(--brand-yellow);
  color: var(--brand-navy-deep);
  border-color: var(--brand-yellow);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-text-light);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.service-card:hover .service-title,
.service-card.is-node-active .service-title {
  color: var(--brand-navy-deep);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--brand-text-muted);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-border-subtle);
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-link,
.service-card.is-node-active .service-link {
  color: var(--brand-yellow);
  gap: 0.65rem;
}

.node-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--brand-surface);
  color: var(--brand-text-light);
}

.service-card.is-node-active .node-status-pill {
  background: var(--brand-yellow-subtle);
  color: var(--brand-yellow);
}

/* ==========================================================================
   SECTION 03 — SELECTED WORK (Large Editorial Case Studies)
   ========================================================================== */
.work-section {
  position: relative;
  z-index: 10;
  padding: 7rem 0;
  background: var(--brand-white);
  border-top: 1px solid var(--brand-border);
}

.work-header-row {
  max-width: 1320px;
  margin: 0 auto 3.5rem auto;
  padding: 0 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.work-filter-pills {
  display: inline-flex;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  padding: 4px;
  border-radius: 9999px;
  gap: 4px;
}

.work-filter-btn {
  background: transparent;
  border: none;
  padding: 6px 16px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.work-filter-btn.active {
  background: var(--brand-navy);
  color: var(--brand-white);
}

.projects-editorial-list {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.project-editorial-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-editorial-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 20px 48px rgba(5, 41, 94, 0.09);
}

.project-info-col {
  display: flex;
  flex-direction: column;
}

.project-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-category-tag {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 0.08em;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--brand-text-light);
}

.project-name {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.project-summary {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--brand-text-muted);
  margin-bottom: 2rem;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  color: var(--brand-navy);
  transition: all 0.2s ease;
}

.project-editorial-card:hover .tech-pill {
  border-color: var(--brand-yellow);
}

/* Device Mockup Wrapper with Perspective Tilt */
.project-media-wrapper {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 14px 36px rgba(5, 41, 94, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.device-frame {
  background: #0F172A;
  border-radius: 10px;
  padding: 1.25rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.device-frame.light-theme {
  background: #FFFFFF;
  color: var(--brand-navy);
  border: 1px solid var(--brand-border);
}

.device-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.device-frame.light-theme .device-frame-header {
  border-bottom: 1px solid var(--brand-border);
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.device-frame.light-theme .window-dot {
  background: #CBD5E1;
}

.device-frame-body h5 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.device-frame-body p {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ==========================================================================
   SECTION 04 — AI & TECHNOLOGY (Interactive 6-Stage Pipeline)
   ========================================================================== */
.ai-section {
  position: relative;
  z-index: 10;
  padding: 8rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-top: 1px solid var(--brand-border);
}

.ai-pipeline-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ai-pipeline-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.ai-pipeline-step {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ai-pipeline-step:hover,
.ai-pipeline-step.is-active {
  border-color: var(--brand-yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18);
}

.ai-pipeline-step.is-active {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF5 100%);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-yellow);
  display: block;
  margin-bottom: 0.35rem;
}

.step-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.ai-stage-display-card {
  background: var(--brand-white);
  border: 1.5px solid var(--brand-yellow);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.12);
  min-height: 220px;
  position: relative;
}

.ai-stage-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.ai-stage-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-yellow);
}

.ai-stage-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-stage-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.ai-stage-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--brand-text-muted);
  margin-bottom: 1.75rem;
  max-width: 860px;
}

.ai-stage-tech {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-border-subtle);
}

.tech-label {
  color: var(--brand-text-light);
}

.tech-val {
  color: var(--brand-navy);
  font-weight: 700;
}

/* ==========================================================================
   SECTION 05 — HOW WE WORK (6-Step Delivery Timeline)
   ========================================================================== */
.process-section {
  position: relative;
  z-index: 10;
  padding: 7rem 0;
  background: var(--brand-white);
  border-top: 1px solid var(--brand-border);
}

.process-grid-6 {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.process-step {
  border-top: 3px solid var(--brand-border);
  padding-top: 1.5rem;
  transition: all 0.3s ease;
}

.process-step.step-active,
.process-step:hover {
  border-top-color: var(--brand-yellow);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.process-step.step-active .step-num,
.process-step:hover .step-num {
  color: var(--brand-yellow);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-text-muted);
}

/* ==========================================================================
   SECTION 06 — NUMBERS / CAPABILITIES (Verified Statistics)
   ========================================================================== */
.stats-strip {
  position: relative;
  z-index: 10;
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 4.5rem 0;
}

.stats-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  border-left: 2px solid var(--brand-yellow);
  padding-left: 1.5rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

/* ==========================================================================
   SECTION 07 — ABOUT (Editorial Company Story)
   ========================================================================== */
.about-section {
  position: relative;
  z-index: 10;
  padding: 7rem 0;
  background: var(--brand-white);
}

.about-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.5rem;
}

.about-headline {
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
}

.about-story-col {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--brand-text-muted);
}

.about-story-col p {
  margin-bottom: 1.5rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-pillar-tag {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-pillar-tag::before {
  content: '■';
  color: var(--brand-yellow);
  font-size: 0.75rem;
}

/* ==========================================================================
   SECTION 08 — CONTACT (Matching the Reference Image Curved Dark Banner)
   ========================================================================== */
.contact-section {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem 6rem 2rem;
  background: var(--brand-white);
}

.contact-banner-curved {
  max-width: 1320px;
  margin: 0 auto;
  background: linear-gradient(135deg, #031838 0%, #05295E 65%, #0B3A78 100%);
  border-radius: 28px;
  padding: clamp(3rem, 6vw, 5rem);
  color: var(--brand-white);
  box-shadow: 0 24px 60px rgba(5, 41, 94, 0.25);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative golden & blue light ribbon across the banner */
.contact-banner-curved::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue-light) 0%, var(--brand-yellow) 50%, transparent 100%);
}

.contact-lead-col .section-eyebrow {
  color: var(--brand-yellow);
}

.contact-lead-col .section-eyebrow::before {
  background-color: var(--brand-yellow);
}

.contact-big-headline {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.contact-lead-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #E2E8F0;
}

.contact-info-row svg {
  width: 18px;
  height: 18px;
  color: var(--brand-yellow);
}

/* Contact Form inside the dark banner */
.contact-form-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2.25rem;
}

.inquiry-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.inquiry-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inquiry-pill.selected,
.inquiry-pill:hover {
  background: var(--brand-yellow);
  color: var(--brand-navy-deep);
  border-color: var(--brand-yellow);
}

.form-group-custom {
  margin-bottom: 1.25rem;
}

.form-input-custom {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input-custom:focus {
  border-color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.12);
}

.form-input-custom::placeholder {
  color: #94A3B8;
}

.contact-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: none;
}

.contact-status.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #A7F3D0;
}

.contact-status.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #FECACA;
}

/* ==========================================================================
   FOOTER (Matching the Reference Image Clean Editorial Footer)
   ========================================================================== */
.site-footer-modern {
  position: relative;
  z-index: 10;
  background: var(--brand-white);
  border-top: 1px solid var(--brand-border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-navy);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--brand-text-light);
}

/* ==========================================================================
   MOBILE DRAWER & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--brand-white);
  z-index: 1001;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -8px 0 32px rgba(5, 41, 94, 0.15);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--brand-border);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--brand-navy);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--brand-yellow);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 41, 94, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hide mobile elements completely on desktop */
@media (min-width: 1081px) {
  .mobile-toggle {
    display: none !important;
  }
  .mobile-drawer {
    display: none !important;
  }
  .drawer-backdrop {
    display: none !important;
  }
}

/* Tablet & Mobile Breakpoint (<= 1080px) */
@media (max-width: 1080px) {
  .nav-desktop {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual-col {
    height: 420px;
    align-items: center;
  }
  .services-grid-3d {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-pipeline-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .contact-banner-curved {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid-3d {
    grid-template-columns: 1fr;
  }
  .ai-pipeline-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-editorial-card {
    grid-template-columns: 1fr;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
