/* OrilCElites Custom Styles */

:root {
  /* Enhanced Light mode colors */
  --background: 210 25% 98%;
  --foreground: 220 20% 15%;
  --muted: 210 25% 96%;
  --muted-foreground: 220 12% 46%;
  --border: 214 25% 88%;
  --primary: 200 100% 45%;
  --primary-foreground: 210 25% 98%;
  --accent: 210 25% 94%;
  --accent-foreground: 220 20% 15%;
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
  --danger: 0 84% 60%;
  --info: 200 100% 45%;
  --card-bg: 0 0% 100%;
  --hero-gradient-start: 200 100% 45%;
  --hero-gradient-end: 220 100% 55%;
  
  /* Enhanced light theme specific colors */
  --light-surface-1: 210 30% 97%;  /* Reduced from 99% to prevent clipping */
  --light-surface-2: 210 25% 96%;
  --light-surface-3: 210 20% 92%;
  --light-surface-hover: 210 15% 88%;
  --light-shadow: 220 20% 50%;
  --light-border: 214 25% 85%;
  --light-text-high: 220 20% 15%;
  --light-text-medium: 220 12% 35%;
  --light-text-low: 220 10% 55%;
  
  /* Light theme accent colors */
  --light-accent-blue: 200 100% 45%;
  --light-accent-purple: 270 80% 55%;
  --light-accent-green: 142 76% 36%;
  --light-accent-orange: 25 95% 53%;
  
  /* Enhanced gradients for light theme */
  --gradient-light-primary: linear-gradient(135deg, hsl(200 100% 45% / 0.1) 0%, hsl(220 100% 55% / 0.05) 100%);
  --gradient-light-secondary: linear-gradient(135deg, hsl(210 25% 96%) 0%, hsl(210 20% 92%) 100%);
  --gradient-light-subtle: linear-gradient(135deg, hsl(0 0% 100%) 0%, hsl(210 25% 98%) 100%);
}

.dark {
  /* Enhanced dark mode colors with improved contrast and modern palette */
  --background: 224 71% 6%;        /* Lifted from 4% to prevent crushing */
  --foreground: 213 31% 91%;
  --muted: 223 47% 11%;
  --muted-foreground: 215.4 16.3% 56.9%;
  --border: 216 34% 17%;
  --primary: 210 100% 66%;
  --primary-foreground: 222.2 84% 4.9%;
  --accent: 216 34% 17%;
  --accent-foreground: 210 40% 98%;
  --success: 142 76% 56%;
  --warning: 38 92% 65%;
  --danger: 0 84% 72%;
  --info: 199 89% 68%;
  --card-bg: 224 71% 7%;           /* Lifted from 5% */
  --hero-gradient-start: 210 100% 66%;
  --hero-gradient-end: 217 100% 74%;
  
  /* Enhanced dark theme specific colors */
  --dark-surface-1: 224 71% 8%;    /* Lifted from 5% for better separation */
  --dark-surface-2: 215 28% 18%;   /* Lifted from 17% */
  --dark-surface-3: 215 20% 28%;   /* Lifted from 27% */
  --dark-surface-hover: 215 25% 35%;
  --dark-glow: 210 100% 66%;
  --dark-shadow: 224 71% 8%;       /* Lifted from 3% - Critical fix! */
  --dark-border: 215 30% 18%;
  --dark-text-high: 210 40% 98%;
  --dark-text-medium: 215 16% 65%;
  --dark-text-low: 215 14% 45%;
  
  /* Glassmorphism effects */
  --glass-bg: 224 71% 4% / 0.7;
  --glass-border: 215 30% 50% / 0.1;
  
  /* Neon accent colors for dark theme */
  --neon-blue: 210 100% 66%;
  --neon-purple: 270 100% 75%;
  --neon-green: 142 76% 56%;
  --neon-pink: 330 100% 75%;
  
  /* Enhanced gradients */
  --gradient-dark-primary: linear-gradient(135deg, hsl(210 100% 66% / 0.2) 0%, hsl(217 100% 74% / 0.1) 100%);
  --gradient-dark-secondary: linear-gradient(135deg, hsl(215 28% 17%) 0%, hsl(215 20% 27%) 100%);
  --gradient-dark-glow: radial-gradient(ellipse at top, hsl(210 100% 66% / 0.15) 0%, transparent 70%);
}

/* Base styles */
body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom utility classes */
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.bg-muted { background-color: hsl(var(--muted)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.border-border { border-color: hsl(var(--border)); }
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.bg-accent { background-color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.bg-card { background-color: hsl(var(--card-bg)); }
.text-success { color: hsl(var(--success)); }
.text-warning { color: hsl(var(--warning)); }
.text-danger { color: hsl(var(--danger)); }
.text-info { color: hsl(var(--info)); }

/* Dark mode specific utilities */
.dark .bg-dark-surface-1 { background-color: hsl(var(--dark-surface-1)); }
.dark .bg-dark-surface-2 { background-color: hsl(var(--dark-surface-2)); }
.dark .bg-dark-surface-3 { background-color: hsl(var(--dark-surface-3)); }

/* Component styles */
.btn {
  @apply px-4 py-2 rounded-xl font-medium transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.btn-primary {
  @apply bg-primary text-primary-foreground hover:bg-primary/90 focus:ring-primary/50;
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.12), 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 12px rgba(0, 123, 255, 0.15);
}

.dark .btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 2px solid hsl(var(--primary) / 0.8);
  box-shadow: 
    0 2px 4px hsl(var(--dark-shadow) / 0.3),
    0 0 0 1px hsl(var(--primary) / 0.3);
}

.dark .btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  border-color: hsl(var(--primary));
  box-shadow: 
    0 4px 8px hsl(var(--dark-shadow) / 0.4),
    0 0 20px hsl(var(--primary) / 0.4),
    0 0 0 2px hsl(var(--primary) / 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  @apply bg-muted text-foreground hover:bg-muted/80 focus:ring-primary/50;
  border-radius: 12px;
  box-shadow: 
    0 3px 5px rgba(0, 0, 0, 0.1), 
    0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.dark .btn-secondary {
  background-color: hsl(var(--dark-surface-2));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--dark-surface-3));
}

.dark .btn-secondary:hover {
  background-color: hsl(var(--dark-surface-3));
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 4px 8px hsl(var(--dark-shadow) / 0.3);
}

.btn-outline {
  @apply border-2 border-border bg-transparent hover:bg-accent focus:ring-primary/50;
  border-radius: 12px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.dark .btn-outline {
  border: 2px solid hsl(var(--dark-surface-3));
  color: hsl(var(--foreground));
  background-color: hsl(var(--dark-surface-1) / 0.3);
  box-shadow: 
    0 1px 3px hsl(var(--dark-shadow) / 0.2),
    inset 0 0 0 1px hsl(var(--dark-surface-3) / 0.5);
}

.dark .btn-outline:hover {
  background-color: hsl(var(--dark-surface-2));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  box-shadow: 
    0 0 15px hsl(var(--primary) / 0.3),
    0 2px 4px hsl(var(--dark-shadow) / 0.3),
    inset 0 0 0 1px hsl(var(--primary) / 0.2);
}

.btn-ghost {
  @apply bg-transparent hover:bg-accent focus:ring-primary/50;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dark .btn-ghost:hover {
  background-color: hsl(var(--dark-surface-2));
  color: hsl(var(--foreground));
}

.btn-lg {
  @apply px-8 py-4 text-lg;
}

.btn-sm {
  @apply px-3 py-1.5 text-sm;
}

.card {
  @apply bg-card border border-border rounded-2xl shadow-sm transition-all duration-300;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
}

.dark .card {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
  box-shadow: 
    0 2px 4px hsl(var(--dark-shadow) / 0.3), 
    0 1px 2px hsl(var(--dark-shadow) / 0.2);
}

.dark .card:hover {
  background-color: hsl(var(--dark-surface-2));
  box-shadow: 
    0 8px 16px hsl(var(--dark-shadow) / 0.4), 
    0 4px 8px hsl(var(--dark-shadow) / 0.3),
    0 0 0 1px hsl(var(--primary) / 0.1);
  transform: translateY(-2px);
}

.input {
  @apply w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all duration-200;
}

/* Enhanced input styling with micro-interactions */
.input-enhanced {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-enhanced:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.input-enhanced:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15), 0 0 0 3px hsl(var(--primary) / 0.1);
}

.input-wrapper {
  position: relative;
}

/* Success and error states */
.border-success {
  border-color: hsl(var(--success)) !important;
}

.border-danger {
  border-color: hsl(var(--danger)) !important;
}

.input-enhanced.border-success:focus {
  box-shadow: 0 4px 12px hsl(var(--success) / 0.15), 0 0 0 3px hsl(var(--success) / 0.1);
}

.input-enhanced.border-danger:focus {
  box-shadow: 0 4px 12px hsl(var(--danger) / 0.15), 0 0 0 3px hsl(var(--danger) / 0.1);
}

/* Field hints and messages */
.field-hint {
  display: block;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.input-wrapper:focus-within .field-hint {
  opacity: 1;
  transform: translateY(0);
}

.field-error, .field-success {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dark .input {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
  color: hsl(var(--foreground));
}

.dark .input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.dark .input-enhanced:hover {
  border-color: hsl(var(--primary) / 0.4);
  background-color: hsl(var(--dark-surface-2) / 0.5);
}

.dark .input-enhanced:focus {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--primary));
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.2), 0 0 0 3px hsl(var(--primary) / 0.15);
}

.textarea {
  @apply w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary resize-y transition-all duration-200;
}

/* Enhanced textarea for contact forms and detailed inputs */
.textarea-enhanced {
  @apply textarea min-h-[200px] px-4 py-3 text-base leading-relaxed;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.textarea-enhanced:focus {
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Responsive adjustments for enhanced textarea */
@media (min-width: 768px) {
  .textarea-enhanced {
    min-height: 240px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .textarea-enhanced {
    min-height: 280px;
    padding: 1.25rem 1.5rem;
  }
}

.dark .textarea {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
  color: hsl(var(--foreground));
}

.dark .textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.dark .textarea-enhanced {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
  color: hsl(var(--foreground));
}

.dark .textarea-enhanced {
  box-shadow: 0 1px 3px 0 hsl(var(--dark-shadow) / 0.3), 0 1px 2px 0 hsl(var(--dark-shadow) / 0.2);
}

.dark .textarea-enhanced:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2), 0 1px 3px 0 hsl(var(--dark-shadow) / 0.4);
  transform: translateY(-1px);
}

.select {
  @apply w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all duration-200;
}

.dark .select {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
  color: hsl(var(--foreground));
}

.dark .select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.label {
  @apply text-sm font-medium text-foreground;
}

.form-error {
  @apply text-sm text-red-500 mt-1;
}

/* Hover effects */
.hover-elevate {
  @apply transition-all duration-200 hover:shadow-lg hover:-translate-y-1;
}

.hover-scale {
  @apply transition-transform duration-200 hover:scale-105;
}

/* Loading spinner */
.spinner {
  @apply inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin;
}

/* Gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, hsl(var(--hero-gradient-start)) 0%, hsl(var(--hero-gradient-end)) 100%);
}

.dark .gradient-primary {
  background: linear-gradient(135deg, hsl(var(--hero-gradient-start)) 0%, hsl(var(--hero-gradient-end)) 100%);
  position: relative;
}

.dark .gradient-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--dark-glow) / 0.1) 0%, hsl(var(--dark-glow) / 0.05) 100%);
  border-radius: inherit;
}

.gradient-secondary {
  background: linear-gradient(135deg, hsl(var(--muted)) 0%, hsl(var(--accent)) 100%);
}

.dark .gradient-secondary {
  background: linear-gradient(135deg, hsl(var(--dark-surface-2)) 0%, hsl(var(--dark-surface-3)) 100%);
}

/* Dark mode specific gradients */
.dark .gradient-dark-glow {
  background: radial-gradient(circle at 50% 50%, hsl(var(--dark-glow) / 0.15) 0%, transparent 70%);
}

.dark .gradient-dark-subtle {
  background: linear-gradient(135deg, hsl(var(--dark-surface-1)) 0%, hsl(var(--dark-surface-2)) 50%, hsl(var(--dark-surface-1)) 100%);
}

/* File upload zone styling */
.file-upload-zone {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-upload-zone:hover {
  background-color: hsl(var(--primary) / 0.03);
  border-color: hsl(var(--primary) / 0.4);
}

.file-upload-zone.dragging {
  background-color: hsl(var(--primary) / 0.08);
  border-color: hsl(var(--primary));
  transform: scale(1.02);
}

.dark .file-upload-zone {
  background-color: hsl(var(--dark-surface-1) / 0.5);
  border-color: hsl(var(--dark-surface-2));
}

.dark .file-upload-zone:hover {
  background-color: hsl(var(--dark-surface-2) / 0.5);
  border-color: hsl(var(--primary) / 0.5);
}

/* Contact info card animations */
.contact-info-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .contact-info-card {
  background: linear-gradient(135deg, hsl(var(--dark-surface-2)) 0%, hsl(var(--dark-surface-1)) 100%);
  border-color: hsl(var(--dark-surface-3));
}

.dark .contact-info-card:hover {
  box-shadow: 0 12px 24px hsl(var(--dark-shadow) / 0.4), 0 0 20px hsl(var(--primary) / 0.15);
}

.dark .contact-item:hover {
  background-color: hsl(var(--dark-surface-2) / 0.5);
}

/* Flash message animations */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.flash-message {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark .flash-message {
  background-color: hsl(var(--dark-surface-1) / 0.9);
  border-color: hsl(var(--dark-surface-3));
}

/* Dynamic fields container animation */
.dynamic-fields-container {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress bar styling */
#progress-bar {
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}

.dark #progress-bar {
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.4), 0 0 12px hsl(var(--primary) / 0.2);
}

/* Expectations card styling */
.expectations-card {
  position: relative;
  overflow: hidden;
}

.expectations-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, hsl(var(--primary)), hsl(var(--info)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expectations-card:hover::before {
  opacity: 1;
}

.expectation-step {
  position: relative;
}

.dark .expectations-card {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-3));
}

.dark .expectations-card:hover {
  box-shadow: 0 8px 16px hsl(var(--dark-shadow) / 0.4), 0 0 20px hsl(var(--primary) / 0.1);
}

.dark .expectation-step:hover {
  background-color: hsl(var(--dark-surface-2) / 0.5);
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: hsl(var(--muted));
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground));
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--foreground));
}

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Dark mode specific animations */
@keyframes darkGlow {
  0%, 100% { 
    box-shadow: 0 0 20px hsl(var(--primary) / 0.1);
  }
  50% { 
    box-shadow: 0 0 40px hsl(var(--primary) / 0.2), 0 0 60px hsl(var(--primary) / 0.1);
  }
}

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

@keyframes darkFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  50% { 
    transform: translateY(-10px) rotate(2deg);
  }
}

.dark .animate-dark-glow {
  animation: darkGlow 3s ease-in-out infinite;
}

.dark .animate-dark-pulse {
  animation: darkPulse 2s ease-in-out infinite;
}

.dark .animate-dark-float {
  animation: darkFloat 4s ease-in-out infinite;
}

/* Platform status indicators */
.status-online {
  @apply inline-flex items-center px-2 py-1 text-xs font-medium bg-green-100 text-green-700 rounded-full;
}

.status-offline {
  @apply inline-flex items-center px-2 py-1 text-xs font-medium bg-red-100 text-red-700 rounded-full;
}

.status-maintenance {
  @apply inline-flex items-center px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-700 rounded-full;
}

.status-unknown {
  @apply inline-flex items-center px-2 py-1 text-xs font-medium bg-gray-100 text-gray-700 rounded-full;
}

/* Dark mode adjustments for status indicators */
.dark .status-online {
  @apply bg-green-900/30 text-green-400;
}

.dark .status-offline {
  @apply bg-red-900/30 text-red-400;
}

.dark .status-maintenance {
  @apply bg-yellow-900/30 text-yellow-400;
}

.dark .status-unknown {
  @apply bg-gray-900/30 text-gray-400;
}

/* Typography enhancements */
.prose-headings {
  @apply font-bold text-foreground;
}

.prose-body {
  @apply text-muted-foreground leading-relaxed;
}

/* Service cards */
.service-card {
  @apply card p-6 hover-elevate cursor-pointer transition-all duration-300;
}

.service-card:hover {
  @apply border-primary/20;
}

.dark .service-card {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
}

.dark .service-card:hover {
  background-color: hsl(var(--dark-surface-2));
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 
    0 4px 6px -1px hsl(var(--dark-shadow) / 0.4),
    0 2px 4px -1px hsl(var(--dark-shadow) / 0.3),
    0 0 20px hsl(var(--primary) / 0.1);
}

/* Platform cards */
.platform-card {
  @apply card p-6 hover-elevate cursor-pointer relative overflow-hidden transition-all duration-300;
}

.platform-card::before {
  content: '';
  @apply absolute inset-0 bg-gradient-to-r from-primary/5 to-transparent opacity-0 transition-opacity duration-300;
}

.platform-card:hover::before {
  @apply opacity-100;
}

.dark .platform-card {
  background-color: hsl(var(--dark-surface-1));
  border-color: hsl(var(--dark-surface-2));
}

.dark .platform-card::before {
  background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.1) 0%, transparent 70%);
}

.dark .platform-card:hover {
  background-color: hsl(var(--dark-surface-2));
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 
    0 4px 6px -1px hsl(var(--dark-shadow) / 0.4),
    0 2px 4px -1px hsl(var(--dark-shadow) / 0.3),
    0 0 30px hsl(var(--primary) / 0.15);
}

.dark .platform-card:hover::before {
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.2) 0%, transparent 70%);
}

/* Navigation enhancements */
.nav-link {
  @apply relative px-4 py-2 rounded-lg transition-all duration-200 text-muted-foreground hover:text-foreground hover:bg-accent;
}

.dark .nav-link {
  color: hsl(var(--muted-foreground));
}

.dark .nav-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--dark-surface-2));
}

.nav-link.active {
  @apply text-primary bg-primary/10;
}

.dark .nav-link.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.15);
}

.nav-link.active::after {
  content: '';
  @apply absolute bottom-0 left-1/2 transform -translate-x-1/2 w-1 h-1 bg-primary rounded-full;
}

/* Dark mode mobile menu enhancements */
.dark #mobile-menu {
  background: hsla(var(--background) / 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: hsl(var(--dark-surface-2) / 0.5);
  box-shadow: 
    0 10px 15px -3px hsl(var(--dark-shadow) / 0.4),
    0 4px 6px -2px hsl(var(--dark-shadow) / 0.3);
}

.dark .mobile-nav-link {
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.dark .mobile-nav-link:hover {
  color: hsl(var(--primary));
  background-color: hsl(var(--dark-surface-2));
  transform: translateX(4px);
}

.dark .mobile-nav-link svg {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.dark .mobile-nav-link:hover svg {
  color: hsl(var(--primary));
}

/* Form enhancements */
.form-group {
  @apply space-y-2;
}

.form-grid {
  @apply grid grid-cols-1 md:grid-cols-2 gap-6;
}

.form-actions {
  @apply flex justify-end space-x-4 pt-6 border-t border-border;
}

/* Sticky Header Functionality */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .sticky-header {
  background: hsla(var(--background) / 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid hsl(var(--dark-surface-2) / 0.5);
}

.dark .sticky-header.scrolled {
  background: hsla(var(--background) / 0.98);
  border-bottom-color: hsl(var(--dark-surface-2) / 0.8);
  box-shadow: 
    0 4px 6px -1px hsl(var(--dark-shadow) / 0.3),
    0 2px 4px -1px hsl(var(--dark-shadow) / 0.2),
    0 0 20px hsl(var(--primary) / 0.05);
}

/* Body padding to compensate for sticky header */
body.has-sticky-header {
  padding-top: 80px;
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

#mobile-menu.show {
  max-height: 700px;
  opacity: 1;
  transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

/* Enhanced Mobile Navigation Links */
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: #2563eb;
  background-color: #eff6ff;
  transform: translateX(4px);
}

.mobile-nav-link svg {
  transition: color 0.2s ease;
}

/* Responsive Breakpoint Utilities */
/* Small devices (640px and up) */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:h-10 { height: 2.5rem; }
  .lg\:w-10 { width: 2.5rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Extra large devices (1280px and up) */
@media (min-width: 1280px) {
  .xl\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile-first responsive design overrides */
@media (max-width: 767px) {
  .mobile-stack {
    @apply flex-col space-y-4 space-x-0;
  }
  
  .mobile-full {
    @apply w-full;
  }

  /* Adjust hero text for mobile */
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
  }

  /* Mobile container adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile padding adjustments */
  .py-24 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .py-16 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Mobile grid adjustments */
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mobile button adjustments */
  .btn-lg {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-size: 1rem;
  }

  /* Adjust sticky header padding for mobile */
  body.has-sticky-header {
    padding-top: 70px;
  }

  /* Mobile service cards */
  .service-card {
    padding: 1.5rem;
  }

  /* Mobile platform cards */
  .platform-card {
    padding: 1.5rem;
  }
}

/* Extra small devices (480px and below) */
@media (max-width: 479px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
  }

  .px-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* Extra small mobile cards */
  .service-card,
  .platform-card {
    padding: 1.25rem;
  }
}

/* High resolution displays */
@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }

  .xl\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
}

/* Enhanced Dark Theme Components */

/* Glassmorphism effects for dark theme */
.dark .glass-card {
  background: hsla(var(--glass-bg));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid hsla(var(--glass-border));
  box-shadow: 
    0 8px 32px 0 hsla(var(--dark-shadow) / 0.37),
    inset 0 1px 0 0 hsl(var(--dark-border) / 0.15);
}

/* Enhanced dark theme buttons with glow effects */
.dark .btn-primary {
  background: linear-gradient(145deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  box-shadow: 
    0 4px 15px hsl(var(--primary) / 0.25),
    0 1px 3px hsl(var(--dark-shadow) / 0.3),
    inset 0 1px 0 hsl(var(--primary) / 0.4);
  border: 1px solid hsl(var(--primary) / 0.3);
  position: relative;
  overflow: hidden;
}

.dark .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.4), transparent);
  transition: left 0.6s;
}

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

.dark .btn-primary:hover {
  background: linear-gradient(145deg, hsl(var(--primary) / 1.1), hsl(var(--primary)));
  box-shadow: 
    0 6px 20px hsl(var(--primary) / 0.4),
    0 0 30px hsl(var(--primary) / 0.2),
    0 1px 3px hsl(var(--dark-shadow) / 0.4),
    inset 0 1px 0 hsl(var(--primary) / 0.6);
  transform: translateY(-2px);
}

.dark .btn-primary:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px hsl(var(--primary) / 0.3),
    0 1px 2px hsl(var(--dark-shadow) / 0.5),
    inset 0 2px 4px hsl(var(--dark-shadow) / 0.2);
}

/* Enhanced outline buttons for dark theme */
.dark .btn-outline {
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid hsl(var(--dark-border));
  color: hsl(var(--dark-text-high));
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.dark .btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.1), transparent);
  transition: left 0.5s;
}

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

.dark .btn-outline:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  box-shadow: 
    0 0 20px hsl(var(--primary) / 0.3),
    inset 0 1px 0 hsl(var(--primary) / 0.2);
  text-shadow: 0 0 8px hsl(var(--primary) / 0.5);
}

/* Enhanced dark theme cards with depth */
.dark .card {
  background: linear-gradient(145deg, hsl(var(--dark-surface-1)), hsl(var(--dark-surface-2) / 0.8));
  border: 1px solid hsl(var(--dark-border));
  box-shadow: 
    0 4px 6px hsl(var(--dark-shadow) / 0.3),
    0 1px 3px hsl(var(--dark-shadow) / 0.2),
    inset 0 1px 0 hsl(var(--dark-border) / 0.1);
  position: relative;
}

.dark .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.dark .card:hover {
  background: linear-gradient(145deg, hsl(var(--dark-surface-2)), hsl(var(--dark-surface-3) / 0.9));
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 
    0 8px 25px hsl(var(--dark-shadow) / 0.4),
    0 4px 10px hsl(var(--dark-shadow) / 0.3),
    0 0 0 1px hsl(var(--primary) / 0.1),
    inset 0 1px 0 hsl(var(--dark-border) / 0.2);
  transform: translateY(-4px);
}

.dark .card:hover::before {
  opacity: 1;
}

/* Enhanced input fields for dark theme */
.dark .input {
  background: linear-gradient(145deg, hsl(var(--dark-surface-1)), hsl(var(--dark-surface-2) / 0.5));
  border: 2px solid hsl(var(--dark-border));
  color: hsl(var(--dark-text-high));
  box-shadow: 
    inset 0 2px 4px hsl(var(--dark-shadow) / 0.1),
    0 1px 2px hsl(var(--dark-shadow) / 0.1);
}

.dark .input::placeholder {
  color: hsl(var(--dark-text-low));
}

.dark .input:focus {
  background: hsl(var(--dark-surface-2));
  border-color: hsl(var(--primary));
  color: hsl(var(--dark-text-high));
  box-shadow: 
    0 0 0 3px hsl(var(--primary) / 0.25),
    0 0 20px hsl(var(--primary) / 0.15),
    inset 0 1px 2px hsl(var(--dark-shadow) / 0.1);
}

/* Enhanced service cards with sophisticated effects */
.dark .service-card {
  background: linear-gradient(145deg, hsl(var(--dark-surface-1)), hsl(var(--dark-surface-2) / 0.9));
  border: 1px solid hsl(var(--dark-border));
  position: relative;
  overflow: hidden;
}

.dark .service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    hsl(var(--primary) / 0.1) 90deg,
    transparent 180deg,
    hsl(var(--primary) / 0.05) 270deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.6s;
  animation: rotate 8s linear infinite;
}

.dark .service-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, hsl(var(--dark-surface-1)), hsl(var(--dark-surface-2) / 0.9));
  border-radius: inherit;
  z-index: 1;
}

.dark .service-card > * {
  position: relative;
  z-index: 2;
}

.dark .service-card:hover::before {
  opacity: 1;
}

.dark .service-card:hover {
  background: linear-gradient(145deg, hsl(var(--dark-surface-2)), hsl(var(--dark-surface-3)));
  box-shadow: 
    0 12px 40px hsl(var(--dark-shadow) / 0.4),
    0 0 0 1px hsl(var(--primary) / 0.1),
    inset 0 1px 0 hsl(var(--dark-border) / 0.3);
  transform: translateY(-6px);
}

/* Neon glow effects for accent elements */
.dark .neon-glow {
  position: relative;
}

.dark .neon-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, hsl(var(--neon-blue)), hsl(var(--neon-purple)), hsl(var(--neon-pink)), hsl(var(--neon-green)));
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.dark .neon-glow:hover::before {
  opacity: 0.7;
  animation: neonPulse 2s ease-in-out infinite alternate;
}

/* Advanced animations for dark theme */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes neonPulse {
  0% {
    filter: blur(8px);
    opacity: 0.7;
  }
  100% {
    filter: blur(12px);
    opacity: 1;
  }
}

@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px hsl(var(--primary) / 0.1),
      0 0 40px hsl(var(--primary) / 0.05);
  }
  50% {
    box-shadow: 
      0 0 30px hsl(var(--primary) / 0.2),
      0 0 60px hsl(var(--primary) / 0.1);
  }
}

.dark .animate-subtle-glow {
  animation: subtleGlow 3s ease-in-out infinite;
}

/* Enhanced dark theme navigation */
.dark .nav-link {
  color: hsl(var(--dark-text-medium));
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--neon-purple)));
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.dark .nav-link:hover {
  color: hsl(var(--dark-text-high));
  text-shadow: 0 0 8px hsl(var(--primary) / 0.3);
}

.dark .nav-link:hover::before {
  width: 100%;
}

.dark .nav-link.active {
  color: hsl(var(--primary));
  text-shadow: 0 0 8px hsl(var(--primary) / 0.5);
}

.dark .nav-link.active::before {
  width: 100%;
  box-shadow: 0 0 10px hsl(var(--primary) / 0.5);
}

/* Enhanced mobile menu for dark theme */
.dark #mobile-menu {
  background: linear-gradient(145deg, hsla(var(--background) / 0.95), hsla(var(--dark-surface-1) / 0.9));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid hsl(var(--dark-border) / 0.5);
  box-shadow: 
    0 20px 25px -5px hsl(var(--dark-shadow) / 0.5),
    0 10px 10px -5px hsl(var(--dark-shadow) / 0.3),
    0 0 0 1px hsl(var(--primary) / 0.05),
    inset 0 1px 0 hsl(var(--dark-border) / 0.1);
}

.dark .mobile-nav-link {
  color: hsl(var(--dark-text-medium));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 12px;
  margin: 4px 0;
}

.dark .mobile-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.1), transparent);
  border-radius: inherit;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .mobile-nav-link:hover {
  color: hsl(var(--primary));
  background: hsl(var(--dark-surface-2) / 0.7);
  transform: translateX(8px);
  text-shadow: 0 0 8px hsl(var(--primary) / 0.3);
}

.dark .mobile-nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced sticky header with glassmorphism */
.dark .sticky-header {
  background: linear-gradient(145deg, hsla(var(--background) / 0.8), hsla(var(--dark-surface-1) / 0.9));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid hsl(var(--dark-border) / 0.5);
  box-shadow: 
    0 4px 6px hsl(var(--dark-shadow) / 0.1),
    0 0 0 1px hsl(var(--primary) / 0.03),
    inset 0 1px 0 hsl(var(--dark-border) / 0.1);
}

.dark .sticky-header.scrolled {
  background: linear-gradient(145deg, hsla(var(--background) / 0.95), hsla(var(--dark-surface-1) / 0.95));
  border-bottom-color: hsl(var(--dark-border) / 0.8);
  box-shadow: 
    0 10px 15px -3px hsl(var(--dark-shadow) / 0.2),
    0 4px 6px -2px hsl(var(--dark-shadow) / 0.1),
    0 0 0 1px hsl(var(--primary) / 0.05),
    inset 0 1px 0 hsl(var(--dark-border) / 0.2);
}

/* Utility classes for enhanced dark theme */
.dark .text-glow {
  text-shadow: 0 0 10px hsl(var(--primary) / 0.5);
}

.dark .border-glow {
  border: 1px solid hsl(var(--primary));
  box-shadow: 0 0 10px hsl(var(--primary) / 0.3);
}

.dark .bg-glass {
  background: hsla(var(--glass-bg));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid hsla(var(--glass-border));
}

.dark .gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--neon-purple)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark theme scroll enhancements */
.dark .custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
  background: hsl(var(--dark-surface-1));
  border-radius: 4px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, hsl(var(--dark-surface-3)), hsl(var(--primary) / 0.3));
  border-radius: 4px;
  border: 1px solid hsl(var(--dark-border));
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, hsl(var(--primary) / 0.4), hsl(var(--primary) / 0.6));
  box-shadow: 0 0 5px hsl(var(--primary) / 0.3);
}

/* Enhanced cookie banner for dark theme */
.dark #cookie-banner {
  background: linear-gradient(145deg, hsla(var(--background) / 0.95), hsla(var(--dark-surface-1) / 0.9));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid hsl(var(--dark-border) / 0.5);
  box-shadow: 
    0 -10px 25px hsl(var(--dark-shadow) / 0.3),
    0 0 0 1px hsl(var(--primary) / 0.05),
    inset 0 1px 0 hsl(var(--dark-border) / 0.1);
}

/* Enhanced Dark Theme Performance Optimizations */
.dark {
  /* Removed CSS containment as it was blocking scroll functionality */
}

/* Ensure scrolling is always enabled in dark mode */
.dark body {
  overflow: auto !important;
  height: auto !important;
  max-height: none !important;
  position: static !important;
}

.dark html {
  overflow: auto !important;
  height: auto !important;
  max-height: none !important;
  position: static !important;
}

/* Override any potential scroll-blocking styles in dark mode */
.dark body,
.dark html {
  scroll-behavior: smooth;
}

.dark {
  /* Force enable scrolling */
  overflow-y: visible;
  min-height: 100vh;
}

/* Global smooth transitions for theme switching */
html {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html * {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
}

/* Theme switching loading overlay */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, hsl(var(--background)) 20.5%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  background-size: 20px 20px;
  animation: themeTransitionPattern 0.6s linear;
}

.theme-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

@keyframes themeTransitionPattern {
  0% {
    background-size: 0px 0px;
  }
  100% {
    background-size: 20px 20px;
  }
}

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

  .dark .service-card::before {
    animation: none !important;
  }

  .dark .neon-glow:hover::before {
    animation: none !important;
  }

  .dark .animate-subtle-glow {
    animation: none !important;
  }
}

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
  .dark {
    --dark-text-high: 224 100% 98%;
    --dark-text-medium: 224 100% 85%;
    --dark-text-low: 224 100% 70%;
    --dark-border: 224 100% 30%;
    --primary: 210 100% 70%;
  }

  .dark .btn-primary {
    border-width: 2px;
  }

  .dark .card {
    border-width: 2px;
  }

  .dark .input {
    border-width: 3px;
  }
}

/* Mobile-first responsive enhancements for dark theme */
@media (max-width: 640px) {
  .dark .service-card {
    margin-bottom: 1.5rem;
  }

  .dark .glass-card {
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
  }

  .dark .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .dark .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }

  .dark #mobile-menu {
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }

  .dark .mobile-nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .dark .card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .dark .gradient-text {
    font-size: 1.75rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .dark .service-card {
    margin-bottom: 2rem;
  }

  .dark .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }

  .dark .card {
    padding: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .dark .glass-card {
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
  }

  .dark .service-card:hover {
    transform: translateY(-8px);
  }

  .dark .card:hover {
    transform: translateY(-6px);
  }
}

@media (min-width: 1025px) {
  .dark .service-card::before {
    animation-duration: 6s;
  }

  .dark .neon-glow::before {
    filter: blur(10px);
  }

  .dark .neon-glow:hover::before {
    filter: blur(15px);
  }

  .dark .btn-primary:hover {
    transform: translateY(-3px);
  }

  .dark .glass-card {
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
  }
}

/* Print styles for dark theme */
@media print {
  .dark {
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .dark .glass-card,
  .dark .btn-primary,
  .dark .btn-outline,
  .dark .card {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  .dark .neon-glow::before,
  .dark .service-card::before {
    display: none !important;
  }
}

/* Enhanced focus management for dark theme */
.dark *:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.dark .btn-primary:focus,
.dark .btn-outline:focus {
  outline: 3px solid hsl(var(--primary) / 0.5);
  outline-offset: 2px;
}

.dark .input:focus {
  outline: none; /* Already handled by box-shadow */
}

.dark .nav-link:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 4px;
  border-radius: 4px;
}

/* Skip link for accessibility */
.dark .skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: hsl(var(--primary));
  color: hsl(var(--background));
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.dark .skip-link:focus {
  top: 6px;
  outline: 2px solid hsl(var(--background));
  outline-offset: 2px;
}

/* Dark theme loading states */
.dark .loading {
  position: relative;
  overflow: hidden;
  background: hsl(var(--dark-surface-1));
}

.dark .loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(var(--dark-surface-2) / 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Error and success states for dark theme */
.dark .error {
  background: linear-gradient(145deg, hsl(0 50% 8%), hsl(0 40% 10%));
  border: 1px solid hsl(0 50% 25%);
  color: hsl(0 70% 80%);
}

.dark .success {
  background: linear-gradient(145deg, hsl(120 50% 8%), hsl(120 40% 10%));
  border: 1px solid hsl(120 50% 25%);
  color: hsl(120 70% 80%);
}

.dark .warning {
  background: linear-gradient(145deg, hsl(45 50% 8%), hsl(45 40% 10%));
  border: 1px solid hsl(45 50% 25%);
  color: hsl(45 70% 80%);
}

.dark .info {
  background: linear-gradient(145deg, hsl(200 50% 8%), hsl(200 40% 10%));
  border: 1px solid hsl(200 50% 25%);
  color: hsl(200 70% 80%);
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .py-24 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .py-16 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  body.has-sticky-header {
    padding-top: 60px;
  }

  .dark .mobile-nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .dark #mobile-menu {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .dark .card {
    padding: 1rem;
  }

  .dark .service-card {
    padding: 1rem;
  }
}

/* ============================== */
/* ENHANCED LIGHT THEME STYLES   */
/* ============================== */

/* Enhanced light theme buttons with depth and sophistication */
html:not(.dark) .btn-primary {
  background: linear-gradient(145deg, hsl(var(--primary)), hsl(var(--primary) / 0.9));
  box-shadow: 
    0 6px 16px hsl(var(--primary) / 0.35),
    0 3px 8px hsl(var(--light-shadow) / 0.15),
    0 1px 20px hsl(var(--primary) / 0.2),
    inset 0 1px 0 hsl(var(--primary) / 0.3);
  border: 2px solid hsl(var(--primary) / 0.5);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

html:not(.dark) .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
  transition: left 0.6s;
}

html:not(.dark) .btn-primary:hover::before {
  left: 100%;
}

html:not(.dark) .btn-primary:hover {
  background: linear-gradient(145deg, hsl(var(--primary) / 1.1), hsl(var(--primary)));
  box-shadow: 
    0 10px 24px hsl(var(--primary) / 0.45),
    0 5px 12px hsl(var(--primary) / 0.3),
    0 0 30px hsl(var(--primary) / 0.25),
    0 1px 3px hsl(var(--light-shadow) / 0.2),
    inset 0 1px 0 hsl(var(--primary) / 0.4);
  border-color: hsl(var(--primary) / 0.7);
  transform: translateY(-3px) scale(1.02);
}

html:not(.dark) .btn-primary:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 6px hsl(var(--primary) / 0.25),
    0 1px 2px hsl(var(--light-shadow) / 0.15),
    inset 0 2px 4px hsl(var(--light-shadow) / 0.1);
}

/* Enhanced outline buttons for light theme */
html:not(.dark) .btn-outline {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 98%));
  border: 3px solid hsl(var(--light-border));
  color: hsl(var(--foreground));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 8px hsl(var(--light-shadow) / 0.12),
    0 2px 4px hsl(var(--light-shadow) / 0.08),
    inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

html:not(.dark) .btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.08), transparent);
  transition: left 0.5s;
}

html:not(.dark) .btn-outline:hover::before {
  left: 100%;
}

html:not(.dark) .btn-outline:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background: linear-gradient(145deg, hsl(var(--primary) / 0.05), hsl(var(--primary) / 0.1));
  box-shadow: 
    0 8px 16px hsl(var(--primary) / 0.25),
    0 4px 8px hsl(var(--primary) / 0.18),
    0 0 25px hsl(var(--primary) / 0.15),
    inset 0 1px 0 hsl(0 0% 100%);
  border-width: 3px;
  transform: translateY(-2px) scale(1.02);
}

/* Enhanced cards for light theme */
html:not(.dark) .card {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 99%));
  border: 1px solid hsl(var(--light-border));
  box-shadow: 
    0 4px 6px hsl(var(--light-shadow) / 0.05),
    0 1px 3px hsl(var(--light-shadow) / 0.08),
    inset 0 1px 0 hsl(0 0% 100% / 0.8);
  position: relative;
}

html:not(.dark) .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

html:not(.dark) .card:hover {
  background: linear-gradient(145deg, hsl(210 30% 99%), hsl(210 25% 97%));
  border-color: hsl(var(--primary) / 0.2);
  box-shadow: 
    0 8px 25px hsl(var(--light-shadow) / 0.1),
    0 4px 10px hsl(var(--light-shadow) / 0.08),
    0 0 0 1px hsl(var(--primary) / 0.05),
    inset 0 1px 0 hsl(0 0% 100%);
  transform: translateY(-4px);
}

html:not(.dark) .card:hover::before {
  opacity: 1;
}

/* Enhanced input fields for light theme */
.input {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 98%));
  border: 2px solid hsl(var(--light-border));
  color: hsl(var(--foreground));
  box-shadow: 
    inset 0 2px 4px hsl(var(--light-shadow) / 0.05),
    0 1px 2px hsl(var(--light-shadow) / 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input::placeholder {
  color: hsl(var(--light-text-low));
}

.input:focus {
  background: hsl(0 0% 100%);
  border-color: hsl(var(--primary));
  color: hsl(var(--foreground));
  box-shadow: 
    0 0 0 3px hsl(var(--primary) / 0.15),
    0 0 20px hsl(var(--primary) / 0.08),
    inset 0 1px 2px hsl(var(--light-shadow) / 0.03);
  transform: translateY(-1px);
}

/* Enhanced service cards with sophisticated effects for light theme */
html:not(.dark) .service-card {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 99%));
  border: 1px solid hsl(var(--light-border));
  position: relative;
  overflow: hidden;
}

html:not(.dark) .service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    hsl(var(--primary) / 0.05) 90deg,
    transparent 180deg,
    hsl(var(--primary) / 0.03) 270deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.6s;
  animation: rotate 12s linear infinite;
}

html:not(.dark) .service-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 99%));
  border-radius: inherit;
  z-index: 1;
}

html:not(.dark) .service-card > * {
  position: relative;
  z-index: 2;
}

html:not(.dark) .service-card:hover::before {
  opacity: 1;
}

html:not(.dark) .service-card:hover {
  background: linear-gradient(145deg, hsl(210 30% 99%), hsl(210 25% 97%));
  box-shadow: 
    0 12px 40px hsl(var(--light-shadow) / 0.12),
    0 0 0 1px hsl(var(--primary) / 0.08),
    inset 0 1px 0 hsl(0 0% 100%);
  transform: translateY(-6px);
}

/* Enhanced navigation for light theme */
html:not(.dark) .nav-link {
  color: hsl(var(--light-text-medium));
}

html:not(.dark) .nav-link:hover {
  color: hsl(var(--primary));
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--primary) / 0.08));
}

html:not(.dark) .nav-link.active {
  color: hsl(var(--primary));
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--primary) / 0.12));
}

/* Enhanced platform cards for light theme */
html:not(.dark) .platform-card {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 98%));
  border: 1px solid hsl(var(--light-border));
}

html:not(.dark) .platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.3s ease;
}

html:not(.dark) .platform-card:hover {
  background: linear-gradient(145deg, hsl(210 30% 99%), hsl(210 25% 97%));
  border-color: hsl(var(--primary) / 0.2);
  box-shadow: 
    0 8px 30px hsl(var(--light-shadow) / 0.1),
    0 0 0 1px hsl(var(--primary) / 0.05),
    inset 0 1px 0 hsl(0 0% 100%);
  transform: translateY(-4px);
}

html:not(.dark) .platform-card:hover::before {
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.08) 0%, transparent 70%);
}

/* Light theme utility classes */
.text-light-glow {
  text-shadow: 0 0 8px hsl(var(--primary) / 0.3);
}

.border-light-glow {
  border: 1px solid hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / 0.2);
}

.gradient-light-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--light-accent-purple)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced sticky header for light theme */
html:not(.dark) .sticky-header {
  background: linear-gradient(145deg, hsla(210 25% 98% / 0.95), hsla(0 0% 100% / 0.9));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid hsl(var(--light-border) / 0.5);
  box-shadow: 
    0 4px 6px hsl(var(--light-shadow) / 0.08),
    0 0 0 1px hsl(var(--primary) / 0.02),
    inset 0 1px 0 hsl(0 0% 100% / 0.8);
}

html:not(.dark) .sticky-header.scrolled {
  background: linear-gradient(145deg, hsla(210 25% 98% / 0.98), hsla(0 0% 100% / 0.95));
  border-bottom-color: hsl(var(--light-border) / 0.8);
  box-shadow: 
    0 10px 15px -3px hsl(var(--light-shadow) / 0.1),
    0 4px 6px -2px hsl(var(--light-shadow) / 0.08),
    0 0 0 1px hsl(var(--primary) / 0.03),
    inset 0 1px 0 hsl(0 0% 100%);
}

/* Enhanced scrollbars for light theme */
html:not(.dark) .custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html:not(.dark) .custom-scrollbar::-webkit-scrollbar-track {
  background: hsl(var(--light-surface-2));
  border-radius: 4px;
}

html:not(.dark) .custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, hsl(var(--light-surface-3)), hsl(var(--primary) / 0.2));
  border-radius: 4px;
  border: 1px solid hsl(var(--light-border));
}

html:not(.dark) .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, hsl(var(--primary) / 0.3), hsl(var(--primary) / 0.5));
  box-shadow: 0 0 5px hsl(var(--primary) / 0.2);
}

/* Enhanced mobile menu for light theme */
html:not(.dark) #mobile-menu {
  background: linear-gradient(145deg, hsla(210 25% 98% / 0.98), hsla(0 0% 100% / 0.95));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid hsl(var(--light-border) / 0.5);
  box-shadow: 
    0 20px 25px -5px hsl(var(--light-shadow) / 0.12),
    0 10px 10px -5px hsl(var(--light-shadow) / 0.08),
    0 0 0 1px hsl(var(--primary) / 0.03),
    inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

html:not(.dark) .mobile-nav-link {
  color: hsl(var(--light-text-medium));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 12px;
  margin: 4px 0;
}

html:not(.dark) .mobile-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.08), transparent);
  border-radius: inherit;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html:not(.dark) .mobile-nav-link:hover {
  color: hsl(var(--primary));
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--primary) / 0.08));
  transform: translateX(8px);
}

html:not(.dark) .mobile-nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced input focus states for light theme */
html:not(.dark) .input {
  background: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 25% 98%));
  border: 2px solid hsl(var(--light-border));
  color: hsl(var(--foreground));
  box-shadow: 
    inset 0 2px 4px hsl(var(--light-shadow) / 0.05),
    0 1px 2px hsl(var(--light-shadow) / 0.05);
}

html:not(.dark) .input:focus {
  background: hsl(0 0% 100%);
  border-color: hsl(var(--primary));
  color: hsl(var(--foreground));
  box-shadow: 
    0 0 0 3px hsl(var(--primary) / 0.15),
    0 0 20px hsl(var(--primary) / 0.08),
    inset 0 1px 2px hsl(var(--light-shadow) / 0.03);
  transform: translateY(-1px);
}
