/* ==========================================================================
   7MPS Corporate Website - Premium CSS Design System
   Aesthetic: Google Antigravity / AI Studio / McKinsey Digital style
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
  --bg-dark: #0A0D14;
  --bg-darker: #05070A;
  --bg-light: #F8FAFC;
  --bg-card: rgba(13, 18, 30, 0.65);
  --bg-card-hover: rgba(20, 27, 45, 0.8);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-glow-blue: rgba(18, 150, 232, 0.3);
  --border-glow-magenta: rgba(225, 0, 184, 0.3);
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-light-bg: #1E293B;
  --text-light-bg-sec: #475569;
  
  /* Brand Colors */
  --color-blue: #1296E8;
  --color-magenta: #E100B8;
  --color-grey: #3F3F3F;
  --color-dark-grey: #1E1E24;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  
  /* Gradients (Updated to solid / single colors) */
  --gradient-blue-magenta: #1296E8;
  --gradient-dark: #070A10;
  --gradient-card: rgba(18, 150, 232, 0.04);
  --gradient-glow: radial-gradient(circle at center, rgba(18, 150, 232, 0.12) 0%, transparent 100%);

  --ff-headings: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --glow-shadow-blue: 0 0 25px rgba(18, 150, 232, 0.25);
  --glow-shadow-magenta: 0 0 25px rgba(225, 0, 184, 0.25);
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--ff-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-magenta);
}

/* --- Global Dynamic Background elements --- */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 80% 10%, rgba(18, 150, 232, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(225, 0, 184, 0.06) 0%, transparent 45%);
  background-color: var(--bg-darker);
  z-index: -5;
  pointer-events: none;
}

.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
  z-index: -4;
  pointer-events: none;
  mix-blend-mode: screen;
}
.orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: 5%;
  background: var(--color-blue);
  animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: 5%;
  background: var(--color-magenta);
  animation: floatOrb 24s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 90px) scale(1.2); }
}

/* Grid Overlay Background */
.grid-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -3;
  pointer-events: none;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--gradient-blue-magenta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue { color: var(--color-blue); }
.text-magenta { color: var(--color-magenta); }
.text-grey { color: var(--color-grey); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.section-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-magenta);
  box-shadow: 0 0 10px var(--color-magenta);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.section-desc {
  font-size: 1.15rem;
  max-width: 750px;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}
.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout Containers --- */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  padding: 70px 0;
  position: relative;
}

/* --- Glassmorphic Design System --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(15px) saturate(170%);
  -webkit-backdrop-filter: blur(15px) saturate(170%);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(18, 150, 232, 0.1), transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow-blue);
  box-shadow: 0 15px 45px -10px rgba(18, 150, 232, 0.15);
}
.glass-card:hover::before {
  opacity: 1;
}

/* Magenta variant on hover */
.glass-card.magenta-hover:hover {
  border-color: var(--border-glow-magenta);
  box-shadow: 0 15px 45px -10px rgba(225, 0, 184, 0.15);
}
.glass-card.magenta-hover::before {
  background: radial-gradient(circle at 50% -20%, rgba(225, 0, 184, 0.1), transparent 50%);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--gradient-blue-magenta);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(18, 150, 232, 0.25);
}
.btn-primary:hover {
  background: #0d7cc2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 150, 232, 0.4);
  filter: brightness(1.05);
}

.btn-pink {
  background: var(--color-magenta);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(225, 0, 184, 0.25);
}
.btn-pink:hover {
  background: #c2009e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 0, 184, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--text-primary);
  color: var(--bg-darker);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-icon {
  padding: 0.8rem;
  border-radius: 50%;
  aspect-ratio: 1;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

/* --- Global Top Bar Contact Strip --- */
.header-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-light);
  z-index: 1005;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
html.light-theme .header-top-bar {
  background: #E2E8F0;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.top-bar-item i {
  width: 12px;
  height: 12px;
  color: var(--color-blue);
}
.top-bar-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.top-bar-item a:hover {
  color: var(--color-blue);
}

/* --- Sticky Transparent Navigation Header --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}
.header-nav.scrolled {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border-light);
  height: 75px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}
.header-nav.scrolled .logo-img {
  height: 40px;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-item-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}
.nav-item-link:hover, .nav-item-link.active {
  color: var(--text-primary);
}
.nav-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue-magenta);
  transition: var(--transition-fast);
}
.nav-item-link:hover::after, .nav-item-link.active::after {
  width: 100%;
}

/* Mega Menu / Dropdown Setup for Services */
.has-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 280px;
  background: rgba(10, 13, 20, 0.98);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--glass-shadow), 0 10px 30px rgba(18, 150, 232, 0.1);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1010;
  pointer-events: none;
  backdrop-filter: blur(15px);
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
  pointer-events: all;
}
.dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.dropdown-item-link i {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
  transition: var(--transition-fast);
}
.dropdown-item-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.dropdown-item-link:hover i {
  color: var(--color-magenta);
  transform: translateX(3px);
}

.nav-cta-btn {
  display: flex;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section & Network Canvas --- */
.hero-sec {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.hero-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.hero-tagline {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-subdescription {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
}
.hero-actions-panel {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.hero-visual-panel {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#hero-network-canvas {
  width: 100%;
  height: 100%;
}

/* Floating analytics panels on Hero section */
.float-panel {
  position: absolute;
  padding: 1.2rem;
  min-width: 220px;
  z-index: 2;
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
  animation: floatMotion 7s infinite alternate ease-in-out;
}
.float-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-headings);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.float-panel-header i {
  width: 16px;
  height: 16px;
  color: var(--color-blue);
}
.float-panel-body .val {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--ff-headings);
}
.float-panel-body .subval {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.float-panel-body .status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.pulse-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: pulseLight 1.5s infinite;
}
.pulse-circle.magenta {
  background: var(--color-magenta);
  box-shadow: 0 0 10px var(--color-magenta);
}

.panel-pos-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}
.panel-pos-2 {
  bottom: 12%;
  right: -10px;
  animation-delay: 1.8s;
  min-width: 240px;
}
.panel-pos-3 {
  top: 48%;
  left: 38%;
  animation-delay: 3.5s;
  min-width: 230px;
}

@keyframes floatMotion {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(0.5deg); }
}
@keyframes pulseLight {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* --- Section: Who We Are --- */
.who-we-are-sec {
  background: linear-gradient(180deg, transparent, var(--bg-dark), transparent);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.who-visual-block {
  display: flex;
  justify-content: center;
  position: relative;
}
.who-visual-block::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(18, 150, 232, 0.15) 0%, transparent 65%);
  z-index: -1;
}
.who-mock-interface {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border-light);
}
.mock-bar {
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-dots {
  display: flex;
  gap: 0.4rem;
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mock-dot-red { background: var(--color-magenta); }
.mock-dot-yellow { background: var(--color-warning); }
.mock-dot-green { background: var(--color-success); }
.mock-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--ff-headings);
  letter-spacing: 0.05em;
}
.mock-body-content {
  padding: 2rem;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Custom vector graphic for nodes */
.nodes-svg-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 1.5rem;
}
.node-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: 4;
  animation: strokeFlow 30s linear infinite;
}
@keyframes strokeFlow {
  to { stroke-dashoffset: -100; }
}

.who-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.who-info-block h2 {
  font-size: 2.8rem;
  font-weight: 700;
}
.who-info-block p {
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Stats Counter Layout */
.animated-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}
.single-stat-block {
  border-left: 2px solid var(--color-blue);
  padding-left: 1.5rem;
  transition: var(--transition-fast);
}
.single-stat-block:hover {
  border-left-color: var(--color-magenta);
}
.stat-value {
  font-family: var(--ff-headings);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* --- Section: What We Do (Services cards) --- */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: rgba(18, 150, 232, 0.1);
  color: var(--color-blue);
  transition: var(--transition-smooth);
}
.glass-card:hover .service-card-icon {
  background: var(--gradient-blue-magenta);
  color: var(--text-primary);
  box-shadow: var(--glow-shadow-blue);
}

.service-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-blue);
  transition: var(--transition-fast);
}
.service-card-btn i {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}
.glass-card:hover .service-card-btn {
  color: var(--color-magenta);
}
.glass-card:hover .service-card-btn i {
  transform: translateX(4px);
}

/* --- Section: Why Organisations Work With 7MPS --- */
.why-work-with-us {
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 0, 184, 0.1);
  color: var(--color-magenta);
  margin-bottom: 1.8rem;
}
.why-icon-container i {
  width: 22px;
  height: 22px;
}

.why-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}
.why-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Section: Governance Experience & Timeline --- */
.gov-experience-sec {
  background: linear-gradient(180deg, transparent, var(--bg-dark), transparent);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.gov-split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: flex-start;
}

.gov-timeline-block {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border-light);
}

.timeline-step {
  position: relative;
  padding-bottom: 3.5rem;
}
.timeline-step:last-child {
  padding-bottom: 0;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.2rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 3px solid var(--color-blue);
  z-index: 2;
  transition: var(--transition-fast);
}
.timeline-step:hover::before {
  border-color: var(--color-magenta);
  box-shadow: 0 0 10px var(--color-magenta);
}

.timeline-year {
  font-family: var(--ff-headings);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-magenta);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}
.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Section: Ecosystems --- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.ecosystem-item {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.ecosystem-item i {
  width: 28px;
  height: 28px;
  color: var(--color-blue);
  transition: var(--transition-fast);
}
.ecosystem-item span {
  font-family: var(--ff-headings);
  font-weight: 600;
  font-size: 1rem;
}
.ecosystem-item:hover i {
  color: var(--color-magenta);
  transform: scale(1.1);
}

/* --- Section: Insights & Article Listing --- */
.insights-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.insight-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.insight-img-container {
  width: 100%;
  aspect-ratio: 1.7;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--color-grey);
}
.insight-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-blue-magenta);
  opacity: 0.75;
  transition: var(--transition-smooth);
}
.insight-post-card:hover .insight-image-placeholder {
  opacity: 0.95;
  transform: scale(1.05);
}
.insight-post-card:nth-of-type(3n+1) .insight-image-placeholder {
  background-image: url('../assets/images/ai_narrative.png');
  background-size: cover;
  background-position: center;
}
.insight-post-card:nth-of-type(3n+2) .insight-image-placeholder {
  background-image: url('../assets/images/governance_comm.png');
  background-size: cover;
  background-position: center;
}
.insight-post-card:nth-of-type(3n+3) .insight-image-placeholder {
  background-image: url('../assets/images/sentiment_mapping.png');
  background-size: cover;
  background-position: center;
}
.insight-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.8rem;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-blue);
}
.insight-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.insight-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.insight-post-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}
.insight-read-more-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.insight-read-more-btn i {
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}
.insight-post-card:hover .insight-read-more-btn {
  color: var(--color-magenta);
}
.insight-post-card:hover .insight-read-more-btn i {
  transform: translateX(4px);
}

/* --- Section: Call to Action (CTA) --- */
.cta-sec {
  padding: 70px 0;
  background: radial-gradient(circle at center, rgba(18, 150, 232, 0.1) 0%, transparent 70%);
}
.cta-panel {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.cta-headline {
  font-size: 3rem;
  font-weight: 800;
  max-width: 800px;
}
.cta-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
}
.cta-button-group {
  display: flex;
  gap: 1.2rem;
}

/* --- Pages Sub-Hero Section --- */
.page-sub-hero {
  padding-top: 180px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
  border-bottom: 1px solid var(--border-light);
}
.page-sub-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-sub-hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 750px;
}

/* --- Page: About Us styles --- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}
.story-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}
.story-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.story-vignette {
  height: 380px;
  background: var(--gradient-blue-magenta);
  border-radius: 16px;
  opacity: 0.15;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.mv-box h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.mv-box h3 i {
  color: var(--color-blue);
}
.mv-box p {
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.value-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* --- Page: Services Page Detailed Layouts --- */
.detailed-service-section {
  border-bottom: 1px solid var(--border-light);
}
.detailed-service-section:last-child {
  border-bottom: none;
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.service-detail-grid.reverse {
  direction: rtl;
}
.service-detail-grid.reverse .service-detail-info {
  direction: ltr;
}
.service-detail-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.service-detail-info p {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  line-height: 1.65;
}
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.features-list li i {
  width: 16px;
  height: 16px;
  color: var(--color-magenta);
}

.service-detail-graphic {
  height: 340px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* --- Dashboard-style components (Governance & Media Intelligence) --- */
.dashboard-frame {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: rgba(5, 7, 10, 0.95);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.dash-header-bar {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-logo-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-family: var(--ff-headings);
  font-weight: 700;
}
.dash-logo-icon {
  width: 12px;
  height: 12px;
  background: var(--gradient-blue-magenta);
  border-radius: 3px;
}
.dash-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
}
.dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulseLight 1.5s infinite;
}

.dash-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--border-light);
}

.dash-primary-display {
  padding: 2rem;
  background: rgba(10, 13, 20, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.chart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-title-row h4 {
  font-size: 1rem;
  color: var(--text-primary);
}
.chart-tabs-wrap {
  display: flex;
  gap: 0.35rem;
}
.chart-filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 600;
}
.chart-filter-tab.active {
  background: var(--gradient-blue-magenta);
  color: var(--text-primary);
  border-color: transparent;
}

.canvas-chart-holder {
  width: 100%;
  height: 250px;
  position: relative;
}
.canvas-chart-holder canvas {
  width: 100%;
  height: 100%;
}

.dash-side-display {
  padding: 2rem;
  background: rgba(10, 13, 20, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dash-metric-card {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}
.dash-metric-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dash-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}
.dash-metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-headings);
}
.dash-metric-delta {
  font-size: 0.8rem;
  color: var(--color-success);
  font-weight: 600;
  margin-top: 0.2rem;
}
.dash-metric-delta.down {
  color: var(--color-magenta);
}

.sov-progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.sov-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--color-blue);
  transition: var(--transition-smooth);
}
.progress-bar-fill.magenta {
  background: var(--color-magenta);
}

.dash-logs-row {
  grid-column: 1 / -1;
  padding: 1.2rem 2rem;
  background: rgba(5, 7, 10, 0.98);
  border-top: 1px solid var(--border-light);
}
.logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.logs-terminal-output {
  height: 110px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.log-line {
  display: flex;
  gap: 1rem;
}
.log-timestamp {
  color: var(--text-muted);
  flex-shrink: 0;
}
.log-type {
  color: var(--color-blue);
  font-weight: 600;
  flex-shrink: 0;
}
.log-message {
  color: var(--text-primary);
}

/* --- Page: Case Studies Grid & Layouts --- */
.cases-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}
.cases-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}
.cases-filter-btn.active, .cases-filter-btn:hover {
  background: var(--gradient-blue-magenta);
  color: var(--text-primary);
  border-color: transparent;
}

.cases-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.case-study-card {
  display: flex;
  flex-direction: column;
}
.case-img-vignette {
  width: 100%;
  aspect-ratio: 1.6;
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 1.8rem;
  opacity: 0.8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-img-vignette i {
  width: 48px;
  height: 48px;
  color: var(--color-blue);
  opacity: 0.6;
  transition: var(--transition-smooth);
}
.case-study-card:hover .case-img-vignette {
  opacity: 1;
  border-color: var(--color-magenta);
}
.case-study-card:hover .case-img-vignette i {
  color: var(--color-magenta);
  transform: scale(1.1);
}
.case-study-meta {
  font-size: 0.8rem;
  color: var(--color-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.case-study-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.case-study-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- Page: Contact & Consultation Form --- */
.contact-grid-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: start;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.contact-headline-box h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.contact-details-box {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.contact-detail-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(18, 150, 232, 0.1);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon-wrap i {
  width: 20px;
  height: 20px;
}
.contact-info-icon-row i {
  color: var(--color-magenta);
  width: 22px;
  height: 22px;
}
.contact-detail-text h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.contact-detail-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-links-row {
  display: flex;
  gap: 1rem;
}
.social-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}
.social-icon-link:hover {
  background: var(--color-magenta);
  color: var(--text-primary);
  border-color: transparent;
}

.contact-form-column {
  padding: 3rem 2.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input-group input, 
.form-input-group select, 
.form-input-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-input-group input:focus, 
.form-input-group select:focus, 
.form-input-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 10px rgba(18, 150, 232, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.form-input-group.invalid input, 
.form-input-group.invalid select, 
.form-input-group.invalid textarea {
  border-color: var(--color-magenta);
}
.form-input-group .error-msg {
  font-size: 0.75rem;
  color: var(--color-magenta);
  font-weight: 600;
  display: none;
}
.form-input-group.invalid .error-msg {
  display: block;
}

.form-success-banner {
  padding: 1rem 1.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
  border-radius: 8px;
  display: none;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success-banner.visible {
  display: flex;
}

/* Map Mock Section */
.map-mock-sec {
  padding: 0;
  height: 400px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.map-mock-container {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111827 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.map-glow-points {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: radial-gradient(circle, #fff 10%, transparent 11%);
  background-size: 20px 20px;
}
.map-center-pin {
  position: relative;
  z-index: 2;
  text-align: center;
}
.map-pulse-circle {
  width: 20px;
  height: 20px;
  background: var(--color-blue);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-blue);
  animation: pulseLight 2s infinite;
  margin: 0 auto 1rem;
}
.map-center-pin h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.map-center-pin p {
  font-size: 0.85rem;
}

/* --- Enterprise Footer --- */
.footer-element {
  background: #05070A;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  margin-top: auto;
}
.footer-grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 6rem;
  margin-bottom: 4rem;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.95;
}
.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-links-group h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-links-list a:hover {
  color: var(--color-blue);
  padding-left: 3px;
}

.footer-newsletter-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-newsletter-box h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-newsletter-box p {
  font-size: 0.85rem;
}
.newsletter-form-row {
  display: flex;
  gap: 0.5rem;
}
.newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-input:focus {
  border-color: var(--color-blue);
}

/* Premium Form Controls and Fields */
.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.form-field-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-field-wrap label .required {
  color: var(--color-magenta);
  margin-left: 0.15rem;
}
.form-field-wrap .form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}
.form-field-wrap .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.form-field-wrap .form-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 12px rgba(18, 150, 232, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.form-field-wrap.invalid .form-control {
  border-color: var(--color-magenta);
  box-shadow: 0 0 8px rgba(225, 0, 184, 0.15);
}
.form-field-wrap .error-hint-msg {
  font-size: 0.75rem;
  color: var(--color-magenta);
  font-weight: 600;
  display: none;
  margin-top: 0.25rem;
}
.form-field-wrap.invalid .error-hint-msg {
  display: block;
}
.form-field-wrap select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}
.dropdown-select option {
  background-color: #0e1525;
  color: #ffffff;
}
html.light-theme .dropdown-select option {
  background-color: #ffffff;
  color: #0f172a;
}
.form-field-wrap .text-area-control {
  resize: vertical;
  min-height: 120px;
}

.footer-copyright-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright-bar p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-meta-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-meta-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-bottom-meta-links a:hover {
  color: var(--text-primary);
}

/* --- Scroll Reveal Animations --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-grid, .who-grid, .gov-split-layout, .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-visual-panel {
    height: 420px;
  }
  .panel-pos-1 { left: 0; }
  .panel-pos-2 { right: 0; }
  .panel-pos-3 { left: 30%; }
  
  .footer-grid-layout {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 2.5rem;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid, .insights-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cases-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Tablet / Smaller Laptop Navigation (max-width: 991px) --- */
@media (max-width: 991px) {
  .header-top-bar {
    display: none !important;
  }
  .header-nav {
    top: 0 !important;
    height: 80px;
  }
  .nav-links-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0A0D14;
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2.5rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-links-menu.active {
    right: 0;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1000;
  }
  .nav-cta-btn {
    display: none;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1.5rem;
    width: auto;
    display: none;
  }
  .has-dropdown.active .dropdown-menu {
    display: block;
  }
}

/* --- Mobile Viewports (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
  }

  /* Compact container padding on mobile */
  .container {
    padding: 0 1.25rem !important;
  }

  .hero-tagline {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .why-grid, .insights-cards-grid, .ecosystem-grid, .footer-grid-layout {
    grid-template-columns: 1fr;
  }
  .form-row-split,
  .form-row-group {
    grid-template-columns: 1fr !important;
  }
  .contact-form-column {
    padding: 2rem 1.5rem;
  }
  
  .footer-bottom-meta-links {
    justify-content: center;
  }

  /* Stack hero action buttons on mobile */
  .hero-actions-panel {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }
  .hero-actions-panel .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* De-absolute and stack hero floating panels to prevent overflow and overlap */
  .hero-visual-panel {
    height: auto !important;
    margin-top: 2.5rem;
    flex-direction: column;
    gap: 1.2rem;
    display: flex;
    align-items: center;
  }
  .hero-canvas-wrap {
    display: none !important; /* Hide canvas animation on mobile to save CPU and space */
  }
  .float-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 320px !important;
    min-width: 0 !important;
    animation: none !important;
    box-sizing: border-box;
  }

  /* Stack detailed service blocks and story blocks */
  .story-grid, .service-detail-grid, .dash-main-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  .service-detail-grid.reverse {
    direction: ltr !important;
  }
  .service-detail-grid.reverse .service-detail-info {
    direction: ltr !important;
  }
  
  /* Stack dashboards sidebar */
  .dash-side-display {
    border-top: 1px solid var(--border-light);
  }

  /* Stack other layout blocks */
  .mission-vision-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* --- Tiny Screens (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-tagline {
    font-size: 2.2rem !important;
  }
  .section-title {
    font-size: 1.8rem !important;
  }
  .animated-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ==========================================================================
   Admin Portal & Insights Editor Styles
   ========================================================================== */

.admin-login-sec {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  padding: 3.5rem 3rem;
  border-radius: 16px;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-login-header {
  text-align: center;
}

.admin-login-header img {
  height: 48px;
  margin-bottom: 1.5rem;
}

.admin-login-header h2 {
  font-family: var(--ff-headings);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.admin-login-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Admin Dashboard layout */
.admin-layout-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  background: var(--bg-darker);
}

.admin-sidebar {
  background: rgba(10, 13, 20, 0.95);
  border-right: 1px solid var(--border-light);
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.admin-sidebar-logo img {
  height: 38px;
}

.admin-sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--ff-headings);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.admin-nav-item a:hover,
.admin-nav-item.active a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.active a {
  background: var(--gradient-blue-magenta);
  color: var(--text-primary);
}

.admin-sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.admin-main-viewport {
  padding: 3rem 4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.admin-workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.admin-workspace-title h1 {
  font-family: var(--ff-headings);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.admin-workspace-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Admin Dashboard Table */
.admin-data-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid var(--border-light);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 1rem 1.2rem;
  font-family: var(--ff-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  padding: 1.2rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.admin-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(18, 150, 232, 0.1);
  color: var(--color-blue);
  border: 1px solid rgba(18, 150, 232, 0.2);
}

.admin-badge.magenta {
  background: rgba(225, 0, 184, 0.1);
  color: var(--color-magenta);
  border: 1px solid rgba(225, 0, 184, 0.2);
}

.admin-action-btn-row {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-icon.delete:hover {
  background: rgba(225, 0, 184, 0.15);
  color: var(--color-magenta);
  border-color: rgba(225, 0, 184, 0.3);
}

/* Modal Dialog Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  width: 100%;
  max-width: 680px;
  padding: 3rem;
  border-radius: 16px;
  background: rgba(15, 20, 30, 0.98);
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content-card {
  transform: scale(1);
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.2rem;
}

.modal-header-row h3 {
  font-family: var(--ff-headings);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Success notification toasts */
.toast-wrap-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2000;
}

.toast-message-card {
  min-width: 320px;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  transform: translateY(20px);
  opacity: 0;
  animation: slideToastIn 0.35s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-message-card.success {
  border-left: 4px solid var(--color-success);
}

.toast-message-card.error {
  border-left: 4px solid var(--color-magenta);
}

@keyframes slideToastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .admin-layout-container {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .admin-main-viewport {
    padding: 2rem;
  }
}

/* Tab/workspace views switching */
.admin-workspace-view {
  display: none;
}

.admin-workspace-view.active {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Inquiry detail modal styles */
.brief-text-display {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  max-height: 240px;
  overflow-y: auto;
  font-family: var(--ff-body);
}

.inquiry-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.8rem;
}

.inquiry-detail-label {
  font-family: var(--ff-headings);
  font-weight: 600;
  color: var(--text-secondary);
}

.inquiry-detail-val {
  color: var(--text-primary);
}

/* Lead status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge.new {
  background: rgba(18, 150, 232, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(18, 150, 232, 0.3);
}
.status-badge.reviewing {
  background: rgba(225, 0, 184, 0.15);
  color: var(--color-magenta);
  border: 1px solid rgba(225, 0, 184, 0.3);
}
.status-badge.contacted {
  background: rgba(255, 170, 0, 0.15);
  color: #FFAA00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}
.status-badge.proposal {
  background: rgba(160, 80, 255, 0.15);
  color: #A050FF;
  border: 1px solid rgba(160, 80, 255, 0.3);
}
.status-badge.archived {
  background: rgba(140, 150, 160, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(140, 150, 160, 0.3);
}

/* ==========================================================================
   Interactive Chatbot Styling Rules
   ========================================================================== */
.chatbot-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-magenta);
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(225, 0, 184, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-trigger:hover {
  background: #c700a2;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px rgba(225, 0, 184, 0.45);
}

.chatbot-trigger::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: var(--color-magenta);
  z-index: -1;
  opacity: 0.4;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

.chatbot-trigger svg {
  color: #ffffff;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.chatbot-trigger.active svg {
  transform: rotate(90deg);
}

.chatbot-window {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 380px;
  max-width: 90vw;
  height: 520px;
  max-height: 80vh;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chatbot-header {
  padding: 1rem 1.2rem;
  background: rgba(15, 20, 30, 0.9);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(18, 150, 232, 0.2) 0%, rgba(225, 0, 184, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-avatar svg {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
}

.chatbot-status-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.chatbot-status-col h4 {
  font-family: var(--ff-headings);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.chatbot-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chatbot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.chatbot-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for chat messages */
.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px 14px 14px 4px;
  color: var(--text-secondary);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--color-blue);
  border-radius: 14px 14px 4px 14px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(18, 150, 232, 0.15);
}

.chat-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
  align-self: flex-start;
  max-width: 85%;
}

.chat-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  color: var(--color-blue);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--ff-sans);
  border-style: solid;
}

.chat-chip:hover {
  background: rgba(18, 150, 232, 0.15);
  border-color: var(--color-blue);
  color: #ffffff;
}

.chatbot-input-area {
  padding: 1rem;
  background: rgba(15, 20, 30, 0.95);
  border-top: 1px solid var(--border-light);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--ff-sans);
  transition: border-color 0.2s ease;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.chat-input-row button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-blue);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-input-row button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==========================================================================
   Light Mode Theme Custom Property Overrides & Styling Rules
   ========================================================================== */
html.light-theme {
  --bg-dark: #F1F5F9;
  --bg-darker: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-light: rgba(15, 23, 42, 0.08);
  --border-glow-blue: rgba(225, 0, 184, 0.2);
  --border-glow-magenta: rgba(190, 24, 93, 0.2);
  
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;

  --color-blue: #0C66E4;
  --color-magenta: #BE185D;
  --gradient-blue-magenta: #0C66E4;
  --gradient-dark: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
  --gradient-card: linear-gradient(135deg, rgba(12, 102, 228, 0.03) 0%, rgba(190, 24, 93, 0.03) 100%);
  
  --glow-shadow-blue: 0 0 25px rgba(225, 0, 184, 0.2);
  --glow-shadow-magenta: 0 0 25px rgba(190, 24, 93, 0.2);
}

/* Light mode specific element styling fixes */
html.light-theme .header-nav.scrolled {
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.05);
}
html.light-theme .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--glass-shadow), 0 10px 30px rgba(12, 102, 228, 0.05);
}
html.light-theme .dropdown-item-link:hover {
  background: rgba(15, 23, 42, 0.04);
}
html.light-theme .btn-primary {
  color: #FFFFFF !important;
  background: var(--color-blue) !important;
  box-shadow: 0 4px 14px rgba(225, 0, 184, 0.2) !important;
}
html.light-theme .btn-primary:hover {
  background: #0952b6 !important;
  box-shadow: 0 6px 20px rgba(12, 102, 228, 0.35) !important;
}
html.light-theme .btn-pink {
  color: #FFFFFF !important;
  background: var(--color-magenta) !important;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.2) !important;
}
html.light-theme .btn-pink:hover {
  background: #9d124b !important;
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.35) !important;
}
html.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}
html.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}
html.light-theme .btn-white {
  background: #0F172A;
  color: #FFFFFF;
}
html.light-theme .btn-white:hover {
  background: rgba(15, 23, 42, 0.9);
}
html.light-theme .nav-item-link:hover,
html.light-theme .nav-item-link.active {
  color: var(--color-blue) !important;
}
html.light-theme .floating-orb {
  opacity: 0.1;
  mix-blend-mode: multiply;
}
html.light-theme .bg-glow-container {
  background-image: 
    radial-gradient(circle at 80% 10%, rgba(12, 102, 228, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(190, 24, 93, 0.08) 0%, transparent 45%);
}
html.light-theme .logo-img,
html.light-theme .admin-sidebar-logo img {
  filter: none !important;
}
html.light-theme .form-input-group input, 
html.light-theme .form-input-group select, 
html.light-theme .form-input-group textarea,
html.light-theme .newsletter-input,
html.light-theme .chat-input-row input,
html.light-theme .form-control {
  background-color: rgba(0, 0, 0, 0.02);
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.12);
}
html.light-theme .form-field-wrap label {
  color: #475569;
}
html.light-theme .form-field-wrap select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat !important;
  background-position: right 1.2rem center !important;
  background-size: 1rem !important;
}
html.light-theme .form-input-group input:focus, 
html.light-theme .form-input-group select:focus, 
html.light-theme .form-input-group textarea:focus,
html.light-theme .newsletter-input:focus,
html.light-theme .chat-input-row input:focus,
html.light-theme .form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--color-blue);
  box-shadow: 0 0 10px rgba(225, 0, 184, 0.1);
}
html.light-theme .form-field-wrap.invalid .form-control {
  border-color: var(--color-magenta);
  box-shadow: 0 0 8px rgba(190, 24, 93, 0.1);
}
html.light-theme .dashboard-frame {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}
html.light-theme .single-stat-block {
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}
html.light-theme .admin-sidebar {
  background: #F8FAFC;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}
html.light-theme .admin-nav-item a {
  color: #475569;
}
html.light-theme .admin-nav-item:hover a, 
html.light-theme .admin-nav-item.active a {
  color: var(--color-blue);
  background: rgba(18, 150, 232, 0.06);
}
html.light-theme .admin-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
html.light-theme .admin-data-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}
html.light-theme .admin-table th {
  background: #F1F5F9;
  color: #475569;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
html.light-theme .admin-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}
html.light-theme .modal-content-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--glass-shadow);
}
html.light-theme .brief-text-display {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}
html.light-theme .inquiry-detail-row {
  border-bottom-color: rgba(15, 23, 42, 0.04);
}
html.light-theme .admin-workspace-title p {
  color: #64748B;
}
html.light-theme .admin-login-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}
/* Ensure footer remains deep dark and high-contrast in both themes to keep the logo crisp and premium */
.footer-element {
  background: #05070A !important;
  color: #94A3B8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.footer-element h4 {
  color: #FFFFFF !important;
}
.footer-element p,
.footer-element .footer-description {
  color: #94A3B8 !important;
}
.footer-element a {
  color: #94A3B8 !important;
}
.footer-element a:hover {
  color: var(--color-blue) !important;
}
.footer-element .newsletter-input {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.footer-element .newsletter-input:focus {
  border-color: var(--color-blue) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.footer-element .social-icon-link {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}
.footer-element .social-icon-link:hover {
  color: #FFFFFF !important;
  background: var(--color-magenta) !important;
}
.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.footer-copyright-bar p {
  color: #64748B !important;
}
.footer-bottom-meta-links a {
  color: #64748B !important;
}
.footer-bottom-meta-links a:hover {
  color: #FFFFFF !important;
}
html.light-theme .footer-logo-img {
  /* No filter needed for footer logo anymore since background is dark */
  filter: none !important;
}
@media (max-width: 991px) {
  html.light-theme .nav-links-menu {
    background: #F8FAFC;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
  }
}
html.light-theme .chatbot-window {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-theme .chatbot-header {
  background: #F1F5F9;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
html.light-theme .chat-bubble.bot {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.05);
  color: #334155;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-primary);
  transition: var(--transition-fast);
  margin-right: 1.2rem;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-blue);
  transform: scale(1.05);
}

/* Toggle light mode classes for inner toggle icons */
html.light-theme .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--color-blue);
}

/* Responsive adjust for theme toggle on mobile */
@media (max-width: 991px) {
  .theme-toggle-btn {
    margin-right: 0.8rem;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Rich Text Editor & Custom Publisher Styling (Admin Pane)
   ========================================================================== */

/* editor field wrapper */
.editor-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* WYSIWYG editor toolbar */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 0.5rem;
  align-items: center;
}

/* Toolbar button styling */
.editor-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
}

.editor-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.editor-btn.active {
  background: rgba(58, 134, 200, 0.15);
  color: var(--color-blue);
  border-color: rgba(58, 134, 200, 0.3);
}

/* Toolbar Divider */
.editor-separator {
  width: 1px;
  height: 20px;
  background: var(--border-light);
  margin: 0 0.25rem;
}

/* Editor content-editable field */
.editor-content-control {
  min-height: 220px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.editor-content-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(58, 134, 200, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.editor-content-control img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.8rem 0;
  display: block;
}

/* Light Theme overrides for editor */
html.light-theme .editor-toolbar {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

html.light-theme .editor-btn {
  color: #475569;
}

html.light-theme .editor-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.light-theme .editor-btn.active {
  background: rgba(58, 134, 200, 0.1);
  color: var(--color-blue);
  border-color: rgba(58, 134, 200, 0.2);
}

html.light-theme .editor-separator {
  background: #cbd5e1;
}

html.light-theme .editor-content-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html.light-theme .editor-content-control:focus {
  background: #ffffff;
  border-color: var(--color-blue);
}

/* Featured Cover Image Preview Block */
.featured-image-upload-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.image-preview-box {
  width: 100px;
  height: 60px;
  border-radius: 6px;
  border: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  flex-shrink: 0;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-placeholder-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.2rem;
}

/* File Input styled trigger button */
.file-upload-trigger-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-upload-trigger-btn input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Single Article Presenter View on Client Insights Page */
.single-article-view {
  max-width: 820px;
  margin: 0 auto 5rem auto;
  animation: fadeIn 0.4s ease-out forwards;
}

.single-article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.single-article-back-btn:hover {
  color: var(--color-blue);
}

.single-article-header {
  margin-bottom: 2.5rem;
}

.single-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.single-article-meta .admin-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

.single-article-title {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: var(--ff-headings);
}

.single-article-cover {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.single-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-article-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.single-article-body p {
  margin-bottom: 1.5rem;
}

.single-article-body h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--ff-headings);
  font-weight: 600;
}

.single-article-body h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-family: var(--ff-headings);
  font-weight: 600;
}

.single-article-body ul, .single-article-body ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.single-article-body li {
  margin-bottom: 0.5rem;
}

.single-article-body a {
  color: var(--color-blue);
  text-decoration: underline;
}

.single-article-body a:hover {
  color: var(--text-primary);
}

.single-article-body blockquote {
  border-left: 4px solid var(--color-blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.single-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  display: block;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Light Theme overrides for single article */
html.light-theme .single-article-cover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.05);
}

html.light-theme .single-article-body blockquote {
  border-left-color: var(--color-blue);
}

@media (max-width: 768px) {
  .single-article-title {
    font-size: 2rem;
  }
  
  .single-article-cover {
    height: 250px;
    margin-bottom: 2rem;
  }
  
  .single-article-body {
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* Single Article Share Row & Buttons Styling */
.single-article-share-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 0.5rem 0;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}
html.light-theme .single-article-share-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.single-article-share-row .share-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  padding: 0;
}
html.light-theme .share-btn {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.share-btn i, .share-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
}
html.light-theme .share-btn:hover {
  color: #fff;
}
.share-btn.linkedin-share:hover {
  background: #0077b5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.35);
}
.share-btn.twitter-share:hover {
  background: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
html.light-theme .share-btn.twitter-share:hover {
  background: #000;
}
.share-btn.facebook-share:hover {
  background: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}
.share-btn.whatsapp-share:hover {
  background: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.share-btn.copy-link-share:hover {
  background: var(--color-blue);
  box-shadow: 0 4px 12px rgba(18, 150, 232, 0.35);
}
@media (max-width: 480px) {
  .single-article-share-row {
    gap: 0.5rem;
  }
  .share-btn {
    width: 32px;
    height: 32px;
  }
}

/* SEO Sub-Tabs navigation */
.seo-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
  padding-bottom: 0px;
}

.seo-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--ff-headings);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  outline: none;
}

.seo-tab-btn:hover {
  color: var(--text-primary);
}

.seo-tab-btn.active {
  color: var(--color-blue);
  font-weight: 600;
  border-bottom: 2px solid var(--color-blue);
}

/* Light Theme overrides for SEO Sub-tabs */
html.light-theme .seo-tab-btn {
  color: #64748b;
}

html.light-theme .seo-tab-btn:hover {
  color: #0f172a;
}

html.light-theme .seo-tab-btn.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

/* --- FAQ Accordion --- */
.faq-sec {
  padding: 70px 0;
  border-top: 1px solid var(--border-light);
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}
.faq-item:hover {
  border-color: var(--border-glow-blue);
  box-shadow: 0 4px 20px rgba(12, 102, 228, 0.05);
}
.faq-item summary {
  padding: 1.5rem;
  font-family: var(--ff-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-blue);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1rem;
}
html.light-theme .faq-content {
  border-top-color: rgba(15, 23, 42, 0.03);
}

/* --- Testimonials Section (Client Perspectives) --- */
.testimonials-sec {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.testimonials-carousel-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.testimonial-slide {
  display: none;
  width: 100%;
}
.testimonial-slide.active {
  display: block;
  animation: slideFadeIn 0.6s ease;
}
.testimonial-content-box {
  padding: 3.5rem 3rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: rgba(14, 21, 37, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
}
html.light-theme .testimonial-content-box {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.testimonial-quote-icon {
  font-size: 6rem;
  line-height: 1;
  color: var(--color-blue);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 2rem;
}
.testimonial-text {
  font-size: 1.4rem;
  line-height: 1.6;
  font-family: var(--ff-headings);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.testimonial-author-box .author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 0.2rem;
}
.testimonial-author-box .author-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.carousel-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
html.light-theme .carousel-nav-btn {
  background: rgba(15, 23, 42, 0.02);
}
.carousel-nav-btn:hover {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}
.carousel-dots-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}
html.light-theme .carousel-dot {
  background: rgba(15, 23, 42, 0.15);
}
.carousel-dot.active {
  background: var(--color-blue);
  transform: scale(1.2);
}

/* --- The Track Record Section --- */
.track-record-sec {
  padding: 70px 0;
  position: relative;
  background: rgba(5, 7, 10, 0.2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
html.light-theme .track-record-sec {
  background: rgba(248, 250, 252, 0.4);
}
.stats-grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 16px;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
  background: rgba(14, 21, 37, 0.3);
}
html.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-magenta);
  box-shadow: var(--glow-shadow-magenta);
}
html.light-theme .stat-card:hover {
  box-shadow: 0 15px 35px rgba(225, 0, 184, 0.12);
}
.stat-number-wrap {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-magenta);
  font-family: var(--ff-headings);
  line-height: 1.1;
}
.stat-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--ff-headings);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
.stat-title {
  font-family: var(--ff-headings);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}
.stat-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}


@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .stats-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .stats-grid-layout {
    grid-template-columns: 1fr;
  }
  .testimonial-content-box {
    padding: 2rem 1.5rem;
  }
  .testimonial-text {
    font-size: 1.15rem;
  }
}

/* Capabilities Tab Component */
.capabilities-tab-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.capabilities-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cap-tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: var(--ff-headings);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cap-tab-btn i {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  transition: var(--transition-smooth);
}

.cap-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-blue);
  color: var(--text-primary);
}

.cap-tab-btn.active {
  background: rgba(18, 150, 232, 0.08);
  border-color: var(--color-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(18, 150, 232, 0.05);
}

.cap-tab-btn.active i {
  color: var(--color-blue);
  transform: scale(1.1);
}

/* Light Theme overrides for buttons */
html.light-theme .cap-tab-btn {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}
html.light-theme .cap-tab-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--color-blue);
}
html.light-theme .cap-tab-btn.active {
  background: rgba(225, 0, 184, 0.06);
  border-color: var(--color-blue);
}

.capabilities-tab-content {
  background: rgba(14, 21, 37, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 420px;
  box-shadow: var(--shadow-card);
  position: relative;
}

html.light-theme .capabilities-tab-content {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
}

.cap-content-panel {
  display: none;
  animation: tabFadeIn 0.4s ease forwards;
}

.cap-content-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cap-content-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}

.cap-content-icon {
  width: 48px;
  height: 48px;
  color: var(--color-blue);
  padding: 0.75rem;
  background: rgba(18, 150, 232, 0.1);
  border-radius: 12px;
}
.cap-content-icon.magenta {
  color: var(--color-magenta);
  background: rgba(225, 0, 184, 0.1);
}

.cap-content-title {
  font-family: var(--ff-headings);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.cap-content-subtitle {
  font-family: var(--ff-headings);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-blue);
}

.cap-content-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}
.cap-content-text:last-child {
  margin-bottom: 0;
}

/* Mobile responsive details styles for panels */
@media (max-width: 991px) {
  .capabilities-tab-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .capabilities-tab-nav {
    display: none; /* Hide buttons on mobile, stack accordions instead */
  }
  .cap-content-panel {
    display: block;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
  }
  html.light-theme .cap-content-panel {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
  }
  .cap-content-panel:last-child {
    margin-bottom: 0;
  }
  .capabilities-tab-content {
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
    min-height: auto;
  }
}

/* Leadership Profile Component */
.leader-card {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem;
  text-align: left;
}

.leader-img {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.leader-card:hover .leader-img {
  transform: scale(1.03);
  border-color: var(--color-blue);
  box-shadow: var(--glow-shadow-blue);
}

.leader-info {
  display: flex;
  flex-direction: column;
}

.leader-name {
  font-family: var(--ff-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.leader-title {
  font-family: var(--ff-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1.5rem;
}

.leader-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .leader-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
  .leader-img {
    width: 150px;
    height: 200px;
  }
}

/* Symmetric Team Layout Grid */
.team-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.team-flank-column {
  display: flex;
  flex-direction: column;
}

.team-member-card {
  transition: var(--transition-smooth);
}

.team-member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 0, 184, 0.2);
}

.highlighted-ceo-card {
  transition: var(--transition-smooth);
}

.highlighted-ceo-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-magenta) !important;
  box-shadow: 0 0 35px rgba(225, 0, 184, 0.4) !important;
}

@media (max-width: 991px) {
  .team-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Mandate & Philosophy Split Grids */
.mandate-grid, .philosophy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.philosophy-grid {
  grid-template-columns: 0.95fr 1.05fr;
}
.mandate-graphic-panel, .philosophy-graphic-panel {
  width: 100%;
}

@media (max-width: 991px) {
  .mandate-grid, .philosophy-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .mandate-sec, .philosophy-sec {
    text-align: center !important;
  }
  .mandate-grid .glass-panel, .philosophy-grid .glass-panel {
    text-align: left !important;
  }
}

/* Eclipse Theme Transition Overlay */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  pointer-events: none;
  clip-path: circle(0px at var(--clip-x, 50%) var(--clip-y, 50%));
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-transition-overlay.active {
  clip-path: circle(150% at var(--clip-x, 50%) var(--clip-y, 50%));
}

/* Positioning Matrix Simulator Styles */
html.light-theme .positioning-grid-box {
  background: rgba(0, 0, 0, 0.02) !important;
}
html.light-theme .axis {
  background: rgba(15, 23, 42, 0.08) !important;
}
@media (max-width: 991px) {
  .matrix-grid-container {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

/* --- Services Challenges List Styles --- */
.services-challenges-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  text-align: left;
  margin: 0 auto 3rem auto;
  max-width: 800px;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .services-challenges-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }
}

/* --- Mobile Navigation & Header Spacing Tweaks --- */
@media (max-width: 991px) {
  .dropdown-menu li {
    margin-bottom: 0.65rem;
  }
  .dropdown-menu li:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 34px !important;
  }
  .header-nav.scrolled .logo-img {
    height: 30px !important;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 28px !important;
  }
  .header-nav.scrolled .logo-img {
    height: 26px !important;
  }
}

/* --- Mobile Menu Backdrop Overlay --- */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

html.light-theme .mobile-menu-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* --- Footer Copyright Bar Layout Stack --- */
@media (max-width: 768px) {
  .footer-copyright-bar {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  .footer-bottom-meta-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
}

/* --- Expertise Number Styles --- */
.expertise-number {
  color: var(--color-magenta);
  font-weight: 700;
  font-family: var(--ff-headings);
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.8rem;
  line-height: 1;
}

/* --- High-Impact Challenges Section --- */
/* --- High-Impact Challenges Section --- */
.challenges-grid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.challenge-friction-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2.2rem 2rem;
  background: rgba(13, 20, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}
html.light-theme .challenge-friction-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}
.challenge-friction-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-magenta);
  box-shadow: 0 16px 40px rgba(225, 0, 184, 0.22);
  background: rgba(20, 29, 48, 0.7);
}
html.light-theme .challenge-friction-card:hover {
  background: #FFFFFF;
  border-color: var(--color-magenta);
  box-shadow: 0 16px 40px rgba(190, 24, 93, 0.12);
}
.friction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}
.challenge-friction-num {
  font-family: var(--ff-headings);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-magenta);
  line-height: 1;
  text-shadow: 0 0 15px rgba(225, 0, 184, 0.25);
}
.friction-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
html.light-theme .friction-icon-wrap {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}
.challenge-friction-card:hover .friction-icon-wrap {
  background: rgba(225, 0, 184, 0.1);
  border-color: rgba(225, 0, 184, 0.2);
  color: var(--color-magenta);
  box-shadow: 0 0 10px rgba(225, 0, 184, 0.2);
}
.challenge-friction-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-family: var(--ff-headings);
}
.challenge-friction-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #B0B0B0;
  margin: 0;
}
html.light-theme .challenge-friction-content p {
  color: #475569;
}

/* Solution Banner Styles */
.resolution-highlight-panel {
  background: linear-gradient(135deg, rgba(10, 17, 32, 0.95) 0%, rgba(3, 5, 8, 0.98) 100%);
  border: 1px solid rgba(225, 0, 184, 0.25);
  border-left: 4px solid #E100B8;
  border-radius: 18px;
  padding: 3.5rem;
  box-shadow: 0 0 35px rgba(225, 0, 184, 0.15);
  position: relative;
  overflow: hidden;
}
.resolution-header-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.resolution-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 1.5rem 0;
}
.resolution-col-item {
  display: flex;
  gap: 1.2rem;
  align-items: start;
}
.resolution-icon-circle-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.resolution-icon-circle-wrap.blue {
  background: rgba(18, 150, 232, 0.12);
  color: var(--color-blue);
}
.resolution-icon-circle-wrap.magenta {
  background: rgba(225, 0, 184, 0.12);
  color: var(--color-magenta);
}
.resolution-col-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
  font-family: var(--ff-headings);
}
.resolution-col-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #CBD5E1 !important;
  margin: 0;
}
.resolution-footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  position: relative;
}
.resolution-metric-badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  background: rgba(225, 0, 184, 0.15) !important;
  border: 1px solid rgba(225, 0, 184, 0.3) !important;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--ff-headings);
  color: #E100B8 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(225, 0, 184, 0.4);
}

/* Responsiveness overrides */
@media (max-width: 1024px) {
  .challenges-grid-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .resolution-columns-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .challenges-grid-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .resolution-footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .resolution-footer-wrap .btn-pink {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   Mobile-First & Tablet UI/UX Optimizations (Tata AIA, HDFC Life & Kotak Life)
   ========================================================================== */

/* 1. Mobile Sticky Bottom Quick-Action Hub */
.mobile-action-hub {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  display: none; /* Hidden by default, shown via media query */
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  z-index: 9999;
  padding: 0 10px;
}

.mobile-action-hub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  gap: 4px;
  transition: color 0.3s ease;
  width: 100%;
  height: 100%;
}

.mobile-action-hub-item i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.mobile-action-hub-item:hover, .mobile-action-hub-item.active {
  color: #FFFFFF;
}

.mobile-action-hub-item.primary-engage {
  color: var(--color-magenta);
}

.mobile-action-hub-item.primary-engage i {
  color: var(--color-magenta);
}

.mobile-action-hub-item.primary-engage:hover {
  color: #FFFFFF;
}

/* 2. Fluid Typography for Hero and Section Titles */
h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem) !important;
}
h2.section-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4rem) !important;
}
.cta-headline {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem) !important;
}

/* 3. Slide-Out Mobile Navigation Drawer & Accordion Dropdowns */
@media (max-width: 991px) {
  /* Hide standard header CTA and theme toggle from header, they move to navigation */
  .header-nav .nav-cta-btn {
    display: none;
  }
  
  /* Redesign Mobile Navigation List into a Slide Drawer */
  .nav-links-menu {
    position: fixed;
    top: 0;
    right: -320px; /* Initially hidden offscreen */
    width: 300px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 100px 30px 40px 30px !important;
    gap: 1.5rem !important;
    z-index: 9998;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto;
    display: flex !important;
  }
  
  .nav-links-menu.active {
    right: 0;
  }
  
  .nav-links-menu li {
    width: 100%;
    margin: 0 !important;
  }
  
  .nav-links-menu li a.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .nav-links-menu li a.nav-item-link i {
    width: 18px;
    height: 18px;
    opacity: 0.8;
  }
  
  /* Mobile Dropdown Styling (Accordion) */
  .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 0 24px !important;
    margin-top: 0.5rem !important;
    display: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
  }
  
  .has-dropdown.active .dropdown-menu {
    display: block !important;
  }
  
  .dropdown-item-link {
    padding: 8px 0 !important;
    border-bottom: none !important;
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
  }
}

/* 4. Bottom action hub and padding compensation for mobile devices */
@media (max-width: 576px) {
  .mobile-action-hub {
    display: grid;
  }
  /* Compensate body padding so sticky bottom doesn't cover footer/content */
  body {
    padding-bottom: 65px !important;
  }
}

/* 5. Touch-Swipe & Scroll-Snap Horizontal Cards for Grids */
@media (max-width: 768px) {
  .outcomes-grid, .challenges-grid-row, .services-cards-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 1.5rem;
    scroll-padding-right: 1.5rem;
  }
  .bio-highlight-card, .challenge-friction-card, .glass-card {
    flex: 0 0 85% !important;
    width: 85% !important;
    max-width: 320px !important;
    scroll-snap-align: center !important;
  }
  /* Hide scrollbar for clean appearance */
  .outcomes-grid::-webkit-scrollbar, 
  .challenges-grid-row::-webkit-scrollbar,
  .services-cards-grid::-webkit-scrollbar {
    display: none;
  }
}

/* 6. Chatbot Widget mobile positioning adjustments to avoid overlapping sticky bottom */
@media (max-width: 576px) {
  .chatbot-trigger {
    bottom: calc(65px + 1rem) !important;
    right: 1rem !important;
  }
  .chatbot-window {
    bottom: calc(65px + 4.5rem) !important;
    right: 1rem !important;
  }
}

/* ==========================================================================
   CEO Feedback & High-Stakes Repositioning Upgrades
   ========================================================================== */

/* --- Brand Pillars Tagline Bar --- */
.brand-pillars-bar {
  background: rgba(14, 21, 37, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  z-index: 100;
  position: relative;
}
.pillars-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.pillar-item {
  font-family: var(--ff-headings);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FFFFFF;
  opacity: 0.85;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 8px var(--color-blue);
}
.pillar-item:nth-child(even)::before {
  background: var(--color-magenta);
  box-shadow: 0 0 8px var(--color-magenta);
}
.pillar-item:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .pillars-container {
    justify-content: center;
    gap: 1rem;
  }
  .pillar-item {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }
}

/* --- CEO Foresight & Timeline CSS --- */
.foresight-sec {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-light);
  background: radial-gradient(circle at 80% 50%, rgba(18, 150, 232, 0.05), transparent 60%);
}
.foresight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 991px) {
  .foresight-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.foresight-quote-card {
  padding: 3rem;
  position: relative;
}
.foresight-quote-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 8rem;
  font-family: serif;
  color: rgba(225, 0, 184, 0.1);
  line-height: 1;
}
.foresight-text {
  font-size: 1.35rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.foresight-author {
  font-family: var(--ff-headings);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-magenta);
}
.timeline-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-track-wrap {
  position: relative;
  padding: 2rem 0;
}
.timeline-track-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}
.timeline-track-progress {
  position: absolute;
  top: 50%;
  left: 0;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
  transform: translateY(-50%);
  z-index: 2;
}
.timeline-nodes-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}
.timeline-node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.timeline-node-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
.timeline-node-item.active .timeline-node-dot,
.timeline-node-item:hover .timeline-node-dot {
  border-color: var(--color-magenta);
  background: var(--color-magenta);
  box-shadow: 0 0 15px var(--color-magenta), 0 0 0 4px rgba(0, 0, 0, 0.5);
  transform: scale(1.25);
}
.timeline-node-item:nth-child(odd).active .timeline-node-dot,
.timeline-node-item:nth-child(odd):hover .timeline-node-dot {
  border-color: var(--color-blue);
  background: var(--color-blue);
  box-shadow: 0 0 15px var(--color-blue), 0 0 0 4px rgba(0, 0, 0, 0.5);
}
.timeline-node-year {
  font-family: var(--ff-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.8rem;
}
.timeline-node-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
}
.timeline-description-card {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.timeline-description-card h4 {
  font-family: var(--ff-headings);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.timeline-description-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- High-Stakes Case Briefings CSS --- */
.case-briefing-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-briefing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 150, 232, 0.25);
  box-shadow: 0 20px 40px rgba(18, 150, 232, 0.05);
}
.case-briefing-card.magenta-border-hover:hover {
  border-color: rgba(225, 0, 184, 0.25);
  box-shadow: 0 20px 40px rgba(225, 0, 184, 0.05);
}
.case-meta-pillar {
  font-family: var(--ff-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-blue);
  padding: 4px 10px;
  background: rgba(18, 150, 232, 0.08);
  border: 1px solid rgba(18, 150, 232, 0.15);
  border-radius: 4px;
  align-self: flex-start;
}
.case-briefing-card.magenta-border-hover .case-meta-pillar {
  color: var(--color-magenta);
  background: rgba(225, 0, 184, 0.08);
  border: 1px solid rgba(225, 0, 184, 0.15);
}
.case-title {
  font-family: var(--ff-headings);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.case-flow-segment {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.case-flow-label {
  font-family: var(--ff-headings);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.case-flow-value {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.case-flow-value.outcome-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

/* Add swipe/snap scrollbar hides for case grids on mobile */
@media (max-width: 768px) {
  .case-briefings-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 1.5rem;
    scroll-padding-right: 1.5rem;
  }
  .case-briefing-card {
    flex: 0 0 85% !important;
    width: 85% !important;
    max-width: 320px !important;
    scroll-snap-align: center !important;
  }
  .case-briefings-grid::-webkit-scrollbar {
    display: none;
  }
}

/* Spacing optimizations to clean up excessive empty spaces on mobile devices */
@media (max-width: 768px) {
  section {
    padding: 45px 0 !important;
  }
  .hero-sec {
    padding-top: 120px !important;
    padding-bottom: 45px !important;
    min-height: auto !important;
  }
  .testimonials-sec {
    padding: 45px 0 !important;
  }
  .track-record-sec {
    padding: 45px 0 !important;
  }
  /* Offset philosophy-sec top padding to prevent header overlap */
  .philosophy-sec {
    padding-top: 110px !important;
    padding-bottom: 45px !important;
  }
}

/* Dark mode backgrounds for sections with removed inline background styles */
.case-briefings-sec {
  background: rgba(5, 7, 10, 0.4);
}
.signature-quote-sec {
  background: rgba(5, 7, 10, 0.3);
}

/* --- Dynamic Light Mode Color Corrections --- */
html.light-theme .case-briefings-sec {
  background: var(--bg-dark) !important;
}


html.light-theme .case-flow-segment {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}
html.light-theme .signature-quote-sec {
  background: var(--bg-dark) !important;
}
html.light-theme .signature-quote-sec p {
  color: var(--text-primary) !important;
}

/* --- Light theme overrides for newly cleaned-up sections --- */
html.light-theme .meet-samuel-home {
  background: var(--bg-dark) !important;
}
html.light-theme .meet-samuel-glass {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05) !important;
}
html.light-theme .mandates-badge {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}
html.light-theme .homepage-leadership-section {
  background: var(--bg-darker) !important;
}
html.light-theme .faq-redirection-panel {
  background: var(--bg-card) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* --- Resolution Panel Light Mode Overrides --- */
html.light-theme .resolution-highlight-panel {
  background: var(--bg-card) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
}
html.light-theme .resolution-header-wrap {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}
html.light-theme .resolution-header-desc {
  color: var(--text-secondary) !important;
}
html.light-theme .resolution-col-content h5 {
  color: var(--text-primary) !important;
}
html.light-theme .resolution-col-content p {
  color: var(--text-secondary) !important;
}
html.light-theme .resolution-footer-wrap {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}
html.light-theme .resolution-metric-badge {
  background: rgba(190, 24, 93, 0.06) !important;
  border-color: rgba(190, 24, 93, 0.15) !important;
  color: var(--color-magenta) !important;
}

/* --- Timeline Panel Light Mode Overrides --- */
html.light-theme .timeline-track-line {
  background: rgba(15, 23, 42, 0.1) !important;
}
html.light-theme .timeline-node-dot {
  border-color: rgba(15, 23, 42, 0.2) !important;
  box-shadow: 0 0 0 4px var(--bg-darker) !important;
}
html.light-theme .timeline-node-item.active .timeline-node-dot,
html.light-theme .timeline-node-item:hover .timeline-node-dot {
  box-shadow: 0 0 15px var(--color-magenta), 0 0 0 4px var(--bg-darker) !important;
}
html.light-theme .timeline-node-item:nth-child(odd).active .timeline-node-dot,
html.light-theme .timeline-node-item:nth-child(odd):hover .timeline-node-dot {
  box-shadow: 0 0 15px var(--color-blue), 0 0 0 4px var(--bg-darker) !important;
}
html.light-theme .timeline-description-card {
  background: var(--bg-card) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

/* --- Light theme overrides for Who We Are mock interface --- */
html.light-theme .perception-details {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}
html.light-theme .node-group:hover circle:first-of-type {
  stroke: var(--text-primary) !important;
}
