/* ==========================================================================
   1.21 Initiative - Consolidated Stylesheet
   Combines: reset.css, design-system-v2.css, style.css
   ========================================================================== */

/* ==========================================================================
   1. CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: var(--font-weight-normal);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  appearance: button;
  -webkit-appearance: button;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

button:disabled,
[type='button']:disabled,
[type='reset']:disabled,
[type='submit']:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-colors);
  cursor: pointer;
}

a:hover {
  color: var(--color-text-link-hover);
  text-decoration: underline;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-secondary-500);
  outline-offset: 2px;
}

/* Remove default input number spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Accessibility */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Remove all animations for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   2. CSS Variables & Design Tokens
   ========================================================================== */

:root {
  /* ========== Color Palette - Deep Signal Dark Mode ========== */
  --color-primary-50: #f1f5f9;
  --color-primary-100: #e2e8f0;
  --color-primary-200: #cbd5e1;
  --color-primary-300: #94a3b8;
  --color-primary-400: #64748b;
  --color-primary-500: #475569;
  --color-primary-600: #334155;
  --color-primary-700: #1e293b;
  --color-primary-800: #151b26;
  --color-primary-900: #0b0e14;
  --color-primary-950: #000000;

  /* Secondary Colors - Electric Cyan Signal */
  --color-secondary-50: #e0ffff;
  --color-secondary-100: #b3ffff;
  --color-secondary-200: #80ffff;
  --color-secondary-300: #4dffff;
  --color-secondary-400: #1affff;
  --color-secondary-500: #00f0ff;
  --color-secondary-600: #00d4e6;
  --color-secondary-700: #00a8b8;
  --color-secondary-800: #007c8a;
  --color-secondary-900: #00505c;
  --color-secondary-950: #00242e;

  /* Accent Colors - Metallic Amber Alert */
  --color-accent-50: #fff7ed;
  --color-accent-100: #ffedd5;
  --color-accent-200: #fed7aa;
  --color-accent-300: #fdba74;
  --color-accent-400: #fb923c;
  --color-accent-500: #ffb020;
  --color-accent-600: #ea8c0d;
  --color-accent-700: #c2680d;
  --color-accent-800: #9a5212;
  --color-accent-900: #7c4412;
  --color-accent-950: #431f07;

  /* Neutral Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-gray-950: #030712;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Background Colors - Deep Space */
  --color-bg-primary: #0b0e14;
  --color-bg-secondary: #151b26;
  --color-bg-tertiary: #1e293b;
  --color-bg-inverse: #f1f5f9;

  /* Text Colors - High Contrast */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #0b0e14;
  --color-text-muted: #64748b;
  --color-text-link: #00f0ff;
  --color-text-link-hover: #1affff;

  /* Border Colors - Subtle Dark */
  --color-border-light: #1e293b;
  --color-border-medium: #334155;
  --color-border-dark: #475569;
  --color-border-accent: #00f0ff;

  /* Legacy Variables (for compatibility with existing code) */
  --primary-blue: #4a9eff;
  --secondary-blue: #6bb6ff;
  --glow-blue: rgba(74, 158, 255, 0.6);
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --bg-dark: #0a0a0a;
  --bg-mid: #1a1a1a;
  --bg-light: #2a2a2a;
  --accent-gold: #ffd700;
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-light: rgba(255, 255, 255, 0.05);
  --card-bg: #1a1a1a;
  --metallic-gradient: linear-gradient(135deg, rgba(74, 158, 255, 0.3), rgba(255, 215, 0, 0.3));
  --border-subtle: #3a4a60;
  --border-active: #70b0c9;

  /* ========== Typography ========== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --font-display: 'Calibre', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ========== Spacing ========== */
  --spacing-px: 1px;
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  --spacing-40: 10rem;
  --spacing-48: 12rem;
  --spacing-56: 14rem;
  --spacing-64: 16rem;

  /* ========== Border Radius ========== */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* ========== Box Shadow ========== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-none: none;

  /* ========== Transitions ========== */
  --transition-none: none;
  --transition-all: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  --transition-colors: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  --transition-opacity: opacity 0.15s ease-in-out;
  --transition-shadow: box-shadow 0.15s ease-in-out;
  --transition-transform: transform 0.15s ease-in-out;

  /* ========== Layout ========== */
  --header-height: 4rem;
  --footer-height: 4rem;
  --max-content-width: 90rem;
  --content-padding: 1.5rem;
  --section-padding: 5rem;
  --grid-gap: 1.5rem;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-dark: #0a0a0a;
  --bg-mid: #1a1a1a;
  --bg-light: #2a2a2a;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --primary-blue: #4a9eff;
  --secondary-blue: #6bb6ff;
  --accent-gold: #ffd700;
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-light: rgba(255, 255, 255, 0.05);
  --glow-blue: rgba(74, 158, 255, 0.6);
  --card-bg: #1a1a1a;
  --metallic-gradient: linear-gradient(135deg, rgba(74, 158, 255, 0.3), rgba(255, 215, 0, 0.3));
}

/* White cursor/caret for dark theme */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] [contenteditable] {
  caret-color: #ffffff;
}

/* Custom cursor for dark theme - white arrow with black outline for visibility */
[data-theme="dark"] * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M0 0 L0 14 L5 9 L8 16 L10 15 L7 8 L13 7 Z" fill="white" stroke="black" stroke-width="0.5"/></svg>') 0 0, auto;
}

[data-theme="dark"] a *,
[data-theme="dark"] button *,
[data-theme="dark"] [role="button"] * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M5 0 L10 5 L7 5 L7 10 L3 10 L3 5 L0 5 Z M10 7 L15 12 L12 12 L12 17 L8 17 L8 12 L5 12 Z" fill="white" stroke="black" stroke-width="0.5"/></svg>') 5 5, pointer;
}

/* Light Theme Overrides */
[data-theme="light"] {
  /* Background Colors - Light Mode (Softer, warmer tones) */
  --color-bg-primary: #faf9f7;
  --color-bg-secondary: #f3f1ed;
  --color-bg-tertiary: #e8e6e1;
  --color-bg-inverse: #0b0e14;
  
  /* Text Colors - High Contrast for Light Mode */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a5568;
  --color-text-tertiary: #718096;
  --color-text-inverse: #ffffff;
  --color-text-muted: #a0aec0;
  --color-text-link: #0066cc;
  --color-text-link-hover: #004499;
  
  /* Secondary Colors - Override for better light mode contrast */
  --color-secondary-500: #0D9488;
  --color-secondary-600: #0f766e;
  
  /* Border Colors - Light Mode */
  --color-border-light: #e2e8f0;
  --color-border-medium: #cbd5e0;
  --color-border-dark: #a0aec0;
  --color-border-accent: #0066cc;
  
  /* Legacy Variables for Light Mode */
  --bg-dark: #faf9f7;
  --bg-mid: #f3f1ed;
  --bg-light: #e8e6e1;
  --text-light: #1a1a1a;
  --text-muted: #718096;
  --primary-blue: #0066cc;
  --secondary-blue: #0052a3;
  --accent-gold: #d97706;
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --glow-blue: rgba(0, 102, 204, 0.3);
  --card-bg: #faf9f7;
  --metallic-gradient: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(217, 119, 6, 0.1));
  --border-subtle: #cbd5e0;
  --border-active: #0066cc;
}

/* Black cursor/caret for light theme */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] [contenteditable] {
  caret-color: #000000;
}

/* Custom cursor for light theme - dark center with subtle shadow */
[data-theme="light"] body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="rgba(0, 102, 204, 0.15)" /><circle cx="16" cy="16" r="4" fill="black" /><circle cx="16" cy="16" r="2" fill="rgba(0, 102, 204, 0.6)" /></svg>') 16 16, auto;
}

[data-theme="light"] a,
[data-theme="light"] button,
[data-theme="light"] [role="button"] {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="rgba(0, 102, 204, 0.2)" /><circle cx="16" cy="16" r="5" fill="black" /><circle cx="16" cy="16" r="2.5" fill="rgba(0, 102, 204, 0.8)" /></svg>') 16 16, pointer;
}

/* Light theme image adjustments */
[data-theme="light"] .rounded-fade-image {
  border-color: var(--primary-blue);
}

[data-theme="light"] .radial-discovery-demo {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(245,249,252,0.8));
}

[data-theme="light"] .logo img {
  filter: none;
}

/* Light theme card and component adjustments */
[data-theme="light"] .card {
  background: #ffffff;
  border-color: var(--color-border-light);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

[data-theme="light"] .glass-panel {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light theme button styles */
[data-theme="light"] .btn {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

[data-theme="light"] .btn:hover {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
}

/* Light theme header and navigation */
[data-theme="light"] header {
  background: rgba(250, 249, 247, 0.95);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="light"] nav a:hover {
  color: var(--primary-blue);
}

[data-theme="light"] nav a[aria-current="page"] {
  color: var(--primary-blue);
}

[data-theme="light"] nav a[aria-current="page"]::after {
  background-color: var(--primary-blue);
}

[data-theme="light"] .theme-toggle {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-medium);
}

[data-theme="light"] .theme-toggle:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-dark);
}

/* Light theme form inputs */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background-color: var(--color-bg-primary);
  border-color: var(--color-border-medium);
  color: var(--color-text-primary);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  background-color: var(--color-bg-primary);
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

/* Light theme footer */
[data-theme="light"] footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

/* Light theme grid-items - make them pop */
[data-theme="light"] .grid-item {
  background: #ffffff;
  border-color: var(--color-border-light);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .grid-item:hover {
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
  border-color: var(--primary-blue);
}

/* Light theme glow text - stronger effects for visibility */
[data-theme="light"] .glow-text {
  text-shadow: 0 0 30px rgba(13, 148, 136, 0.8), 0 0 15px rgba(13, 148, 136, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .glow-text-cyan {
  text-shadow: 0 0 30px rgba(0, 102, 204, 0.8), 0 0 15px rgba(0, 102, 204, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .glow-text-amber {
  text-shadow: 0 0 30px rgba(217, 119, 6, 0.8), 0 0 15px rgba(217, 119, 6, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .glow-text-teal {
  text-shadow: 0 0 30px rgba(13, 148, 136, 0.8), 0 0 15px rgba(13, 148, 136, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-4) 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--spacing-6);
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: 1.875rem;
  letter-spacing: -0.015em;
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin: 0 0 var(--spacing-4) 0;
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

ul, ol {
  margin: 0 0 var(--spacing-4) 0;
  padding-left: var(--spacing-6);
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: var(--spacing-2);
  line-height: var(--line-height-relaxed);
}

/* Section Subtitle - Global Style */
.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  margin-bottom: 4rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   4. Layout Components
   ========================================================================== */

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section h2 {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-accent-500);
  border-radius: 2px;
}

/* ==========================================================================
   5. Grid System
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--grid-gap);
  width: 100%;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services Grid Override - 4-column layout */
.services-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Bento Box Grid - Asymmetric Modular Layout
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Featured Item - Large 7-column span */
.bento-item-featured {
  grid-column: span 7;
  min-height: 400px;
}

/* Vertical Rectangle - 5-column span */
.bento-item-vertical {
  grid-column: span 5;
  min-height: 400px;
}

/* Standard Items - 6-column span */
.bento-item-standard {
  grid-column: span 6;
  min-height: 300px;
}

/* Bento Grid Items - Enhanced styling */
.bento-grid .grid-item {
  border: 1px solid var(--color-border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-grid .grid-item:hover {
  border-color: var(--color-secondary-500);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
  .bento-item-featured,
  .bento-item-vertical,
  .bento-item-standard {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-item-featured,
  .bento-item-vertical,
  .bento-item-standard {
    grid-column: span 1;
    min-height: 250px;
  }
}

/* ==========================================================================
   6. Card Components
   ========================================================================== */

.card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__content {
  padding: var(--spacing-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2);
  color: var(--color-text-primary);
}

.card__text {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-4);
  flex: 1;
}

.grid-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 45px 40px;
  box-shadow: 0 5px 20px var(--shadow-dark);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--card-bg);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--metallic-gradient) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.grid-item:hover::before {
  opacity: 0.3;
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px var(--shadow-dark), 0 0 20px var(--shadow-light);
  border-color: var(--primary-blue);
}

.grid-item i {
  font-size: 3.5rem;
  color: var(--primary-blue);
  margin-bottom: 25px;
  display: block;
  text-shadow: 0 0 1px var(--glow-blue);
}

.grid-item h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--primary-blue);
  text-shadow: 0 0 1px var(--glow-blue);
  line-height: 1.3;
}

.grid-item p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-colors);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary-500);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn:hover {
  background-color: var(--color-secondary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:active {
  background-color: var(--color-secondary-700);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-reset {
  background-color: var(--color-gray-600);
}

.btn-reset:hover {
  background-color: var(--color-gray-700);
}

/* ==========================================================================
   8. Navigation
   ========================================================================== */

header {
  background-color: var(--color-bg-secondary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}

.logo span {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-6);
}

nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-2) 0;
  position: relative;
  transition: var(--transition-colors);
}

nav a:hover {
  color: var(--color-secondary-500);
}

nav a[aria-current="page"] {
  color: var(--color-secondary-500);
}

nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-secondary-500);
  border-radius: var(--radius-full);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  border-radius: 6px;
  padding: 8px;
  margin-right: 12px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 10px var(--shadow-light);
}

.nav-toggle .nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 4px 0;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  border-radius: 6px;
  padding: 6px 10px;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 10px var(--shadow-light);
}

/* ==========================================================================
   9. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-20) 0;
  background: var(--color-bg-primary);
  color: white;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-constellation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px var(--content-padding);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-blue);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
  text-shadow: 0 2px 3px rgba(0,0,0,0.45), 0 0 1px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 30px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
}

.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin: 20px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.btn-container {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Logo Image */
.logo-large {
  height: 20vh;
}

.rounded-fade-image {
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin: 0 auto 30px;
  text-align: center;
  border: 4px solid var(--primary-blue);
  box-shadow: 0 8px 30px var(--shadow-dark);
}

.rounded-fade-image .logo-large {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

.rounded-fade-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  mask-image: none;
  -webkit-mask-image: none;
  transition: all 0.5s ease;
}

/* Glassmorphism Effect with Industrial Noise Texture */
.glass-panel {
  background: rgba(11, 14, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Industrial Noise Texture Overlay */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
  background-repeat: repeat;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.glass-panel > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   10. Content Blocks
   ========================================================================== */

.content-block {
  max-width: 900px;
  margin: 0 auto 60px;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px var(--shadow-dark);
  border: 1px solid var(--border-subtle);
}

.content-block h2 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  text-shadow: 0 0 1px var(--glow-blue);
  text-align: center;
}

.content-block h3 {
  text-align: center;
}

.content-block p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ==========================================================================
   11. Charts & Visualizations
   ========================================================================== */

.radial-discovery-demo {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.03));
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.radial-signal-chart {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.radial-signal-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

footer {
  background-color: var(--bg-header);
  color: var(--text-light);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

footer .container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-4);
}

.footer-links a {
  color: var(--primary-blue);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--secondary-blue);
  text-shadow: 0 0 8px var(--glow-blue);
  text-decoration: none;
}

.footer-share-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.footer-share {
  color: var(--primary-blue);
  font-size: 1.25rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-share:hover {
  color: var(--secondary-blue);
  transform: scale(1.1);
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

footer > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   13. Utility Classes
   ========================================================================== */

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

.text-uppercase {
  text-transform: uppercase;
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mb-12 {
  margin-bottom: var(--spacing-12);
}

.mb-24 {
  margin-bottom: var(--spacing-24);
}

.mb-32 {
  margin-bottom: 2rem;
}

.align-left {
  text-align: left !important;
}

.pb-120 {
  padding-bottom: 120px !important;
}

.max-60ch {
  max-width: 60ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

main {
  flex: 1 0 auto;
}

footer.sticky-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.not-found {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem;
}

.not-found h1 {
  color: var(--primary-blue);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0.25rem 0 0.5rem 0;
}

.not-found p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.not-found p small {
  color: var(--text-muted);
}

.not-found-icon {
  font-size: 4rem;
  color: var(--primary-blue);
  text-shadow: 0 0 6px var(--shadow-light);
}

.thanks {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}

.thanks h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary-blue);
}

.celebration-icon {
  width: 72px;
  height: 72px;
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--spacing-4);
  background-color: var(--color-bg-secondary);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition-all);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-secondary-500);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
  background-color: var(--color-bg-tertiary);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--color-border-dark);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
  line-height: var(--line-height-relaxed);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: var(--spacing-2);
  min-width: 180px;
}

/* Form validation states */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: var(--color-success);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contact-form {
    margin-top: 2rem;
  }
  
  .contact-form button[type="submit"] {
    width: 100%;
    align-self: stretch;
  }
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

.about-photo-block {
  text-align: center;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-photo-block .profile-photo {
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-secondary-500);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo-block .profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.about-photo-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-photo-block a:hover {
  color: var(--color-text-link-hover);
}

/* ==========================================================================
   14. Responsive Design - Mobile First with Tablet Optimization
   ========================================================================== */

/* Ultra-small devices (320-400px) - Small phones */
@media (max-width: 400px) {
  :root {
    --content-padding: 1rem;
    --section-padding: 3rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  header .container {
    gap: 0.5rem;
  }
  
  .logo span {
    font-size: 1.1rem;
  }
  
  .logo img {
    height: 32px;
  }
  
  nav ul li {
    margin-left: 0.75rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .grid {
    gap: 1.25rem;
  }
  
  .grid-item {
    padding: 1.5rem;
    min-height: 250px;
  }
  
  .hero {
    min-height: 80vh;
    height: auto;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .hero-content {
    padding: 40px 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    min-height: 44px;
  }
}

/* Small mobile devices (401-600px) - Standard phones */
@media (min-width: 401px) and (max-width: 600px) {
  :root {
    --content-padding: 1.25rem;
    --section-padding: 3.5rem;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .hero {
    min-height: 85vh;
  }
  
  .grid-item {
    padding: 2rem;
  }
  
  .btn {
    min-height: 44px;
  }
}

/* Mobile navigation breakpoint */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
  }
  
  nav a:hover {
    background: var(--color-bg-tertiary);
  }
  
  header .container {
    flex-wrap: nowrap;
  }
  
  .theme-toggle {
    margin-left: auto;
  }
}

/* Tablet portrait (601-767px) - Small tablets, large phones landscape */
@media (min-width: 601px) and (max-width: 767px) {
  :root {
    --content-padding: 1.5rem;
    --section-padding: 4rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .bento-item-featured,
  .bento-item-vertical {
    grid-column: span 6;
  }
  
  .bento-item-standard {
    grid-column: span 3;
  }
  
  .verticals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .leadership-card {
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }
  
  .leadership-image img {
    width: 160px;
    height: 160px;
  }
}

/* Tablet portrait to landscape (768-1023px) - Standard tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --content-padding: 2rem;
    --section-padding: 4.5rem;
  }
  
  .container {
    max-width: 720px;
    padding: 0 2rem;
  }
  
  .nav-toggle {
    display: none;
  }
  
  nav {
    display: block;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero-content {
    max-width: 700px;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  
  .bento-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .bento-item-featured {
    grid-column: span 5;
  }
  
  .bento-item-vertical {
    grid-column: span 3;
  }
  
  .bento-item-standard {
    grid-column: span 4;
  }
  
  .verticals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .leadership-card {
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
  }
  
  .leadership-image img {
    width: 180px;
    height: 180px;
  }
  
  .grid-item {
    padding: 2.5rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Tablet landscape to small desktop (1024-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content {
    max-width: 900px;
  }
  
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .verticals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1280-1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-content {
    max-width: 1000px;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .verticals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large desktop (1440-1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    max-width: 1280px;
  }
  
  .hero-content {
    max-width: 1100px;
  }
}

/* Very large displays (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-content {
    max-width: 1200px;
  }
}

/* Landscape orientation optimization for tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 40px 2rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .vertical-card {
    padding: 2rem 1.5rem;
  }
  
  .vertical-icon {
    width: 100px;
    height: 100px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  nav a,
  .footer-links a,
  .theme-toggle,
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  nav a {
    padding: 1rem 1.5rem;
  }
  
  .grid-item:hover,
  .card:hover,
  .vertical-card:hover {
    transform: none;
  }
  
  .grid-item:active,
  .card:active,
  .vertical-card:active {
    transform: scale(0.98);
  }
}

/* ==========================================================================
   15. Case Study Design Elements - Reusable Components
   ========================================================================== */

/* Gradient Text Effects */
.gradient-text {
  color: var(--color-secondary-500);
  background: linear-gradient(135deg, #1affff, #ffb020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan-purple {
  background: linear-gradient(135deg, var(--color-secondary-500), #D946EF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #14B8A6, #0D9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Text Effects */
.glow-text {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.glow-text-cyan {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.glow-text-amber {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.glow-text-teal {
  text-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}

/* Text Highlight - Cyan Accent */
.text-highlight {
  color: var(--color-secondary-500);
  font-weight: var(--font-weight-bold);
}

/* Scramble Character Animation */
.scramble-char {
  color: var(--color-secondary-500);
  opacity: 0.8;
}

/* Glass/Glassmorphism Cards */
.glass-card {
  background: rgba(39, 39, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}


.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-secondary-500);
}

/* Colored Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-secondary-500);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-teal {
  background: rgba(13, 148, 136, 0.1);
  color: #14B8A6;
  border: 1px solid rgba(13, 148, 136, 0.5);
}

.badge-purple {
  background: rgba(217, 70, 239, 0.1);
  color: #E879F9;
  border: 1px solid rgba(217, 70, 239, 0.3);
}

/* Enhanced Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Colored Border Accents */
.border-accent-left {
  border-left: 4px solid var(--color-secondary-500);
  padding-left: 1rem;
}

.border-accent-left-amber {
  border-left: 4px solid #F59E0B;
  padding-left: 1rem;
}

.border-accent-left-teal {
  border-left: 4px solid #0D9488;
  padding-left: 1rem;
}

.border-accent-left-purple {
  border-left: 4px solid #D946EF;
  padding-left: 1rem;
}

.border-accent-top {
  border-top: 4px solid var(--color-secondary-500);
  padding-top: 1rem;
}

.border-accent-top-amber {
  border-top: 4px solid #F59E0B;
  padding-top: 1rem;
}

.border-accent-top-teal {
  border-top: 4px solid #0D9488;
  padding-top: 1rem;
}

/* Glow Box Shadows */
.glow-box {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.glow-box-amber {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.glow-box-teal {
  box-shadow: 0 0 30px rgba(13, 148, 136, 0.1);
}

.glow-box-purple {
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.15);
}

/* Icon Background Effects */
.icon-background {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 6rem;
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

.icon-background-hover:hover .icon-background {
  opacity: 0.1;
}

/* Numbered Phase/Step Circles */
.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

.phase-number-cyan {
  background: rgba(0, 240, 255, 0.2);
  color: var(--color-secondary-500);
}

.phase-number-amber {
  background: #F59E0B;
  color: #000;
}

.phase-number-teal {
  background: rgba(13, 148, 136, 0.2);
  color: #14B8A6;
}

.phase-number-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

/* Back Links with Animation */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary-500);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--color-secondary-400);
  transform: translateX(-4px);
  text-decoration: none;
}

.back-link-amber {
  color: #F59E0B;
}

.back-link-amber:hover {
  color: #FBBF24;
  transform: translateX(-4px);
}

.back-link-teal {
  color: #14B8A6;
}

.back-link-teal:hover {
  color: #0D9488;
  transform: translateX(-4px);
}

/* Insight/Info Boxes */
.insight-box {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(79, 70, 229, 0.1));
  border-left: 4px solid var(--color-accent-500);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.insight-box-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(79, 70, 229, 0.1));
  border-left: 4px solid var(--color-secondary-500);
}

.insight-box-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
  border-left: 4px solid #F59E0B;
}

.insight-box-teal {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.1));
  border-left: 4px solid #0D9488;
}

/* Pillar/Feature Cards */
.pillar-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-secondary-500);
}

/* Icon animations */
.pillar-card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--color-secondary-500);
  animation: iconBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
  transition: all 0.3s ease;
}

.pillar-card:nth-child(1) i { animation-delay: 0.1s; }
.pillar-card:nth-child(2) i { animation-delay: 0.2s; }
.pillar-card:nth-child(3) i { animation-delay: 0.3s; }
.pillar-card:nth-child(4) i { animation-delay: 0.4s; }
.pillar-card:nth-child(5) i { animation-delay: 0.5s; }
.pillar-card:nth-child(6) i { animation-delay: 0.6s; }
.pillar-card:nth-child(7) i { animation-delay: 0.7s; }
.pillar-card:nth-child(8) i { animation-delay: 0.8s; }

.pillar-card:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--color-primary-500);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

@keyframes iconBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Case studies page icon animations */
.grid-item i.fa-dna,
.grid-item i.fa-layer-group,
.grid-item i.fa-project-diagram {
  display: inline-block;
  animation: iconBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
  transition: all 0.3s ease;
}

.grid-item:nth-child(1) i { animation-delay: 0.1s; }
.grid-item:nth-child(2) i { animation-delay: 0.3s; }
.grid-item:nth-child(3) i { animation-delay: 0.5s; }

.grid-item:hover i.fa-dna,
.grid-item:hover i.fa-layer-group,
.grid-item:hover i.fa-project-diagram {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 25px rgba(74, 158, 255, 0.6));
}

.pillar-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillar-icon-indigo {
  background: rgba(79, 70, 229, 0.2);
  color: #818CF8;
}

.pillar-icon-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #22D3EE;
}

.pillar-icon-fuchsia {
  background: rgba(217, 70, 239, 0.2);
  color: #E879F9;
}

.pillar-icon-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.pillar-icon-teal {
  background: rgba(13, 148, 136, 0.2);
  color: #14B8A6;
}

/* ==========================================================================
   16. Operational Verticals Section
   ========================================================================== */

.operational-verticals {
  padding: 6rem 0;
  background: var(--color-bg-primary);
}

.operational-verticals .section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  margin-bottom: 4rem;
  font-weight: 300;
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.vertical-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vertical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary-500), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vertical-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--color-secondary-500);
}

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

.vertical-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-icon svg {
  width: 100%;
  height: 100%;
}

.vertical-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.vertical-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* SVG Animations - Global Macro */
@keyframes globe-rotate-1 {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

@keyframes globe-rotate-2 {
  0%, 100% { transform: rotateX(0deg); }
  50% { transform: rotateX(180deg); }
}

@keyframes globe-pulse {
  0%, 100% { opacity: 1; r: 6; }
  50% { opacity: 0.4; r: 10; }
}

.globe-ring-1 {
  animation: globe-rotate-1 8s ease-in-out infinite;
  transform-origin: center;
}

.globe-ring-2 {
  animation: globe-rotate-2 6s ease-in-out infinite;
  transform-origin: center;
}

.globe-pulse {
  animation: globe-pulse 2s ease-in-out infinite;
}

/* SVG Animations - High-Frequency Execution */
@keyframes graph-fluctuate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes graph-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.graph-line {
  animation: graph-fluctuate 3s ease-in-out infinite;
}

.graph-dot-1 { animation: graph-dot-pulse 1.5s ease-in-out infinite 0s; }
.graph-dot-2 { animation: graph-dot-pulse 1.5s ease-in-out infinite 0.2s; }
.graph-dot-3 { animation: graph-dot-pulse 1.5s ease-in-out infinite 0.4s; }
.graph-dot-4 { animation: graph-dot-pulse 1.5s ease-in-out infinite 0.6s; }
.graph-dot-5 { animation: graph-dot-pulse 1.5s ease-in-out infinite 0.8s; }
.graph-dot-6 { animation: graph-dot-pulse 1.5s ease-in-out infinite 1s; }

/* SVG Animations - Neural Systems */
@keyframes neural-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes neural-connection-flow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.neural-node-1 { animation: neural-pulse 2s ease-in-out infinite 0s; }
.neural-node-2 { animation: neural-pulse 2s ease-in-out infinite 0.3s; }
.neural-node-3 { animation: neural-pulse 2s ease-in-out infinite 0.6s; }
.neural-node-4 { animation: neural-pulse 2s ease-in-out infinite 0.9s; }
.neural-node-5 { animation: neural-pulse 2s ease-in-out infinite 1.2s; }
.neural-node-6 { animation: neural-pulse 2s ease-in-out infinite 1.5s; }

.neural-connection {
  animation: neural-connection-flow 3s ease-in-out infinite;
}

/* SVG Animations - Compliance */
@keyframes lock-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@keyframes lock-shield-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.lock-shackle {
  animation: lock-shake 4s ease-in-out infinite;
  transform-origin: center bottom;
}

.lock-shield {
  animation: lock-shield-pulse 3s ease-in-out infinite;
  transform-origin: center;
}

.lock-keyhole {
  animation: graph-dot-pulse 2s ease-in-out infinite;
}

/* Leadership Card */
.leadership-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 3rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.leadership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #00ff88, #ff00ff, #ffaa00);
  opacity: 0.8;
}

.leadership-image {
  position: relative;
}

.leadership-image img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  filter: grayscale(100%) contrast(1.3) brightness(0.9);
  border: 2px solid var(--color-border);
  transition: all 0.3s ease;
}

.leadership-card:hover .leadership-image img {
  filter: grayscale(80%) contrast(1.2) brightness(1);
  border-color: var(--color-secondary-500);
}

.leadership-content h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary-500);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.leadership-content h4 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.title-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leadership-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 119, 181, 0.15);
  color: #0077B5;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 119, 181, 0.3);
}

.linkedin-link:hover {
  background: rgba(0, 119, 181, 0.25);
  border-color: #0077B5;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .verticals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .leadership-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  .leadership-image {
    margin: 0 auto;
  }

  .leadership-content h4 {
    justify-content: center;
  }

  .linkedin-link {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .operational-verticals {
    padding: 4rem 0;
  }

  .vertical-card {
    padding: 2rem 1.5rem;
  }

  .vertical-icon {
    width: 100px;
    height: 100px;
  }

  .leadership-card {
    padding: 1.5rem;
  }

  .leadership-image img {
    width: 160px;
    height: 160px;
  }

  .leadership-content h4 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   17. Print Styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Tidio Chat Customization
   ========================================================================== */
#tidio-chat-iframe {
    bottom: 20px !important;
    right: 20px !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 12px !important;
}
