/* KATONOMETRICA Styles - Modern, Professional, Responsive, and Animated Landing Page */
/* ==== VARIABLES ==== */
:root {
  /* Brand Colors */
  --primary-700: #6d28d9;
  --primary-600: #7c3aed;
  --primary-500: #8b5cf6;
  --primary-400: #a78bfa;
  --primary-300: #c4b5fd;
  --primary-200: #ddd6fe;
  --primary-100: #ede9fe;
  --secondary-600: #0891b2;
  --secondary-500: #06b6d4;
  --secondary-400: #22d3ee;
  --accent-600: #ea580c;
  --accent-500: #f97316;
  --accent-400: #fb923c;
  --warning-600: #d97706;
  --warning-500: #f59e0b;
  --warning-400: #fbbf24;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --bg-primary: #fff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --transition-smooth: all 0.3s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==== BASE RESET ==== */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==== BUTTONS ==== */
.btn, .about-cta-btn, .about-portfolio-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; border: none;
  border-radius: 0.75rem; font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: var(--transition-bounce); position: relative; overflow: hidden;
  z-index: 1; padding: 1rem 2rem;
}
.btn-primary, .nav-cta, .about-cta-btn {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.btn-secondary, .about-portfolio-btn {
  background: rgba(255,255,255,0.9);
  color: var(--primary-600);
  border: 2px solid rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(10px);
}
.btn:hover, .about-cta-btn:hover, .about-portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}
.btn:active {transform: translateY(0);}

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

/* ==== MINIMALISTIC NAVBAR ==== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

/* Logo with anti-collision design */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: max-content;
  flex-shrink: 0;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.2));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.company-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-600);
  letter-spacing: -0.02em;
}

.company-suffix {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* Clean navigation menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: rgba(124, 58, 237, 0.06);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: all 0.2s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

/* Minimal dropdown */
.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 200px;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-link {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-link:last-child {
  border-bottom: none;
}

.dropdown-link:hover {
  background: var(--bg-secondary);
  color: var(--primary-600);
}

.dropdown-link small {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ==== MINIMAL NAV ACTIONS ==== */
.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.nav-primary {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.nav-primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.nav-primary:active {
  transform: translateY(0);
}

/* ==== LATERAL CALL BUTTON ==== */
.lateral-call-btn {
  position: fixed;
  top: 70%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1003;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border: none;
  color: white;
  padding: 1.25rem 0.875rem;
  border-radius: 1.25rem 0 0 1.25rem;
  box-shadow: -3px 0 15px rgba(139, 92, 246, 0.35);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; /* Hidden by default, shown on mobile */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 90px;
  min-width: 44px; /* Accessibility touch target */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
  touch-action: manipulation;
}

.lateral-call-btn i {
  font-size: 1.3rem;
  margin-bottom: 0.375rem;
  writing-mode: horizontal-tb;
  text-orientation: upright;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.lateral-call-btn:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-50%) translateX(-5px);
  box-shadow: -5px 0 25px rgba(139, 92, 246, 0.45);
}

.lateral-call-btn:active {
  transform: translateY(-50%) translateX(-3px) scale(0.98);
  transition: all 0.15s ease;
}

.lateral-call-btn:focus-visible {
  outline: 2px solid var(--primary-300);
  outline-offset: 2px;
}

/* ==== MINIMAL MOBILE NAV ==== */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.875rem;
  z-index: 1001;
  background: none;
  border: none;
  border-radius: 0.75rem;
  min-width: 48px; /* Accessibility touch target */
  min-height: 48px;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
  touch-action: manipulation;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  transform: scale(1.05);
}

.nav-toggle:active {
  background: rgba(124, 58, 237, 0.15);
  transform: scale(0.98);
  transition: all 0.1s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary-300);
  outline-offset: 2px;
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background: var(--primary-600);
  margin: 3px 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 7px);
  background: var(--primary-700);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -7px);
  background: var(--primary-700);
}

/* Mobile responsive breakpoints */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px; /* Fixed position below navbar */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2rem 1rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-25px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 999;
    overscroll-behavior: contain;
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    margin: 0.25rem 0;
  }
  
  .nav-link {
    padding: 1.125rem 1.5rem;
    width: 100%;
    justify-content: center;
    border-radius: 0.75rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    touch-action: manipulation;
    min-height: 48px; /* Accessibility touch target */
  }
  
  .nav-link:hover,
  .nav-link:focus {
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
  }
  
  .nav-link:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.12);
    border: none;
    border-radius: 0.75rem;
    margin: 0.75rem 0;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .dropdown-link {
    padding: 0.875rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    min-height: 44px;
    transition: all 0.2s ease;
  }
  
  .nav-actions {
    display: none !important; /* Hide nav button on mobile */
  }
  
  .lateral-call-btn {
    display: flex !important; /* Show lateral button on mobile */
  }
  
  .company-name {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .company-suffix {
    font-size: 0.7rem;
    font-weight: 500;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
  
  /* Prevent body scroll when menu is open */
  body.mobile-menu-open {
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Mobile navigation enhancements */
@media (max-width: 768px) {
  /* Ensure mobile menu doesn't interfere with floating button */
  .nav-menu.active {
    padding-right: 80px; /* Space for floating button */
  }
  
  /* Smooth animations for mobile menu items */
  .nav-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease forwards;
  }
  
  .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.3s; }
  
  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Enhanced visual feedback for mobile interactions */
  .nav-link:active {
    background: rgba(139, 92, 246, 0.15);
  }
  
  /* Improved dropdown styling for mobile */
  .dropdown-menu {
    border-left: 3px solid var(--primary-200);
  }
  
  .dropdown-link:hover {
    background: rgba(139, 92, 246, 0.08);
    padding-left: 1.25rem;
  }
  
  /* Mobile-specific utility classes */
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }
}

/* ==== FLOATING BUTTON ENHANCEMENTS ==== */
.lateral-call-btn {
  /* Add subtle pulse animation */
  animation: floatingPulse 3s ease-in-out infinite;
}

@keyframes floatingPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.02); }
}

.lateral-call-btn:hover {
  animation: none; /* Stop pulse on hover */
}

/* ==== MOBILE VIEWPORT OPTIMIZATIONS ==== */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling on mobile */
  body {
    overflow-x: hidden;
  }
  
  /* Optimize for mobile Safari */
  @supports (-webkit-touch-callout: none) {
    .nav-menu {
      padding-bottom: env(safe-area-inset-bottom, 2rem);
    }
    
    .lateral-call-btn {
      bottom: env(safe-area-inset-bottom, 2rem);
    }
  }
}

/* ==== HERO SECTION ==== */
.hero {
  min-height: 100vh; background: var(--bg-accent); position: relative; display: flex; align-items: center;
  width: 100%; max-width: 100vw; overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
}
.hero::before {
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI4MDAiIHZpZXdCb3g9IjAgMCAxNDQwIDgwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz4KPHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPgo8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8cmVjdCB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI4MDAiIGZpbGw9InVybCgjZ3JhZCkiLz4KPC9zdmc+') no-repeat center center;
  background-size: cover; opacity: 0.3;
}
.hero::after {
  background: radial-gradient(circle at 50% 50%,rgba(255,255,255,0.1) 0%,transparent 70%);
  pointer-events: none;
}
.hero-container {
  display: flex; align-items: center; justify-content: center; max-width: 1200px;
  margin: 0 auto; width: 100%; padding: 60px 32px 40px; position: relative; z-index: 2;
}
.hero-content {
  flex: 1; max-width: 800px; color: #fff; z-index: 2; text-align: center; width: 100%;
}
.hero-title {
  font-size: 3.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.2rem; color: #fff; letter-spacing: -1px;
  text-shadow: 0 4px 32px rgba(103,58,183,0.12);
}
.hero-title .highlight {
  color: #e1bee7; background: linear-gradient(90deg, #8e24aa 0%, #673ab7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-description {
  font-size: 1.4rem; line-height: 1.6; margin-bottom: 2.5rem; color: rgba(255,255,255,0.9); font-weight: 400;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-stats {
  display: flex; justify-content: center; gap: 2rem; margin: 3rem 0; flex-wrap: wrap;
}
.hero-stat, .stat-item, .stats-grid-compact .stat-item {
  text-align: center; border-radius: 16px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  transition: var(--transition-bounce);
}
.hero-stat {padding: 1.5rem; background: rgba(255,255,255,0.1); min-width: 120px; gap: .5rem;}
.hero-stat:hover, .stat-item:hover, .stats-grid-compact .stat-item:hover {
  transform: translateY(-8px) scale(1.05); box-shadow: 0 20px 40px rgba(142,36,170,0.3); background: rgba(255,255,255,0.15);
}
.hero-stat-icon, .stat-icon, .stats-grid-compact .stat-icon {
  border-radius: 10px; background: linear-gradient(135deg,rgba(255,255,255,0.2),rgba(255,255,255,0.1));
  display: flex; align-items: center; justify-content: center; margin-bottom: .5rem;
}
.hero-stat-icon {width: 40px; height: 40px; box-shadow: 0 4px 12px rgba(0,0,0,.1);}
.hero-stat .stat-number, .stat-number, .stats-grid-compact .stat-number {
  font-size: 2.5rem; font-weight: 800; color: #fff; display: block; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.hero-stat .stat-label, .stat-label, .stats-grid-compact .stat-label {
  font-size: .9rem; color: rgba(255,255,255,0.8); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin: 0;
}

/* ==== SECTION HEADERS ==== */
.section-header {text-align: center; margin-bottom: 4rem;}
.section-header h2 {font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem;}
.section-header p {font-size: 1.125rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto; line-height: 1.7;}

/* ==== ABOUT/EXPERTISE ==== */
.about, .expertise {
  padding: 8rem 0; 
  background: linear-gradient(135deg, 
    var(--bg-secondary) 0%, 
    rgba(248, 250, 252, 0.8) 50%, 
    var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* Enhanced Expertise Section */
.expertise {
  position: relative;
  overflow: hidden;
}

.expertise::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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23e5e7eb" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.expertise .container {
  position: relative;
  z-index: 1;
}

/* Service Cards Enhanced */
.service-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 2px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: var(--primary-300);
}

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

.service-card.featured {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(6, 182, 212, 0.03));
  border-color: var(--primary-400);
  transform: scale(1.02);
}

.service-card.featured:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-600);
  margin-bottom: 1.5rem;
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.service-icon i {
  position: relative;
  z-index: 1;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 50%;
  z-index: 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon::before {
  transform: translate(-50%, -50%) scale(1.2);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 1rem;
}

.service-features {
  margin-bottom: 1.5rem;
}

.service-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-600);
  font-weight: bold;
  font-size: 1rem;
}

/* Service Highlights and Badges */
.service-highlight {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.service-badge {
  align-self: flex-start;
  margin-top: auto;
}

.service-badge span {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--primary-300);
}

/* Service Stats */
.service-stats {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.stat-mini {
  text-align: center;
  flex: 1;
}

.stat-mini .stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.25rem;
}

.stat-mini .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Expertise CTA Section */
.expertise-cta {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  border-radius: 1.5rem;
  border: 1px solid var(--primary-200);
}

.expertise-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.expertise-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Services Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
}

/* Staggered Animation for Service Cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes serviceCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ENHANCED SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for About section elements */
.about-intro {
  animation-delay: 0.1s;
}

.stat-item-enhanced:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-item-enhanced:nth-child(2) {
  animation-delay: 0.4s;
}

.stat-item-enhanced:nth-child(3) {
  animation-delay: 0.6s;
}

.value-prop:nth-child(1) {
  animation-delay: 0.3s;
}

.value-prop:nth-child(2) {
  animation-delay: 0.5s;
}

.value-prop:nth-child(3) {
  animation-delay: 0.7s;
}

/* Floating animation for enhanced visual appeal */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.about-intro::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.stat-icon-bg {
  animation: pulse 4s ease-in-out infinite;
}

.value-icon {
  animation: float 5s ease-in-out infinite;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .stat-item-enhanced,
  .value-prop,
  .code-preview-enhanced {
    animation: none;
    transition: opacity 0.3s ease;
  }
  
  .about-intro::after,
  .stat-icon-bg,
  .value-icon {
    animation: none;
  }
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .service-features ul {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .demo-features {
    gap: 1rem;
    justify-content: flex-start;
  }
  
  .about-intro h3 {
    font-size: 1.75rem;
  }
  
  .stat-content {
    gap: 1rem;
  }
  
  .stat-icon-bg {
    width: 60px;
    height: 60px;
  }
  
  .stat-number-large {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .expertise {
    padding: 4rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .service-card.featured {
    transform: none;
  }
  
  .service-card.featured:hover {
    transform: translateY(-4px);
  }
  
  .expertise-cta {
    margin-top: 3rem;
    padding: 2rem;
  }
  
  .expertise-cta h3 {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* About Section Mobile */
  .about {
    padding: 5rem 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-intro {
    padding: 2rem 1.5rem;
    margin: 0 auto 2.5rem;
    text-align: center;
  }

  .about-intro h3 {
    font-size: 1.875rem;
  }

  .about-intro p {
    font-size: 1.1rem;
  }

  .stats-grid-enhanced {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .stat-item-enhanced {
    padding: 2rem;
  }

  .stat-content {
    gap: 1.5rem;
  }

  .stat-icon-bg {
    width: 70px;
    height: 70px;
  }

  .stat-icon-bg i {
    font-size: 1.75rem;
  }

  .stat-number-large {
    font-size: 2.25rem;
  }

  .value-propositions {
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .value-prop {
    padding: 1.75rem;
    gap: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .value-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto;
  }

  .value-icon i {
    font-size: 1.4rem;
  }

  .about-cta-enhanced {
    flex-direction: column;
    margin-top: 2.5rem;
    padding: 2rem;
    gap: 1.5rem;
  }

  .btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    min-height: auto;
  }

  .btn-large i {
    margin-bottom: 0.25rem;
    margin-right: 0.5rem;
  }

  .about-demo-enhanced {
    padding: 1.5rem;
  }

  .demo-header h3 {
    font-size: 1.75rem;
  }

  .demo-header p {
    font-size: 1rem;
  }

  .code-preview-enhanced .code-content {
    padding: 1.5rem;
    font-size: 0.85rem;
  }

  .demo-features {
    gap: 1rem;
  }

  .feature-highlight {
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
  }
}

.about-content {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 4rem; 
  max-width: 1400px;
  margin: 0 auto; 
  align-items: start;
}

/* Enhanced About Section Styles */
.about-intro {
  margin: 0 auto 3rem;
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
  border-radius: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  max-width: 1200px;
  text-align: center;
}

.about-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.about-intro:hover::before {
  opacity: 1;
}

.about-intro > * {
  position: relative;
  z-index: 1;
}

.about-intro h3 {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-intro p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 400;
}

/* Enhanced Stats Grid */
.stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 3.5rem auto;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
}

.stat-item-enhanced {
  background: var(--bg-primary);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  background-clip: padding-box;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
}

.stat-item-enhanced {
  background: var(--bg-primary);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-400), var(--primary-600));
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: all 0.4s ease;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stat-item-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.03) 0%, 
    rgba(6, 182, 212, 0.03) 50%, 
    rgba(139, 92, 246, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1.5rem;
}

.stat-item-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.2);
}

.stat-item-enhanced:hover::before {
  transform: scaleX(1);
}

.stat-item-enhanced:hover::after {
  opacity: 1;
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100px;
}

.stat-icon-bg {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.stat-icon-bg i {
  font-size: 2rem;
  color: var(--primary-600);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.stat-icon-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15), 
    rgba(6, 182, 212, 0.15));
  border-radius: 50%;
  transition: all 0.4s ease;
  z-index: 0;
}

.stat-item-enhanced:hover .stat-icon-bg {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  transform: scale(1.1);
}

.stat-item-enhanced:hover .stat-icon-bg::before {
  transform: translate(-50%, -50%) scale(1.2);
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.25), 
    rgba(6, 182, 212, 0.25));
}

.stat-item-enhanced:hover .stat-icon-bg i {
  transform: scale(1.1);
  color: var(--primary-700);
}

.stat-details {
  flex: 1;
}

.stat-number-large {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label-main {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Value Propositions */
.value-propositions {
  display: grid;
  gap: 1.75rem;
  margin: 3.5rem 0;
}

.value-prop {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-prop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.05), 
    rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1.25rem;
}

.value-prop:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
  transform: translateY(-4px) scale(1.02);
}

.value-prop:hover::before {
  opacity: 1;
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.value-prop:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.value-icon i {
  font-size: 1.5rem;
  color: var(--primary-600);
  transition: all 0.3s ease;
}

.value-prop:hover .value-icon i {
  color: var(--primary-700);
  transform: scale(1.1);
}

.value-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.value-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.value-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Enhanced CTA Section */
.about-cta-enhanced {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08), 
    rgba(6, 182, 212, 0.08));
  border-radius: 2rem;
  border: 1px solid rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: stretch;
}

.about-cta-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(139, 92, 246, 0.1) 0%, 
    transparent 50%);
  animation: rotateGradient 15s linear infinite;
  pointer-events: none;
}

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

.about-cta-enhanced > * {
  position: relative;
  z-index: 1;
  flex: 1;
}

.btn-large {
  padding: 1.5rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}

.btn-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.6s ease;
}

.btn-large:hover::before {
  left: 100%;
}

.btn-large:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

.btn-large small {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

.btn-large i {
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

/* Enhanced Demo Section */
.about-demo-enhanced {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.03), 
    rgba(51, 65, 85, 0.03));
  border-radius: 1.5rem;
  border: 1px solid rgba(51, 65, 85, 0.1);
}

.demo-header {
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.demo-header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-400));
  border-radius: 2px;
}

.demo-header h3 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.demo-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

.code-preview-enhanced {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  border: 1px solid #475569;
  margin-bottom: 2.5rem;
  position: relative;
  transform: perspective(1000px) rotateX(2deg);
  transition: all 0.4s ease;
}

.code-preview-enhanced:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-4px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.3);
}

.code-preview-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1) 0%, 
    transparent 50%, 
    rgba(6, 182, 212, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.code-preview-enhanced:hover::before {
  opacity: 1;
}

.code-preview-enhanced .code-header {
  background: linear-gradient(135deg, #334155, #475569);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #475569;
  position: relative;
}

.code-header .code-title {
  color: #e2e8f0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.code-dots span:first-child {
  background: #ef4444;
}

.code-dots span:nth-child(2) {
  background: #f59e0b;
}

.code-dots span:last-child {
  background: #10b981;
}

.code-preview-enhanced:hover .code-dots span {
  transform: scale(1.1);
  box-shadow: 0 0 10px currentColor;
}

.code-actions {
  display: flex;
  gap: 0.75rem;
}

.code-action {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0.75rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.code-action:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #f8fafc;
  transform: scale(1.1);
}

.code-preview-enhanced .code-content {
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-items: center;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08), 
    rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-700);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-width: fit-content;
  white-space: nowrap;
}

.feature-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(139, 92, 246, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.feature-highlight:hover::before {
  left: 100%;
}

.feature-highlight:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
  border-color: var(--primary-400);
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15), 
    rgba(6, 182, 212, 0.15));
}

.feature-highlight i {
  font-size: 1.1rem;
  color: var(--primary-600);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.feature-highlight:hover i {
  color: var(--primary-700);
  transform: scale(1.2) rotate(5deg);
}

.feature-highlight span {
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

/* Responsive adjustments for demo features */
@media (max-width: 768px) {
  .demo-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .feature-highlight {
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    min-height: 80px;
    justify-content: center;
  }
  
  .feature-highlight i {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .demo-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .feature-highlight {
    flex-direction: row;
    gap: 0.75rem;
    min-height: auto;
    white-space: nowrap;
  }
  
  .feature-highlight i {
    font-size: 1rem;
  }
}
.about-header {margin-bottom: 1.5rem;}
.about-text h2 {font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: .75rem;}
.about-text p {font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; max-width: 600px;}

/* ===== COMPACT STATS GRID (ABOUT) ===== */
.stats-grid-compact {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0;
}
.stats-grid-compact .stat-item {
  border-radius: 12px; padding: 1.25rem; box-shadow: 0 6px 24px rgba(0,0,0,.08); gap: .5rem;
}

/* ==== CODE PREVIEW ==== */
.code-preview-compact {
  background: #1e293b; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,.15);
  max-width: 100%; max-height: 280px; transform: translateY(-20px);
}
.code-preview-compact .code-content {
  padding: 1.25rem; font-family: 'JetBrains Mono','Fira Code','Cascadia Code',Consolas,monospace;
  font-size: 0.8rem; line-height: 1.5; overflow-x: auto; max-width: 100%; white-space: nowrap;
}
.code-header {
  background: #334155; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #475569;
}
.code-dots {display: flex; gap: .5rem;}
.code-dots span {width: 12px; height: 12px; border-radius: 50%;}
.code-dots span:first-child {background: #ef4444;}
.code-dots span:nth-child(2) {background: #f59e0b;}
.code-dots span:last-child {background: #10b981;}
.code-title {color: #e2e8f0; font-size: .875rem; font-weight: 500; font-family: inherit;}
.code-keyword {color: #c084fc;}
.code-string {color: #34d399;}
.code-comment {color: #64748b;}
.code-function {color: #60a5fa;}

/* ==== PROJECT PHASES ==== */
.project-phases {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.project-phases h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

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

.phase-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  transition: var(--transition-smooth);
}

.phase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.phase-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 1rem;
}

.phase-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==== TESTIMONIALS ==== */
.testimonials {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.testimonial-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ==== CASE STUDY TEASER ==== */
.case-study-teaser {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.case-study-content {
  max-width: 1000px;
  margin: 0 auto;
}

.case-study-badge {
  display: inline-block;
  background: var(--primary-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.case-study-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.case-study-details {
  margin-bottom: 2rem;
}

.case-study-details p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.case-study-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.case-study-separator {
  height: 1px;
  background: var(--gray-300);
  margin: 2rem 0;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-study-stats .stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.case-study-stats .stat-icon {
  font-size: 2rem;
  color: var(--primary-600);
  margin-bottom: 1rem;
}

.case-study-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.case-study-stats .stat-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.case-study-stats .stat-detail {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==== CONTACT ==== */
.contact {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-form {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==== FOOTER ==== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  color: var(--gray-400);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
  color: var(--primary-400);
}

.footer-cta-btn {
  background: none;
  border: 2px solid var(--primary-500);
  color: var(--primary-400);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-cta-btn:hover {
  background: var(--primary-600);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-cta .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ==== MODAL ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close {
  color: var(--gray-500);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1;
}

.close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  .about-content {grid-template-columns: 1fr;}
}
@media (max-width: 768px) {
  .hero-stats {gap: 1rem; margin: 2rem 0;}
  .hero-stat, .stat-item, .stats-grid-compact .stat-item {min-width: 100px; padding: 1rem;}
  .hero-stat .stat-number, .stat-number, .stats-grid-compact .stat-number {font-size: 2rem;}
  .about {padding: 3rem 0;}
  .about-content {grid-template-columns: 1fr; gap: 2.5rem;}
  .stats-grid-compact {grid-template-columns: 1fr; gap: .75rem; max-width: 300px; margin: 1.5rem auto;}
  .about-cta-compact {flex-direction: column; align-items: stretch; max-width: 100%;}
  .code-preview-compact {margin-top: 1rem; transform: none; max-height: 400px; overflow-y: auto; border-radius: 8px;}
  .phases-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-study-title {
    font-size: 1.75rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero-stats {flex-direction: column; align-items: center; gap: 1rem;}
  .hero-stat {width: 100%; max-width: 200px;}
  .about {padding: 2rem 0;}
  .about-content {gap: 2rem;}
  .about-info {padding: 1rem;}
  .stats-grid-compact .stat-number {font-size: 1.75rem;}
  .stats-grid-compact .stat-icon {width: 32px; height: 32px;}
  .stats-grid-compact .stat-icon i {font-size: .9rem;}
  .case-study-stats {
    grid-template-columns: 1fr;
  }
  
  .case-study-title {
    font-size: 1.5rem;
  }
  
  .about-cta-enhanced {
    margin-top: 1.5rem !important;
    padding: 1.25rem !important;
    gap: 1rem !important;
  }
  
  .btn-large {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.95rem !important;
    min-height: auto !important;
  }
  
  .btn-large i {
    margin-right: 0.375rem !important;
    margin-bottom: 0 !important;
  }
  
  .btn-large small {
    font-size: 0.8rem !important;
    margin-top: 0.125rem !important;
  }
  
  .project-phases,
  .testimonials,
  .case-study-teaser,
  .contact {
    padding: 3rem 0;
  }

  /* Enhanced responsiveness for stats grid */
  .stats-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
  }

  .stat-item-enhanced {
    padding: 1.75rem;
  }

  .stat-content {
    gap: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .stat-icon-bg {
    width: 65px;
    height: 65px;
    margin: 0 auto 1rem;
  }

  .stat-icon-bg i {
    font-size: 1.5rem;
  }

  .stat-number-large {
    font-size: 2rem;
  }

  .stat-label-main {
    font-size: 1rem;
  }

  .stat-description {
    font-size: 0.85rem;
  }
}

/* Simplified responsive breakpoints for stats grid */
@media (max-width: 640px) {
  .stats-grid-enhanced {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  
  .about-cta-enhanced {
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-top: 2rem !important;
    padding: 1.5rem !important;
    align-items: stretch !important;
  }
  
  .btn-large {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .btn-large small {
    display: block !important;
    margin-top: 0.25rem !important;
    font-size: 0.85rem !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .stats-grid-enhanced {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 1.5rem;
  }
}

@media (min-width: 901px) {
  .stats-grid-enhanced {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
  }
  
  .stat-item-enhanced {
    min-height: 220px;
  }
}

/* Extra large screens */
@media (min-width: 1400px) {
  .stats-grid-enhanced {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem;
    max-width: 1400px;
  }
}


