@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   BAADAM INFO AND TRADELINK SERVICES - MODERN AGENCY DESIGN SYSTEM
   Visual Reference: High-impact dark charcoal editorial aesthetic
   Brand Identity: Baadam official signature red (#E7192D) & dark charcoal (#0D0E10)
   ========================================================================== */

/* 1. Design Tokens & CSS Custom Properties */
:root {
  /* Brand Identity (Baadam official signature red & white theme) */
  --brand-red: #E7192D;
  --brand-red-hover: #cc1022;
  --brand-red-light: rgba(231, 25, 45, 0.08);
  --brand-red-glow: rgba(231, 25, 45, 0.3);
  --brand-red-border: rgba(231, 25, 45, 0.25);

  /* Modern Agency Red & White Palette */
  --bg-night: #ffffff;
  --bg-body: #ffffff;
  --bg-surface: #f9fafb;
  --bg-surface-hover: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-subtle: #fafafa;
  --bg-pill: rgba(255, 255, 255, 0.94);

  /* Typography Colors for White Background */
  --text-chalk: #1f2937;
  --text-pure: #111827;
  --text-fog: #374151;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;

  /* Borders & Hairlines */
  --border-subtle: #e5e7eb;
  --border-hover: rgba(231, 25, 45, 0.4);
  --border-pill: #e5e7eb;

  /* Typography Families */
  --font-display: 'Funnel Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout Spacing & Sizing */
  --container-max-width: 1280px;
  --header-height: 76px;
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Motion & Transitions */
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Origin coordinates for radial wavefront page transition */
  --trans-origin-x: 50vw;
  --trans-origin-y: 50vh;
}

/* 2. Global Resets & Document Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-body);
  color: var(--text-chalk);
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Homepage full-screen presentation slide snap */
/* Completely fluid, natural unhindered scrolling */
html, body, html:has(.screen-snap-nav), body.has-snap-nav {
  scroll-snap-type: none !important;
}

/* Natural, unhindered scrolling for all content pages (About, Services, Portfolio, Contact) */
html:not(:has(.screen-snap-nav)),
body:not(.has-snap-nav) {
  scroll-snap-type: none !important;
}

body:not(.has-snap-nav) section,
body:not(.has-snap-nav) footer,
body:not(.has-snap-nav) .cta-banner-section,
body:not(.has-snap-nav) .site-footer {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

body:not(.has-snap-nav) .cta-banner-section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 40px 24px !important;
  overflow: visible !important;
}

body:not(.has-snap-nav) .site-footer {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 80px 24px 32px !important;
  overflow: visible !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-chalk);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Focus Visible Accessibility */
:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
}

/* ==========================================================================
   3. Circular Wavefront Page Transition Overlay
   ========================================================================== */
.page-trans-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.page-trans-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.trans-wave {
  position: absolute;
  inset: 0;
  clip-path: circle(0px at var(--trans-origin-x) var(--trans-origin-y));
  will-change: clip-path;
}

.page-trans-overlay.is-active .trans-red {
  background: var(--brand-red);
  animation: waveGrow 0.52s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.page-trans-overlay.is-active .trans-night {
  background: var(--bg-night);
  animation: waveGrow 0.52s cubic-bezier(0.6, 0, 0.2, 1) 40ms both;
}

@keyframes waveGrow {
  from {
    clip-path: circle(0px at var(--trans-origin-x) var(--trans-origin-y));
  }
  to {
    clip-path: circle(150vmax at var(--trans-origin-x) var(--trans-origin-y));
  }
}

.trans-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.trans-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.trans-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-chalk);
  letter-spacing: -0.03em;
}

/* ==========================================================================
   4. Floating Pill Navigation Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 20px;
  pointer-events: none;
}

.nav-container {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.is-scrolled .nav-container {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(231, 25, 45, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08), 0 0 16px rgba(231, 25, 45, 0.06);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  max-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.03);
}

/* Navigation Links List */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: #E7192D;
  background: rgba(231, 25, 45, 0.06);
}

.nav-link.active {
  color: #E7192D;
  background: rgba(231, 25, 45, 0.1);
  box-shadow: inset 0 0 0 1px rgba(231, 25, 45, 0.2);
  font-weight: 600;
}

/* Header Action CTA Button - Suppressed as requested */
.btn-talk,
.btn-pill-nav,
.nav-cta-wrapper {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.btn-talk:hover,
.btn-pill-nav:hover {
  background: #cc1022;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(231, 25, 45, 0.55);
  color: #FFFFFF;
}

.nav-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E7192D;
  display: grid;
  place-items: center;
  transition: transform var(--transition-normal);
}

.btn-talk:hover .nav-arrow-circle {
  transform: rotate(45deg);
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: #111827;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   5. Reusable Agency Button System
   ========================================================================== */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 10px 0 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-fast);
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-pill:active {
  transform: translateY(0);
}

/* Primary Pill (Brand Red) */
.btn-primary-pill,
.btn-pill-primary {
  background: var(--brand-red);
  color: var(--text-pure);
  box-shadow: 0 6px 24px var(--brand-red-glow);
}

.btn-primary-pill:hover,
.btn-pill-primary:hover {
  background: var(--brand-red-hover);
  box-shadow: 0 10px 32px rgba(231, 25, 45, 0.65);
  color: var(--text-pure);
}

/* Ghost / Subtle Dark Pill */
.btn-secondary-pill,
.btn-pill-ghost {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary-pill:hover,
.btn-pill-ghost:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

/* Arrow inside button */
.btn-arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: transform var(--transition-normal);
}

.btn-pill:hover .btn-arrow-circle {
  transform: translateX(3px) rotate(45deg);
}

/* ==========================================================================
   6. Monospace Kicker & Radar Status Badge
   ========================================================================== */
.kicker-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.radar-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--brand-red);
  animation: radarPing 1.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

@keyframes radarPing {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Editorial Highlight Text */
.text-brand-red {
  color: var(--brand-red);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-pure) 30%, var(--brand-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   7. Homepage Hero Section: Water Ripple Canvas & Glowing Circular Lens
   ========================================================================== */
/* ==========================================================================
   7. Homepage Hero Section: Optical Spotlight Lens & Interactive Water Canvas
   Reference: Reachwise Illuminated Crowd Spotlight Lens with Lime Perimeter
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: calc(var(--header-height) + 24px) 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
  background-color: #ffffff;
  background-image:
    /* Layer 1: Concentrated crimson glow halo directly around the central circular lens */
    radial-gradient(circle at 50% 48%, rgba(255, 36, 69, 0) 0%, rgba(255, 36, 69, 0) 220px, rgba(255, 36, 69, 0.52) 265px, rgba(255, 36, 69, 0.35) 340px, rgba(255, 50, 80, 0.18) 480px, rgba(255, 255, 255, 0.25) 750px),
    /* Layer 2: Soft transparent red/crimson gradient tint over the crowd, architecture & stairs */
    linear-gradient(180deg, rgba(255, 40, 70, 0.16) 0%, rgba(235, 25, 55, 0.12) 50%, rgba(255, 50, 80, 0.16) 100%),
    /* Layer 3: Soft ambient radial wash to maintain clean modern transparency */
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 245, 246, 0.12) 60%, rgba(255, 255, 255, 0.35) 100%),
    /* Layer 4: Original crowd walking overhead background image */
    url('assets/hero-crowd-overhead.jpg');
  background-size: cover, cover, cover, cover;
  background-position: center 30%, center center, center center, center 30%;
  background-repeat: no-repeat;
}

/* Water Ripple Simulation Canvas Background */
.hero-water-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: crosshair;
}

/* Hero Content Layer above Water Canvas */
.hero-lens-container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none; /* Let canvas receive pointer interactions */
}

.hero-interactive-wrap {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Glowing Circular Perimeter Lens (Translucent Optical Spotlight) */
.hero-lens-circle {
  position: relative;
  /* Slightly reduced refined central circle: ~520px on desktop */
  width: min(520px, 88vw);
  height: 520px;
  max-width: 520px;
  max-height: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  border: 2px solid #FF2445;
  /* Soft crimson/pink radiant halo around the circle blending with background */
  box-shadow:
    0 0 0 1px rgba(255, 36, 69, 0.35),
    0 0 35px 8px rgba(255, 36, 69, 0.42),
    0 0 75px 20px rgba(255, 36, 69, 0.25),
    0 0 130px 45px rgba(255, 45, 75, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 28px 36px;
  margin: 0 auto;
  /* Very subtle white/pink translucent background */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 249, 0.92) 70%, rgba(255, 242, 244, 0.88) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-sizing: border-box;
}

.hero-lens-circle:hover {
  border-color: #FF2445;
  box-shadow:
    0 0 0 1px rgba(255, 36, 69, 0.45),
    0 0 45px 12px rgba(255, 36, 69, 0.50),
    0 0 95px 28px rgba(255, 36, 69, 0.32),
    0 0 150px 60px rgba(255, 45, 75, 0.20);
}

/* Perimeter Radar Target Badge - Hidden to match reference design */
.circle-radar-target {
  display: none !important;
}

.radar-target-rings {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.target-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #FF2445;
  opacity: 0.9;
}

.target-ring-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed #FF2445;
  opacity: 0.95;
  animation: spinSlow 12s linear infinite;
}

.target-ring-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FF2445;
  box-shadow: 0 0 6px #FF2445;
}

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

.target-radar-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}

/* Top Center Pill Badge */
.hero-top-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 6px 18px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: #0F172A;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  white-space: nowrap;
  z-index: 25;
}

.badge-dot-pink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF2445;
  box-shadow: 0 0 8px rgba(255, 36, 69, 0.6);
}

/* Floating Notification Pills Positioned Completely Outside the Circle */
.float-pill {
  position: absolute;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #0F172A;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  pointer-events: auto;
  white-space: nowrap;
  animation: floatDrift 4s ease-in-out infinite alternate;
}

@media (max-width: 1200px) {
  .float-pill {
    display: none;
  }
}

.pill-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FF2445;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.pill-badge-num {
  background: #FF2445;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
}

/* Circle Anchor Pink Dot */
.circle-ring-anchor {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF2445;
  box-shadow: 0 0 6px rgba(255, 36, 69, 0.6);
  border: 1.5px solid #FFFFFF;
}

/* Left Pill: Placed Outside on the Left Edge (~40%) */
.float-pill.pill-left {
  top: 40%;
  right: calc(100% + 22px);
  left: auto;
  animation-delay: 0s;
}

.float-pill.pill-left .circle-ring-anchor {
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Top-Right Pill: Placed Outside on the Right Edge (~24%) */
.float-pill.pill-top-right {
  top: 24%;
  left: calc(100% + 22px);
  right: auto;
  animation-delay: 1.2s;
}

.float-pill.pill-top-right .circle-ring-anchor {
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Bottom-Right Pill: Placed Outside on the Right Edge (~63%) */
.float-pill.pill-bottom-right {
  top: 63%;
  bottom: auto;
  left: calc(100% + 22px);
  right: auto;
  animation-delay: 2.1s;
}

.float-pill.pill-bottom-right .circle-ring-anchor {
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes floatDrift {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

/* Central Headline Sized to Fit Generously Inside the Refined Circle */
.hero-lens-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.74rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 8px;
  max-width: 410px;
  text-align: center;
}

/* The Single-Line Highlight Pill */
.hero-lime-tag {
  display: inline-block;
  background-color: #FF2445;
  color: #FFFFFF;
  padding: 5px 20px 6px;
  border-radius: 9999px;
  font-size: clamp(0.96rem, 1.25vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  box-shadow: 0 4px 14px rgba(255, 36, 69, 0.32);
  margin-top: 6px;
  text-shadow: none;
  white-space: nowrap;
}

/* Subtitle description */
.hero-lens-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.86vw, 0.84rem);
  line-height: 1.55;
  color: #475569;
  max-width: 350px;
  margin: 12px auto 18px;
  font-weight: 500;
  text-align: center;
}

/* Dual Action Buttons */
.hero-lens-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

.hero-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF2445;
  color: #FFFFFF;
  border: 1.5px solid #FF2445;
  border-radius: 9999px;
  padding: 9px 13px 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(255, 36, 69, 0.32);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.hero-btn-dark:hover {
  background: #e01b3a;
  border-color: #e01b3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 36, 69, 0.45);
}

.hero-btn-icon-lime {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #FF2445;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  padding: 9px 16px 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.hero-btn-glass:hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hero-btn-icon-glass {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #0F172A;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Hero Bottom Bar */
.hero-bottom-strip {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: auto auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 0;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 8px #E7192D;
}

.hero-stat-huge {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-tags-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.hero-channel-pill:hover {
  background: #ffffff;
  border-color: #E7192D;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(231, 25, 45, 0.15);
}

.hero-channel-pill .channel-num {
  color: #E7192D;
  font-weight: 800;
}

.hero-reviews-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stars {
  color: #E7192D;
  font-size: 0.92rem;
  letter-spacing: 3px;
}

.hero-review-score {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.hero-review-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6b7280;
  letter-spacing: 0.04em;
}

@media (max-width: 992px) {
  .hero-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-reviews-block {
    text-align: left;
  }
  .float-pill.pill-left {
    left: 2%;
    top: 18%;
  }
  .float-pill.pill-top-right {
    right: 2%;
    top: 14%;
  }
  .float-pill.pill-bottom-right {
    right: 2%;
    bottom: 14%;
  }
}

/* ==========================================================================
   7.5. Next Section: Brand Radar on Chalk Surface (#EEEEE8)
   ========================================================================== */
.radar-section {
  position: relative;
  background-color: #ffffff;
  color: #111827;
  padding: calc(var(--header-height) + 12px) 0 0;
  border-top: 1px solid #e5e7eb;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.radar-section .section-container {
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 clamp(20px, 3vw, 40px);
}

.radar-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
  width: 100%;
}

.radar-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.radar-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E7192D;
}

.radar-headline {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.1vw, 3.15rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #111827;
  margin-bottom: 20px;
}

.radar-highlight-pill {
  display: inline-block;
  background: #E7192D;
  color: #FFFFFF;
  padding: 2px 20px 4px;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(231, 25, 45, 0.35);
  margin-top: 6px;
  width: fit-content;
  max-width: 100%;
  font-size: 0.94em;
}

.radar-subtext {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.6;
  color: #4b5563;
  max-width: 520px;
  margin-bottom: 24px;
}

.radar-meta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-rating {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-update-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.78vw, 0.76rem);
  letter-spacing: 0.05em;
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Radar Canvas Visual */
.radar-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brand-radar-canvas {
  width: min(clamp(280px, 48vw, 660px), 65vh);
  height: min(clamp(280px, 48vw, 660px), 65vh);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   8. Technology Marquee Ticker (Red & White Theme)
   ========================================================================== */
.tech-marquee-wrapper {
  position: relative;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  overflow: hidden;
  margin-top: auto;
  flex-shrink: 0;
}

/* Red Accent Top & Bottom Borders */
.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #E7192D 30%, 
    #ff453a 50%, 
    #E7192D 70%, 
    transparent 100%
  );
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
}
.tech-marquee-wrapper::before { top: 0; }
.tech-marquee-wrapper::after { bottom: 0; }

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.tech-marquee-track:hover {
  animation-play-state: paused;
}

.tech-marquee-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
}

.marquee-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--pill-border, #e5e7eb);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: default;
  opacity: 1;
  filter: none;
}

.marquee-logo-item:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--pill-color, #E7192D);
  box-shadow: 0 6px 20px rgba(231, 25, 45, 0.15);
}

.marquee-logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.marquee-logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
  white-space: nowrap;
}

.marquee-separator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 6px rgba(231, 25, 45, 0.4);
  flex-shrink: 0;
}

.tech-marquee-group .marquee-separator:nth-of-type(3n) {
  background: #ff453a;
  box-shadow: 0 0 6px rgba(255, 69, 58, 0.4);
}

.tech-marquee-group .marquee-separator:nth-of-type(3n+1) {
  background: #E7192D;
  box-shadow: 0 0 6px rgba(231, 25, 45, 0.4);
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   9. Standard Editorial Section Headers & Layouts
   ========================================================================== */
.section-pad {
  padding: 110px 24px;
  position: relative;
}

.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .kicker-capsule {
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-chalk);
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-fog);
  max-width: 620px;
}

.section-header.text-center .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   10. About Baadam Section (Split 2-Column)
   ========================================================================== */
.about-section {
  background: var(--bg-body);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text-col .section-heading {
  margin-bottom: 24px;
}

.about-description {
  font-size: 1.08rem;
  color: var(--text-fog);
  line-height: 1.7;
  margin-bottom: 36px;
}

.about-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.about-office-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.about-visual-card:hover .about-office-img {
  transform: scale(1.03);
}

/* ==========================================================================
   11. Stats & Milestones Grid
   ========================================================================== */
.stats-section {
  background: var(--bg-night);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(231, 25, 45, 0.1);
  display: grid;
  place-items: center;
  color: var(--brand-red);
  margin-bottom: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-highlight {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   12. Interactive Services Accordion (Reachwise Reference Layout)
   Sticky Multi-Step Scroll Track: Pinned cards step-by-step
   ========================================================================== */
.services-sticky-track {
  position: relative;
  width: 100%;
  height: 600vh; /* 6 cards: 100vh per card step */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.services-snap-stops-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.services-snap-stop {
  height: 100vh;
  width: 100%;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
  scroll-snap-align: none !important;
  pointer-events: none;
}

.services-section.services-pinned-content {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  z-index: 2;
  box-sizing: border-box;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
  overflow-y: auto; /* Fallback overflow protection: ensures whole content is always accessible without clipping */
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-section.services-pinned-content::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  .services-sticky-track {
    height: auto;
  }
  .services-snap-stops-wrap {
    display: none;
  }
  .services-section.services-pinned-content {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

.services-section {
  background-color: #ffffff;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  min-height: 100vh;
  height: auto;
  max-height: none;
  padding: calc(var(--header-height, 76px) + 24px) 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: visible;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.services-section .section-container {
  height: 100%;
  min-height: min-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
}

.services-header-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.services-header-left {
  max-width: 620px;
}

.services-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 14, 16, 0.05);
  border: 1px solid rgba(13, 14, 16, 0.1);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #0D0E10;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.services-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 6px rgba(231, 25, 45, 0.8);
  display: inline-block;
}

.services-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.95vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0D0E10;
  margin: 0;
}

.lime-pill-tag {
  display: inline-block;
  background-color: #E53935;
  color: #FFFFFF;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.35);
}

.services-header-right {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 0;
}

.services-subtext {
  font-size: 0.78rem;
  line-height: 1.25;
  color: #4A4B46;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-all-services {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #0D0E10;
  border: 1px solid rgba(13, 14, 16, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.btn-all-services:hover {
  background: #E7192D;
  color: #FFFFFF;
  border-color: #E7192D;
  transform: translateY(-1px);
}

.btn-all-services .btn-arrow-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-all-services:hover .btn-arrow-circle {
  background: #FFFFFF;
  color: #E7192D;
}

/* Accordion Stack Container */
.services-accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

/* Accordion Item Base */
.service-acc-item {
  border-radius: 9999px;
  transition: border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  will-change: border-radius, background-color, box-shadow, padding;
}

/* Collapsed Header / Pill Row */
.service-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: inherit;
  min-height: 52px;
  transition: padding 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acc-badge-index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(231, 25, 45, 0.08);
  color: #E7192D;
  transition: all 0.3s ease;
  transform-origin: center center;
  flex-shrink: 0;
}

.acc-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* Unified Sleek Collapsed Pill Styling for ALL Variants */
.service-acc-item:not(.is-active) {
  background: #FFFFFF !important;
  color: #111827 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  padding: 0 !important;
}

.service-acc-item:not(.is-active) .acc-title {
  color: #111827 !important;
}

.service-acc-item:not(.is-active) .acc-badge-index {
  background: rgba(231, 25, 45, 0.08) !important;
  color: #E7192D !important;
}

.service-acc-item:not(.is-active) .service-acc-header::after {
  content: "↓";
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #9CA3AF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  transform: rotate(0deg);
}

.service-acc-item.is-active .service-acc-header::after {
  content: "↓";
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E7192D;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  transform: rotate(180deg);
}

.service-acc-item:not(.is-active):hover {
  background: #FFFFFF !important;
  border-color: rgba(231, 25, 45, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 25, 45, 0.09) !important;
}

.service-acc-item:not(.is-active):hover .acc-badge-index {
  background: #E7192D !important;
  color: #FFFFFF !important;
}

.service-acc-item:not(.is-active):hover .service-acc-header::after {
  background: #E7192D;
  color: #FFFFFF;
}

/* 1. White & Red Border Pill (Legacy compatibility) */
.service-acc-dark:not(.is-active) {
  background: #FFFFFF;
  color: #111827;
}

/* 2. White Pill (Legacy compatibility) */
.service-acc-white:not(.is-active) {
  background: #FFFFFF;
  color: #0D0E10;
}

/* 3. Red Accent Pill (Legacy compatibility - now consistent white card) */
.service-acc-lime:not(.is-active) {
  background: #FFFFFF;
  color: #111827;
}

/* 4. Light Grey Pill (Legacy compatibility - now consistent white card) */
.service-acc-light:not(.is-active) {
  background: #FFFFFF;
  color: #111827;
}

/* Active Elevated Card Styling (Uniform identical height across all opened cards) */
.service-acc-item.is-active {
  background: #FFFFFF !important;
  color: #111827 !important;
  border-radius: 20px !important;
  padding: 22px 28px !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(231, 25, 45, 0.05) !important;
  border: 1.5px solid rgba(231, 25, 45, 0.35) !important;
}

.service-acc-item.is-active .service-acc-header {
  padding: 0 0 12px 0;
  min-height: auto;
  cursor: default;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 14px;
}

.service-acc-item.is-active .acc-badge-index {
  background: #E7192D !important;
  color: #FFFFFF !important;
  width: 32px;
  height: 32px;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(231, 25, 45, 0.35);
  transform: scale(1.06);
}

.service-acc-item.is-active .acc-title {
  font-weight: 800;
  color: #111827 !important;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Collapsible Body with Butter-Smooth CSS Grid Unfold & Content Glide */
.service-acc-body {
  display: grid !important;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  will-change: grid-template-rows, opacity;
}

.service-acc-item.is-active .service-acc-body {
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  transition: grid-template-rows 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.38s ease 0.08s;
}

.acc-body-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.1s,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.service-acc-item.is-active .acc-body-grid {
  height: 278px;
  opacity: 1;
  transform: translateY(0);
}

/* Left Column: Interactive Browser UI Mockup */
.mockup-viewport-card {
  background: #F9FAFB;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #E5E7EB;
  height: 100%;
}

/* Search Bar in Mockup */
.mockup-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.mockup-search-icon {
  color: #E7192D;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.mockup-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  width: 100%;
}

.mockup-search-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6B7280;
  padding-left: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search Results Stack */
.mockup-results-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Highlighted Result #1 */
.mockup-result-highlight {
  background: #FFFFFF;
  border: 1.5px solid rgba(231, 25, 45, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 3px 12px rgba(231, 25, 45, 0.08);
}

.mockup-res-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.mockup-res-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-res-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  flex-shrink: 0;
}

.mockup-res-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-res-rank {
  background: #E7192D;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Skeleton Placeholder Results */
.mockup-result-skeleton {
  padding: 8px 12px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-results-stack .mockup-result-skeleton:nth-child(n+3) {
  display: none;
}

.skeleton-url {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skeleton-bar {
  height: 5px;
  background: #E5E7EB;
  border-radius: 3px;
  width: 85%;
}

.skeleton-bar.short {
  width: 55%;
}

/* In-Flow Clean Metric Pill Badge: Placed completely below the results stack with zero text overlap */
.mockup-floating-badge {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  align-self: flex-end;
  margin-top: auto;
  background: #FFFFFF;
  border: 1px solid rgba(231, 25, 45, 0.25);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  box-shadow: 0 4px 14px rgba(231, 25, 45, 0.08);
  z-index: 2;
  flex-shrink: 0;
  animation: floatBadge 3.5s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.badge-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 5px #10B981;
}

.badge-dot-red {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E7192D;
}

/* Right Column: Deliverables & Specifications */
.service-details-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 0;
  height: 100%;
}

.service-pitch-text {
  font-size: 0.86rem;
  line-height: 1.48;
  color: #374151;
  font-weight: 500;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deliverables-block {
  margin-bottom: 10px;
}

.deliverables-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7192D;
  margin-bottom: 6px;
}

.deliverables-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
}

.deliverables-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.35;
  min-width: 0;
}

.deliverable-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E7192D;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Bottom Action & Scope Row */
.service-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
  margin-top: auto;
}

.service-metric-tag {
  background: rgba(231, 25, 45, 0.08);
  color: #E7192D;
  border: 1px solid rgba(231, 25, 45, 0.2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
}

.service-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.price-sublabel {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.btn-explore-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E7192D;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(231, 25, 45, 0.35);
  text-decoration: none;
}

.btn-explore-service:hover {
  background: #cc1022;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(231, 25, 45, 0.45);
}

.btn-explore-service .btn-arrow-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E7192D;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Bottom Stepper Progress Indicator */
.services-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 4px;
}

.acc-stepper-tracks {
  display: flex;
  align-items: center;
  gap: 6px;
}

.acc-stepper-segment {
  width: 38px;
  height: 2.5px;
  background: #E5E7EB;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.acc-stepper-segment:hover {
  background: #D1D5DB;
  transform: scaleY(1.4);
}

.acc-stepper-segment.is-active {
  background: var(--brand-red);
  transform: scaleY(1.4);
}

.acc-stepper-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #0D0E10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-stepper-counter .stepper-badge {
  background: #E7192D;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.74rem;
}

.acc-stepper-counter .stepper-name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2D2E2A;
}

/* Viewport Height Adaptive Scaling for Laptops & Compact Screens */
@media (max-height: 850px) {
  .services-section {
    padding-top: calc(var(--header-height, 76px) + 18px);
    padding-bottom: 12px;
  }
  .services-header-split {
    margin-bottom: 6px;
  }
  .mockup-result-skeleton {
    display: none !important;
  }
}

@media (max-height: 720px) {
  .services-section {
    padding-top: calc(var(--header-height, 76px) + 14px);
    padding-bottom: 8px;
  }
  .service-acc-item:not(.is-active) .service-acc-header {
    padding: 10px 20px;
    min-height: 44px;
  }
  .acc-badge-index {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  .acc-title {
    font-size: 1.02rem;
  }
  .mockup-result-skeleton {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .services-header-split {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .acc-body-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto !important;
  }

  .service-acc-item.is-active {
    padding: 16px 14px !important;
    min-height: auto !important;
  }

  .service-acc-item {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .mockup-viewport-card,
  .service-details-col {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mockup-search-bar,
  .mockup-results-stack {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .case-slider-card {
    max-width: 100% !important;
    width: 100% !important;
  }

  .case-header-left,
  .case-tabs-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .mockup-floating-badge {
    position: static;
    margin-top: 6px;
  }
}


/* ==========================================================================
   12.5. Interactive Case Studies Section (Results You Can Count - Red & White)
   ========================================================================== */
.case-studies-section {
  position: relative;
  background-color: #ffffff;
  color: #111827;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: calc(var(--header-height) + 10px) 24px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.case-studies-section .section-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
}

.case-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 12px;
}

.case-header-left {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-kicker-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  align-self: flex-start;
}

.case-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 8px rgba(231, 25, 45, 0.7);
}

.case-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #111827;
}

.text-lime-glow,
.text-red-glow {
  color: #E7192D;
  text-shadow: none;
}

.case-subtext {
  font-size: 0.94rem;
  line-height: 1.5;
  color: #4b5563;
  margin-top: 4px;
}

.case-header-right {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.btn-all-cases {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E7192D;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(231, 25, 45, 0.35);
  transition: all var(--transition-fast);
}

.btn-all-cases:hover {
  background: #cc1022;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(231, 25, 45, 0.5);
  color: #ffffff;
}

.btn-all-cases .btn-arrow-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E7192D;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform var(--transition-normal);
}

.btn-all-cases:hover .btn-arrow-circle {
  transform: rotate(45deg);
}

/* Horizontal Client Tab Switcher */
.case-tabs-container {
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.case-tabs-container::-webkit-scrollbar {
  display: none;
}

.case-tabs-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.case-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 6px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
  outline: none;
  font-family: inherit;
}

.case-tab:hover {
  border-color: rgba(231, 25, 45, 0.4);
  transform: translateY(-2px);
  color: #E7192D;
}

.case-tab.is-active {
  background: #E7192D;
  color: #FFFFFF;
  border-color: #E7192D;
  box-shadow: 0 4px 18px rgba(231, 25, 45, 0.35);
  transform: translateY(-2px);
}

.case-tab-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.case-tab.is-active .case-tab-avatar {
  border-color: #ffffff;
}

.case-tab-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.case-tab-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.case-tab-stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6b7280;
  white-space: nowrap;
}

.case-tab.is-active .case-tab-stat {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* The Interactive Split Slider Card */
.case-slider-card {
  position: relative;
  width: 100%;
  height: clamp(210px, 29vh, 295px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  margin-bottom: 6px;
}

.case-slider-card.is-sliding {
  cursor: grabbing;
}

/* Base Full Color Layer (AFTER) */
.case-layer-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
}

.case-img-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(1.0);
  transition: opacity 0.2s ease;
}

/* Clipped Grayscale Layer (BEFORE) */
.case-layer-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.case-img-before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) brightness(0.7) contrast(1.1);
  transition: opacity 0.2s ease;
}

/* Draggable Vertical Split Divider */
.case-split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #E7192D;
  box-shadow: 0 0 16px rgba(231, 25, 45, 0.6);
  z-index: 25;
  transform: translateX(-50%);
  will-change: left;
  pointer-events: none;
}

.case-knob-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E7192D;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 20px rgba(231, 25, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: ew-resize;
  pointer-events: auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.case-knob-circle:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 28px rgba(231, 25, 45, 0.7);
}

.case-knob-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -2px;
  font-family: var(--font-mono);
}

/* Floating Overlays on the Card */
.case-overlay-badge {
  position: absolute;
  z-index: 20;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.case-overlay-top-left {
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-overlay-top-right {
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
}

/* Metric Display Overlays */
.case-metric-block-before {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.case-tag-before {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.case-before-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  color: #9ca3af;
  letter-spacing: -0.04em;
}

.case-metric-block-after {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.case-tag-after {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-red);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 10px rgba(231, 25, 45, 0.25);
}

.case-after-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-red);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(231, 25, 45, 0.2);
}

/* Animated Neon Wave Chart SVG */
.case-chart-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 140px;
  z-index: 12;
  pointer-events: none;
}

.case-chart-baseline {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-dasharray: 6 6;
  stroke-width: 2;
  fill: none;
}

.case-chart-path {
  stroke: #FF3B30;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.6));
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawCurve 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawCurve {
  to {
    stroke-dashoffset: 0;
  }
}

/* Card Bottom Editorial & Action Row */
.case-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  padding: 16px 4px 0;
  margin-top: 0;
}

.case-card-footer.scroll-reveal {
  transform: none;
}

.case-footer-left {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7192D;
  font-weight: 700;
  margin-bottom: 2px;
}

.case-headline {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.4vw, 1.32rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #111827;
}

.case-desc {
  font-size: 0.86rem;
  line-height: 1.48;
  color: #4b5563;
  margin-top: 2px;
}

.case-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.case-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.case-tags-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-tag-pill {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-read-case {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E53935;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(229, 57, 53, 0.35);
  transition: all var(--transition-fast);
}

.btn-read-case:hover {
  background: #ff453a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 57, 53, 0.55);
}

.btn-read-case .btn-arrow-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E53935;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 992px) {
  .case-header-split {
    flex-direction: column;
    gap: 20px;
  }
  .case-slider-card {
    height: 420px;
  }
  .case-card-footer {
    flex-direction: column;
    gap: 24px;
  }
  .case-metric-block-before .case-before-num,
  .case-metric-block-after .case-after-num {
    font-size: 2.8rem;
  }
}

/* ==========================================================================
   13. (04) How We Work / Sequential Funnel Section (From attention to clients.)
   Visual Reference: Off-white/chalk cream canvas (#EDECE6), bold display title
   with Baadam red highlight pill, 2x2 grid of cards with animated red progress
   bars, count-up numeric counters, micro-metrics, and footnote.
   ========================================================================== */
.funnel-section {
  position: relative;
  background-color: #ffffff;
  color: #111827;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: calc(var(--header-height) + 24px) 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.funnel-section .section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.funnel-header {
  margin-bottom: 24px;
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}

.funnel-kicker-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.funnel-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 6px rgba(231, 25, 45, 0.8);
}

.funnel-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111827;
  margin-bottom: 10px;
}

.funnel-title-mark {
  display: inline-block;
  background-color: #E7192D;
  color: #FFFFFF;
  padding: 0 16px 2px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(231, 25, 45, 0.4);
  transform: translateY(-2px);
}

.funnel-subtext {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4b5563;
  max-width: 580px;
  margin-inline: auto;
}

/* 4-Columns Horizontal Funnel Cards Grid */
.funnel-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.funnel-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.funnel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 16px 36px rgba(231, 25, 45, 0.08);
}

.funnel-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.funnel-pill-tag {
  display: inline-flex;
  align-items: center;
  background: #E7192D;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.funnel-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  font-weight: 800;
  color: #111827;
}

.funnel-progress-track {
  margin-bottom: 8px;
  height: 6px;
}

.funnel-micro-stat {
  margin-bottom: 14px;
  font-size: 0.76rem;
}

.funnel-step-name-row {
  margin-bottom: 4px;
}

.funnel-step-title {
  font-size: 1.05rem;
}

.funnel-step-desc {
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Animated Progress Track & Bar */
.funnel-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(13, 14, 16, 0.08);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.funnel-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: #E53935;
  width: 0%;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
  transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

.funnel-micro-stat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #6E7068;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}

.funnel-asterisk {
  color: #E53935;
  font-weight: 700;
  font-size: 0.9rem;
}

.funnel-card-bottom {
  margin-top: auto;
}

.funnel-step-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.funnel-step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0D0E10;
  letter-spacing: -0.02em;
}

.funnel-step-week-pill {
  display: inline-block;
  background: rgba(13, 14, 16, 0.08);
  color: #555650;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.funnel-step-desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #555650;
  max-width: 440px;
}

/* Footnote Row */
.funnel-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: #8E9088;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .funnel-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .funnel-card {
    padding: 26px 24px;
  }
  .funnel-stat-num {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   14. Capabilities / Why Choose Baadam
   ========================================================================== */
.capabilities-section {
  background: var(--bg-body);
}

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

.capability-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.capability-item:hover {
  border-color: var(--brand-red-border);
  transform: translateY(-3px);
}

.capability-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(231, 25, 45, 0.2);
  display: grid;
  place-items: center;
  color: var(--brand-red, #E7192D);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(231, 25, 45, 0.08);
  transition: all var(--transition-fast);
}

.capability-item:hover .capability-icon-badge {
  border-color: rgba(231, 25, 45, 0.5);
  box-shadow: 0 6px 16px rgba(231, 25, 45, 0.16);
  transform: scale(1.06);
}

.capability-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}

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

/* ==========================================================================
   15. Meet Our Team Section & Carousel
   ========================================================================== */
.team-section {
  background: var(--bg-night);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.team-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  padding: 8px 4px 16px;
}

.team-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.team-cards-grid {
  display: flex;
  gap: 24px;
  width: max-content;
}

.team-card {
  width: 290px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.team-card:hover {
  border-color: rgba(231, 25, 45, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.team-card-image-wrap {
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: #f3f4f6;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.team-card:hover .team-card-img {
  transform: scale(1.05);
}

.team-card-content {
  padding: 24px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.team-card-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.team-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.team-card-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 16px;
}

.team-card-socials {
  display: flex;
  gap: 10px;
}

.team-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.team-social-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

/* Team Carousel Navigation Buttons */
.team-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-chalk);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.team-nav-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}

.team-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.team-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.team-dot.is-active {
  width: 44px;
  background: var(--brand-red);
}

/* ==========================================================================
   16. Full-Width CTA Banner Section
   ========================================================================== */
.cta-banner-section {
  background: var(--bg-body);
  height: auto;
  min-height: 0;
  max-height: none;
  padding: clamp(28px, 4vh, 40px) 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: visible;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.cta-banner-section .section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, #E7192D 0%, #C41224 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(38px, 4.8vh, 56px) clamp(40px, 4.6vw, 64px);
  box-shadow: 0 24px 50px rgba(231, 25, 45, 0.25);
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-banner-card .kicker-capsule {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.cta-banner-card .funnel-kicker-dot {
  background: #ffffff;
}

.cta-banner-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-banner-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  max-width: 580px;
  margin-bottom: 22px;
}

/* Horizontal Layout variant (Text on Left, White Pill Button on Right) */
.cta-banner-content.cta-horizontal-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.cta-banner-content.cta-horizontal-layout .cta-banner-text {
  flex: 1 1 65%;
  max-width: 680px;
}

.cta-banner-content.cta-horizontal-layout .cta-banner-desc {
  margin-bottom: 0;
}

.cta-banner-content.cta-horizontal-layout .cta-banner-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: auto;
}

@media (max-width: 900px) {
  .cta-banner-content.cta-horizontal-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .cta-banner-content.cta-horizontal-layout .cta-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* High-contrast CTA Button in Red Banner */
.cta-banner-card .btn-primary-pill,
.cta-banner-card .btn-primary,
.cta-banner-card .cta-banner-actions a,
.cta-banner-card .cta-banner-btn-wrap a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: 54px !important;
  padding: 0 10px 0 28px !important;
  border-radius: var(--radius-pill) !important;
  background: #ffffff !important;
  color: var(--brand-red) !important;
  border: 1px solid #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-fast), color var(--transition-fast) !important;
}

.cta-banner-card .btn-primary-pill:hover,
.cta-banner-card .btn-primary:hover,
.cta-banner-card .cta-banner-actions a:hover,
.cta-banner-card .cta-banner-btn-wrap a:hover {
  background: #ffffff !important;
  color: #c41224 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32) !important;
}

.cta-banner-card .btn-arrow-circle,
.cta-banner-card .btn-arrow {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--brand-red) !important;
  color: #ffffff !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: transform var(--transition-normal), background var(--transition-fast) !important;
}

.cta-banner-card a:hover .btn-arrow-circle,
.cta-banner-card a:hover .btn-arrow {
  background: #c41224 !important;
  transform: translateX(4px) rotate(45deg) !important;
}

.cta-banner-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cta-banner-visual {
  display: flex;
  justify-content: flex-end;
}

.cta-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-collab-img {
  width: 100%;
  height: min(275px, 32vh);
  object-fit: cover;
}

/* ==========================================================================
   17. Site Footer (Agency Multi-Column Layout)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 24px;
  box-sizing: border-box;
  overflow: visible;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 36px;
}

.footer-col-brand .footer-logo-img {
  height: 38px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

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

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: #4b5563;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 16px;
}

.footer-link-list,
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  font-size: 0.92rem;
  color: #6b7280;
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.footer-legal-link {
  color: #6b7280;
  transition: color var(--transition-fast);
}

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

.legal-sep {
  color: #d1d5db;
}

/* ==========================================================================
   18. Inner Pages Framework & Styles (Services, Portfolio, About, Contact)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-height) + 60px) 24px 60px;
  background: var(--bg-body);
  position: relative;
}

.page-hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-chalk);
  margin-bottom: 20px;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-fog);
  line-height: 1.65;
  max-width: 680px;
}

.page-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.page-lead-full {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.72;
  max-width: 880px;
}

/* Services Detailed Cards */
.services-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-detail-block {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-detail-block:hover {
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 8px 30px rgba(231, 25, 45, 0.08);
}

.service-block-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-block-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-red);
}

.service-block-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.service-deliverables {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin-top: 20px;
}

.service-deliverable-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-fog);
}

.service-check {
  color: var(--brand-red);
  font-weight: bold;
}

/* Portfolio Showcase Cards & Filters */
#portfolio-filters.section-pad,
#portfolio-filters {
  padding-top: 16px !important;
  padding-bottom: 60px !important;
}

.portfolio-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px !important;
}

.portfolio-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.portfolio-filter-btn.is-active,
.portfolio-filter-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(231, 25, 45, 0.25);
}

/* Portfolio Category-Wise Section Grouping */
.portfolio-category-section {
  margin-bottom: 56px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-category-section:last-child {
  margin-bottom: 0;
}

.portfolio-category-section.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.category-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.category-header-text {
  max-width: 820px;
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.category-title-row .category-heading {
  margin: 0 !important;
  line-height: 1.15;
}

.category-title-row .kicker-capsule {
  margin: 0 !important;
  display: inline-flex;
}

.category-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 0;
}

.category-sub {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

.category-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.category-count-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
}

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

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.portfolio-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.portfolio-card.is-hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 12px 28px rgba(231, 25, 45, 0.1);
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--brand-red);
}

.portfolio-card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(231, 25, 45, 0.08);
  color: var(--brand-red);
  font-weight: 600;
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.portfolio-card-desc {
  font-size: 0.84rem;
  color: #4B5563;
  line-height: 1.55;
  margin-top: 4px;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Portfolio Case Study Card Meta & Details Enhancement
   ========================================================================== */
.portfolio-case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.portfolio-industry-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #0D0E10;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.portfolio-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  margin-bottom: 6px;
}

.portfolio-meta-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #4B5563;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F4F6;
}

.portfolio-meta-row .meta-label {
  font-weight: 700;
  color: #0D0E10;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.portfolio-case-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.case-detail-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color var(--transition-fast);
}

.case-detail-box.challenge-box {
  border-left: 3px solid #E7192D;
}

.case-detail-box.solution-box {
  border-left: 3px solid #10B981;
}

.detail-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.detail-box-icon {
  font-size: 0.75rem;
}

.challenge-box .detail-box-icon {
  color: #E7192D;
}

.solution-box .detail-box-icon {
  color: #10B981;
}

.detail-box-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0D0E10;
}

.detail-box-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}

.portfolio-outcome-banner {
  background: rgba(231, 25, 45, 0.04);
  border: 1px solid rgba(231, 25, 45, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #1F2937;
}

.outcome-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #E7192D;
  margin-right: 6px;
}

.portfolio-tech-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #F3F4F6;
}

.tech-stack-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
}

.portfolio-tech-footer .portfolio-card-tags {
  margin-bottom: 0;
}


/* Contact Page Form & Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-chalk);
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-pure);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-red);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 25, 45, 0.15);
}

.form-status {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #16a34a;
}

.form-status.is-error {
  background: rgba(231, 25, 45, 0.12);
  border: 1px solid rgba(231, 25, 45, 0.35);
  color: #dc2626;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-info-card:hover {
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 8px 24px rgba(231, 25, 45, 0.08);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-red-light);
  display: grid;
  place-items: center;
  color: var(--brand-red);
  flex-shrink: 0;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.contact-card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contact Page UI Extensions (Pills, Form Fieldsets, FAQs, Sidebar & NDA)
   -------------------------------------------------------------------------- */
.contact-page {
  background-color: #FAFAFA;
}

/* Presentation guide avatar on contact page is moveable and non-intrusive */
.contact-page .teacher-guide-widget {
  display: flex !important;
}

.contact-section-main {
  padding: 16px 24px 28px !important;
  scroll-margin-top: calc(var(--header-height, 76px) + 12px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.22fr 0.88fr;
  gap: 30px;
  align-items: start;
}

.contact-form-wrap {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.form-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.form-required-notice {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.04em;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-fieldset {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.form-fieldset:last-of-type {
  border-bottom: none;
  margin-bottom: 6px;
  padding-bottom: 0;
}

.form-fieldset-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  margin-bottom: 6px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.form-grid-2col:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.form-input,
.form-select {
  width: 100%;
  height: 38px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: #0F172A;
  transition: all var(--transition-fast);
}

.form-textarea {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: #0F172A;
  min-height: 48px;
  max-height: 70px;
  resize: vertical;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(231, 25, 45, 0.12);
  outline: none;
}

/* Interactive Service Pills (Compact Multi-Select Group) */
.service-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.service-pill .pill-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #FFFFFF;
  font-size: 0.55rem;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.service-pill:hover {
  background: #FFFFFF;
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(231, 25, 45, 0.1);
}

.service-pill.is-active {
  background: rgba(231, 25, 45, 0.08);
  border-color: var(--brand-red);
  color: var(--brand-red);
  box-shadow: 0 3px 10px rgba(231, 25, 45, 0.12);
}

.service-pill.is-active .pill-check {
  background: var(--brand-red);
  color: #FFFFFF;
}

/* Custom NDA Checkbox */
.form-checkbox-group {
  margin-top: 6px;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.custom-checkbox-input:checked + .custom-checkbox-box {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.custom-checkbox-input:checked + .custom-checkbox-box::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 800;
}

.custom-checkbox-text {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.custom-checkbox-text strong {
  color: #0F172A;
}

/* Submit Button */
.btn-submit-project {
  width: 100%;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.90rem;
  font-weight: 700;
  height: 42px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(231, 25, 45, 0.28);
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-top: 4px;
}

.btn-submit-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(231, 25, 45, 0.40);
}

/* Contact Sidebar (Compact & Balanced) */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: rgba(231, 25, 45, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 25, 45, 0.07);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(231, 25, 45, 0.08);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.contact-card-text {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.contact-card-badge {
  display: none !important;
}

.contact-card-highlight {
  border-color: rgba(231, 25, 45, 0.25) !important;
  background: linear-gradient(145deg, rgba(231, 25, 45, 0.015) 0%, #FFFFFF 100%) !important;
}

.btn-discovery-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--brand-red);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-discovery-link:hover {
  color: var(--brand-red-hover);
  transform: translateX(3px);
}

/* Frequently Asked Questions (FAQ) Accordion (Compact) */
.contact-faq-wrap {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.contact-faq-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
}

.contact-faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  overflow: hidden;
  background: #F8FAFC;
  transition: all var(--transition-fast);
}

.contact-faq-item.is-open {
  background: #FFFFFF;
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 3px 12px rgba(231, 25, 45, 0.06);
}

.contact-faq-btn {
  width: 100%;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
  transition: color var(--transition-fast);
}

.contact-faq-btn:hover {
  color: var(--brand-red);
}

.contact-faq-btn .faq-icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
}

.contact-faq-panel {
  padding: 0 14px 10px;
  font-size: 0.80rem;
  color: #475569;
  line-height: 1.45;
  display: none;
}
}

.contact-faq-item.is-open .contact-faq-panel {
  display: block;
}

.contact-faq-panel p {
  margin: 0;
  font-size: 0.90rem;
  color: #64748B;
  line-height: 1.6;
}

/* Responsive Layout */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-form-wrap {
    padding: 28px 20px;
  }
  .service-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   19. Scroll Reveal Animations & Side Snap Navigation Indicator
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Right Side Section Snap Indicator */
.screen-snap-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: none !important;
}

@media (min-width: 1025px) and (min-height: 600px) {
  .screen-snap-nav {
    display: none !important;
  }
}

.snap-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 14px 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.snap-nav-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.snap-nav-dot:hover {
  background: #9ca3af;
  transform: scale(1.3);
}

.snap-nav-dot.is-active {
  width: 8px;
  height: 22px;
  border-radius: 9999px;
  background: var(--brand-red);
  box-shadow: 0 0 10px rgba(231, 25, 45, 0.5);
}

.snap-tooltip {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snap-nav-dot:hover .snap-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}



/* ==========================================================================
   19.5. Teacher Avatar Presentation Guide (Bottom-Left)
   - Coordinates with automated section-by-section scrolling
   - Beautiful Red & White brand aesthetic with animated pointer stick & cues
   ========================================================================== */
/* ==========================================================================
   19.5. BAADAM Guide — Premium Virtual Assistant & Interactive Tour (UI/UX Refined)
   - Unobtrusive compact floating launcher at bottom-right (58px)
   - Elevated, non-blocking 380px chat assistant panel
   - Clean, dynamically-positioned guided tour card
   - Dedicated multilingual controls (English | हिन्दी | ગુજરાતી)
   - Temporary, dismissible welcome introduction with full teacher avatar
   ========================================================================== */

/* Main Container Root */
.teacher-guide-widget {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #111827;
  user-select: none;
}

/* --------------------------------------------------------------------------
   STATE A & C & D: COMPACT FLOATING AVATAR LAUNCHER
   Fixed at bottom-right. Highly compact (58px) so it never covers content.
   -------------------------------------------------------------------------- */
.teacher-avatar-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(231, 25, 45, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(231, 25, 45, 0.15);
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 10001;
  animation: teacherLauncherFloat 4s ease-in-out infinite;
}

.teacher-avatar-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: #E7192D;
  box-shadow: 0 14px 30px rgba(231, 25, 45, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teacher-avatar-launcher:active {
  transform: translateY(0) scale(0.96);
}

.teacher-launcher-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #FFF5F5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Precise crop focusing on teacher's hair bun, glasses, face & red sweater */
.teacher-launcher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 24%;
  transform: scale(1.52);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.teacher-avatar-launcher:hover .teacher-launcher-img {
  transform: scale(1.6);
}

/* Online Status Dot Indicator */
.teacher-launcher-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
  z-index: 2;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle Hover Tooltip */
.teacher-launcher-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #111827;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.teacher-launcher-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #111827;
}

.teacher-avatar-launcher:hover .teacher-launcher-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes teacherLauncherFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* STATE C: LISTENING ANIMATION (Acoustic Red Wave Rings) */
.teacher-guide-widget.state-listening .teacher-avatar-launcher,
.teacher-avatar-launcher.is-listening {
  border-color: #E7192D;
  animation: teacherListeningPulse 1.4s infinite ease-out;
}

.teacher-guide-widget.state-listening .teacher-launcher-dot,
.teacher-avatar-launcher.is-listening .teacher-launcher-dot {
  background: #E7192D;
  box-shadow: 0 0 10px rgba(231, 25, 45, 0.9);
}

@keyframes teacherListeningPulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 25, 45, 0.6), 0 8px 24px rgba(0, 0, 0, 0.12); }
  60% { box-shadow: 0 0 0 16px rgba(231, 25, 45, 0), 0 8px 24px rgba(0, 0, 0, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(231, 25, 45, 0), 0 8px 24px rgba(0, 0, 0, 0.12); }
}

/* STATE D: SPEAKING ANIMATION (Green Glow & Pulse) */
.teacher-guide-widget.state-speaking .teacher-avatar-launcher,
.teacher-avatar-launcher.is-speaking,
.teacher-guide-widget.is-speaking .teacher-avatar-launcher {
  border-color: #10B981;
  animation: teacherSpeakingPulse 1.2s infinite ease-in-out;
}

@keyframes teacherSpeakingPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.7), 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.2), 0 12px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px) scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   STATE F & 3: COMPACT CHAT / ASSISTANT PANEL
   Opens cleanly above the launcher. 380px desktop width. Non-blocking.
   -------------------------------------------------------------------------- */
.teacher-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(600px, calc(100vh - 110px));
  background: #FFFFFF !important;
  border: 1px solid rgba(231, 25, 45, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(231, 25, 45, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  transform-origin: bottom right;
}

.teacher-chat-panel.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(0.96) !important;
  visibility: hidden !important;
}

/* Panel Header */
.teacher-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
  gap: 10px;
}

.teacher-chat-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-chat-avatar-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFF5F5;
  border: 1.5px solid rgba(231, 25, 45, 0.3);
  position: relative;
  flex-shrink: 0;
}

.teacher-chat-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 24%;
  transform: scale(1.5);
}

.teacher-chat-meta {
  display: flex;
  flex-direction: column;
}

.teacher-chat-name {
  font-size: 0.90rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.teacher-chat-name span {
  color: #E7192D;
}

.teacher-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #10B981;
  font-weight: 600;
}

.teacher-chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
}

/* Header Controls */
.teacher-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.teacher-header-btn {
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.18s ease;
  line-height: 1;
}

.teacher-header-btn:hover {
  background: #F3F4F6;
  color: #111827;
}

.teacher-header-btn.btn-tour-pill {
  background: rgba(231, 25, 45, 0.08);
  border: 1px solid rgba(231, 25, 45, 0.22);
  color: #E7192D;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill, 9999px);
  gap: 4px;
}

.teacher-header-btn.btn-tour-pill:hover {
  background: #E7192D;
  color: #FFFFFF;
  border-color: #E7192D;
}

.teacher-header-btn.btn-voice-pill {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill, 9999px);
  gap: 4px;
}

.teacher-header-btn.btn-voice-pill:hover {
  background: #059669;
  color: #FFFFFF;
}

.teacher-header-btn.btn-voice-pill.is-muted {
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #9CA3AF;
}

/* --------------------------------------------------------------------------
   CHAT CONVERSATION STREAM
   -------------------------------------------------------------------------- */
.teacher-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
  scroll-behavior: smooth;
}

.teacher-chat-body::-webkit-scrollbar {
  width: 4px;
}

.teacher-chat-body::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 4px;
}

/* Messages */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  font-size: 0.77rem;
  line-height: 1.45;
  animation: chatMsgFadeIn 0.22s ease-out;
}

@keyframes chatMsgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.msg-assistant {
  align-self: flex-start;
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  color: #1F2937;
  border-radius: 14px 14px 14px 2px;
  padding: 10px 12px;
}

.chat-msg.msg-user {
  align-self: flex-end;
  background: #E7192D;
  color: #FFFFFF;
  border-radius: 14px 14px 2px 14px;
  padding: 8px 12px;
}

.chat-msg-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #E7192D;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.chat-msg-text {
  margin: 0;
  word-break: break-word;
}

/* Voice notice banner inside assistant message */
.chat-voice-notice {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #991B1B;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.66rem;
  margin-top: 6px;
  line-height: 1.35;
}

/* Suggested Action Buttons */
.chat-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.chat-action-btn {
  background: #FFFFFF;
  border: 1px solid rgba(231, 25, 45, 0.25);
  color: #E7192D;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.chat-action-btn:hover {
  background: #E7192D;
  color: #FFFFFF;
  border-color: #E7192D;
}

/* Suggested Questions Section */
.chat-suggestions-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.chat-suggestions-title {
  font-size: 0.66rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-hint-chip {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.chat-hint-chip:hover {
  border-color: #E7192D;
  color: #E7192D;
  background: rgba(231, 25, 45, 0.04);
}

/* --------------------------------------------------------------------------
   CHAT INPUT BAR
   -------------------------------------------------------------------------- */
.teacher-chat-input-bar {
  padding: 10px 14px;
  background: #FFFFFF;
  border-top: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-chat-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #4B5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.teacher-chat-mic-btn:hover {
  background: #F3F4F6;
  color: #111827;
}

.teacher-chat-mic-btn.is-recording {
  background: #E7192D;
  color: #FFFFFF;
  border-color: #E7192D;
  animation: micRecordPulse 1s infinite alternate;
}

@keyframes micRecordPulse {
  0% { transform: scale(1); box-shadow: 0 0 6px rgba(231, 25, 45, 0.5); }
  100% { transform: scale(1.08); box-shadow: 0 0 14px rgba(231, 25, 45, 0.9); }
}

.teacher-chat-input {
  flex: 1;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.76rem;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.teacher-chat-input:focus {
  background: #FFFFFF;
  border-color: #E7192D;
  box-shadow: 0 0 0 2px rgba(231, 25, 45, 0.12);
}

.teacher-chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #E7192D;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: background 0.2s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.teacher-chat-send-btn:hover {
  background: #C41224;
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   4. GUIDED TOUR UI: COMPACT, DYNAMICALLY POSITIONED TOUR CARD
   Solid white, smaller heading, no transparent background, never covers content.
   -------------------------------------------------------------------------- */
.baadam-tour-card {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #E7192D;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.13), 0 4px 12px rgba(231, 25, 45, 0.08);
  padding: 14px 16px;
  z-index: 10002;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s ease, left 0.3s ease;
}

.baadam-tour-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  visibility: hidden;
}

/* Subtle Progress Bar atop Tour Card */
.baadam-tour-progress-bar-wrap {
  height: 3px;
  background: #F3F4F6;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.baadam-tour-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FF4D6D, #E7192D);
  width: 0%;
  transition: width 0.3s ease;
}

.baadam-tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.baadam-tour-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #E7192D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.baadam-tour-close-btn {
  background: transparent;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.85rem;
  line-height: 1;
}

.baadam-tour-close-btn:hover {
  color: #111827;
}

.baadam-tour-title {
  margin: 0 0 6px 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.baadam-tour-text {
  margin: 0 0 12px 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #4B5563;
  font-weight: 500;
}

.baadam-tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #F3F4F6;
  padding-top: 8px;
}

.baadam-tour-step-counter {
  font-size: 0.66rem;
  font-weight: 700;
  color: #6B7280;
  font-family: var(--font-mono, monospace);
}

.baadam-tour-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.baadam-tour-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.18s ease;
}

.baadam-tour-btn.btn-prev {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #4B5563;
}

.baadam-tour-btn.btn-prev:hover {
  background: #E5E7EB;
  color: #111827;
}

.baadam-tour-btn.btn-next {
  background: #E7192D;
  border: 1px solid #E7192D;
  color: #FFFFFF;
}

.baadam-tour-btn.btn-next:hover {
  background: #C41224;
  border-color: #C41224;
}

/* Subtle target element highlight during tour */
.baadam-tour-target-highlight {
  outline: 2px solid #E7192D !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 20px rgba(231, 25, 45, 0.28) !important;
  border-radius: 12px !important;
  transition: outline 0.3s ease, box-shadow 0.3s ease !important;
}

/* --------------------------------------------------------------------------
   STATE B & 2: FIRST-VISIT WELCOME INTRODUCTION
   Temporary full-body avatar (scaled down to 140px) with dismissible card.
   -------------------------------------------------------------------------- */
.teacher-welcome-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 10003;
  pointer-events: auto;
  animation: welcomeFadeIn 0.35s ease-out;
}

.teacher-welcome-overlay.is-hidden {
  display: none !important;
}

@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.teacher-welcome-card {
  width: 310px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border: 1.5px solid rgba(231, 25, 45, 0.25);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(231, 25, 45, 0.1);
  display: flex;
  flex-direction: column;
}

.teacher-welcome-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #E7192D;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.teacher-welcome-title {
  margin: 0 0 6px 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #111827;
}

.teacher-welcome-text {
  margin: 0 0 12px 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #4B5563;
}

.teacher-welcome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-welcome-start {
  flex: 1;
  background: #E7192D;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-welcome-start:hover {
  background: #C41224;
  transform: translateY(-1px);
}

.btn-welcome-skip {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-pill, 9999px);
  padding: 7px 12px;
  font-size: 0.70rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-welcome-skip:hover {
  background: #E5E7EB;
  color: #111827;
}

/* Scaled Full-Body Avatar (Only for Welcome or specific Explaining moment) */
.teacher-welcome-avatar-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  animation: welcomeAvatarBounce 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes welcomeAvatarBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --------------------------------------------------------------------------
   BACKWARD COMPATIBILITY SHIMS
   Keeps old IDs safe and non-blocking for any existing script calls.
   -------------------------------------------------------------------------- */
#teacherSpeechCard.legacy-hidden {
  display: none !important;
}

#teacherAvatarWrapper.legacy-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .teacher-avatar-launcher {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .teacher-chat-panel {
    bottom: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 400px;
    margin: 0 auto;
    max-height: calc(100vh - 96px);
  }

  .baadam-tour-card {
    width: calc(100vw - 28px);
    max-width: 340px;
  }

  .teacher-welcome-overlay {
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    justify-content: center;
  }

  .teacher-welcome-avatar-img {
    display: none; /* Hide large body on mobile to prevent blocking */
  }

  .teacher-welcome-card {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION SUPPORT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .teacher-avatar-launcher,
  .teacher-chat-panel,
  .baadam-tour-card,
  .teacher-welcome-overlay,
  .teacher-welcome-avatar-img {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   20. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  html:has(.screen-snap-nav), body.has-snap-nav {
    scroll-snap-type: none !important;
  }

  .hero-section,
  .radar-section,
  .services-section,
  .case-studies-section,
  .funnel-section {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
  }

  .cta-banner-section,
  .site-footer {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

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

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .cta-banner-content {
    grid-template-columns: 1fr;
  }

  .cta-banner-visual {
    justify-content: flex-start;
  }

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

  .service-detail-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 28px;
    max-height: 28px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
  }

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

  .nav-toggle:checked ~ .nav-menu {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

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

  .approach-flow {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner-card {
    padding: 40px 24px;
  }

  .hero-lens-circle {
    width: min(92vw, 390px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    padding: 24px 16px;
    border-width: 2px;
  }

  .hero-lens-headline {
    font-size: clamp(1.1rem, 4.6vw, 1.35rem);
    margin-bottom: 6px;
  }

  .hero-lime-tag {
    font-size: 0.85em;
    padding: 4px 14px;
    white-space: normal;
  }

  .hero-lens-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-bottom: 10px;
    max-width: 90%;
  }

  .hero-lens-actions {
    flex-direction: row;
    width: auto;
    gap: 8px;
  }

  .hero-btn-dark,
  .hero-btn-glass {
    width: auto;
    justify-content: center;
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }
}

/* ==========================================================================
   21. Accessibility: Prefers Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page-trans-overlay {
    display: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .tech-marquee-track {
    animation: none !important;
  }
}


/* ==========================================================================
   10.5. Our Approach Feature Section
   ========================================================================== */
.approach-section {
  background: #FCFCFA;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.approach-header-wrap {
  max-width: 900px;
  margin-bottom: 40px;
}

.approach-header-wrap .section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0D0E10;
  margin: 12px 0 16px 0;
}

.approach-lead-text {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #374151;
  font-weight: 500;
}

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

.approach-feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.approach-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 10px 28px rgba(231, 25, 45, 0.08);
}

.approach-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.approach-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #E7192D;
  background: rgba(231, 25, 45, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.approach-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(231, 25, 45, 0.08);
  color: #E7192D;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.approach-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0D0E10;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.approach-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6B7280;
  margin: 0;
}

.approach-device-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.device-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.device-pill svg {
  color: #E7192D;
}

@media (max-width: 820px) {
  .approach-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   21. Client Testimonial Section (Red & White Theme)
   ========================================================================== */
.testimonials-section {
  background: #FCFCFA;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 12px 32px rgba(231, 25, 45, 0.08);
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #E7192D;
  background: rgba(231, 25, 45, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.testimonial-quote {
  font-size: 0.96rem;
  line-height: 1.68;
  color: #374151;
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: normal;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #F3F4F6;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(231, 25, 45, 0.12), rgba(231, 25, 45, 0.22));
  color: #E7192D;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid rgba(231, 25, 45, 0.25);
  flex-shrink: 0;
}

.testimonial-author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.testimonial-author-role {
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 500;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .testimonial-card {
    padding: 24px 20px;
  }
}


/* ==========================================================================
   22. Circular Skills & Success Metrics Section (Red & White Theme)
   ========================================================================== */
.skills-metrics-section {
  background: #ffffff;
  padding: 40px 24px 70px;
  position: relative;
}

.skills-metrics-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  padding: clamp(36px, 4.5vw, 54px) clamp(24px, 3.5vw, 44px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
}

.skills-metrics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #E7192D, transparent);
  opacity: 0.85;
}

.skills-metrics-card:hover {
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 16px 44px rgba(231, 25, 45, 0.08);
}

.skills-gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.8vw, 36px);
  align-items: center;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  transition: transform var(--transition-fast);
}

.gauge-item:hover {
  transform: translateY(-3px);
}

.gauge-circle-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(231, 25, 45, 0.12);
  stroke-width: 6;
}

.gauge-bar {
  fill: none;
  stroke: #E7192D;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  filter: drop-shadow(0 0 5px rgba(231, 25, 45, 0.38));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.gauge-number-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gauge-percent {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7192D;
  margin-top: 18px;
  line-height: 1.35;
}

@media (max-width: 992px) {
  .skills-gauges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
}

@media (max-width: 520px) {
  .skills-gauges-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gauge-circle-wrap {
    width: 120px;
    height: 120px;
  }
}

/* =====================================================================
   Services Showcase Section (Next-Level Premium Red & White Edition)
   ===================================================================== */
.services-showcase-section {
  padding-top: 96px;
  padding-bottom: 44px;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f7f9fd 60%, #eef2f8 100%);
  position: relative;
  overflow: hidden;
}

/* Background ambient subtle mesh glow */
.services-showcase-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(231, 25, 45, 0.045) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.services-showcase-section .section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 44px);
  position: relative;
  z-index: 1;
}

.services-showcase-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

.services-showcase-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  color: #0b1528;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.services-showcase-subtitle {
  font-size: clamp(13px, 0.92vw, 14.5px);
  line-height: 1.48;
  color: #556270;
  margin: 0 auto 8px;
  max-width: 660px;
}

.services-accent-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.services-accent-svg {
  display: block;
}

.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Premium Card Architecture (Compact Small Edition) */
.service-showcase-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 15px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}

/* Dynamic Interactive Mouse-Follow Spotlight Effect */
.service-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(231, 25, 45, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.service-showcase-card:hover::before {
  opacity: 1;
}

/* Top Iridescent Crimson Accent Hairline */
.service-showcase-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #E7192D, transparent);
  opacity: 0;
  transform: scaleX(0.25);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 3;
}

.service-showcase-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Card Hover 3D Elevation */
.service-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07), 0 5px 14px rgba(231, 25, 45, 0.10);
  border-color: rgba(231, 25, 45, 0.32);
}

/* Monospace Index Corner Watermark */
.service-card-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  opacity: 0.6;
  transition: all 0.4s ease;
  z-index: 2;
}

.service-showcase-card:hover .service-card-num {
  color: #E7192D;
  opacity: 1;
  transform: translateY(-1px);
}

/* Multi-Layered Animated Icon Badge */
.service-badge-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  z-index: 2;
}

.service-badge-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1.5px solid rgba(231, 25, 45, 0.18);
  box-shadow: 0 3px 10px rgba(231, 25, 45, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase-card:hover .service-badge-circle {
  transform: scale(1.06);
  border-color: rgba(231, 25, 45, 0.45);
  box-shadow: 0 6px 16px rgba(231, 25, 45, 0.18), inset 0 2px 6px rgba(255, 255, 255, 1);
  background: linear-gradient(135deg, #fff5f6 0%, #ffe4e6 100%);
}

/* Ambient Orbiting Dashed Ring */
.service-badge-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.2px dashed rgba(231, 25, 45, 0.25);
  animation: badgeSpin 24s linear infinite;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

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

.service-showcase-card:hover .service-badge-ring {
  border-color: rgba(231, 25, 45, 0.55);
  animation-duration: 12s;
}

/* Floating Pulsing Dots */
.service-badge-dot-1 {
  position: absolute;
  top: 1px;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eb163c;
  box-shadow: 0 0 6px rgba(235, 22, 60, 0.5);
  animation: dotPulse 3s ease-in-out infinite alternate;
}

.service-badge-dot-2 {
  position: absolute;
  bottom: 2px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eb163c;
  box-shadow: 0 0 7px rgba(235, 22, 60, 0.5);
  animation: dotPulse 3s ease-in-out infinite alternate-reverse;
}

@keyframes dotPulse {
  0% { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(2px, -2px) scale(1.15); }
}

.service-card-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 3px rgba(231, 25, 45, 0.15));
}

.service-showcase-card:hover .service-card-icon {
  transform: scale(1.1) translateY(-1px);
}

/* Typography Hierarchy */
.service-card-title {
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 700;
  color: #E7192D;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.012em;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.service-showcase-card:hover .service-card-title {
  color: #cc1022;
  transform: translateY(-1px);
}

.service-card-text {
  font-size: 0.78rem;
  line-height: 1.42;
  color: #64748b;
  margin: 0;
  flex-grow: 1;
  transition: color 0.3s ease;
  z-index: 2;
}

.service-showcase-card:hover .service-card-text {
  color: #334155;
}

/* Interactive Explore Pill */
.service-card-action {
  margin-top: 10px;
  padding: 4px 12px 4px 11px;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(231, 25, 45, 0.04);
  border: 1px solid rgba(231, 25, 45, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E7192D;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.service-action-arrow {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  font-size: 0.80rem;
}

.service-showcase-card:hover .service-card-action {
  background: #E7192D;
  color: #ffffff;
  border-color: #E7192D;
  box-shadow: 0 3px 12px rgba(231, 25, 45, 0.25);
  transform: translateY(-1px);
}

.service-showcase-card:hover .service-action-arrow {
  transform: translateX(3px);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .services-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .services-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-showcase-card {
    padding: 16px 14px 14px;
  }
}
/* =====================================================================
   IT Company Contact Page Design System
   ===================================================================== */
/* ===============================================================
   Contact Hero Section (Exact Match to User Reference Mockup)
   =============================================================== */
/* ===============================================================
   Contact Hero Section (Compact & Sleek Alignment)
   =============================================================== */
.contact-page-hero {
  position: relative;
  background: #ffffff;
  padding-top: 84px;
  padding-bottom: 16px;
  padding-left: 24px !important;
  padding-right: 24px !important;
  overflow: hidden;
}

.contact-page .contact-page-hero {
  padding-top: 84px !important;
  padding-bottom: 16px !important;
}

.contact-page-hero .section-container {
  max-width: var(--container-max-width, 1280px) !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.contact-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  background: rgba(235, 22, 60, 0.04);
  border: 1px solid rgba(235, 22, 60, 0.18);
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #374151;
}

.contact-hero-heading {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0a1128;
  margin: 0;
}

.contact-hero-heading .heading-line-1,
.contact-hero-heading .heading-line-2 {
  white-space: nowrap !important;
  display: inline-block !important;
}

.contact-title-accent {
  width: 38px;
  height: 2.5px;
  background: #EB163C;
  border-radius: 999px;
  margin: 6px 0 8px 0;
}

.contact-hero-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4b5563;
  max-width: 520px;
  margin-bottom: 12px;
}

.contact-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C81E2E;
  color: #ffffff !important;
  font-family: var(--font-display, inherit);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(200, 30, 46, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background: #EB163C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(235, 22, 60, 0.32);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #111827 !important;
  font-family: var(--font-display, inherit);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  border-color: #EB163C;
  color: #EB163C !important;
  background: rgba(235, 22, 60, 0.03);
  transform: translateY(-2px);
}

/* Trust Bar with Vertical Dividers */
.contact-hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  width: 100%;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.hero-trust-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(235, 22, 60, 0.08);
  border: 1px solid rgba(235, 22, 60, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-trust-text {
  display: flex;
  flex-direction: column;
}

.hero-trust-text strong {
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.hero-trust-text span {
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.2;
}

.hero-trust-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Right Visual Stage */
.contact-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-visual-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: visible;
}

.contact-workspace-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.06));
}

@media (max-width: 768px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-hero-heading .heading-line-1,
  .contact-hero-heading .heading-line-2 {
    white-space: normal !important;
  }
  .contact-hero-trust-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-trust-divider {
    display: none;
  }
  .hero-trust-item {
    flex: 1 1 160px;
  }
}

@media (max-width: 640px) {
  .contact-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
  }
  .contact-hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================================
   Homepage Featured Portfolio Showcase Deck (Slide 04)
   ===================================================================== */
.portfolio-showcase-section {
  position: relative;
  background-color: #ffffff;
  color: #111827;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: calc(var(--header-height, 76px) + 8px) clamp(20px, 3vw, 40px) 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal;
}

.portfolio-showcase-section .section-container {
  height: 100%;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.portfolio-header-left {
  max-width: 620px;
}

.portfolio-kicker-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 25, 45, 0.08);
  border: 1px solid rgba(231, 25, 45, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7192D;
  margin-bottom: 8px;
}

.portfolio-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 6px #E7192D;
}

.portfolio-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #111827;
  margin: 0;
}

.portfolio-header-right {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.portfolio-subtext {
  font-size: clamp(0.82rem, 0.9vw, 0.92rem);
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.btn-all-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #E7192D;
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(231, 25, 45, 0.35);
  transition: all var(--transition-fast);
}

.btn-all-portfolio:hover {
  background: #cc1022;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(231, 25, 45, 0.5);
  color: #ffffff;
}

.btn-all-portfolio .btn-arrow-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E7192D;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform var(--transition-normal);
}

.btn-all-portfolio:hover .btn-arrow-circle {
  transform: rotate(45deg);
}

/* 3-Card Deck */
.portfolio-showcase-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  max-width: 1080px;
  margin: auto auto;
  width: 100%;
  align-items: start;
  justify-content: center;
  flex-grow: 0;
}

.portfolio-feature-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  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.35s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 345px;
  margin: 0 auto;
}

.portfolio-feature-card:hover {
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 6px 20px rgba(231, 25, 45, 0.09);
  transform: translateY(-4px);
}

.portfolio-feature-card:hover .feature-card-title {
  color: #E7192D;
}

.portfolio-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(231, 25, 45, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.portfolio-feature-card:hover::before {
  opacity: 1;
}

.feature-card-media-wrap {
  position: relative;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.feature-card-chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.chrome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chrome-dot-red { background: #ef4444; }
.chrome-dot-yellow { background: #f59e0b; }
.chrome-dot-green { background: #10b981; }

.chrome-url-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #94a3b8;
  background: #f8fafc;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.feature-media-overflow {
  height: clamp(130px, 14vh, 155px);
  overflow: hidden;
  position: relative;
}

.feature-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-feature-card:hover .feature-media-img {
  transform: scale(1.07);
}

.feature-live-pill {
  position: absolute;
  bottom: 8px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(17, 24, 39, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.live-dot-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E7192D;
  box-shadow: 0 0 8px #E7192D;
  animation: beaconPulse 1.8s infinite;
}

.beacon-emerald {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.beacon-blue {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

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

.feature-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.feature-meta-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.feature-kicker-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E7192D;
}

.feature-kicker-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s ease;
}

.feature-card-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  gap: 6px;
  margin-top: 4px;
}

.feature-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.feature-tech-pill {
  background: #f1f5f9;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.feature-action-btn {
  display: none !important;
}

@media (max-width: 1024px) {
  .portfolio-showcase-section {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
    padding: 80px 20px;
  }
  .portfolio-showcase-header {
    flex-direction: column;
    gap: 16px;
  }
  .portfolio-showcase-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .portfolio-showcase-deck {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


.feature-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(231, 25, 45, 0.15), transparent 40%, rgba(231, 25, 45, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.portfolio-feature-card:hover .feature-card-glow {
  opacity: 1;
}

.feature-live-pill-emerald .live-dot-beacon {
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
}

.feature-live-pill-blue .live-dot-beacon {
  background: #3b82f6 !important;
  box-shadow: 0 0 8px #3b82f6 !important;
}

.feature-btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.feature-action-btn:hover .feature-btn-arrow {
  transform: translateX(3px);
}


/* ===============================================================
   About Us Hero Section (Clean Mockup Match & Compact Alignment)
   =============================================================== */
.about-page-hero {
  position: relative;
  background: #ffffff;
  padding-top: 84px;
  padding-bottom: 16px;
  padding-left: 24px;
  padding-right: 24px;
  overflow: hidden;
}

.about-page .about-page-hero {
  padding-top: 84px !important;
  padding-bottom: 16px !important;
}

.about-page-hero .section-container {
  max-width: var(--container-max-width, 1280px) !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  background: rgba(235, 22, 60, 0.04);
  border: 1px solid rgba(235, 22, 60, 0.18);
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #374151;
}

.about-hero-heading {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0a1128;
  margin: 0;
}

.about-title-accent {
  width: 38px;
  height: 2.5px;
  background: #EB163C;
  border-radius: 999px;
  margin: 6px 0 8px 0;
}

.about-hero-subhead {
  font-family: var(--font-display, inherit);
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.about-hero-lead {
  font-size: 0.81rem;
  line-height: 1.45;
  color: #4b5563;
  max-width: 520px;
  margin-bottom: 12px;
}

/* Trust / Stats Bar with Dividers matching mockup */
.about-hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  width: 100%;
}

.about-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.about-trust-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(235, 22, 60, 0.08);
  border: 1px solid rgba(235, 22, 60, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.about-trust-text {
  display: flex;
  flex-direction: column;
}

.about-trust-text strong {
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.about-trust-text span {
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.2;
}

.about-trust-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Right Visual Stage */
.about-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-visual-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.about-office-showcase-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  background: transparent !important;
}

@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-hero-trust-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .about-trust-divider {
    display: none;
  }
  .about-trust-item {
    flex: 1 1 160px;
  }
}

@media (max-width: 640px) {
  .about-hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   About Page - Compact Refinement & Unified Spacing System
   ========================================================================== */
.about-page .section-pad {
  padding: 24px 24px !important;
}

.about-page .section-header {
  margin-bottom: 16px !important;
}

.about-page .section-heading {
  font-size: clamp(1.6rem, 2.1vw, 2.05rem) !important;
  margin-bottom: 6px !important;
}

.about-page .section-description {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  max-width: 680px;
  margin: 0 auto;
}

/* 1. What We Do */
.about-page .about-section {
  padding: 24px 24px !important;
}

.about-page .about-grid {
  gap: 28px;
}

.about-page .about-text-col .section-heading {
  margin-bottom: 10px;
}

.about-page .about-description {
  font-size: 0.84rem;
  line-height: 1.48;
  margin-bottom: 10px;
}

.about-page .about-visual-card {
  border-radius: 14px;
}

.about-page .about-office-img {
  height: 250px;
}

/* 2. Skills & Metrics Gauges */
.about-page .skills-metrics-section {
  padding: 10px 24px 24px !important;
}

.about-page .skills-metrics-card {
  padding: 16px 18px !important;
  border-radius: 16px !important;
}

.about-page .skills-gauges-grid {
  gap: 14px !important;
}

.about-page .gauge-circle-wrap {
  width: 86px !important;
  height: 86px !important;
}

.about-page .gauge-percent {
  font-size: 1.25rem !important;
}

.about-page .gauge-label {
  font-size: 0.78rem !important;
  margin-top: 6px !important;
}

/* 3. Our Approach */
.about-page .approach-section {
  padding: 24px 24px !important;
}

.about-page .approach-header-wrap {
  margin-bottom: 14px !important;
}

.about-page .approach-header-wrap .section-heading {
  font-size: clamp(1.6rem, 2.1vw, 2.05rem) !important;
  margin: 6px 0 8px 0 !important;
}

.about-page .approach-lead-text {
  font-size: 0.84rem !important;
  line-height: 1.48 !important;
}

.about-page .approach-cards-grid {
  gap: 12px !important;
}

.about-page .approach-feature-card {
  padding: 14px 16px !important;
  border-radius: 12px !important;
}

.about-page .approach-card-header {
  margin-bottom: 8px !important;
}

.about-page .approach-card-title {
  font-size: 0.98rem !important;
  margin-bottom: 4px !important;
}

.about-page .approach-card-desc {
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
}

/* 4. Principles & Capabilities */
.about-page .stats-section {
  padding: 24px 24px !important;
}

.about-page .capabilities-grid {
  gap: 12px !important;
}

.about-page .capability-item {
  padding: 14px 14px !important;
  border-radius: 12px !important;
}

.about-page .capability-icon-badge {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(231, 25, 45, 0.2) !important;
  color: #E7192D !important;
  box-shadow: 0 3px 10px rgba(231, 25, 45, 0.08) !important;
  margin-bottom: 8px !important;
  display: grid !important;
  place-items: center !important;
  transition: all var(--transition-fast) !important;
}

.about-page .capability-icon-badge svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #E7192D !important;
}

.about-page .capability-item:hover .capability-icon-badge {
  border-color: rgba(231, 25, 45, 0.45) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%) !important;
  box-shadow: 0 5px 14px rgba(231, 25, 45, 0.16) !important;
  transform: scale(1.06) !important;
}

.about-page .capability-title {
  font-size: 0.92rem !important;
  margin-bottom: 4px !important;
}

.about-page .capability-desc {
  font-size: 0.77rem !important;
  line-height: 1.42 !important;
}

/* 5. Team Leadership */
.about-page .team-section {
  padding: 24px 24px !important;
}

.about-page .team-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .about-page .team-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .about-page .team-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

.about-page .team-card {
  border-radius: 12px !important;
}

.about-page .team-card-image-wrap {
  height: 210px !important;
}

.about-page .team-card-content {
  padding: 12px 14px !important;
}

.about-page .team-card-name {
  font-size: 1.02rem !important;
  margin-bottom: 2px !important;
}

.about-page .team-card-role {
  font-size: 0.70rem !important;
  margin-bottom: 4px !important;
}

.about-page .team-card-desc {
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
}

/* 6. Testimonials */
.about-page .testimonials-section {
  padding: 24px 24px !important;
}

.about-page .testimonials-grid {
  gap: 14px !important;
  margin-top: 16px !important;
}

.about-page .testimonial-card {
  padding: 16px 18px !important;
  border-radius: 12px !important;
}

.about-page .testimonial-header {
  margin-bottom: 8px !important;
}

.about-page .testimonial-stars {
  font-size: 0.84rem !important;
}

.about-page .testimonial-quote {
  font-size: 0.81rem !important;
  line-height: 1.46 !important;
  margin-bottom: 10px !important;
}

.about-page .testimonial-author-wrap {
  gap: 8px !important;
  padding-top: 10px !important;
}

.about-page .testimonial-avatar {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.78rem !important;
}

.about-page .testimonial-name {
  font-size: 0.84rem !important;
}

.about-page .testimonial-meta {
  font-size: 0.68rem !important;
}

/* ===============================================================
   Portfolio Hero Section (Exact Match to User Reference Mockup)
   =============================================================== */
.portfolio-page-hero {
  position: relative;
  background: #ffffff;
  padding-top: 104px !important;
  padding-bottom: 0px !important;
  padding-left: 24px;
  padding-right: 24px;
  overflow: hidden;
}

/* Compact Portfolio Page Layout (Matching About & Services Pages) */
.portfolio-page .portfolio-page-hero {
  padding-top: 104px !important;
  padding-bottom: 0px !important;
}

.portfolio-page .portfolio-hero-grid {
  align-items: center !important;
  gap: clamp(20px, 3vw, 36px) !important;
}

.portfolio-page .portfolio-hero-heading {
  font-size: clamp(1.75rem, 2.4vw, 2.3rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 10px !important;
}

.portfolio-page .portfolio-hero-desc {
  font-size: 0.84rem !important;
  line-height: 1.48 !important;
  max-width: 520px !important;
  margin-bottom: 12px !important;
}

.portfolio-page .portfolio-hero-actions {
  margin-bottom: 12px !important;
}

.portfolio-page .portfolio-hero-trust-bar {
  padding-top: 12px !important;
  gap: 16px !important;
}

.portfolio-page .portfolio-trust-item {
  gap: 8px !important;
}

.portfolio-page .portfolio-trust-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.portfolio-page .portfolio-trust-text strong {
  font-size: 0.82rem !important;
}

/* Compact Bento Grid on Right */
.portfolio-page .portfolio-bento-grid {
  max-width: 410px !important;
  gap: 8px !important;
}

.portfolio-page .bento-row-bottom {
  gap: 8px !important;
}

.portfolio-page .bento-card {
  border-radius: 14px !important;
}

.portfolio-page .bento-card-top .bento-card-img {
  height: 160px !important;
  max-height: 160px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
}

.portfolio-page .bento-row-bottom .bento-card-img {
  height: 130px !important;
  max-height: 130px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
}

/* Compact Filter Section */
.portfolio-page #portfolio-filters.section-pad,
.portfolio-page #portfolio-filters {
  padding-top: 8px !important;
  padding-bottom: 30px !important;
}

.portfolio-page .portfolio-filter-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 8px !important;
  margin-bottom: 24px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.portfolio-page .portfolio-filter-bar::-webkit-scrollbar {
  display: none !important;
}

.portfolio-page .portfolio-filter-btn {
  font-size: 0.76rem !important;
  padding: 6px 14px !important;
}

/* Compact Category Headers */
.portfolio-page .portfolio-category-section {
  margin-bottom: 36px !important;
}

.portfolio-page .category-section-header {
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
  gap: 12px !important;
}

.portfolio-page .category-heading {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem) !important;
}

.portfolio-page .category-sub {
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  max-width: 720px !important;
}

.portfolio-page .kicker-capsule {
  font-size: 0.68rem !important;
  padding: 4px 10px !important;
}

.portfolio-page .category-count-badge {
  font-size: 0.72rem !important;
  padding: 4px 10px !important;
}

/* Compact Project Grid & Cards */
.portfolio-page .portfolio-grid {
  gap: 16px !important;
}

.portfolio-page .portfolio-card {
  border-radius: 14px !important;
}

.portfolio-page .portfolio-card-media {
  height: 165px !important;
}

.portfolio-page .portfolio-card-body {
  padding: 12px 14px 14px !important;
}

.portfolio-page .portfolio-card-kicker {
  font-size: 0.64rem !important;
  margin-bottom: 4px !important;
}

.portfolio-page .portfolio-card-title {
  font-size: 1.02rem !important;
  margin-bottom: 4px !important;
  line-height: 1.25 !important;
}

.portfolio-page .portfolio-card-desc {
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
  -webkit-line-clamp: 2 !important;
}

.portfolio-page .portfolio-industry-badge {
  font-size: 0.68rem !important;
  padding: 4px 8px !important;
  top: 10px !important;
  left: 10px !important;
}

.portfolio-page .portfolio-tag {
  font-size: 0.68rem !important;
  padding: 3px 8px !important;
}

.portfolio-page .portfolio-card-tags {
  gap: 6px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* Compact Bottom CTA Banner */
.portfolio-page .cta-banner-section {
  padding: 24px 24px 32px !important;
}

.portfolio-page .cta-banner-card {
  padding: 28px 24px !important;
  border-radius: 16px !important;
}

.portfolio-page .cta-banner-heading {
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  margin-bottom: 8px !important;
}

.portfolio-page .cta-banner-desc {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  margin-bottom: 16px !important;
}

.portfolio-page-hero .section-container {
  max-width: var(--container-max-width, 1280px) !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.portfolio-hero-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: clamp(28px, 4vw, 52px) !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.portfolio-hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.portfolio-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  background: rgba(235, 22, 60, 0.04) !important;
  border: 1px solid rgba(235, 22, 60, 0.18) !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.06em !important;
  font-weight: 700 !important;
  color: #374151 !important;
}

.portfolio-hero-heading {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif) !important;
  font-size: clamp(2rem, 3.2vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #0a1128 !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}

.portfolio-hero-heading .heading-line-1,
.portfolio-hero-heading .heading-line-2 {
  white-space: nowrap !important;
  display: inline-block !important;
}

.portfolio-hero-desc {
  font-size: clamp(0.94rem, 1.05vw, 1.04rem) !important;
  line-height: 1.62 !important;
  color: #4b5563 !important;
  max-width: 550px !important;
  margin-bottom: 18px !important;
}

.portfolio-hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  margin-bottom: 18px !important;
}

.btn-underline-link {
  font-family: var(--font-display, inherit) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #0a1128 !important;
  text-decoration: none !important;
  position: relative !important;
  padding-bottom: 4px !important;
  display: inline-block !important;
  transition: color 0.2s ease !important;
}

.btn-underline-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: #EB163C !important;
  border-radius: 999px !important;
  transition: transform 0.25s ease !important;
}

.btn-underline-link:hover {
  color: #EB163C !important;
}

.btn-underline-link:hover::after {
  transform: scaleX(1.08) !important;
}

/* Capabilities Bar with Dividers matching mockup */
.portfolio-hero-trust-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: clamp(16px, 2.4vw, 32px) !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(226, 232, 240, 0.85) !important;
  width: 100% !important;
}

.portfolio-trust-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
}

.portfolio-trust-icon {
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.portfolio-trust-text strong {
  font-family: var(--font-display, inherit) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #0a1128 !important;
  white-space: nowrap !important;
}

.portfolio-trust-divider {
  width: 1px !important;
  height: 24px !important;
  background: #d1d5db !important;
  flex: 0 0 1px !important;
  margin: 0 4px !important;
}

/* Right Visual Stage & Bento Grid (3 Separate Mockup Images) */
.portfolio-hero-visual {
  position: relative !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.portfolio-bento-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 410px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.bento-card {
  position: relative !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bento-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 32px rgba(231, 25, 45, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

.bento-card-top {
  width: 100% !important;
}

.bento-card-top .bento-card-img {
  height: 160px !important;
  max-height: 160px !important;
  object-fit: cover !important;
}

.bento-row-bottom {
  display: flex !important;
  gap: 8px !important;
  width: 100% !important;
}

.bento-card-phone {
  flex: 0 0 calc(40% - 4px) !important;
  width: calc(40% - 4px) !important;
}

.bento-card-web {
  flex: 1 1 calc(60% - 4px) !important;
  width: calc(60% - 4px) !important;
}

.bento-row-bottom .bento-card-img {
  height: 130px !important;
  max-height: 130px !important;
  object-fit: cover !important;
}

.bento-card-img {
  width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 14px !important;
}

@media (max-width: 1024px) {
  .portfolio-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .portfolio-hero-heading .heading-line-1,
  .portfolio-hero-heading .heading-line-2 {
    white-space: normal !important;
  }
  .portfolio-hero-trust-bar {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }
  .portfolio-trust-divider {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .portfolio-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .portfolio-hero-trust-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Pure Hero Images (No card background, enlarged slightly) */
.about-visual-stage,
.portfolio-visual-stage,
.contact-visual-stage {
  position: relative !important;
  width: 100% !important;
  max-width: 580px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.about-office-showcase-img {
  width: 100% !important;
  max-width: 580px !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09) !important;
  background: transparent !important;
}

.contact-workspace-img {
  width: 100% !important;
  max-width: 580px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
  background: transparent !important;
}

/* =====================================================================
   Teacher Avatar Bottom Clearance on Homepage & Contact Desktop Heroes
   ===================================================================== */
@media (min-width: 992px) {
  .hero-bottom-strip,
  .services-stepper-bar,
  .case-card-footer,
  .contact-hero-trust-bar {
    padding-left: 0 !important;
    padding-right: clamp(155px, 12vw, 190px) !important;
  }
}


/* =====================================================================
   Studio Location Interactive Map Section
   ===================================================================== */
.contact-map-section {
  padding: 24px 0 32px !important;
  background: #ffffff;
  position: relative;
}

.contact-map-section .section-container {
  max-width: var(--container-max-width, 1280px);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}

.map-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

.map-section-header .kicker-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 25, 45, 0.06);
  border: 1px solid rgba(231, 25, 45, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.map-section-header .section-heading {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 6px;
}

.map-section-header .section-description {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

.contact-map-frame-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  background: 
    radial-gradient(circle at 75% 45%, rgba(231, 25, 45, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    #F8FAFC;
  background-size: 100% 100%, 36px 36px, 36px 36px, 100% 100%;
}

.contact-map-iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
}

.map-location-card {
  position: absolute;
  top: 24px;
  left: 24px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
  z-index: 5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.map-card-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(231, 25, 45, 0.08);
  border: 1px solid rgba(231, 25, 45, 0.18);
  color: #E7192D;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.map-card-name {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
}

.map-card-address {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

.map-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.82rem;
}

.map-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.map-rating-score {
  font-weight: 700;
  color: #1e293b;
}

.map-rating-count {
  color: #64748b;
  font-size: 0.78rem;
}

.map-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-map-open {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E7192D;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-sans, inherit);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(231, 25, 45, 0.28);
}

.btn-map-open:hover {
  background: #C81E2E;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(231, 25, 45, 0.38);
}

.btn-map-directions {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #E7192D;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-map-directions:hover {
  background: rgba(231, 25, 45, 0.05);
  border-color: #E7192D;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .map-location-card {
    position: static;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .contact-map-iframe {
    height: 380px;
  }
}

/* ==========================================================================
   22. Dedicated Service Detail Pages Framework
   Clean, modern, premium IT company aesthetic matching Baadam brand identity
   ========================================================================== */

/* Breadcrumb Navigation */
.service-breadcrumb-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px !important;
  position: relative;
  z-index: 10;
  margin-top: var(--header-height);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb-back-link {
  display: none !important;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-fog);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--brand-red);
}

.breadcrumb-item.active {
  color: var(--text-pure);
  font-weight: 600;
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Service Detail Hero Section */
.service-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  padding: 24px 24px 28px !important;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.service-hero-content .kicker-capsule {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 3px 12px;
  font-size: 0.7rem;
}

.service-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin: 0;
}

.service-hero-desc {
  font-size: 0.88rem;
  color: var(--text-fog);
  line-height: 1.5;
  max-width: 540px;
  margin: 0;
}

.service-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.service-hero-actions .btn-pill {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.service-trust-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.service-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-chalk);
}

.service-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 6px rgba(231, 25, 45, 0.6);
}

/* Service Hero Visual Frame */
.service-hero-visual {
  position: relative;
}

.service-preview-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.preview-chrome-bar {
  background: #f8fafc;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
}

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

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dot.red { background: #ff5f56; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #27c93f; }

.preview-url-pill {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}

.preview-image-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-floating-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(13, 14, 16, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24C875;
  box-shadow: 0 0 8px rgba(36, 200, 117, 0.9);
}

/* Service Introduction Section */
.service-intro-section {
  background: #ffffff;
  padding: 28px 24px 32px !important;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.service-intro-left .section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin-top: 6px;
}

.service-intro-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-fog);
  line-height: 1.55;
}

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

.intro-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.intro-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-red-border);
  box-shadow: 0 12px 32px rgba(231, 25, 45, 0.08);
}

.pillar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Service Deliverables (What We Deliver - 6 Cards) */
.service-deliverables-section {
  background: var(--bg-surface);
  padding: 28px 24px 32px !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-editorial-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.section-editorial-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin: 6px 0 8px;
  line-height: 1.2;
}

.section-editorial-header .section-subtext {
  font-size: 0.88rem;
  color: var(--text-fog);
  line-height: 1.45;
  margin: 0;
}

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

.deliverable-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.deliverable-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(231, 25, 45, 0.4);
  box-shadow: 0 16px 40px rgba(231, 25, 45, 0.08);
}

.deliverable-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.deliverable-feature-card:hover .deliverable-icon-wrap {
  transform: scale(1.08);
  background: rgba(231, 25, 45, 0.14);
}

.deliverable-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
  line-height: 1.3;
}

.deliverable-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Why Choose Baadam Section */
.service-why-section {
  background: #ffffff;
  padding: 28px 24px 32px !important;
}

.why-baadam-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.why-baadam-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-normal);
  position: relative;
}

.why-baadam-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-red);
  box-shadow: 0 12px 32px rgba(231, 25, 45, 0.08);
}

.why-card-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-red);
  background: var(--brand-red-light);
  border: 1px solid var(--brand-red-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  align-self: flex-start;
}

.why-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.3;
}

.why-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Service Process Section (6 Steps Timeline) */
.service-process-section {
  background: var(--bg-surface);
  padding: 28px 24px 32px !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.process-step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

.process-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.process-step-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--brand-red);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.process-step-order {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #e2e8f0;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.process-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Technologies Section */
.service-tech-section {
  background: #ffffff;
  padding: 28px 24px 32px !important;
}

.tech-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.tech-badge-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.tech-badge-item:hover {
  border-color: var(--brand-red);
  box-shadow: 0 8px 24px rgba(231, 25, 45, 0.08);
  transform: translateY(-2px);
}

.tech-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tech-badge-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.2;
}

.tech-badge-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Related Projects Section on Service Pages */
.service-projects-section {
  background: var(--bg-surface);
  padding: 28px 24px 32px !important;
  border-top: 1px solid var(--border-subtle);
}

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

.service-project-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 12px 32px rgba(231, 25, 45, 0.1);
}

.service-project-media {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.service-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-project-card:hover .service-project-img {
  transform: scale(1.05);
}

.service-project-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-project-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.service-project-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.service-project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
}

.service-project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.service-project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-chalk);
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.service-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: gap var(--transition-fast);
}

.service-project-card:hover .service-project-link {
  gap: 10px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-pillars-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-baadam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-deliverables-grid,
  .why-baadam-grid,
  .process-timeline-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .service-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .service-hero-actions .btn-pill {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   23. Dedicated Project Detail Pages & Portfolio Card Action Row
   ========================================================================== */

/* Portfolio Grid Card Action Button (Removed in favor of full card click) */
.portfolio-card-actions {
  display: none !important;
}

.btn-portfolio-view {
  display: none !important;
}

.btn-portfolio-view:hover {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 25, 45, 0.28);
}

.btn-portfolio-view .btn-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-portfolio-view:hover .btn-arrow-circle {
  background: #FFFFFF;
  color: var(--brand-red);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Dedicated Project Detail Page Layout (.project-detail-page)
   -------------------------------------------------------------------------- */
.project-detail-page {
  background-color: #FAFAFA;
  color: var(--text-pure);
  min-height: 100vh;
}

/* Hide teacher avatar on project detail pages so it does not block reading */
.project-detail-page .teacher-guide-widget {
  display: none !important;
}

/* Project Hero Header */
.project-page-hero {
  padding-top: 40px;
  padding-bottom: 56px;
  background: radial-gradient(100% 120% at 50% 0%, rgba(231, 25, 45, 0.035) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.project-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-case-badge {
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(231, 25, 45, 0.25);
}

.project-industry-badge {
  background: #FFFFFF;
  color: #374151;
  border: 1px solid #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin-bottom: 14px;
}

.project-hero-kicker {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  color: #475569;
  max-width: 860px;
  margin-bottom: 24px;
}

/* Hashtags Cloud */
.project-hashtags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.project-hashtag-pill {
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.project-hashtag-pill:hover {
  background: rgba(231, 25, 45, 0.06);
  border-color: rgba(231, 25, 45, 0.35);
  color: var(--brand-red);
  transform: translateY(-1px);
}

/* Action Header Row with Visit Project Button */
.project-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-visit-project {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #E7192D 0%, #C91425 100%);
  color: #FFFFFF !important;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(231, 25, 45, 0.32);
  transition: all var(--transition-fast);
}

.btn-visit-project:hover {
  background: linear-gradient(135deg, #F0283D 0%, #D41729 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(231, 25, 45, 0.45);
}

.btn-discuss-project {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: #1E293B !important;
  border: 1px solid #CBD5E1;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-discuss-project:hover {
  background: #FFF5F5;
  border-color: var(--brand-red);
  color: var(--brand-red) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(231, 25, 45, 0.12);
}

/* --------------------------------------------------------------------------
   CMS Portfolio Field Layout Extensions (Matching CMS Schema)
   -------------------------------------------------------------------------- */
.project-cms-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.035);
}

.cms-spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #EDF2F7;
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.cms-spec-item:hover {
  background: #FFFFFF;
  border-color: rgba(231, 25, 45, 0.3);
  box-shadow: 0 4px 16px rgba(231, 25, 45, 0.06);
  transform: translateY(-2px);
}

.cms-spec-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.cms-spec-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.cms-spec-link {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.cms-spec-link:hover {
  color: var(--brand-red-hover);
  text-decoration: underline;
}

/* Multi-Image Visual Stage Section */
.project-stage-section {
  padding: 40px 0 60px;
  background: #FAFAFA;
}

.project-stage-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-stage-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #FFFFFF;
}

.project-stage-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

.project-status-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.project-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* Secondary Multi-Image Gallery */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.project-gallery-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #0F172A;
  height: 320px;
}

.project-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0.96;
}

.project-gallery-card:hover .project-gallery-img {
  transform: scale(1.04);
  opacity: 1;
}

.gallery-caption-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Project Story Section (Challenge vs Solution) */
.project-story-section {
  padding: 70px 0 80px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.project-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.project-story-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  position: relative;
  transition: all 0.25s ease;
}

.project-story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.challenge-card {
  border-left: 4px solid var(--brand-red);
  background: linear-gradient(145deg, rgba(231, 25, 45, 0.015) 0%, #FFFFFF 100%);
}

.solution-card {
  border-left: 4px solid #10B981;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.015) 0%, #FFFFFF 100%);
}

.story-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.challenge-card .story-card-kicker {
  color: var(--brand-red);
}

.solution-card .story-card-kicker {
  color: #059669;
}

.story-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.story-card-body {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.7;
}

/* Key Capabilities & Architecture Modules */
.project-features-section {
  padding: 80px 0;
  background: #FAFAFA;
}

.section-head-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.section-head-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 12px;
}

.section-head-sub {
  font-size: 0.96rem;
  color: #64748B;
  line-height: 1.65;
}

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

.project-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.project-feature-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(231, 25, 45, 0.09);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(231, 25, 45, 0.08);
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.feature-card-text {
  font-size: 0.94rem;
  color: #64748B;
  line-height: 1.65;
}

/* Impact & Technology Stack Section */
.project-impact-section {
  padding: 70px 0 80px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
}

.project-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.impact-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.impact-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.impact-card-text {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.65;
  margin-bottom: 24px;
}

.portfolio-outcome-banner {
  margin-top: auto;
  padding: 18px 22px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 14px;
}

.project-tech-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tech-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.project-tech-badge:hover {
  background: #FFFFFF;
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 25, 45, 0.15);
}

/* Project Prev / Next Pagination Bar */
.project-navigation-bar {
  padding: 28px 0;
  background: #FAFAFA;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.project-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  transition: all var(--transition-fast);
}

.nav-project-btn:hover {
  background: var(--brand-red);
  color: #FFFFFF !important;
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(231, 25, 45, 0.25);
}

.nav-project-btn.nav-all-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

.nav-project-btn.nav-all-btn:hover {
  background: #0F172A;
  color: #FFFFFF !important;
  border-color: #0F172A;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

/* Responsive Styles for Project Detail Page */
@media (max-width: 992px) {
  .project-cms-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .project-story-grid {
    grid-template-columns: 1fr;
  }
  .project-features-grid {
    grid-template-columns: 1fr;
  }
  .project-impact-grid {
    grid-template-columns: 1fr;
  }
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-cms-spec-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .project-nav-inner {
    flex-direction: column;
    gap: 12px;
  }
  .nav-project-btn {
    width: 100%;
    justify-content: center;
  }
  .project-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-visit-project,
  .btn-discuss-project {
    justify-content: center;
    width: 100%;
  }
}

/* =====================================================================
   REFINED PROJECT DETAIL PAGE STYLING (HIGH-END SOFTWARE ENGINEERING SPEC)
   ===================================================================== */

/* CRITICAL UI/UX FIX: Ensure all cards and sections are immediately visible */
.project-detail-page .scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  will-change: auto !important;
}

/* Perfect Header Clearance for Breadcrumb Navigation */
.project-detail-page .service-breadcrumb-nav {
  margin-top: 96px !important;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

/* Section Spacing & Dividers */
.project-section-pad {
  padding: 56px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.project-section-alt {
  background: #F8FAFC;
}

.project-hero-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tighten Stage & Story Whitespace */
.project-stage-section {
  padding: 24px 0 40px !important;
}

.project-story-section {
  padding: 44px 0 52px !important;
}

/* Section Header Typography */
.section-head-center {
  text-align: center;
  margin-bottom: 36px;
}

.section-head-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: rgba(231, 25, 45, 0.08);
  border: 1px solid rgba(231, 25, 45, 0.18);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-head-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.section-head-sub {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #64748B;
  max-width: 640px;
  margin: 0 auto;
}

/* =====================================================================
   1. KEY FEATURES GRID (Refined Card Architecture)
   ===================================================================== */
.project-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 14px 32px rgba(231, 25, 45, 0.08);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(231, 25, 45, 0.07);
  border: 1px solid rgba(231, 25, 45, 0.16);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card-title {
  font-family: var(--font-sans);
  font-size: 1.10rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.feature-card-text {
  font-size: 0.90rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* =====================================================================
   2. CATEGORIZED TECHNOLOGY MATRIX (Bento Grid)
   ===================================================================== */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-matrix-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.tech-matrix-card:hover {
  border-color: rgba(231, 25, 45, 0.3);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.tech-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.tech-matrix-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-matrix-cat-icon {
  color: var(--brand-red);
  display: flex;
  align-items: center;
}

.tech-matrix-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-red);
  background: rgba(231, 25, 45, 0.08);
  padding: 2px 8px;
  border-radius: 100px;
}

.tech-matrix-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-matrix-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 11px;
  transition: all 0.2s ease;
}

.pill-frontend { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }
.pill-frontend .tech-pill-dot { background: #2563EB; }

.pill-backend { background: #F5F3FF; border: 1px solid #DDD6FE; color: #6D28D9; }
.pill-backend .tech-pill-dot { background: #7C3AED; }

.pill-database { background: #FFFBEB; border: 1px solid #FDE68A; color: #B45309; }
.pill-database .tech-pill-dot { background: #D97706; }

.pill-cloud { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.pill-cloud .tech-pill-dot { background: #059669; }

.pill-apis { background: #FFF1F2; border: 1px solid #FECDD3; color: #BE123C; }
.pill-apis .tech-pill-dot { background: #E11D48; }

.pill-devops { background: #F8FAFC; border: 1px solid #CBD5E1; color: #334155; }
.pill-devops .tech-pill-dot { background: #475569; }

.tech-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =====================================================================
   3. SYSTEM ARCHITECTURE (Dark High-Precision Engineering Console)
   ===================================================================== */
.arch-schematic-card {
  background: #0B0F19;
  border: 1px solid #1E293B;
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  position: relative;
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.arch-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.arch-console-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

.arch-console-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
}

.arch-status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.arch-tier-box {
  background: #111827;
  border: 1px solid #1F293D;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.arch-tier-box:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.08);
}

.arch-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.arch-tier-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.arch-tier-cyan .arch-tier-title { color: #38BDF8; }
.arch-tier-amber .arch-tier-title { color: #FBBF24; }
.arch-tier-emerald .arch-tier-title { color: #34D399; }
.arch-tier-indigo .arch-tier-title { color: #A5B4FC; }

.arch-tier-desc {
  font-size: 0.78rem;
  color: #94A3B8;
}

.arch-nodes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1A2234;
  border: 1px solid #28334E;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #F1F5F9;
  transition: all 0.2s ease;
}

.arch-node-pill:hover {
  border-color: #38BDF8;
  background: #222D44;
}

.arch-flow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  position: relative;
}

.arch-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 100px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.arch-flow-arrow {
  color: #F43F5E;
  font-weight: 900;
}

.arch-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
}

.arch-highlight-card {
  background: #111827;
  border: 1px solid #1F293D;
  border-radius: 12px;
  padding: 16px;
}

.arch-highlight-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 6px 0;
}

.arch-highlight-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}

/* =====================================================================
   4. APPLICATION SHOWCASE GALLERY
   ===================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.showcase-chrome-bar {
  background: #F8FAFC;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #E2E8F0;
}

.chrome-dots-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chrome-dot-red { background: #EF4444; }
.chrome-dot-yellow { background: #F59E0B; }
.chrome-dot-green { background: #10B981; }

.chrome-url-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-img-wrap {
  height: 210px;
  overflow: hidden;
  background: #0F172A;
  position: relative;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.showcase-workflow-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-red);
  background: rgba(231, 25, 45, 0.08);
  border: 1px solid rgba(231, 25, 45, 0.16);
  padding: 3px 9px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 8px;
  align-self: flex-start;
}

.showcase-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.showcase-caption {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* =====================================================================
   5. ENGINEERING RESPONSIBILITIES & CONTRIBUTION
   ===================================================================== */
.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contribution-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.contribution-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.contribution-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contribution-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-red);
  background: rgba(231, 25, 45, 0.08);
  border: 1px solid rgba(231, 25, 45, 0.18);
  padding: 3px 9px;
  border-radius: 6px;
}

.contribution-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.contribution-desc {
  font-size: 0.90rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 14px 0;
}

.contribution-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contribution-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
}

.contrib-check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =====================================================================
   6. RESULTS & IMPACT
   ===================================================================== */
.results-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.result-metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}

.result-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.06);
}

.result-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.result-metric-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.result-metric-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.results-banner-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 26px 30px;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.results-banner-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 8px;
}

.results-banner-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #F1F5F9;
  margin: 0;
}

/* =====================================================================
   7. PROJECT LINKS & ARTIFACTS
   ===================================================================== */
.project-links-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.project-links-info {
  max-width: 480px;
}

.project-links-title {
  font-size: 1.20rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.project-links-sub {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

.project-links-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.link-btn-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.90rem;
  padding: 11px 20px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(231, 25, 45, 0.25);
  transition: all 0.2s ease;
}

.link-btn-live:hover {
  background: #D11326;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(231, 25, 45, 0.35);
}

.link-btn-repo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-btn-repo:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

.link-btn-docs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  color: #334155 !important;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-btn-docs:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
  color: #0F172A !important;
  transform: translateY(-2px);
}

/* =====================================================================
   8. EXPLORE MORE PROJECTS
   ===================================================================== */
.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-project-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.related-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 25, 45, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.related-img-wrap {
  height: 175px;
  overflow: hidden;
  background: #0F172A;
  position: relative;
}

.related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.related-project-card:hover .related-img {
  transform: scale(1.04);
}

.related-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  align-self: flex-start;
}

.related-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.related-kicker {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.related-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.related-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: #475569;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 4px;
}

.related-link-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.related-project-card:hover .related-link-text {
  gap: 10px;
}

/* =====================================================================
   RESPONSIVE MEDIA QUERIES FOR REFINED PROJECT DETAIL SECTIONS
   ===================================================================== */
@media (max-width: 992px) {
  .project-features-grid,
  .tech-matrix-grid,
  .showcase-grid,
  .related-projects-grid,
  .results-metrics-grid,
  .arch-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .contribution-grid {
    grid-template-columns: 1fr;
  }
  
  .arch-schematic-card {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .project-section-pad {
    padding: 44px 0;
  }

  .project-features-grid,
  .tech-matrix-grid,
  .showcase-grid,
  .related-projects-grid,
  .results-metrics-grid,
  .arch-highlights-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .project-links-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px;
  }
  
  .project-links-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .link-btn-live,
  .link-btn-repo,
  .link-btn-docs {
    justify-content: center;
    width: 100%;
  }
  
  .arch-nodes-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .arch-node-pill {
    justify-content: center;
  }
}

/* ==========================================================================
   19. Portfolio Image-Based Mega Menu Dropdown (Kumbh Design Agency Pattern)
   ========================================================================== */

/* Positioning Context & Static Dropdown Parent */
.nav-item-has-dropdown {
  position: static;
}

.nav-link-dropdown-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  display: inline-block;
  width: 10px;
  height: 6px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
  pointer-events: none;
  flex-shrink: 0;
  stroke: currentColor;
}

.nav-item-has-dropdown:hover .dropdown-chevron,
.nav-item-has-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  stroke: var(--brand-red);
}

/* Mega Menu Container: Positioned directly beneath .nav-container (Slight Small Edition) */
.portfolio-mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  right: auto;
  width: 90%;
  max-width: 820px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.11), 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 16px 20px 14px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
  pointer-events: none;
  z-index: 1050;
}

/* Invisible hover bridge to eliminate gap flickering */
.portfolio-mega-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}

/* Active / Open state for Desktop */
@media (min-width: 993px) {
  .nav-item-has-dropdown:hover .portfolio-mega-menu,
  .nav-item-has-dropdown.is-open .portfolio-mega-menu,
  .portfolio-mega-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
  }
}

.mega-menu-inner {
  width: 100%;
}

/* Inner Grid: Portfolio (3 cards) & Services (4 cards) */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.services-mega-menu .mega-menu-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Individual Category Card */
.mega-menu-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: pointer;
  outline: none;
}

.mega-menu-card:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 10px;
}

.mega-menu-card:hover {
  transform: translateY(-3px);
}

/* Card Media / Thumbnail Wrapper */
.mega-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.mega-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-menu-card:hover .mega-card-img {
  transform: scale(1.05);
}

/* Subtle overlay on hover */
.mega-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mega-menu-card:hover .mega-card-overlay {
  opacity: 1;
}

/* Card Content / Label */
.mega-card-content {
  padding: 10px 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mega-card-title {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  color: #1F2937;
  letter-spacing: -0.01em;
  margin: 0 0 7px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.mega-menu-card:hover .mega-card-title {
  color: var(--brand-red);
}

/* Subtle Bottom Divider with animated red fill */
.mega-card-divider {
  width: 100%;
  height: 2px;
  background: #E5E7EB;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.mega-card-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: var(--brand-red);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-menu-card:hover .mega-card-divider::after {
  width: 100%;
  left: 0;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 992px) {
  .nav-item-has-dropdown {
    width: 100%;
    text-align: center;
  }

  .portfolio-mega-menu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: none;
    background: #f8fafc;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease;
  }

  .portfolio-mega-menu.is-open {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
    padding: 16px 10px;
    margin-top: 10px;
    pointer-events: auto;
    overflow-y: auto;
    border-color: #e5e7eb;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mega-card-title {
    font-size: 0.85rem;
    white-space: normal;
  }
}

@media (max-width: 540px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .mega-card-media {
    aspect-ratio: 16 / 9;
  }
}

/* Tour Language Switcher Pills */
.baadam-tour-lang-pills {
  display: inline-flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 9999px;
  padding: 1px;
  gap: 2px;
  margin-left: 6px;
}

.tour-lang-pill {
  border: none;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 700;
  color: #6B7280;
  padding: 2px 6px;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1.1;
  transition: all 0.15s ease;
}

.tour-lang-pill:hover {
  color: #111827;
}

.tour-lang-pill.active {
  background: #FFFFFF;
  color: #E7192D;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Tour Replay & Voice Toggle inside tour card */
.baadam-tour-aux-btn {
  background: transparent;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}

.baadam-tour-aux-btn:hover {
  color: #E7192D;
}

/* Tour Completion Modal Card */
.baadam-tour-completion-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(231, 25, 45, 0.12);
  padding: 24px 20px;
  z-index: 10005;
  text-align: center;
  pointer-events: auto;
  animation: completionPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.baadam-tour-completion-card.is-hidden {
  display: none !important;
}

@keyframes completionPop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.tour-complete-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.tour-complete-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.tour-complete-desc {
  font-size: 0.8rem;
  color: #4B5563;
  line-height: 1.5;
  margin: 0 0 18px 0;
}

.tour-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-complete-action {
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-complete-action.primary {
  background: #E7192D;
  color: #FFFFFF;
}

.btn-complete-action.primary:hover {
  background: #C41224;
}

.btn-complete-action.secondary {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.btn-complete-action.secondary:hover {
  background: #E5E7EB;
  color: #111827;
}

/* Presenter speech card active */


/* ==========================================================================
   BAADAM BRANDED PAGE LOADING ANIMATION
   Full-screen white background with animated BAADAM logo, red shine sweep,
   ambient glow, progress line, and "Loading your experience..." caption.
   ========================================================================== */

/* Background scroll lock while loading screen is active */
html.baadam-loading-lock,
body.baadam-loading-lock {
  overflow: hidden !important;
  height: 100% !important;
}

/* Full-screen Loading Container */
.baadam-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF !important;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  user-select: none;
}

.baadam-page-loader.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Internal Content Wrapper */
.baadam-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 30px;
}

/* Subtle Ambient Red Glow behind logo */
.baadam-loader-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(231, 25, 45, 0.22) 0%, rgba(231, 25, 45, 0.08) 45%, rgba(255, 255, 255, 0) 72%);
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  animation: baadamGlowPulse 2s ease-in-out infinite alternate;
}

@keyframes baadamGlowPulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* Logo Wrapper with Mask for Shine Animation */
.baadam-loader-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
  animation: baadamLogoEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes baadamLogoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.90) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Original BAADAM Logo */
.baadam-loader-logo {
  display: block;
  width: 260px;
  max-width: 72vw;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Subtle Red/White Light Shine Passing Across Logo */
.baadam-loader-shine {
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 77, 109, 0.3) 50%,
    rgba(255, 255, 255, 0.6) 60%,
    transparent 85%
  );
  transform: skewX(-24deg);
  z-index: 2;
  pointer-events: none;
  animation: baadamShineSweep 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.25s;
}

@keyframes baadamShineSweep {
  0% {
    left: -130%;
  }
  60%, 100% {
    left: 170%;
  }
}

/* Thin Animated Red Loading Progress Line Track */
.baadam-loader-progress-track {
  width: 180px;
  height: 3px;
  background: #E2E8F0;
  border-radius: 9999px;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
  opacity: 1;
}

/* Progress Bar Sweep */
.baadam-loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF4D6D 0%, #E7192D 50%, #C41224 100%);
  box-shadow: 0 0 10px rgba(231, 25, 45, 0.55);
  animation: baadamProgressSweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes baadamProgressSweep {
  0% {
    left: -40%;
    width: 30%;
  }
  50% {
    left: 20%;
    width: 65%;
  }
  100% {
    left: 110%;
    width: 35%;
  }
}

/* Small Text Label: "Loading your experience..." */
.baadam-loader-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #64748B;
  margin-top: 14px;
  opacity: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .baadam-page-loader {
    transition: opacity 0.15s ease, visibility 0.15s ease !important;
  }
  .baadam-loader-logo-wrap,
  .baadam-loader-progress-track,
  .baadam-loader-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .baadam-loader-glow,
  .baadam-loader-shine {
    display: none !important;
  }
  .baadam-loader-progress-bar {
    animation: none !important;
    width: 100% !important;
    left: 0 !important;
  }
}


/* ==========================================================================
   BAADAM GUIDE 2.0 — AVATAR EXPRESSIONS, CHECKLIST & CAPTIONS
   ========================================================================== */

/* Expression States & Animations */
.teacher-launcher-img,
.teacher-portrait-img,
.tour-card-avatar-img {
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Idle State: Gentle natural breathing */
.guide-state-idle .teacher-launcher-avatar-ring,
.guide-state-idle .teacher-portrait-ring {
  animation: guideBreathing 4s ease-in-out infinite;
}
@keyframes guideBreathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Greeting State: Joyful wave bounce */
.guide-state-greeting .teacher-launcher-avatar-ring,
.guide-state-greeting .teacher-portrait-ring {
  animation: guideGreeting 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35) !important;
}
@keyframes guideGreeting {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Speaking State: Red rhythmic voice pulse */
.guide-state-speaking .teacher-launcher-avatar-ring,
.guide-state-speaking .teacher-portrait-ring {
  animation: guideSpeakingPulse 1.4s ease-out infinite;
}
@keyframes guideSpeakingPulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 25, 45, 0.5); transform: scale(1); }
  50% { transform: scale(1.04); }
  70% { box-shadow: 0 0 0 8px rgba(231, 25, 45, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 25, 45, 0); }
}

/* Thinking State: Deep thoughtful floating */
.guide-state-thinking .teacher-launcher-avatar-ring,
.guide-state-thinking .teacher-portrait-ring {
  animation: guideThinking 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
}
@keyframes guideThinking {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

/* Listening State: Emerald mic active halo */
.guide-state-listening .teacher-launcher-avatar-ring,
.guide-state-listening .teacher-portrait-ring {
  animation: guideListeningPulse 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  border-color: #10B981 !important;
}
@keyframes guideListeningPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Explaining State: Focused pointer gesture */
.guide-state-explaining .teacher-launcher-avatar-ring,
.guide-state-explaining .teacher-portrait-ring {
  animation: guideExplaining 2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(231, 25, 45, 0.35) !important;
}
@keyframes guideExplaining {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(-2deg); }
}

/* Celebrating State: Golden celebration bounce */
.guide-state-celebrating .teacher-launcher-avatar-ring,
.guide-state-celebrating .teacher-portrait-ring {
  animation: guideCelebrating 0.8s ease-in-out infinite;
  box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.5) !important;
}
@keyframes guideCelebrating {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}

/* Guide Subheader Bar (Controls & Tabs) */
.teacher-chat-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  gap: 8px;
  font-size: 11.5px;
}
.guide-tab-pills {
  display: flex;
  gap: 4px;
}
.guide-tab-pill {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.guide-tab-pill.active {
  background: #EB163C;
  color: #FFFFFF;
  border-color: #EB163C;
}
.guide-speed-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}
.guide-speed-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.guide-speed-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.guide-speed-btn.active {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
  font-weight: 800;
}
.guide-captions-btn {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.guide-captions-btn.active {
  background: #FEF2F2;
  color: #EB163C;
  border-color: #FECACA;
}

/* Exploration Checklist Container */
.guide-checklist-container {
  padding: 14px 16px;
  background: #FFFFFF;
  overflow-y: auto;
  flex: 1;
}
.guide-checklist-header {
  margin-bottom: 12px;
}
.guide-checklist-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-checklist-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #EB163C;
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
  padding: 2px 7px;
  border-radius: 12px;
}
.guide-checklist-progress-wrap {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.guide-checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #EB163C, #F43F5E);
  transition: width 0.3s ease;
  border-radius: 3px;
}
.guide-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.guide-check-item:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
.guide-check-item.completed {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.guide-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  background: #E2E8F0;
  color: #64748B;
}
.guide-check-item.completed .guide-check-icon {
  background: #10B981;
  color: #FFFFFF;
}
.guide-check-info {
  flex: 1;
}
.guide-check-name {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 2px;
}
.guide-check-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.35;
}

/* Page Context & Smart Recommendations Banner inside Chat */
.guide-page-context-card {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.guide-context-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #EB163C;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.guide-context-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
  margin: 0 0 8px 0;
}
.guide-quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.guide-quick-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.guide-quick-pill:hover {
  background: #F8FAFC;
  border-color: #EB163C;
  color: #EB163C;
  transform: translateY(-1px);
}

/* Live Speech Captions Floating Banner */
.baadam-guide-captions {
  position: fixed;
  bottom: 84px;
  right: 24px;
  max-width: 380px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 10002;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: captionsFadeIn 0.2s ease-out;
}
.baadam-guide-captions.is-hidden {
  display: none !important;
}
.guide-captions-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #EB163C;
}
.guide-captions-text {
  flex: 1;
  color: #F8FAFC;
}
.guide-captions-badge {
  font-size: 9px;
  font-weight: 800;
  color: #FCA5A5;
  text-transform: uppercase;
  margin-bottom: 2px;
}
@keyframes captionsFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .baadam-guide-captions {
    left: 16px;
    right: 16px;
    bottom: 80px;
    max-width: none;
  }
}

/* ==========================================================================
   BAADAM MINIMAL ANIMATED VIRTUAL WEBSITE GUIDE (PURE FLOATING AVATAR, ZERO CARDS)
   - Zero tour cards, zero capabilities radar card, zero chatbots, zero dashboards
   - Only floating female avatar at bottom-right corner (155px x 201px)
   - Sleek chrome presentation pointer stick with Baadam red tip
   - Character animations: idle breathing, blinking, mouth sync, head cadence, pointing
   - Voice narration dynamically loaded from admin panel per section
   - Tiny unobtrusive audio toggle & subtle caption bubble (only visible while speaking)
   ========================================================================== */

/* Main Presenter Container */
.teacher-guide-widget {
  position: fixed !important;
  bottom: 0 !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  user-select: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  display: block !important;
}

/* 1. Character Avatar Wrapper (Normal Compact Scale, Floating Bottom-Right) */
.teacher-avatar-wrapper {
  position: relative !important;
  width: 208px !important;
  height: 195px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.14)) !important;
  transition: transform 0.25s ease !important;
  animation: presenterIdleBreathe 4.5s ease-in-out infinite !important;
}

.teacher-avatar-wrapper:hover {
  transform: translateY(-3px) scale(1.03) !important;
}

/* Idle State Breathing Animation */
@keyframes presenterIdleBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Speaking State Cadence */
.is-speaking.teacher-avatar-wrapper,
.teacher-avatar-wrapper.is-speaking,
.is-speaking .teacher-avatar-wrapper {
  animation: presenterSpeakingCadence 2.2s ease-in-out infinite alternate !important;
}
@keyframes presenterSpeakingCadence {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2.5px) rotate(-0.8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Pristine Stationary Body Layer with Built-in Pointer Stick */
.teacher-body-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 2 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* SUPPRESS ALL SECONDARY ARM/MOUTH/EYE OVERLAYS TO PREVENT GHOSTING & SMUDGES */
.teacher-arm-layer,
#teacherArmLayer,
.teacher-wrist-layer,
#teacherWristLayer,
.teacher-arm-img,
#teacherArmImg,
.teacher-mouth-talk,
#teacherMouthTalk,
.teacher-eye-blink,
#teacherEyeBlink,
.admin-preview-arm-wrap,
#adminPreviewArmWrap {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2. Minimalist Audio Indicator & Mute/Replay Toggle (Tiny 24px Pill at Avatar Base) */
.teacher-voice-indicator {
  position: absolute !important;
  bottom: 8px !important;
  right: 12px !important;
  left: auto !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 999px !important;
  padding: 3px 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  font-size: 11px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 5 !important;
}
.teacher-voice-indicator:hover {
  border-color: #E7192D !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(231, 25, 45, 0.15) !important;
}
.voice-wave-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  display: inline-block !important;
  transition: background 0.2s ease !important;
}
.teacher-avatar-wrapper.is-muted .voice-wave-dot {
  background: #94A3B8 !important;
}
.is-speaking .voice-wave-dot {
  background: #E7192D !important;
  animation: voicePulseDot 0.9s infinite alternate !important;
}
@keyframes voicePulseDot {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 1; }
}
.voice-status-icon {
  font-size: 11px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* 3. STRICT REQUIREMENT: ZERO CARDS, ZERO POPUPS, ZERO SPEECH BUBBLES
   The avatar speaks purely via voice narration without any visual cards or bubbles */
.teacher-subtle-caption,
#teacherSubtleCaption,
.teacher-speech-card,
#teacherSpeechCard {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Responsive scaling for mobile devices */
@media (max-width: 768px) {
  .teacher-guide-widget {
    right: 8px !important;
  }
  .teacher-avatar-wrapper {
    width: 155px !important;
    height: 145px !important;
  }
  .teacher-subtle-caption {
    bottom: 145px !important;
    right: 0 !important;
    max-width: 220px !important;
  }
}

/* STRICT DESIGN REQUIREMENT:
   100% REMOVE / SUPPRESS ALL TOUR CARDS, RADAR CARDS, POPUPS, CHATBOTS, AND BUTTON DASHBOARDS */
#teacherSpeechCard,
.teacher-speech-card,
.teacher-speech-bubble,
.baadam-tour-card,
#baadamTourCard,
.teacher-welcome-overlay,
#teacherWelcomeOverlay,
.teacher-chat-panel,
#teacherChatPanel,
.teacher-avatar-launcher,
#teacherAvatarLauncher,
.baadam-tour-completion-card,
#baadamTourCompletionCard,
.teacher-move-indicator,
.teacher-welcome-actions,
.teacher-nav-row,
.teacher-finish-actions,
.teacher-speech-header,
.tour-progress-bar-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

