/* ==========================================================================
   MEDWIZE GLOBAL - Enterprise Custom Software & 360° Digital Marketing
   Modern CSS Architecture, Dynamic Theme Engine, Glassmorphism & Micro-Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Multi-Theme System
   -------------------------------------------------------------------------- */
:root {
  /* Default Theme: Cyber Midnight (Neon Cyan & Violet Dark) */
  --bg-dark: #080C14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --bg-surface: #0E1626;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-nav: rgba(8, 12, 20, 0.85);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-glow: #00F2FE;

  --accent-cyan: #00F2FE;
  --accent-violet: #7928CA;
  --accent-purple: #9333EA;
  --accent-emerald: #10B981;
  --accent-gold: #F59E0B;

  --gradient-primary: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --gradient-accent: linear-gradient(135deg, #7928CA 0%, #FF0080 100%);
  --gradient-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-glow: radial-gradient(circle at 50% -20%, rgba(0, 242, 254, 0.15), transparent 70%);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.4);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.25);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-dark);
}

/* Theme Option 2: Emerald Cyber (Dark Slate & Emerald Green) */
[data-theme="emerald"] {
  --bg-dark: #061412;
  --bg-card: rgba(10, 31, 28, 0.65);
  --bg-card-hover: rgba(16, 48, 43, 0.85);
  --bg-surface: #0B2420;
  --bg-glass: rgba(10, 31, 28, 0.8);
  --bg-nav: rgba(6, 20, 18, 0.9);

  --text-primary: #ECFDF5;
  --text-secondary: #A7F3D0;
  --text-muted: #4ADE80;
  --text-glow: #34D399;

  --accent-cyan: #34D399;
  --accent-violet: #059669;
  --border-glow: rgba(52, 211, 153, 0.4);

  --gradient-primary: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  --shadow-glow: 0 0 35px rgba(52, 211, 153, 0.25);
}

/* Theme Option 3: Titanium Navy (Royal Navy & Gold Accent) */
[data-theme="titanium"] {
  --bg-dark: #0B132B;
  --bg-card: rgba(28, 37, 65, 0.65);
  --bg-card-hover: rgba(42, 55, 94, 0.85);
  --bg-surface: #1C2541;
  --bg-glass: rgba(28, 37, 65, 0.8);
  --bg-nav: rgba(11, 19, 43, 0.9);

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-glow: #F59E0B;

  --accent-cyan: #F59E0B;
  --accent-violet: #3B82F6;
  --border-glow: rgba(245, 158, 11, 0.4);

  --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.25);
}

/* Theme Option 4: Clean Slate Light (Crisp White & Ocean Blue Light Mode) */
[data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-nav: rgba(255, 255, 255, 0.96);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-glow: #0284C7;

  --accent-cyan: #0284C7;
  --accent-violet: #0D9488;
  --border-color: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(2, 132, 199, 0.4);

  --gradient-primary: linear-gradient(135deg, #0284C7 0%, #0D9488 100%);
  --gradient-glow: radial-gradient(circle at 50% -20%, rgba(2, 132, 199, 0.08), transparent 70%);
  --shadow-glass: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 4px 20px rgba(2, 132, 199, 0.2);

  color-scheme: light;
}

/* Light Theme Component Overrides for High Visibility */
[data-theme="light"] .top-bar {
  background: #E2E8F0;
  color: #1E293B;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .top-location-badge,
[data-theme="light"] .top-contact-links a {
  color: #334155;
}
[data-theme="light"] .top-contact-links a:hover {
  color: #0284C7;
}

[data-theme="light"] .site-header,
[data-theme="light"] .header-bar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .logo-text {
  background: linear-gradient(135deg, #0F172A 30%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nav-link {
  color: #334155;
}

[data-theme="light"] .nav-link:hover, 
[data-theme="light"] .nav-link.active, 
[data-theme="light"] .nav-item:hover .nav-link,
[data-theme="light"] .nav-item.open .nav-link {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .mega-dropdown {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .dropdown-item {
  background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .dropdown-item:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .dropdown-text h4 {
  color: #0F172A;
}

[data-theme="light"] .dropdown-text p {
  color: #64748B;
}

[data-theme="light"] .theme-switcher {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .theme-btn {
  color: #475569;
}

[data-theme="light"] .theme-btn:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .theme-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

[data-theme="light"] .hero-title,
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4 {
  color: #0F172A;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .section-desc,
[data-theme="light"] .service-lead,
[data-theme="light"] p {
  color: #475569;
}

[data-theme="light"] .badge-pill {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .pillar-card,
[data-theme="light"] .service-card-feature,
[data-theme="light"] .case-card,
[data-theme="light"] .case-study-card,
[data-theme="light"] .tech-group-card,
[data-theme="light"] .estimator-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .code-snippet-box {
  background: #0F172A;
  color: #F8FAFC;
}

/* Light Theme Case Study Metrics Box (Fixes muddy grey background) */
[data-theme="light"] .metrics-badge-strip,
[data-theme="light"] .case-metrics,
[data-theme="light"] .case-study-stats,
[data-theme="light"] .stat-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.2) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .metric-val,
[data-theme="light"] .case-stat-value {
  color: #0284C7 !important;
}

[data-theme="light"] .metric-lbl,
[data-theme="light"] .case-stat-label {
  color: #334155 !important;
  font-weight: 700 !important;
}

/* Light Theme Footer Styling */
[data-theme="light"] .site-footer {
  background: #F8FAFC !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0F172A;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-bottom,
[data-theme="light"] .footer-links p {
  color: #475569;
}

[data-theme="light"] .footer-col h4,
[data-theme="light"] .footer-links h4 {
  color: #0F172A;
}

[data-theme="light"] .footer-col ul li a,
[data-theme="light"] .footer-links ul li a,
[data-theme="light"] .footer-bottom a {
  color: #334155;
}

[data-theme="light"] .footer-col ul li a:hover,
[data-theme="light"] .footer-links ul li a:hover,
[data-theme="light"] .footer-bottom a:hover {
  color: #0284C7;
}

[data-theme="light"] .seo-pill {
  background: #E2E8F0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #1E293B;
  font-weight: 600;
}

[data-theme="light"] .tech-pill {
  background: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .tech-pill:hover {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0284C7;
}

/* Service Detail Page Hero Layout */
.service-hero-section {
  padding: 150px 0 80px;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-meta-stats {
  display: flex;
  gap: 28px;
  margin: 8px 0;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  width: 100%;
}

.meta-stat-item {
  display: flex;
  flex-direction: column;
}

.meta-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.meta-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.service-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.service-card-feature {
  padding: 28px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.feature-checklist i {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Ambient Glow Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: -1;
}

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

ul {
  list-style: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: var(--border-radius-pill);
}

/* --------------------------------------------------------------------------
   3. Top Announcement & Floating Scroll Bar
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

.top-bar {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.top-contact-links {
  display: flex;
  gap: 16px;
}

.top-contact-links a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Component
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 12px;
}

/* Zone 1: Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--gradient-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.logo-text {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-pill);
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

[data-theme="light"] .logo-badge {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

/* Zone 2: Navigation Menu & Active Dropdown State */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  overflow: visible;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

/* Nav Item Link with Active Pill Container Highlight */
.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--border-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

/* Active & Open Pill Background State */
.nav-link:hover, 
.nav-link.active, 
.nav-item:hover .nav-link,
.nav-item.open .nav-link {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.12);
}

/* Chevron Down Arrow Flip on Active State */
.nav-chevron {
  font-size: 0.75rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-item:hover .nav-chevron,
.nav-item.open .nav-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Zone 2: Mega-Menu Dropdown Grid Container */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 980px;
  max-width: 95vw;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-surface);
}

.mega-dropdown::-webkit-scrollbar {
  width: 6px;
}
.mega-dropdown::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

.nav-item:hover .mega-dropdown,
.nav-item.open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 3-Column Mega-Menu Architecture */
.mega-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mega-Menu 2-Column Legacy Grid Architecture */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Section Categorization Pill/Badge Chips */
.mega-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--border-radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-cyan);
  margin-top: 4px;
  margin-bottom: 4px;
  align-self: start;
  width: fit-content;
}

/* Menu Item Component */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* Left Side: Rounded Icon Container Box */
.dropdown-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.dropdown-item:hover .dropdown-icon {
  background: var(--gradient-primary);
  color: #050B14;
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Right Side: Title & Description */
.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color var(--transition-fast);
}

.dropdown-item:hover .dropdown-text h4 {
  color: var(--accent-cyan);
}

.dropdown-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Zone 3: Header Controls & Action Area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-pill);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.theme-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  padding: 0;
}

.theme-btn.active {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Zone 3 Action Button with Text & Inline Arrow Box */
.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: var(--gradient-primary);
  color: #050B14;
  font-weight: 800;
  font-size: 0.86rem;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
  flex-shrink: 0;
  height: 38px;
  line-height: 1;
  text-decoration: none;
}

.header-action-btn span {
  white-space: nowrap;
  display: inline-block;
  letter-spacing: -0.2px;
}

.header-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.45);
}

.action-arrow-box,
.action-icon-box {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: rgba(5, 11, 20, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #050B14;
  transition: transform var(--transition-bounce), background var(--transition-fast);
  flex-shrink: 0;
}

.header-action-btn:hover .action-arrow-box,
.header-action-btn:hover .action-icon-box {
  transform: translateX(3px) rotate(-45deg);
  background: #050B14;
  color: var(--accent-cyan);
}

[data-theme="light"] .header-action-btn {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .header-action-btn span {
  color: #FFFFFF;
}

[data-theme="light"] .action-arrow-box,
[data-theme="light"] .action-icon-box {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

[data-theme="light"] .header-action-btn:hover .action-arrow-box,
[data-theme="light"] .header-action-btn:hover .action-icon-box {
  background: #FFFFFF;
  color: #0284C7;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   5. Buttons & Global Utility Components
   -------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--border-radius-pill);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #050B14;
  box-shadow: var(--shadow-glow);

}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0;
}

.section-title .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6. Powerful Interactive Dual-Engine Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 60px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Ambient Radial Glow Background Mesh Orbs */
.hero-mesh-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

/* Left Hero Typography & Actions */
.hero-content {
  min-width: 0;
  width: 100%;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--border-radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 100%;
}

.hero-live-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-live-badge .badge-tag {
  color: var(--accent-cyan);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-live-badge .badge-detail {
  color: var(--text-secondary);
  font-weight: 500;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 8px;
}

[data-theme="light"] .hero-live-badge {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .hero-live-badge .badge-tag {
  color: #0284C7;
}

[data-theme="light"] .hero-live-badge .badge-detail {
  color: #475569;
  border-left-color: rgba(15, 23, 42, 0.15);
}

.hero-content h1 {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
  color: var(--text-primary);
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-accent-text {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #00F2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-accent-text {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-gradient-text {
  background: linear-gradient(135deg, #0D9488 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-guarantee-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-guarantee-bar span i {
  color: #10B981;
  margin-right: 4px;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 10px;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.trust-badge-pill i {
  color: var(--accent-cyan);
}

.trust-badge-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

[data-theme="light"] .trust-badge-pill {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .trust-badge-pill i {
  color: #0284C7;
}

/* Right Hero: Balanced, Compact Interactive Command Center */
.hero-command-center {
  position: relative;
  width: 100%;
  min-width: 0;
}

.command-window {
  background: #080D1A;
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 380px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .command-window {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.command-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

[data-theme="light"] .command-window-header {
  background: #F1F5F9;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

/* Interactive Terminal Tab Switcher */
.command-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

[data-theme="light"] .command-tabs {
  background: #E2E8F0;
}

.cmd-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cmd-tab-btn.active {
  background: #FFFFFF;
  color: #0284C7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.window-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
}

/* Command Window Panes */
.command-pane {
  display: none;
  padding: 14px 16px;
  flex: 1;
  overflow: hidden;
}

.command-pane.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeIn 0.3s ease;
}

/* Enterprise Infinite Code Stream Terminal */
.code-terminal-body {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #E2E8F0;
  background: #04070F;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.4) transparent;
}

.code-terminal-body::-webkit-scrollbar {
  width: 4px;
}

.code-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.4);
  border-radius: 4px;
}

[data-theme="light"] .code-terminal-body {
  background: #0F172A;
  color: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.15);
}

.code-stream-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.code-line {
  display: flex;
  align-items: center;
  white-space: pre;
  animation: lineFadeIn 0.18s ease-out;
}

@keyframes lineFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.line-num {
  width: 24px;
  min-width: 24px;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
  font-size: 0.72rem;
  text-align: right;
  margin-right: 10px;
}

.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent-cyan);
  margin-left: 3px;
  animation: blinkCursor 0.8s infinite;
  vertical-align: middle;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.token-kw { color: #F472B6; font-weight: 700; }
.token-fn { color: #60A5FA; font-weight: 600; }
.token-str { color: #34D399; }
.token-obj { color: #FBBF24; font-weight: 600; }
.token-type { color: #38BDF8; }
.token-comment { color: #94A3B8; font-style: italic; }

/* Real-time Enterprise Console Output Feed */
.terminal-console-output {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: #34D399;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.console-log-row {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: lineFadeIn 0.25s ease;
}

.console-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.3px;
}

.terminal-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.telemetry-item i {
  color: var(--accent-cyan);
}

/* Growth Radar Pane Styling */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  height: 220px;
  min-height: 220px;
}

.radar-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-fast);
}

.radar-stat-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.04);
  transform: translateY(-2px);
}

[data-theme="light"] .radar-stat-card {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.1);
}

.radar-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

[data-theme="light"] .radar-val {
  color: #0284C7;
}

.radar-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

.radar-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  margin-top: 4px;
  width: fit-content;
}

/* Floating Interactive Badges on Hero Visual */
.hero-float-chip {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: floatSlow 4s ease-in-out infinite;
}

.hero-float-chip.chip-top {
  top: -16px;
  right: -20px;
}

.hero-float-chip.chip-bottom {
  bottom: -18px;
  left: -20px;
  animation-delay: 2s;
}

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

.chip-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chip-icon.icon-cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
}

.chip-icon.icon-green {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.chip-text h6 {
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.chip-text p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

[data-theme="light"] .hero-float-chip {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Social Proof Strip */
.social-proof-strip {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: 40px;
}

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

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.proof-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.proof-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Core Service Pillars (3-Column Interactive Grid)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glass);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-features-list {
  margin-bottom: 28px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.service-features-list li i {
  color: var(--accent-cyan);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.service-link i {
  transition: transform var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Industry-Specific Solutions (Tabbed Showcase)
   -------------------------------------------------------------------------- */
.solutions-section {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-color);
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 28px;
  border-radius: var(--border-radius-pill);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--gradient-primary);
  color: #050B14;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  animation: fadeIn 0.4s ease;
  min-width: 0;
  width: 100%;
}

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

.solution-details {
  min-width: 0;
  width: 100%;
}

.solution-details h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.solution-details p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.solution-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--border-radius-md);
  min-width: 0;
}

.highlight-box h4 {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Glass Card Preview with strict bounded constraints */
.glass-card-preview {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  position: relative;
  box-sizing: border-box;
}

.glass-card-preview img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  display: block;
}

[data-theme="light"] .glass-card-preview {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   9. End-to-End Methodology Flow
   -------------------------------------------------------------------------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.flow-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  border-radius: var(--border-radius-lg);
  position: relative;
  transition: transform var(--transition-fast);
}

.flow-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: #000;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.flow-step-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.flow-step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Case Studies Grid & Filters
   -------------------------------------------------------------------------- */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.case-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.case-card-body {
  padding: 32px;
}

.case-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.case-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.metrics-badge-strip {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--border-radius-md);
  margin: 20px 0;
}

.metric-item {
  flex: 1;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

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

/* --------------------------------------------------------------------------
   11. Tech Stack & Ecosystem Matrix
   -------------------------------------------------------------------------- */
.tech-matrix-section {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-color);
}

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

.tech-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--border-radius-lg);
}

.tech-group-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   12. Interactive ROI & Tech Estimator Calculator
   -------------------------------------------------------------------------- */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-glass);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

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

.option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-btn.selected, .option-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.estimator-output-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.output-val {
  font-weight: 800;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   13. Testimonials & High Conversion Banner
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--border-radius-lg);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(121, 40, 202, 0.15) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0;
}

.cta-banner h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   14. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background: #04070D;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.seo-location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.seo-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   15. Modals, Floating WhatsApp Simulator & Mobile Sticky Bar
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   15. Modals, Floating WhatsApp Simulator & Mobile Sticky Bar
   10. Modals & Strategy Call System
   -------------------------------------------------------------------------- */
dialog.strategy-modal,
dialog.arcade-modal,
dialog#strategyModal,
dialog#arcadeModal,
dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  background: #080D1A;
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  padding: 36px;
  max-width: 680px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 242, 254, 0.25);
  z-index: 100000;
}

[data-theme="light"] dialog.strategy-modal,
[data-theme="light"] dialog.arcade-modal,
[data-theme="light"] dialog#strategyModal,
[data-theme="light"] dialog#arcadeModal,
[data-theme="light"] dialog {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

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

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Universal Clean X Close Button */
.modal-close,
.close-modal-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  outline: none;
  user-select: none;
}

.modal-close:hover,
.close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
  transform: scale(1.08) rotate(90deg);
}

[data-theme="light"] .modal-close,
[data-theme="light"] .close-modal-btn {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0F172A;
}

[data-theme="light"] .modal-close:hover,
[data-theme="light"] .close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
}

/* Universal Form Controls & Dropdown Select Options Visibility Fix */
.input-field,
input.input-field,
select.input-field,
textarea.input-field {
  width: 100%;
  padding: 12px 16px;
  background-color: #0E1626 !important;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 0.95rem;
  margin-top: 6px;
  transition: border-color var(--transition-fast);
}

.input-field:focus {
  border-color: var(--accent-cyan) !important;
  outline: none;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Force Options inside Select dropdowns to be visible with crisp dark contrast */
select.input-field,
select {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
}

select.input-field option,
.input-field option,
select option,
option {
  background-color: #0E1626 !important;
  color: #FFFFFF !important;
  padding: 10px 14px;
}

select.input-field option:hover,
select.input-field option:focus,
select.input-field option:checked {
  background-color: #0284C7 !important;
  color: #FFFFFF !important;
}

/* Light Theme Input Fields and Select Dropdown Options */
[data-theme="light"] .input-field,
[data-theme="light"] input.input-field,
[data-theme="light"] select.input-field,
[data-theme="light"] textarea.input-field {
  background-color: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0F172A !important;
}

[data-theme="light"] select.input-field option,
[data-theme="light"] .input-field option,
[data-theme="light"] select option,
[data-theme="light"] option {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

[data-theme="light"] select.input-field option:hover,
[data-theme="light"] select.input-field option:focus,
[data-theme="light"] select.input-field option:checked {
  background-color: #E0F2FE !important;
  color: #0284C7 !important;
}

/* Floating WhatsApp Bot Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-trigger {
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform var(--transition-bounce);
}

.whatsapp-trigger:hover {
  transform: scale(1.1);
}

.whatsapp-chat-box {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  background: #0E1626;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-glass);
  display: none;
  overflow: hidden;
}

.whatsapp-chat-box.open {
  display: block;
}

.chat-header {
  background: #075E54;
  padding: 14px 16px;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-body {
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.88rem;
}

.chat-msg {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.chat-msg.bot {
  background: #128C7E;
  color: #FFF;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 998;
}


/* ==========================================================================
   MOBILE HEADER FIX — Force-apply correct mobile header at ≤992px
   ========================================================================== */
@media screen and (max-width: 992px) {
  /* 1. ALWAYS hide GAMES button in header — FAB at bottom handles games on mobile */
  button.arcade-trigger-btn,
  .arcade-trigger-btn,
  .desktop-only-btn {
    display: none !important;
    visibility: hidden !important;
  }

  /* 2. ALWAYS show burger icon — force override everything */
  button.mobile-toggle,
  #mobileToggleBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 1.3rem !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    z-index: 1100 !important;
    position: relative !important;
  }

  /* 3. Hide Book Strategy Call button in header on mobile */
  .site-header .header-action-btn,
  .header-inner .header-action-btn {
    display: none !important;
  }

  /* 4. Hide floating WhatsApp widget — sticky bar already has WhatsApp */
  .whatsapp-widget {
    display: none !important;
  }

  /* 5. Keep header-actions layout tight on mobile */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* 6. Header inner stays a proper row */
  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 66px !important;
    gap: 8px !important;
  }

  /* 7. Nav collapses to drawer — hidden by default */
  .nav-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    flex: unset !important;
    justify-content: unset !important;
  }

  .nav-menu.mobile-open {
    display: block !important;
  }

  /* 8. Logo stays visible */
  .brand-logo {
    flex-shrink: 0 !important;
  }
}

/* Responsive Media Queries */

@media (max-width: 992px) {
  .hero-grid, .tab-pane.active, .estimator-grid {
    grid-template-columns: 1fr;
  }
  .services-grid, .proof-grid, .flow-steps, .case-studies-grid, .tech-categories, .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Mobile Navigation Menu Drawer & Accordion Dropdown System */
  .header-inner {
    height: 70px;
  }

  /* Reduce container padding on tablet/mobile so header has more room */
  .container {
    padding: 0 20px;
  }

  .header-actions {
    gap: 8px;
  }

  /* Ensure Hamburger Toggle is Always 100% Visible on Phone */
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 1002;
  }

  [data-theme="light"] .mobile-toggle {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.15);
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  /* On mobile phones, hide the redundant header CTA button to leave ample room for the Hamburger & Theme Switcher */
  .site-header .header-action-btn {
    display: none !important;
  }

  /* Hide GAMES button from header on mobile — floating FAB handles this instead */
  .arcade-trigger-btn {
    display: none !important;
  }

  .theme-switcher {
    padding: 2px;
    gap: 2px;
  }

  .theme-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.68rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px 30px;
    box-shadow: var(--shadow-glass);
    z-index: 1000;
    flex: unset;
    justify-content: unset;
  }
  
  .nav-menu.mobile-open {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
  }

  [data-theme="light"] .nav-link {
    background: rgba(15, 23, 42, 0.04);
  }

  /* Accordion Dropdown in Mobile View - Toggle Only (No Hover blocking) */
  .mega-dropdown {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm);
    box-shadow: none !important;
    padding: 12px !important;
    margin-top: 6px;
    margin-bottom: 8px;
  }

  [data-theme="light"] .mega-dropdown {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  }

  /* Prevent hover expansion on mobile so user can navigate to next items */
  .nav-item:hover .mega-dropdown {
    display: none !important;
  }

  /* Click-Toggle Accordion State */
  .nav-item.open .mega-dropdown {
    display: block !important;
    animation: fadeIn 0.25s ease;
  }

  .nav-item.open .nav-chevron {
    transform: rotate(180deg);
    color: var(--accent-cyan);
  }

  .mega-columns,
  .mega-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mega-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }

  .dropdown-item {
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
  }

  [data-theme="light"] .dropdown-item {
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.06);
  }

  .mobile-sticky-bar {
    display: flex;
    gap: 10px;
  }

  /* Hide floating WhatsApp widget on mobile — sticky bar already has a WhatsApp button */
  .whatsapp-widget {
    display: none !important;
  }

  /* Hide floating arcade FAB on mobile to reduce clutter — games accessible via header */
  .floating-arcade-fab {
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  /* Hero Section Mobile & Tablet Responsiveness */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .hero-content h1 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 24px 0 45px !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .hero-live-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 0.74rem !important;
  }

  .hero-live-badge .badge-detail {
    border-left: none !important;
    padding-left: 0 !important;
    display: block !important;
    font-size: 0.72rem !important;
  }

  .hero-content h1 {
    font-size: 1.82rem !important;
    line-height: 1.22 !important;
    letter-spacing: -0.4px !important;
    margin: 0 0 12px !important;
    word-break: break-word !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }

  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
  }

  .hero-guarantee-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: 0.76rem !important;
    margin-bottom: 18px !important;
  }

  .hero-trust-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding-top: 14px !important;
  }

  .trust-badge-pill {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .command-window {
    min-height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }

  .code-terminal-body {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    font-size: 0.72rem !important;
    line-height: 1.55 !important;
    padding: 10px !important;
  }

  .radar-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
    gap: 8px !important;
  }

  .terminal-telemetry {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    font-size: 0.7rem !important;
  }

  /* Container padding on small screens */
  .container {
    width: 100% !important;
    padding: 0 16px !important;
  }

  /* All major section padding */
  section,
  .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Service cards / proof cards go single column */
  .services-grid,
  .proof-grid,
  .case-studies-grid,
  .tech-categories,
  .testimonial-grid,
  .flow-steps,
  .industries-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Footer 1-column on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Estimator grid single col */
  .estimator-grid {
    grid-template-columns: 1fr !important;
  }

  /* Tab panes single col */
  .tab-pane.active {
    grid-template-columns: 1fr !important;
  }

  /* Overflow protection */
  body, html {
    overflow-x: hidden !important;
  }

  /* Top bar: hide on very small screens to save space */
  .top-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   15. Global Theme-Synchronized Content Selection Highlights
   -------------------------------------------------------------------------- */
::selection,
*::selection {
  background-color: rgba(0, 242, 254, 0.38) !important;
  color: #FFFFFF !important;
}

::-moz-selection,
*::-moz-selection {
  background-color: rgba(0, 242, 254, 0.38) !important;
  color: #FFFFFF !important;
}

/* Emerald Theme Selection */
[data-theme="emerald"] ::selection,
[data-theme="emerald"] *::selection {
  background-color: rgba(16, 185, 129, 0.38) !important;
  color: #FFFFFF !important;
}
[data-theme="emerald"] ::-moz-selection,
[data-theme="emerald"] *::-moz-selection {
  background-color: rgba(16, 185, 129, 0.38) !important;
  color: #FFFFFF !important;
}

/* Titanium Theme Selection */
[data-theme="titanium"] ::selection,
[data-theme="titanium"] *::selection {
  background-color: rgba(245, 158, 11, 0.38) !important;
  color: #FFFFFF !important;
}
[data-theme="titanium"] ::-moz-selection,
[data-theme="titanium"] *::-moz-selection {
  background-color: rgba(245, 158, 11, 0.38) !important;
  color: #FFFFFF !important;
}

/* Clean Slate Light Mode Selection */
[data-theme="light"] ::selection,
[data-theme="light"] *::selection {
  background-color: rgba(2, 132, 199, 0.28) !important;
  color: #0F172A !important;
}
[data-theme="light"] ::-moz-selection,
[data-theme="light"] *::-moz-selection {
  background-color: rgba(2, 132, 199, 0.28) !important;
  color: #0F172A !important;
}

/* --------------------------------------------------------------------------
   16. Custom Theme-Integrated Interactive Cursor (Dot + Outer Ring)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: transform, width, height;
  }

  /* Inner solid center dot */
  .custom-cursor-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: opacity 0.2s ease, transform 0.15s ease-out;
  }

  /* Outer concentric ring with soft tinted fill (exact matching image) */
  .custom-cursor-ring {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-cyan);
    background: rgba(0, 242, 254, 0.14);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
    transition: opacity 0.2s ease,
                width 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.2s ease,
                background-color 0.2s ease;
  }

  /* Hover state over interactive clickable elements */
  body.cursor-hover .custom-cursor-ring {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.24);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.5);
  }

  body.cursor-hover .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(1.4);
  }

  /* Active / Click press state */
  body.cursor-active .custom-cursor-ring {
    width: 24px;
    height: 24px;
    background: rgba(0, 242, 254, 0.4);
    transform: translate(-50%, -50%) scale(0.85);
  }

  /* Emerald Cyber Theme (Exact green dot & ring from user image) */
  [data-theme="emerald"] .custom-cursor-dot {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
  }
  [data-theme="emerald"] .custom-cursor-ring {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.16);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  }
  [data-theme="emerald"] body.cursor-hover .custom-cursor-ring {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10B981;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
  }

  /* Titanium Navy Theme */
  [data-theme="titanium"] .custom-cursor-dot {
    background-color: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
  }
  [data-theme="titanium"] .custom-cursor-ring {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  }
  [data-theme="titanium"] body.cursor-hover .custom-cursor-ring {
    background: rgba(245, 158, 11, 0.28);
    border-color: #F59E0B;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.55);
  }

  /* Clean Slate Light Mode */
  [data-theme="light"] .custom-cursor-dot {
    background-color: #0284C7;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
  }
  [data-theme="light"] .custom-cursor-ring {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.14);
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.25);
  }
  [data-theme="light"] body.cursor-hover .custom-cursor-ring {
    background: rgba(2, 132, 199, 0.24);
    border-color: #0284C7;
    box-shadow: 0 0 22px rgba(2, 132, 199, 0.4);
  }
}

/* --------------------------------------------------------------------------
   17. Interactive Arcade Game Zone & Popup System
   -------------------------------------------------------------------------- */
.arcade-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-pill);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  height: 38px;
}

.arcade-trigger-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.arcade-badge {
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

[data-theme="light"] .arcade-trigger-btn {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

[data-theme="light"] .arcade-badge {
  background: #0284C7;
  color: #FFF;
}

/* Floating Arcade FAB */
.floating-arcade-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  cursor: pointer;
  z-index: 997;
  transition: all var(--transition-fast);
}

.floating-arcade-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.6);
}

[data-theme="emerald"] .floating-arcade-fab {
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

[data-theme="titanium"] .floating-arcade-fab {
  border-color: #F59E0B;
  color: #F59E0B;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .floating-arcade-fab {
  background: #FFFFFF;
  border-color: #0284C7;
  color: #0284C7;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
}

/* Arcade Modal Window */
.arcade-modal {
  max-width: 680px;
  width: 95%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: #080D1A;
  border: 1px solid var(--border-glow);
}

[data-theme="light"] .arcade-modal {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.15);
}

.arcade-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .arcade-modal-header {
  background: #F1F5F9;
}

.arcade-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .arcade-nav-tabs {
  background: #E2E8F0;
}

.arcade-tab-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arcade-tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .arcade-tab-btn.active {
  background: #FFFFFF;
  color: #0284C7;
}

.arcade-game-view {
  display: none;
  padding: 24px;
}

.arcade-game-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Game 1: Packet Dodge Canvas */
.arcade-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: #030712;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

[data-theme="light"] .arcade-canvas-wrap {
  background: #0F172A;
}

#packetCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arcade-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.arcade-score {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* Game 2: Bug Hunter Grid */
.bug-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 270px;
}

.bug-hole {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bug-hole:hover {
  border-color: var(--accent-cyan);
}

.bug-target {
  font-size: 2.2rem;
  color: #FF5F56;
  animation: popBug 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popBug {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Game 3: Memory Match Grid */
.memory-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 270px;
}

.memory-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  user-select: none;
}

.memory-card.flipped {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  transform: rotateY(180deg);
}

.memory-card.matched {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #10B981;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   15. Custom Theme-Integrated Interactive Cursor (Dot + Outer Ring)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: transform, width, height;
  }

  /* Inner solid center dot */
  .custom-cursor-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: opacity 0.2s ease, transform 0.15s ease-out;
  }

  /* Outer concentric ring with soft tinted fill (exact matching image) */
  .custom-cursor-ring {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-cyan);
    background: rgba(0, 242, 254, 0.14);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
    transition: opacity 0.2s ease,
                width 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.2s ease,
                background-color 0.2s ease;
  }

  /* Hover state over interactive clickable elements */
  body.cursor-hover .custom-cursor-ring {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.24);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.5);
  }

  body.cursor-hover .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(1.4);
  }

  /* Active / Click press state */
  body.cursor-active .custom-cursor-ring {
    width: 24px;
    height: 24px;
    background: rgba(0, 242, 254, 0.4);
    transform: translate(-50%, -50%) scale(0.85);
  }

  /* Emerald Cyber Theme (Exact green dot & ring from user image) */
  [data-theme="emerald"] .custom-cursor-dot {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
  }
  [data-theme="emerald"] .custom-cursor-ring {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.16);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  }
  [data-theme="emerald"] body.cursor-hover .custom-cursor-ring {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10B981;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
  }

  /* Titanium Navy Theme */
  [data-theme="titanium"] .custom-cursor-dot {
    background-color: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
  }
  [data-theme="titanium"] .custom-cursor-ring {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  }
  [data-theme="titanium"] body.cursor-hover .custom-cursor-ring {
    background: rgba(245, 158, 11, 0.28);
    border-color: #F59E0B;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.55);
  }

  /* Clean Slate Light Mode */
  [data-theme="light"] .custom-cursor-dot {
    background-color: #0284C7;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
  }
  [data-theme="light"] .custom-cursor-ring {
    border-color: #0284C7;
    background: rgba(2, 132, 199, 0.14);
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.25);
  }
  [data-theme="light"] body.cursor-hover .custom-cursor-ring {
    background: rgba(2, 132, 199, 0.24);
    border-color: #0284C7;
    box-shadow: 0 0 22px rgba(2, 132, 199, 0.4);
  }
}
