@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=SF+Pro+Display:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
}

.dark {
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 0 0% 14.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 14.9%;
  --input: 0 0% 14.9%;
  --ring: 0 0% 83.1%;
  --chart-1: 220 70% 50%;
  --chart-2: 160 60% 45%;
  --chart-3: 30 80% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-display: swap;
}

/* Screen reader only class for accessibility */
.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;
}

/* Enhanced Liquid Glass Effects */
.liquid-glass-base {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass-base:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* SVG Filter Integration */
.liquid-glass-svg-filter {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

/* Chromatic Aberration Layers */
.liquid-glass-chromatic {
  position: relative;
}

.liquid-glass-chromatic::before,
.liquid-glass-chromatic::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.liquid-glass-chromatic::before {
  background: linear-gradient(45deg, 
    rgba(255, 0, 0, 0.1) 0%, 
    transparent 50%, 
    rgba(0, 255, 0, 0.1) 100%
  );
  transform: translateX(1px);
  mix-blend-mode: screen;
}

.liquid-glass-chromatic::after {
  background: linear-gradient(-45deg, 
    rgba(0, 0, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 0, 0.1) 100%
  );
  transform: translateX(-1px);
  mix-blend-mode: screen;
}

.liquid-glass-chromatic:hover::before,
.liquid-glass-chromatic:hover::after {
  opacity: 1;
}

/* Enhanced Liquid Glass Button */
.liquid-glass-button {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid-glass-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Displacement Effect Integration */
.liquid-glass-displacement {
  position: relative;
  filter: url(#liquid-glass-displacement-filter);
}

.liquid-glass-displacement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
      rgba(255, 0, 0, 0.05) 0%, 
      transparent 30%
    );
  transform: translateX(2px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.liquid-glass-displacement::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
      rgba(0, 0, 255, 0.05) 0%, 
      transparent 30%
    );
  transform: translateX(-2px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.liquid-glass-displacement:hover::before,
.liquid-glass-displacement:hover::after {
  opacity: 1;
}

/* Enhanced Primary Button with GlassSurface-like effects */
.liquid-glass-primary-button {
  background: rgba(235, 69, 69, 0.15);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(235, 69, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.liquid-glass-primary-button:hover {
  background: rgba(235, 69, 69, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 40px rgba(235, 69, 69, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Enhanced Secondary Button with GlassSurface-like effects */
.liquid-glass-secondary-button {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass-secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Enhanced Close Button */
.liquid-glass-close-button {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.liquid-glass-close-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Enhanced Modal */
.liquid-glass-modal {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px) saturate(120%);
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Enhanced Header with GlassSurface-like styling */
.liquid-glass-header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Enhanced Panel with displacement effects */
.liquid-glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.liquid-glass-panel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* Enhanced Tags with GlassSurface styling */
.liquid-glass-tag {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Enhanced Text with better contrast */
.liquid-glass-text {
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 1px 4px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Enhanced Icon Container */
.liquid-glass-icon-container {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Result Card with displacement */
.liquid-glass-result-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-result-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Enhanced Tooltip */
.liquid-glass-tooltip {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Element with filter effects */
.liquid-glass-element {
  filter: 
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4)) 
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Enhanced Navigation Active */
.liquid-glass-nav-active {
  background: rgba(235, 69, 69, 0.1);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 24px rgba(235, 69, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* SVG Filters for Displacement and Chromatic Aberration */
.liquid-glass-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

/* Advanced Liquid Effects with SVG Integration */
.liquid-glass-advanced {
  position: relative;
  overflow: hidden;
  filter: url(#liquid-glass-advanced-filter);
}

.liquid-glass-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
      rgba(255, 255, 255, 0.4) 0%, 
      rgba(255, 255, 255, 0.2) 30%, 
      transparent 70%
    );
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.liquid-glass-advanced:hover::before {
  opacity: 1;
}

/* Liquid Distortion Animation with displacement */
@keyframes liquidDistortionAdvanced {
  0%, 100% { 
    filter: blur(0px) hue-rotate(0deg) url(#liquid-glass-filter);
    transform: scale(1) rotate(0deg) translateZ(0);
  }
  25% { 
    filter: blur(0.5px) hue-rotate(1deg) url(#liquid-glass-filter);
    transform: scale(1.005) rotate(0.2deg) translateZ(1px);
  }
  50% { 
    filter: blur(1px) hue-rotate(-1deg) url(#liquid-glass-filter);
    transform: scale(0.995) rotate(-0.2deg) translateZ(-1px);
  }
  75% { 
    filter: blur(0.5px) hue-rotate(0.5deg) url(#liquid-glass-filter);
    transform: scale(1.002) rotate(0.1deg) translateZ(0.5px);
  }
}

/* Enhanced Light Refraction Effect */
@keyframes lightRefractionAdvanced {
  0%, 100% { 
    background-position: -200% 0;
    opacity: 0;
    filter: hue-rotate(0deg);
  }
  25% {
    filter: hue-rotate(2deg);
  }
  50% { 
    background-position: 200% 0;
    opacity: 0.8;
    filter: hue-rotate(-2deg);
  }
  75% {
    filter: hue-rotate(1deg);
  }
}

.liquid-glass-refraction-advanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    var(--refraction-angle, 45deg),
    transparent 30%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: lightRefractionAdvanced 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  filter: blur(0.5px);
}

/* macOS Navigation Styles */
.macos-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.macos-nav-item:hover {
  transform: translateY(-4px) scale(1.05);
}

.macos-nav-active {
  transform: translateY(-6px) scale(1.1);
}

.macos-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1000;
}

.macos-nav-item:hover .macos-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.macos-mobile-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.macos-mobile-nav-item:hover {
  transform: scale(1.05);
}

.macos-mobile-nav-active {
  transform: scale(1.1);
}

.macos-contact-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.macos-contact-button:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Fixed Navigation Positioning */
.fixed-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}

.fixed-navigation-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Glass Container for Central Action Bar */
.glass-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-button {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Advanced Liquid Effects */
.liquid-glass-advanced {
  position: relative;
  overflow: hidden;
}

.liquid-glass-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
      rgba(255, 255, 255, 0.4) 0%, 
      rgba(255, 255, 255, 0.2) 30%, 
      transparent 70%
    );
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.liquid-glass-advanced:hover::before {
  opacity: 1;
}

/* Chromatic Aberration Layers */
.liquid-glass-chromatic {
  position: relative;
}

.liquid-glass-chromatic::before,
.liquid-glass-chromatic::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.liquid-glass-chromatic::before {
  background: linear-gradient(45deg, 
    rgba(255, 0, 0, 0.1) 0%, 
    transparent 50%, 
    rgba(0, 255, 0, 0.1) 100%
  );
  transform: translateX(1px);
  mix-blend-mode: screen;
}

.liquid-glass-chromatic::after {
  background: linear-gradient(-45deg, 
    rgba(0, 0, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 0, 0.1) 100%
  );
  transform: translateX(-1px);
  mix-blend-mode: screen;
}

.liquid-glass-chromatic:hover::before,
.liquid-glass-chromatic:hover::after {
  opacity: 1;
}

/* Slider Styles */
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .liquid-glass-base {
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
  }
  
  .liquid-glass-modal {
    backdrop-filter: blur(35px) saturate(190%);
    -webkit-backdrop-filter: blur(35px) saturate(190%);
  }
  
  /* Disable complex animations on mobile for performance */
  .liquid-glass-base:hover::before,
  .liquid-glass-chromatic:hover::before,
  .liquid-glass-chromatic:hover::after {
    animation: none;
    opacity: 0.5;
  }
}

/* Enhanced Shine Animation with chromatic effects */
@keyframes liquidGlassShineAdvanced {
  0% {
    transform: translateX(-100%) skewX(-12deg);
    filter: hue-rotate(0deg) saturate(1);
  }
  25% {
    filter: hue-rotate(2deg) saturate(1.2);
  }
  50% {
    filter: hue-rotate(-2deg) saturate(1.5);
  }
  75% {
    filter: hue-rotate(1deg) saturate(1.3);
  }
  100% {
    transform: translateX(200%) skewX(-12deg);
    filter: hue-rotate(0deg) saturate(1);
  }
}

.liquid-glass-shine-advanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.7) 35%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(255, 255, 255, 0.7) 65%, 
    transparent
  );
  animation: liquidGlassShineAdvanced 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
  filter: blur(1px);
}

/* Enhanced Liquid Ripple Effect */
@keyframes liquidRippleAdvanced {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
  }
  50% {
    filter: blur(2px);
  }
  100% {
    transform: scale(5) rotate(270deg);
    opacity: 0;
    filter: blur(4px);
  }
}

.liquid-glass-ripple-advanced {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.4) 40%,
    transparent 80%
  );
  animation: liquidRippleAdvanced 0.8s ease-out;
  pointer-events: none;
  z-index: 3;
  filter: url(#liquid-glass-ripple-filter);
}

/* Mouse tracking for displacement effects */
.liquid-glass-mouse-tracker {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Enhanced Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  .liquid-glass-shine-advanced,
  .liquid-glass-refraction-advanced {
    animation: none;
  }
  
  .liquid-glass-chromatic:hover::before,
  .liquid-glass-chromatic:hover::after {
    animation: none;
    opacity: 0.3;
  }
  
  .macos-nav-item,
  .macos-mobile-nav-item,
  .liquid-glass-button {
    transition: none;
  }
  
  .liquid-glass-advanced {
    filter: none;
  }
}

/* Print Styles */
@media print {
  .liquid-glass-base,
  .liquid-glass-modal,
  .liquid-glass-panel,
  .liquid-glass-advanced {
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

/* Simple Navigation Widget Styles - Clean and Stable */
.simple-navigation-widget {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 35px;
  padding: 20px 25px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.simple-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.simple-nav-item:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.simple-nav-item-active {
  background: rgba(235, 69, 69, 0.15);
  border-color: rgba(235, 69, 69, 0.30);
  color: #eb4545;
  box-shadow: 
    0 6px 24px rgba(235, 69, 69, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.simple-nav-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 15px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  border-radius: 15px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.simple-nav-item:hover .simple-nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Mobile Navigation Styles */
.simple-navigation-widget-mobile {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  margin: 0 16px 16px 16px;
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.simple-nav-item-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  gap: 4px;
}

.simple-nav-item-mobile:hover,
.simple-nav-item-mobile:active {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

.simple-nav-item-mobile-active {
  background: rgba(235, 69, 69, 0.15);
  border-color: rgba(235, 69, 69, 0.3);
  color: #eb4545;
}

.simple-nav-more-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 4px;
  margin-top: 8px;
}

.simple-nav-more-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.simple-navigation-widget-mobile-menu {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  box-shadow: 
    0 -8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.simple-nav-item-mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.simple-nav-item-mobile-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  .liquid-glass-base,
  .liquid-glass-button,
  .liquid-glass-modal,
  .liquid-glass-panel {
    backdrop-filter: blur(15px) saturate(110%);
    -webkit-backdrop-filter: blur(15px) saturate(110%);
  }
  
  .liquid-glass-base {
    background: rgba(255, 255, 255, 0.03);
  }
  
  .liquid-glass-chromatic:hover::before,
  .liquid-glass-chromatic:hover::after {
    opacity: 0.1;
  }
}