:root{
  --bf-primary: #1f6feb;
  --bf-primary-600: #2563eb;
  --bf-accent: #12a0ff;
  --bf-ink: #0b2e4f;
  --bf-ink-60: #5a7186;
  --bf-bg: #f7f9fc;
}

.text-primary{ color: var(--bf-primary)!important; }
.bg-primary{ background-color: var(--bf-primary)!important; }
.btn-primary{ background-color: var(--bf-primary); border-color: var(--bf-primary); }
.btn-primary:hover{ background-color: var(--bf-primary-600); border-color: var(--bf-primary-600); }
.link-muted{ color: var(--bf-ink-60); }
/* BureauFlow Enterprise Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #64748b;
  --success: #059669;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0ea5e9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 50%, var(--gray-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.5;
  z-index: -1;
}

.hero-title {
  color: var(--gray-900);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.hero-badge .badge {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
}

.hero-stats .stat-number {
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* Client Logos */
.client-logos {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logos:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.client-logo img {
  max-height: 40px;
  object-fit: contain;
}

/* Cards & Components */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-header {
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
}

.card-title {
  color: var(--gray-900);
  font-weight: 700;
}

/* Service Cards */
.services .card {
  position: relative;
  overflow: hidden;
}

.services .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services .card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  display: inline-flex;
  margin-bottom: 16px;
}

.service-features {
  font-size: 0.9rem;
}

.service-features .text-success {
  font-weight: 600;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* Metrics & Dashboards */
.metric-card {
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: var(--success);
  background: rgba(5, 150, 105, 0.02) !important;
}

.metric-value {
  font-weight: 800;
  color: var(--success);
}

.metric-label {
  font-weight: 500;
  color: var(--gray-600);
}

.metric-change {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Case Studies */
.case-studies .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-studies .card:hover .card-img-top {
  transform: scale(1.05);
}

.metric {
  padding: 12px 0;
}

.metric .h4 {
  margin-bottom: 4px;
  font-weight: 800;
}

/* Testimonials */
.testimonials .carousel-item {
  padding: 40px 20px;
}

.blockquote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
}

.testimonials img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact .form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-control, .form-select {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Language Selector */
.language-selector .btn {
  min-width: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
}

.language-selector .btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer h6 {
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--primary-light) !important;
}

/* Badges */
.badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 50px;
}

.badge.bg-light {
  color: var(--primary) !important;
  background-color: rgba(37, 99, 235, 0.1) !important;
}

/* Utilities */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-light {
  background-color: var(--gray-50) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .hero-stats {
    margin-top: 2rem;
  }
  
  .hero-stats .stat-number {
    font-size: 2rem;
  }
  
  .client-logos {
    justify-content: center;
  }
  
  .client-logo {
    margin-right: 1rem !important;
  }
  
  .navbar-actions {
    margin-top: 1rem;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats .col-4 {
    margin-bottom: 1rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Enterprise Color Variants */
.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

/* Team Section Styles */
.team .member h3 {
  color: var(--primary);
}

.team .member a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.team .member a:hover {
  text-decoration: underline;
}

/* Contact Form Enhancements */
.form-field {
  position: relative;
}

.form-field .material-icons {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

.form-field .form-control {
  padding-left: 45px;
}

.form-field .form-control:focus ~ .material-icons {
  color: var(--primary);
}
