/* ===============================================
   Service Navigator - Creative Mobile-First Navigation
   Modern UX for Easy Service-to-Service Navigation
   =============================================== */

/* ========== Floating Service Navigator ========== */

.service-navigator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.service-nav-trigger {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1B3A6F 0%, #1F9D6A 100%) !important;
  color: white;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(27, 58, 111, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  flex-shrink: 0;
  z-index: 10000;
  isolation: isolate;
  visibility: visible !important;
  opacity: 1 !important;
  /* Prevent any background artifacts */
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}

.service-nav-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(27, 58, 111, 0.4);
}

.service-nav-trigger:active {
  transform: scale(0.95);
}

/* Touch-specific optimizations */
.service-nav-trigger {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Force perfect circle on main button only */
.service-nav-trigger {
  border-radius: 50% !important;
}

/* Prevent any pseudo-elements from showing */
.service-nav-trigger::before,
.service-nav-trigger::after {
  display: none !important;
  content: none !important;
}

/* Ensure button maintains perfect circle even with browser scaling */
@supports (aspect-ratio: 1) {
  .service-nav-trigger {
    aspect-ratio: 1;
    border-radius: 50% !important;
  }
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 1) {
  .service-nav-trigger {
    border-radius: 50% !important;
    width: 60px;
    height: 60px;
  }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .service-nav-item {
    min-height: 52px;
    padding: 16px 10px;
  }
  
  .service-nav-trigger {
    min-width: 56px;
    min-height: 56px;
    width: 56px;
    height: 56px;
  }
  
  .service-nav-icon {
    width: 32px;
    height: 32px;
  }
  
  .service-nav-menu {
    min-width: 320px;
    max-width: calc(100vw - 40px);
    right: -10px;
  }
  
  .service-nav-item:hover {
    transform: none;
    background: linear-gradient(145deg, rgba(27, 58, 111, 0.08), rgba(31, 157, 106, 0.08));
  }
  
  .service-nav-item:active {
    transform: scale(0.95);
  }
  
  .service-nav-trigger:hover {
    transform: none;
  }
  
  .service-nav-trigger:active {
    transform: scale(0.9);
  }
  
  .related-service-card:hover {
    transform: none;
  }
  
  .related-service-card:active {
    transform: scale(0.98);
  }
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
  .service-nav-menu {
    min-width: 300px;
    max-width: calc(100vw - 32px);
    padding: 24px 20px;
    border-radius: 20px;
    right: -5px;
    bottom: 70px;
  }
  
  .service-nav-grid {
    gap: 12px;
  }
  
  .service-nav-title {
    font-size: 16px;
  }
  
  .service-nav-subtitle {
    font-size: 12px;
  }
  
  .service-navigator {
    bottom: 16px;
    right: 16px;
  }
}

/* Ripple effect disabled to prevent visual artifacts */
.service-nav-trigger::before {
  display: none !important;
}

.service-nav-trigger.ripple::before {
  display: none !important;
}

.service-nav-trigger svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.service-navigator.expanded .service-nav-trigger svg {
  transform: rotate(45deg);
}

/* Service Navigator Menu */
.service-nav-menu {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px;
  padding: 28px;
  min-width: 340px;
  max-width: 420px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(27, 58, 111, 0.25), 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.dark .service-nav-menu {
  background: rgba(17, 24, 39, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-navigator.expanded .service-nav-menu {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Decorative background pattern for menu */
.service-nav-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(27, 58, 111, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(31, 157, 106, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(27, 58, 111, 0.02) 0%, transparent 40%);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}

.dark .service-nav-menu::before {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(126, 166, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 224, 175, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(126, 166, 255, 0.03) 0%, transparent 40%);
}

.service-nav-header,
.service-nav-grid {
  position: relative;
  z-index: 1;
}

.service-nav-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, transparent, rgba(27, 58, 111, 0.3), transparent) 1;
  position: relative;
}

.dark .service-nav-header {
  border-image: linear-gradient(90deg, transparent, rgba(126, 166, 255, 0.3), transparent) 1;
}

.service-nav-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #1B3A6F 0%, #1F9D6A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.dark .service-nav-title {
  background: linear-gradient(135deg, #7EA6FF 0%, #63E0AF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-nav-title::before {
  content: '';
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #1B3A6F 0%, #1F9D6A 100%);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"/></svg>');
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"/></svg>');
  mask-size: contain;
  -webkit-mask-size: contain;
}

.dark .service-nav-title::before {
  background: linear-gradient(135deg, #7EA6FF 0%, #63E0AF 100%);
}

.service-nav-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dark .service-nav-subtitle {
  color: #9ca3af;
}

.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-height: 370px;
  overflow-y: auto;
  padding: 4px;
  position: relative;
}

/* Custom scrollbar for the grid */
.service-nav-grid::-webkit-scrollbar {
  width: 6px;
}

.service-nav-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.service-nav-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1B3A6F, #1F9D6A);
  border-radius: 10px;
}

.dark .service-nav-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.dark .service-nav-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7EA6FF, #63E0AF);
}

.service-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(249, 250, 251, 0.8));
  border: 2px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .service-nav-item {
  background: linear-gradient(145deg, rgba(55, 65, 81, 0.6), rgba(31, 41, 55, 0.6));
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hover glow effect */
.service-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #1B3A6F, #1F9D6A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dark .service-nav-item::before {
  background: linear-gradient(135deg, #7EA6FF, #63E0AF);
}

.service-nav-item:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(145deg, rgba(27, 58, 111, 0.08), rgba(31, 157, 106, 0.08));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(27, 58, 111, 0.15), 0 0 20px rgba(27, 58, 111, 0.1);
}

.service-nav-item:hover::before {
  opacity: 1;
}

.dark .service-nav-item:hover {
  background: linear-gradient(145deg, rgba(126, 166, 255, 0.12), rgba(99, 224, 175, 0.12));
  box-shadow: 0 8px 24px rgba(126, 166, 255, 0.2), 0 0 20px rgba(126, 166, 255, 0.15);
}

.service-nav-item.current {
  background: linear-gradient(135deg, #1B3A6F 0%, #1F9D6A 100%);
  color: white;
  border-color: transparent;
  position: relative;
  cursor: default;
  box-shadow: 0 8px 32px rgba(27, 58, 111, 0.4), 0 0 20px rgba(31, 157, 106, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: currentGlow 3s ease-in-out infinite;
}

.service-nav-item.current::before {
  opacity: 0;
}

.service-nav-item.current:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, #1B3A6F 0%, #1F9D6A 100%);
}

@keyframes currentGlow {
  0%, 100% { 
    box-shadow: 0 8px 32px rgba(27, 58, 111, 0.4), 0 0 20px rgba(31, 157, 106, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% { 
    box-shadow: 0 8px 40px rgba(27, 58, 111, 0.5), 0 0 30px rgba(31, 157, 106, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.current-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  animation: pulseGlow 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.current-indicator::before {
  content: '✓';
  font-size: 14px;
}

@keyframes pulseGlow {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.9;
  }
  50% { 
    transform: scale(1.1);
    opacity: 1;
  }
}

.service-nav-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  position: relative;
}

.service-nav-item:hover .service-nav-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(27, 58, 111, 0.3));
}

.service-nav-item.current .service-nav-icon {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.service-nav-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
}

.dark .service-nav-name {
  color: #E5E7EB;
}

.service-nav-item:hover .service-nav-name {
  color: #1B3A6F;
}

.dark .service-nav-item:hover .service-nav-name {
  color: #7EA6FF;
}

.service-nav-item.current .service-nav-name {
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========== Related Services Section ========== */

.related-services {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 60px 0;
  margin-top: 60px;
}

.dark .related-services {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.related-services-header {
  text-align: center;
  margin-bottom: 40px;
}

.related-services-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.dark .related-services-title {
  color: #f9fafb;
}

.related-services-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.dark .related-services-subtitle {
  color: #9ca3af;
}

.related-services-container {
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
}

.related-services-scroll {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.related-services-scroll::-webkit-scrollbar {
  display: none;
}

.related-service-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.dark .related-service-card {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.related-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1B3A6F 0%, #1F9D6A 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.related-service-card:hover::before {
  transform: scaleX(1);
}

.related-service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark .related-service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.related-service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1B3A6F 0%, #1F9D6A 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.related-service-card:hover .related-service-icon {
  transform: rotate(5deg) scale(1.05);
}

.related-service-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.related-service-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.dark .related-service-name {
  color: #f9fafb;
}

.related-service-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 20px;
}

.dark .related-service-description {
  color: #9ca3af;
}

.related-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1B3A6F;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark .related-service-cta {
  color: #7EA6FF;
}

.related-service-card:hover .related-service-cta {
  color: #1F9D6A;
}

.dark .related-service-card:hover .related-service-cta {
  color: #63E0AF;
}

.related-service-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.related-service-card:hover .related-service-cta svg {
  transform: translateX(4px);
}

/* Scroll Indicators */
.related-services-scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.dark .related-services-scroll-indicator {
  background: rgba(31, 41, 55, 0.9);
}

.related-services-scroll-indicator:hover {
  transform: translateY(-50%) scale(1.1);
  background: white;
}

.dark .related-services-scroll-indicator:hover {
  background: #374151;
}

.related-services-scroll-indicator.left {
  left: 10px;
}

.related-services-scroll-indicator.right {
  right: 10px;
}

.related-services-scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: #374151;
}

.dark .related-services-scroll-indicator svg {
  color: #e5e7eb;
}

/* ========== Desktop & Larger Screens ========== */

/* Desktop and Large Screens - Ensure visibility */
@media (min-width: 769px) {
  .service-navigator {
    display: block;
    visibility: visible;
    opacity: 1;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
  }
  
  .service-nav-trigger {
    display: flex;
    visibility: visible;
    opacity: 1;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    box-shadow: 0 10px 40px rgba(27, 58, 111, 0.25);
  }
  
  .service-nav-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px rgba(27, 58, 111, 0.35);
  }
  
  .service-nav-menu {
    min-width: 360px;
    max-width: 420px;
    max-height: 500px;
    bottom: 74px;
    right: 0;
    padding: 28px;
  }
  
  .service-nav-grid {
    gap: 14px;
  }
  
  .service-nav-item {
    padding: 18px 14px;
    border-radius: 14px;
  }
  
  .service-nav-icon {
    width: 36px;
    height: 36px;
  }
  
  .service-nav-name {
    font-size: 13px;
    line-height: 1.2;
  }
}

/* ========== Mobile Optimizations ========== */

/* Tablet and Small Desktop */
@media (max-width: 768px) {
  .service-navigator {
    bottom: 20px;
    right: 20px;
  }
  
  .service-nav-trigger {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    max-width: 58px;
    max-height: 58px;
    box-shadow: 0 6px 24px rgba(27, 58, 111, 0.4);
    aspect-ratio: 1;
  }
  
  .service-nav-trigger:hover {
    transform: scale(1.03);
  }
  
  .service-nav-menu {
    min-width: 300px;
    max-width: 320px;
    max-height: 380px;
    bottom: 68px;
    right: -10px;
    padding: 20px;
  }
  
  .service-nav-grid {
    gap: 10px;
  }
  
  .service-nav-item {
    padding: 14px 10px;
    border-radius: 10px;
  }
  
  .service-nav-icon {
    width: 30px;
    height: 30px;
  }
  
  .service-nav-name {
    font-size: 11px;
    line-height: 1.1;
  }
  
  .related-service-card {
    flex: 0 0 240px;
    padding: 22px;
  }
  
  .related-services-title {
    font-size: 1.875rem;
  }
  
  .related-services-subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }
}

/* Large Phone (iPhone Pro Max, etc.) */
@media (max-width: 480px) {
  .service-navigator {
    bottom: 16px;
    right: 16px;
  }
  
  .service-nav-trigger {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    box-shadow: 0 4px 20px rgba(27, 58, 111, 0.5);
    aspect-ratio: 1;
    border-radius: 50% !important;
  }
  
  .service-nav-trigger svg {
    width: 22px;
    height: 22px;
  }
  
  .service-nav-menu {
    min-width: 280px;
    max-width: 300px;
    max-height: 420px;
    bottom: 66px;
    right: -20px;
    padding: 18px;
    border-radius: 16px;
  }
  
  .service-nav-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  
  .service-nav-title {
    font-size: 15px;
  }
  
  .service-nav-subtitle {
    font-size: 11px;
    margin-top: 2px;
  }
  
  .service-nav-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 350px;
  }
  
  .service-nav-item {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    min-height: 50px;
  }
  
  .service-nav-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .service-nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .service-nav-name {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  .current-indicator {
    top: 6px;
    right: 6px;
    font-size: 14px;
  }
  
  .related-service-card {
    flex: 0 0 200px;
    padding: 18px;
    border-radius: 16px;
  }
  
  .related-services-container {
    margin: 0 -16px;
  }
  
  .related-services-scroll {
    padding: 0 16px;
    gap: 16px;
  }
  
  .related-services-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .related-services-subtitle {
    font-size: 0.9rem;
    padding: 0 16px;
  }
  
  .related-service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
  
  .related-service-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .related-service-description {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }
}

/* Small Phone (iPhone SE, older Android) */
@media (max-width: 375px) {
  .service-navigator {
    bottom: 12px;
    right: 12px;
  }
  
  .service-nav-trigger {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    aspect-ratio: 1;
    border-radius: 50% !important;
  }
  
  .service-nav-trigger svg {
    width: 20px;
    height: 20px;
  }
  
  .service-nav-menu {
    min-width: 260px;
    max-width: 280px;
    max-height: 400px;
    bottom: 62px;
    right: -25px;
    padding: 16px;
  }
  
  .service-nav-item {
    padding: 10px 12px;
    gap: 10px;
    min-height: 46px;
  }
  
  .service-nav-icon {
    width: 26px;
    height: 26px;
  }
  
  .service-nav-name {
    font-size: 12px;
  }
  
  .related-service-card {
    flex: 0 0 180px;
    padding: 16px;
  }
  
  .related-services-scroll {
    gap: 12px;
  }
  
  .related-services-title {
    font-size: 1.3rem;
  }
  
  .related-services-subtitle {
    font-size: 0.85rem;
  }
}

/* Extra Small Phone (very small screens) */
@media (max-width: 320px) {
  .service-navigator {
    bottom: 10px;
    right: 10px;
  }
  
  .service-nav-trigger {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    aspect-ratio: 1;
    border-radius: 50% !important;
  }
  
  .service-nav-menu {
    min-width: 240px;
    max-width: 260px;
    bottom: 58px;
    right: -30px;
    padding: 14px;
  }
  
  .service-nav-grid {
    max-height: 320px;
  }
  
  .service-nav-item {
    padding: 8px 10px;
    min-height: 42px;
  }
  
  .service-nav-icon {
    width: 24px;
    height: 24px;
  }
  
  .service-nav-name {
    font-size: 11px;
  }
  
  .related-service-card {
    flex: 0 0 160px;
    padding: 14px;
  }
}

/* Phone Landscape Orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .service-navigator {
    bottom: 10px;
    right: 10px;
  }
  
  .service-nav-trigger {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    max-width: 46px;
    max-height: 46px;
    aspect-ratio: 1;
    border-radius: 50% !important;
  }
  
  .service-nav-trigger svg {
    width: 18px;
    height: 18px;
  }
  
  .service-nav-menu {
    bottom: 56px;
    max-height: 280px;
    min-width: 320px;
    max-width: 400px;
    right: -50px;
  }
  
  .service-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 200px;
  }
  
  .service-nav-item {
    flex-direction: column;
    text-align: center;
    padding: 8px 6px;
    min-height: auto;
  }
  
  .service-nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
  }
  
  .service-nav-name {
    font-size: 10px;
    line-height: 1;
  }
  
  .current-indicator {
    top: 4px;
    right: 4px;
    font-size: 12px;
  }
}

/* Safe area for phones with notches */
@media screen and (max-width: 480px) {
  .service-navigator {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-nav-trigger {
    box-shadow: 0 4px 16px rgba(27, 58, 111, 0.4);
  }
  
  .service-nav-menu {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
}

/* ========== Accessibility & Reduced Motion ========== */

@media (prefers-reduced-motion: reduce) {
  .service-navigator,
  .service-nav-trigger,
  .service-nav-menu,
  .service-nav-item,
  .related-service-card {
    transition: none;
  }
  
  .service-nav-trigger:hover,
  .service-nav-item:hover,
  .related-service-card:hover {
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
.service-nav-trigger:focus,
.service-nav-item:focus,
.related-service-card:focus {
  outline: 2px solid #1B3A6F;
  outline-offset: 2px;
}

.dark .service-nav-trigger:focus,
.dark .service-nav-item:focus,
.dark .related-service-card:focus {
  outline-color: #7EA6FF;
}
