/* ============================================
   BCM Website - Main Stylesheet
   Design System: Hybrid Dark/Light with Felt 3D
   Theme: Clean, Playful, Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Noto+Sans+Hebrew:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');


/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Dark Zone Colors (hero, nav, footer, CTA) */
  --color-bg-dark: #0c0f1a;
  --color-bg-dark-secondary: #141830;
  --color-bg-dark-tertiary: #1e2444;

  /* Light Zone Colors (content sections) */
  --color-bg-light: #f8f9fc;
  --color-bg-light-alt: #f0f2f8;
  --color-bg-white: #ffffff;
  --color-bg-silver: #e8ecf4;

  /* Legacy mappings (gradual migration) */
  --color-bg-primary: #0c0f1a;
  --color-bg-secondary: #f0f2f8;
  --color-bg-tertiary: #e8ecf4;
  --color-glass-panel: rgba(255, 255, 255, 0.85);
  --color-glass-panel-hover: rgba(255, 255, 255, 0.95);
  --color-glass-border: rgba(0, 0, 0, 0.06);

  /* Dark zone glass (for nav/footer) */
  --color-dark-glass: rgba(12, 15, 26, 0.92);
  --color-dark-glass-border: rgba(255, 255, 255, 0.08);
  
  /* Text Colors - Light sections */
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #4a5568;
  --color-text-muted: #94a3b8;
  --color-text-accent: #1e3a6e;

  /* Text Colors - Dark sections */
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-secondary: #c7d2e0;
  --color-text-on-dark-muted: #7b8ca8;
  
  /* Accent Colors - Dark blue brand, not purple */
  --color-accent-blue: #1e3a6e;
  --color-accent-blue-light: #3b6cb5;
  --color-accent-indigo: #2b4f8e;
  --color-accent-cyan: #06b6d4;
  --color-accent-violet: #4a6fa5;
  --color-accent-rose: #e8485c;
  --color-accent-emerald: #10b981;
  --color-accent-amber: #f59e0b;

  /* Service-specific accent colors */
  --color-service-ai: #6366f1;
  --color-service-strategy: #06b6d4;
  --color-service-design: #f43f5e;
  --color-service-dev: #10b981;
  --color-service-saas: #f59e0b;
  --color-service-marketplace: #8b5cf6;
  
  /* Shadows - Light theme */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.08);
  
  /* Glow Effects (for dark zones) */
  --glow-blue: 0 0 15px rgba(30, 58, 110, 0.5);
  --glow-blue-soft: 0 0 15px rgba(30, 58, 110, 0.3);
  --glow-indigo: 0 0 15px rgba(43, 79, 142, 0.5);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
  
  /* Legacy color mapping */
  --color-primary: #0c0f1a;
  --color-background: #f8f9fc;
  --color-background-alt: #f0f2f8;
  --color-accent: #1e3a6e;
  --color-accent-dark: #152d56;
  --color-accent-light: #3b6cb5;
  --color-text: #4a5568;
  --color-text-light: #94a3b8;
  --color-white: #FFFFFF;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-dark: rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-heading: 'Noto Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
  --text-5xl: clamp(3rem, 2.25rem + 3.75vw, 5.5rem);
  --text-6xl: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --text-8xl: clamp(4.5rem, 3rem + 7.5vw, 10rem);
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Line Heights */
  --leading-none: 0.9;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(30, 58, 110, 0.15);
  
  /* Glassmorphism (light sections) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(0, 0, 0, 0.06);
  --glass-blur: blur(20px);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-nav: 1000;
}

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-light);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(30, 58, 110, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 110, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tighter);
}

h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

h5 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-indigo);
}

strong, b {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* Label Style (Mono) */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent-blue);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--color-text-primary), var(--color-text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Utilities */
.text-accent {
  color: var(--color-accent-blue);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-secondary);
}

.text-white {
  color: var(--color-text-primary);
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

.container-2xl {
  max-width: var(--container-2xl);
}

/* Section Spacing */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Background Variants */
.bg-primary {
  background-color: var(--color-bg-light);
}

.bg-secondary {
  background-color: var(--color-bg-light-alt);
}

.bg-alt {
  background-color: var(--color-bg-light-alt);
}

.bg-white {
  background-color: var(--color-bg-white);
}

/* Dark zone styling */
.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
  color: var(--color-text-on-dark);
}

.bg-dark p {
  color: var(--color-text-on-dark-secondary);
}

.bg-dark .section-header__eyebrow,
.bg-dark .label {
  color: var(--color-accent-blue-light);
}

.bg-dark .section-header__description {
  color: var(--color-text-on-dark-secondary);
}

.bg-dark .card,
.bg-dark .glow-card,
.bg-dark .service-card {
  background: var(--color-dark-glass);
  border-color: var(--color-dark-glass-border);
}

.bg-dark .card:hover,
.bg-dark .glow-card:hover,
.bg-dark .service-card:hover {
  background: rgba(30, 36, 68, 0.9);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ============================================
   Images & Media
   ============================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

/* ============================================
   Lists
   ============================================ */
ul, ol {
  list-style: none;
}

.list-styled {
  padding-left: var(--space-6);
}

.list-styled li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.list-styled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent-blue);
  border-radius: var(--radius-full);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background-color: var(--color-accent-blue);
  color: var(--color-text-primary);
}

/* ============================================
   Focus States
   ============================================ */
:focus {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

/* ============================================
   Scroll Reveal Animation Base
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

.reveal-delay-5 {
  transition-delay: 500ms;
}

.reveal-delay-6 {
  transition-delay: 600ms;
}

/* ============================================
   Utility Classes
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Margin Utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-silver);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-blue);
}

/* ============================================
   Ambient Animations
   ============================================ */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 12px rgba(30, 58, 110, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(30, 58, 110, 0.35);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}
