/* ==========================================================================
   Softech Services - Theme Design Tokens
   Supports Light & Bright Mode and Obsidian Dark Mode
   ========================================================================== */

:root {
  /* Default: Light & Bright Mode */
  --theme: light;
  
  /* Brand Crimson Red (Exact match with official Softech Services 3D logo ribbon) */
  --primary: #e30613;
  --primary-rgb: 227, 6, 19;
  --primary-hover: #c4000b;
  --primary-glow: rgba(227, 6, 19, 0.22);
  --primary-soft: rgba(227, 6, 19, 0.08);

  /* Accents */
  --accent-cyan: #0284c7;
  --accent-cyan-rgb: 2, 132, 199;
  --accent-cyan-soft: rgba(2, 132, 199, 0.1);
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-purple: #7c3aed;

  /* Additional Signature Brand Color: Electric Royal Violet / Indigo */
  --accent-violet: #6366f1;
  --accent-violet-rgb: 99, 102, 241;
  --accent-violet-hover: #4f46e5;
  --accent-violet-soft: rgba(99, 102, 241, 0.1);
  --accent-violet-glow: rgba(99, 102, 241, 0.28);
  --gradient-primary: linear-gradient(135deg, #e30613 0%, #c4000b 100%);
  --gradient-brand-trio: linear-gradient(135deg, #e30613 0%, #6366f1 52%, #0284c7 100%);
  --gradient-violet-red: linear-gradient(135deg, #e30613 0%, #6366f1 100%);

  /* Text Selection - Corporate Blue */
  --selection-bg: #2563eb;
  --selection-color: #ffffff;

  /* Surfaces & Backgrounds - Light & Bright */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-light: rgba(255, 255, 255, 0.75);
  --bg-console: #ffffff;
  --bg-console-card: #f8fafc;
  --bg-console-inner: #f1f5f9;
  --bg-subtle-glow: 
    radial-gradient(circle at 12% 10%, rgba(227, 6, 19, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(2, 132, 199, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 50% 65%, rgba(99, 102, 241, 0.03) 0%, transparent 45%);

  /* Typography - High Contrast Light */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --heading-gradient: linear-gradient(135deg, #0f172a 20%, #1e293b 70%, #334155 100%);

  /* Borders & Shadows - Light & Bright */
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-highlight: rgba(15, 23, 42, 0.18);
  --border-primary: rgba(227, 6, 19, 0.35);
  --border-violet: rgba(99, 102, 241, 0.35);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-cyan-glow: 0 0 30px rgba(2, 132, 199, 0.15);
  --shadow-violet-glow: 0 0 30px rgba(99, 102, 241, 0.2);

  /* Footer Colors */
  --footer-bg: #0b0f17;
  --footer-text-main: #ffffff;
  --footer-text-muted: #94a3b8;
  --footer-border: rgba(255, 255, 255, 0.08);

  /* Typography Tokens */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Tokens */
  --container-max: 1200px;
  --container-padding: clamp(32px, 5vw, 64px);
  --nav-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Obsidian Dark Mode
   ========================================================================== */
[data-theme="dark"] {
  --theme: dark;

  /* Brand Crimson Red */
  --primary: #ff2a44;
  --primary-rgb: 255, 42, 68;
  --primary-hover: #ff475e;
  --primary-glow: rgba(255, 42, 68, 0.28);
  --primary-soft: rgba(255, 42, 68, 0.12);

  /* Accents */
  --accent-cyan: #00d2ff;
  --accent-cyan-rgb: 0, 210, 255;
  --accent-cyan-soft: rgba(0, 210, 255, 0.12);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

  /* Additional Signature Brand Color: Electric Royal Violet / Indigo */
  --accent-violet: #818cf8;
  --accent-violet-rgb: 129, 140, 248;
  --accent-violet-hover: #a5b4fc;
  --accent-violet-soft: rgba(129, 140, 248, 0.14);
  --accent-violet-glow: rgba(129, 140, 248, 0.35);
  --gradient-primary: linear-gradient(135deg, #ff2a44 0%, #e30613 100%);
  --gradient-brand-trio: linear-gradient(135deg, #ff2a44 0%, #818cf8 52%, #00d2ff 100%);
  --gradient-violet-red: linear-gradient(135deg, #ff2a44 0%, #818cf8 100%);

  /* Text Selection - Vibrant Sky Blue */
  --selection-bg: #3b82f6;
  --selection-color: #ffffff;

  /* Surfaces & Backgrounds - Dark Obsidian */
  --bg-primary: #0a0c10;
  --bg-secondary: #0f131a;
  --bg-tertiary: #161c26;
  --bg-card: rgba(22, 28, 38, 0.75);
  --bg-card-hover: rgba(28, 36, 49, 0.9);
  --bg-glass: rgba(10, 12, 16, 0.9);
  --bg-glass-light: rgba(255, 255, 255, 0.04);
  --bg-console: rgba(22, 28, 38, 0.75);
  --bg-console-card: rgba(15, 19, 26, 0.85);
  --bg-console-inner: rgba(10, 12, 16, 0.9);
  --bg-subtle-glow: 
    radial-gradient(circle at 15% 10%, rgba(255, 42, 68, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0, 210, 255, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 50% 70%, rgba(129, 140, 248, 0.06) 0%, transparent 50%);

  /* Typography - Dark Mode */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0c10;
  --heading-gradient: linear-gradient(135deg, #ffffff 20%, #cbd5e1 60%, #94a3b8 100%);

  /* Borders & Shadows - Dark Mode */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-primary: rgba(255, 42, 68, 0.4);
  --border-violet: rgba(129, 140, 248, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--primary-glow);
  --shadow-cyan-glow: 0 0 35px rgba(0, 210, 255, 0.25);
  --shadow-violet-glow: 0 0 35px rgba(129, 140, 248, 0.3);

  /* Footer Colors */
  --footer-bg: #090c12;
  --footer-text-main: #ffffff;
  --footer-text-muted: #94a3b8;
  --footer-border: rgba(255, 255, 255, 0.08);
}
