/* 
 * Ace International Solutions - Complete Website Redesign
 * Version: 2.0 (October 2025)
 * 
 * Design Philosophy: Refined, Elegant, Connected
 * - Sophisticated typography with proper hierarchy
 * - Cohesive spacing and rhythm
 * - Professional yet inviting interactions
 * - SEO-optimized semantic structure
 * 
 * Color Palette:
 * - Primary Blue: #0762d9
 * - Secondary Green: #059847, #2b928e
 * - Neutrals: #211f54 (dark), #6e7191 (medium), #f8f9fa (light)
 */

/* ========================================
   GLOBAL REFINEMENTS
   ======================================== */

/* Refined Base Typography - Smaller, More Elegant */
html {
  font-size: 16px; /* Base size for better readability */
  scroll-behavior: smooth;
}

body {
  font-size: 1rem !important; /* Override the clunky 1.3vw */
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale - Refined & Elegant */
.brix---heading-h1-size {
  font-size: 2.75rem !important; /* Was 3em - reduced for elegance */
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important; /* Tighter, more refined */
  margin-bottom: 1.25rem !important;
}

.brix---heading-h2-size,
.brix---heading-h2-size-results {
  font-size: 2rem !important; /* Was 2.5-3em - much more refined */
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 1rem !important;
}

.brix---heading-h3-size,
.brix---heading-h3-size-2,
.brix---heading-h3-size-link {
  font-size: 1.375rem !important; /* Was 1.5em - refined */
  line-height: 1.4 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.875rem !important;
}

.brix---paragraph-default {
  font-size: 1.0625rem !important; /* 17px - slightly larger for better readability */
  line-height: 1.75 !important; /* Increased line height for easier reading */
  font-weight: 400 !important;
  color: #2d3748 !important; /* Darker for better contrast and readability */
  margin-bottom: 1rem !important;
  max-width: 65ch !important; /* Optimal reading width - 65 characters */
}

/* Hero section specific paragraph styling */
.brix---hero-paragraph,
.brix---color-neutral-100 .brix---paragraph-default {
  font-size: 1.125rem !important; /* 18px - larger for hero impact */
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.95) !important; /* Better readability on dark backgrounds */
  font-weight: 400 !important;
  max-width: 60ch !important;
}

/* CTA description styling */
.cta-description {
  font-size: 1.0625rem !important; /* 17px */
  line-height: 1.75 !important;
  color: #374151 !important; /* Darker for better readability */
  margin-top: 1rem !important;
  max-width: 60ch !important;
}

.brix---text-200-bold,
.brix---text-200-list-bold {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* Header Navigation - Refined */
.brix---header-nav-list-item {
  font-size: 0.9375rem !important; /* Was 1.3em - too large */
  font-weight: 500 !important;
  padding-left: 2rem !important;
}

.brix---header-nav-link-white {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #211f54 !important; /* Dark color for white backgrounds */
}

.brix---header-nav-link-white:hover {
  color: #0762d9 !important; /* Blue hover - not white! */
  transform: translateY(-1px);
}

/* For mobile menu alignment */
@media (max-width: 991px) {
  .brix---header-nav-menu-wrapper-white {
    background: white;
    padding: 1.5rem;
  }
  
  .brix---header-nav-list-item {
    padding-left: 0 !important;
    padding: 0.75rem 0 !important;
  }
  
  .brix---header-nav-link-white {
    display: block;
    padding: 0.5rem 1rem;
  }
  
  .brix---header-nav-list-item-show-in-mbl {
    padding: 0.75rem 0 !important;
  }
}

/* ========================================
   REFINED BUTTON SYSTEM
   ======================================== */

.brix---btn-primary,
.brix---btn-primary-2,
.brix---btn-primary-white {
  font-size: 0.9375rem !important; /* Refined from 1em */
  font-weight: 600 !important;
  padding: 0.875rem 1.75rem !important;
  border-radius: 0.625rem !important; /* 10px - more refined than 20px */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(7, 98, 217, 0.15) !important;
}

.brix---btn-primary:hover,
.brix---btn-primary-2:hover {
  transform: translateY(-2px) !important; /* Subtle, not -3px */
  box-shadow: 0 4px 16px rgba(7, 98, 217, 0.25) !important;
}

.brix---btn-primary-small {
  font-size: 0.875rem !important;
  padding: 0.75rem 1.5rem !important;
}

/* ========================================
   COHESIVE SPACING SYSTEM
   ======================================== */

.brix---section {
  padding: 5rem 0 !important; /* Was inconsistent - now unified */
}

.brix---section-small {
  padding: 3.5rem 0 !important;
}

.brix---mg-bottom-16px {
  margin-bottom: 1rem !important;
}

.brix---mg-bottom-24px {
  margin-bottom: 1.5rem !important;
}

.brix---mg-bottom-32px {
  margin-bottom: 2rem !important;
}

.brix---mg-bottom-40px {
  margin-bottom: 2.5rem !important;
}

.brix---mg-bottom-48px {
  margin-bottom: 3rem !important;
}

.brix---mg-bottom-56px,
.brix---mg-bottom-56px-2 {
  margin-bottom: 3.5rem !important;
}

/* Container Refinement */
.brix---container-default {
  max-width: 1200px !important; /* Slightly narrower for better reading */
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* ========================================
   REFINED CARD SYSTEM
   ======================================== */

.brix---card-link,
.brix---card-link-horizontal {
  border-radius: 1rem !important; /* 16px - more refined */
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.brix---card-link:hover,
.brix---card-link-horizontal:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(7, 98, 217, 0.15) !important;
}

.brix---content-inside-card,
.brix---content-inside-card-v2 {
  padding: 2rem !important; /* Consistent, refined padding */
}

/* ========================================
   AI/IOT HERO BADGES - REFINED
   ======================================== */

.tech-badges-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem; /* 24px */
  padding: 0.625rem 1.25rem; /* Refined padding */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem; /* Smaller, more elegant */
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tech-badge img {
  width: 1.125rem; /* 18px - refined from 22px */
  height: 1.125rem;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.tech-badge.ai-badge {
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.08), rgba(7, 98, 217, 0.12));
  border-color: rgba(7, 98, 217, 0.25);
  color: #0762d9;
}

.tech-badge.ai-badge:hover {
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.12), rgba(7, 98, 217, 0.16));
  border-color: rgba(7, 98, 217, 0.35);
}

.tech-badge.iot-badge {
  background: linear-gradient(135deg, rgba(5, 152, 71, 0.08), rgba(5, 152, 71, 0.12));
  border-color: rgba(5, 152, 71, 0.25);
  color: #059847;
}

.tech-badge.iot-badge:hover {
  background: linear-gradient(135deg, rgba(5, 152, 71, 0.12), rgba(5, 152, 71, 0.16));
  border-color: rgba(5, 152, 71, 0.35);
}

.tech-badge.new-badge {
  background: linear-gradient(135deg, rgba(43, 146, 142, 0.08), rgba(5, 152, 71, 0.12));
  border-color: rgba(43, 146, 142, 0.25);
  color: #2b928e;
}

.tech-badge.new-badge:hover {
  background: linear-gradient(135deg, rgba(43, 146, 142, 0.12), rgba(5, 152, 71, 0.16));
  border-color: rgba(43, 146, 142, 0.35);
}

.pulse-dot {
  width: 0.5rem; /* 8px */
  height: 0.5rem;
  background: #059847;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(5, 152, 71, 0.4);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(5, 152, 71, 0.4);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15);
    box-shadow: 0 0 0 0.375rem rgba(5, 152, 71, 0);
  }
}

/* ========================================
   AI/IOT CAPABILITIES SECTION - ELEGANT
   ======================================== */

.tech-capabilities-section {
  background: linear-gradient(135deg, #0762d9 0%, #2b928e 50%, #059847 100%);
  padding: 6rem 0; /* Refined spacing */
  position: relative;
  overflow: hidden;
}

.tech-capabilities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.tech-capabilities-header {
  text-align: center;
  max-width: 46rem; /* 736px - refined */
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 1;
}

.tech-capabilities-header .brix---subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem; /* 13px - refined */
  font-weight: 700;
  letter-spacing: 0.1em; /* Elegant spacing */
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tech-capabilities-header .brix---heading-h2-size {
  color: white !important;
  margin-bottom: 1rem !important;
  font-size: 2.25rem !important; /* Refined */
}

.tech-capabilities-header .brix---paragraph-default {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.0625rem !important; /* 17px - slightly larger for readability on dark bg */
  max-width: 38rem;
  margin: 0 auto;
}

/* Capabilities Grid - Refined */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.75rem; /* Refined spacing */
  position: relative;
  z-index: 1;
}

.capability-card {
  background: white;
  border-radius: 1.25rem; /* 20px - refined */
  padding: 2.25rem 1.875rem; /* Refined padding */
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px; /* Refined from 5px */
  background: linear-gradient(90deg, #0762d9, #2b928e, #059847);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.capability-card:hover {
  transform: translateY(-6px); /* Refined from -8px */
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(7, 98, 217, 0.2);
}

/* Capability Icons - Refined */
.capability-icon-wrapper {
  width: 4.5rem; /* 72px - refined */
  height: 4.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.05), rgba(5, 152, 71, 0.05));
  border-radius: 1rem; /* 16px - refined */
  border: 1px solid rgba(7, 98, 217, 0.1);
}

.capability-icon {
  width: 3rem; /* 48px - refined */
  height: 3rem;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover .capability-icon {
  transform: scale(1.05) rotate(2deg); /* Subtle refinement */
}

.icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(1.25rem); /* 20px */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ai-glow {
  background: linear-gradient(135deg, #0762d9, #376aae);
}

.iot-glow {
  background: linear-gradient(135deg, #059847, #2b928e);
}

.integration-glow {
  background: linear-gradient(135deg, #2b928e, #0762d9);
}

.capability-card:hover .icon-glow {
  opacity: 0.5; /* Refined from 0.6 */
}

/* Capability Content - Refined */
.capability-title {
  color: #211f54;
  font-size: 1.25rem !important; /* Refined from 1.5em */
  font-weight: 700 !important;
  margin-bottom: 1.125rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

.capability-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.capability-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem; /* Refined spacing */
  position: relative;
  color: #4a5568;
  font-size: 0.9375rem; /* 15px - refined */
  line-height: 1.6;
}

.capability-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059847;
  font-weight: bold;
  font-size: 0.9375rem; /* Refined */
  background: linear-gradient(135deg, rgba(5, 152, 71, 0.1), rgba(5, 152, 71, 0.05));
  width: 1.125rem; /* 18px - refined */
  height: 1.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Tech Stack Tags - Refined */
.capability-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eff0f6;
}

.tech-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem; /* Refined padding */
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.08), rgba(43, 146, 142, 0.08));
  border: 1px solid rgba(7, 98, 217, 0.2);
  border-radius: 0.875rem; /* 14px - refined */
  font-size: 0.8125rem; /* 13px - refined */
  color: #0762d9;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.15), rgba(43, 146, 142, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 98, 217, 0.15);
}

/* ========================================
   INDUSTRY SOLUTIONS - REFINED
   ======================================== */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.industry-card {
  background: white;
  padding: 2.25rem 1.875rem;
  border-radius: 1.25rem; /* 20px - refined */
  border: 1.5px solid #f2f4f7;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px; /* Refined */
  background: linear-gradient(90deg, #0762d9, #2b928e, #059847);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.industry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 98, 217, 0.2);
  box-shadow: 0 16px 48px rgba(7, 98, 217, 0.1);
}

.industry-icon {
  font-size: 2.5rem; /* Refined from 3em */
  margin-bottom: 1.25rem;
  display: inline-block;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.08), rgba(5, 152, 71, 0.08));
  border-radius: 1.125rem; /* 18px - refined */
  border: 1px solid rgba(7, 98, 217, 0.1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.industry-card:hover .industry-icon {
  transform: scale(1.05) rotate(2deg);
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.12), rgba(5, 152, 71, 0.12));
}

.industry-card h3 {
  color: #211f54;
  font-size: 1.25rem !important; /* Refined */
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.industry-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.industry-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #4a5568;
  font-size: 0.9375rem; /* 15px - refined */
}

.industry-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0762d9;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ========================================
   PRODUCT BADGES - REFINED
   ======================================== */

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1rem 0;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem; /* Refined padding */
  border-radius: 1.25rem; /* 20px */
  font-size: 0.8125rem; /* 13px - refined */
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-badge.ai-badge {
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.12), rgba(55, 106, 174, 0.12));
  border: 1.5px solid rgba(7, 98, 217, 0.3);
  color: #0762d9;
}

.product-badge.iot-badge {
  background: linear-gradient(135deg, rgba(5, 152, 71, 0.12), rgba(43, 146, 142, 0.12));
  border: 1.5px solid rgba(5, 152, 71, 0.3);
  color: #059847;
}

.product-badge.new-badge {
  background: linear-gradient(135deg, rgba(43, 146, 142, 0.12), rgba(5, 152, 71, 0.12));
  border: 1.5px solid rgba(43, 146, 142, 0.3);
  color: #2b928e;
}

.product-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 98, 217, 0.2);
}

.product-badge img {
  width: 0.875rem; /* 14px - refined */
  height: 0.875rem;
}

/* ========================================
   AI CHAT WIDGET - REFINED & ELEGANT
   ======================================== */

.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: 'Ubuntu', -apple-system, system-ui, sans-serif;
}

.chat-button {
  width: 3.5rem; /* 56px - refined */
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0762d9 0%, #2b928e 50%, #059847 100%);
  border: 2px solid white;
  box-shadow: 0 6px 24px rgba(7, 98, 217, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chat-button:hover {
  transform: scale(1.06); /* Refined from 1.08 */
  box-shadow: 0 8px 32px rgba(7, 98, 217, 0.35);
}

.chat-button img {
  width: 1.75rem; /* 28px - refined */
  height: 1.75rem;
  filter: brightness(0) invert(1);
}

.chat-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #0762d9;
  color: white;
  font-size: 0.6875rem; /* 11px - refined */
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem; /* 12px */
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(7, 98, 217, 0.4);
}

.online-indicator {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  width: 0.75rem; /* 12px */
  height: 0.75rem;
  background: #4AFF4A;
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Chat Window - Refined */
.chat-window {
  position: absolute;
  bottom: 4.5rem; /* Refined spacing */
  right: 0;
  width: 22rem; /* 352px - refined */
  max-height: 34rem; /* 544px - refined */
  background: white;
  border-radius: 1.25rem; /* 20px */
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.chat-window.open {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: linear-gradient(135deg, #0762d9 0%, #2b928e 50%, #059847 100%);
  color: white;
  padding: 1.25rem; /* Refined padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header img {
  width: 2.25rem; /* 36px - refined */
  height: 2.25rem;
  border-radius: 50%;
  background: white;
  padding: 0.375rem;
}

.chat-title {
  font-weight: 700;
  font-size: 0.9375rem; /* 15px - refined */
}

.chat-status {
  font-size: 0.75rem; /* 12px - refined */
  opacity: 0.9;
}

.chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.375rem; /* Refined */
  width: 1.875rem; /* 30px - refined */
  height: 1.875rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages - Refined */
.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 24rem; /* 384px - refined */
  background: #f8f9fa;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}

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

.message-avatar {
  width: 2rem; /* 32px - refined */
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0762d9, #059847);
  padding: 0.375rem;
}

.message-bubble {
  padding: 0.75rem 1rem; /* Refined padding */
  border-radius: 1.125rem; /* 18px */
  max-width: 75%;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.9375rem; /* 15px - refined */
}

.bot .message-bubble {
  background: white;
  color: #211f54;
  border: 1px solid #e5e7eb;
}

.user {
  flex-direction: row-reverse;
}

.user .message-bubble {
  background: linear-gradient(135deg, #0762d9, #2b928e);
  color: white;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(7, 98, 217, 0.15);
}

/* Chat Input - Refined */
.chat-input-wrapper {
  display: flex;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: white;
}

#chatInput {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem; /* 24px */
  padding: 0.75rem 1rem;
  font-size: 0.9375rem; /* 15px - refined */
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
}

#chatInput:focus {
  border-color: #0762d9;
  box-shadow: 0 0 0 3px rgba(7, 98, 217, 0.1);
}

.send-button {
  background: linear-gradient(135deg, #0762d9, #2b928e);
  border: none;
  width: 2.5rem; /* 40px - refined */
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(7, 98, 217, 0.2);
}

.send-button:hover {
  transform: scale(1.05); /* Refined */
  box-shadow: 0 4px 16px rgba(7, 98, 217, 0.3);
}

.send-button img {
  width: 1.125rem; /* 18px - refined */
  height: 1.125rem;
  filter: brightness(0) invert(1);
}

/* Chat Suggestions - Refined */
.chat-suggestions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f8f9fa;
  flex-wrap: wrap;
  border-top: 1px solid #e5e7eb;
}

.suggestion-chip {
  background: white;
  border: 1.5px solid rgba(7, 98, 217, 0.3);
  color: #0762d9;
  padding: 0.5rem 1rem; /* Refined padding */
  border-radius: 1.25rem; /* 20px */
  font-size: 0.8125rem; /* 13px - refined */
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.suggestion-chip:hover {
  background: linear-gradient(135deg, rgba(7, 98, 217, 0.08), rgba(43, 146, 142, 0.08));
  border-color: #0762d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 98, 217, 0.15);
}

/* ========================================
   RESPONSIVE REFINEMENTS
   ======================================== */

@media (max-width: 991px) {
  .brix---heading-h1-size {
    font-size: 2.25rem !important;
  }

  .brix---heading-h2-size,
  .brix---heading-h2-size-results {
    font-size: 1.75rem !important;
  }

  .brix---heading-h3-size,
  .brix---heading-h3-size-2 {
    font-size: 1.25rem !important;
  }

  .capabilities-grid,
  .industries-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-capabilities-section {
    padding: 4rem 0;
  }

  .chat-window {
    width: 20rem;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 15px; /* Slightly smaller base on mobile */
  }

  .brix---heading-h1-size {
    font-size: 2rem !important;
  }

  .brix---heading-h2-size,
  .brix---heading-h2-size-results {
    font-size: 1.5rem !important;
  }

  .brix---section {
    padding: 3.5rem 0 !important;
  }

  .tech-capabilities-section {
    padding: 3rem 0;
  }

  .capability-card,
  .industry-card {
    padding: 1.75rem 1.5rem;
  }

  .chat-window {
    width: calc(100vw - 3rem);
    max-width: 22rem;
  }

  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 479px) {
  .brix---heading-h1-size {
    font-size: 1.75rem !important;
  }

  .brix---heading-h2-size,
  .brix---heading-h2-size-results {
    font-size: 1.375rem !important;
  }

  .tech-badges-wrapper {
    gap: 0.5rem;
  }

  .tech-badge {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  .chat-button {
    width: 3.25rem;
    height: 3.25rem;
  }

  .chat-window {
    bottom: 4.25rem;
    right: 0;
    left: 1rem;
    width: calc(100% - 2rem);
  }
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem); /* 30px */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preserve Webflow animations */
[data-w-id] {
  will-change: transform, opacity;
}

/* ========================================
   ACCESSIBILITY REFINEMENTS
   ======================================== */

/* Refined focus states */
.tech-badge:focus,
.chat-button:focus,
.send-button:focus,
.suggestion-chip:focus {
  outline: 2px solid #0762d9;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .tech-badge,
  .capability-card,
  .industry-card {
    border-width: 2px;
  }
}

/* ========================================
   REFINED LINK STYLES
   ======================================== */

.brix---link-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.brix---link-wrapper:hover {
  transform: translateX(0.25rem);
}

.brix---link-icon-right {
  width: 1.125rem; /* 18px - refined */
  height: 1.125rem;
  transition: transform 0.3s ease;
}

.brix---link-wrapper:hover .brix---link-icon-right {
  transform: translateX(0.25rem);
}

/* ========================================
   REFINED STATS SECTION
   ======================================== */

.brix---display-5 {
  font-size: 3.5rem !important; /* Refined from 72px */
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

/* ========================================
   SMOOTH SCROLL BEHAVIOR
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   LOGO SIZING - INDEPENDENT OF NAV
   ======================================== */

/* Reduced header padding to make logo more prominent */
.brix---header-wrapper-transparent {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* Header Logo - Not constrained by nav link sizes */
.brix---header-logo-link {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  line-height: 1 !important;
}

.brix---header-logo {
  display: block !important;
  max-width: none !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Footer Logo - Not constrained by footer elements */
.brix---footer-logo-wrapper {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  line-height: 1 !important;
}

.brix---footer-logo {
  display: block !important;
  max-width: none !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Ensure header content wrapper accommodates larger logo */
.brix---header-content-wrapper {
  align-items: center !important;
}

/* ========================================
   PROJECT FILTER BUTTONS
   ======================================== */

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6e7191;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #f8f9fa;
  border-color: #0762d9;
  color: #0762d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 98, 217, 0.15);
}

.filter-btn.active {
  background: #0762d9;
  border-color: #0762d9;
  color: white;
  box-shadow: 0 4px 16px rgba(7, 98, 217, 0.3);
}

/* Project Category Badge */
.project-category-badge {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   END OF REFINED DESIGN SYSTEM
   ======================================== */
