/* RVA Commons - Accessible Organic Design System */
:root {
  /* Primary Colors - Enhanced for Better Contrast */
  --primary-blue: #1d4ed8;        /* Darker blue for better contrast */
  --secondary-blue: #2563eb;      /* Adjusted for WCAG AA compliance */
  --accent-blue: #3b82f6;         /* Bright accent, good for highlights */
  --tertiary-blue: #60a5fa;       /* Light blue for subtle elements */
  
  /* Neutral Colors - Improved Contrast Ratios */
  --dark-grey: #111827;           /* Deeper dark for better readability */
  --medium-grey: #4b5563;         /* Enhanced medium grey (4.5:1 contrast) */
  --light-grey: #f9fafb;          /* Slightly warmer light grey */
  --white: #ffffff;
  
  /* Semantic Colors - WCAG Compliant */
  --success-green: #059669;       /* Darker green for better contrast */
  --warning-orange: #d97706;      /* Enhanced orange for readability */
  --error-red: #dc2626;           /* Stronger red for error visibility */
  
  /* Text Colors - Optimized Hierarchy */
  --text-primary: #111827;        /* High contrast primary text */
  --text-secondary: #374151;      /* Medium contrast secondary text */
  --text-muted: #6b7280;          /* Muted text, still accessible */
  --text-light: #9ca3af;          /* Light text for less important content */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --gradient-organic: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
  --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  --shadow-organic: 0 10px 32px -5px rgba(0,0,0,0.12), 0 4px 16px -4px rgba(0,0,0,0.08);
  --shadow-soft: 0 6px 24px -2px rgba(0,0,0,0.1), 0 3px 12px -2px rgba(0,0,0,0.06);
  --shadow-flow: 0 16px 48px -8px rgba(0,0,0,0.15), 0 8px 24px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 32px rgba(59, 130, 246, 0.15);
  --border-radius-organic: 28px 18px 24px 32px;
  --border-radius-soft: 20px 24px 18px 26px;
  --border-radius-modern: 16px;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-spring: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Theme Variables - Enhanced Accessibility */
[data-theme="dark"] {
  /* Primary Colors - High Contrast Dark Mode */
  --primary-blue: #60a5fa;        /* Bright blue for dark backgrounds */
  --secondary-blue: #3b82f6;      /* Medium blue with good contrast */
  --accent-blue: #93c5fd;         /* Light blue for highlights */
  --tertiary-blue: #1e40af;       /* Darker blue for subtle elements */
  
  /* Neutral Colors - Dark Mode Optimized */
  --dark-grey: #f9fafb;           /* Near white for primary text */
  --medium-grey: #d1d5db;         /* Light grey for secondary text */
  --light-grey: #1f2937;          /* Dark surface for cards/components */
  --white: #0f172a;               /* Deep dark background */
  
  /* Semantic Colors - Dark Mode Accessible */
  --success-green: #34d399;       /* Bright green for dark mode */
  --warning-orange: #fbbf24;      /* Bright orange for visibility */
  --error-red: #f87171;           /* Soft red that's still noticeable */
  
  /* Text Colors - Dark Mode Hierarchy */
  --text-primary: #f9fafb;        /* High contrast white text */
  --text-secondary: #e5e7eb;      /* Secondary text with good contrast */
  --text-muted: #d1d5db;          /* Muted but still readable */
  --text-light: #9ca3af;          /* Light text for less important content */
  --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%);
  --gradient-secondary: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --gradient-accent: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  --gradient-organic: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(96, 165, 250, 0.12) 0%, transparent 50%);
  --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  --gradient-glass: linear-gradient(135deg, rgba(30, 41, 59, 0.25) 0%, rgba(30, 41, 59, 0.1) 100%);
  --shadow-organic: 0 10px 32px -5px rgba(0,0,0,0.3), 0 4px 16px -4px rgba(0,0,0,0.2);
  --shadow-soft: 0 6px 24px -2px rgba(0,0,0,0.25), 0 3px 12px -2px rgba(0,0,0,0.15);
  --shadow-flow: 0 16px 48px -8px rgba(0,0,0,0.35), 0 8px 24px -6px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 32px rgba(96, 165, 250, 0.25);
}

/* Dark Theme Body Styles */
[data-theme="dark"] body {
  background: 
    radial-gradient(circle at 25% 25%, rgba(96, 165, 250, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
}

[data-theme="dark"] body::before {
  background: 
    radial-gradient(circle at 25% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

/* Dark Theme Navbar */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  background-image: linear-gradient(135deg, rgba(30, 41, 59, 0.25) 0%, rgba(30, 41, 59, 0.1) 100%);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

/* Dark Theme Cards */
[data-theme="dark"] .card {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(96, 165, 250, 0.2);
  background-image: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(96, 165, 250, 0.02) 100%);
}

[data-theme="dark"] .card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.4), 0 8px 24px -6px rgba(96, 165, 250, 0.15);
}

/* Dark Theme Buttons */
[data-theme="dark"] .cta-button {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

[data-theme="dark"] .cta-button:hover {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(96, 165, 250, 0.4);
}

/* Dark Theme Navigation Links */
[data-theme="dark"] .nav-link {
  color: var(--text-primary);
}

[data-theme="dark"] .nav-link:hover {
  color: var(--primary-blue);
}

[data-theme="dark"] .nav-link.active {
  color: var(--primary-blue);
}

/* Dark Theme Theme Toggle */
[data-theme="dark"] .theme-toggle {
  background: rgba(96, 165, 250, 0.1);
  color: var(--primary-blue);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(96, 165, 250, 0.2);
  color: var(--accent-blue);
}

/* Dark Theme Forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--primary-blue);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Dark Theme Hero Section */
[data-theme="dark"] .hero {
  color: var(--text-primary);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2,
[data-theme="dark"] .hero h3 {
  color: var(--text-primary);
}

/* Dark Theme Footer */
[data-theme="dark"] .footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(96, 165, 250, 0.2);
}

/* Dark Theme Service Cards */
[data-theme="dark"] .service-card {
  background: rgba(30, 41, 59, 0.98);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 64px -12px rgba(0,0,0,0.4), 0 8px 32px -8px rgba(96, 165, 250, 0.2);
}

/* Dark Theme Smooth Transitions */
[data-theme="dark"] * {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   ACCESSIBLE COMPONENT IMPROVEMENTS
=================================== */

/* ===================================
   SOPHISTICATED TYPOGRAPHY SYSTEM
=================================== */

/* Modern Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Manrope', system-ui, sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  font-feature-settings: 'ss01' 1, 'ss02' 1, 'cv01' 1, 'cv11' 1;
}

h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h2 { 
  font-size: clamp(1.875rem, 4vw, 3rem); 
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 { 
  font-size: clamp(1.5rem, 3vw, 2.25rem); 
  font-weight: 600;
  letter-spacing: -0.02em;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Premium Body Text */
p {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* Sophisticated Lead Text */
.lead, .hero p, .tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* Modern Code/Tech Text */
code, .code, .tech-text {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: rgba(var(--primary-blue-rgb), 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.9em;
}

/* Elevated Small Text */
small, .text-small {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-muted);
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Premium Quote Text */
blockquote {
  font-family: 'Inter', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-blue);
  padding-left: 2rem;
  margin: 2rem 0;
}

/* Enhanced Small Text */
small, .text-small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Better Link Styles */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-blue);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Accessible Button Enhancements */
.cta-button {
  min-height: 48px; /* Touch target size */
  font-weight: 600;
  letter-spacing: 0.025em;
  position: relative;
}

.cta-button:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Enhanced Form Controls */
input, textarea, select {
  min-height: 48px; /* Accessibility touch target */
  font-size: 16px; /* Prevents zoom on iOS */
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Better Error States */
.error input, .error textarea, .error select {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Improved Success States */
.success input, .success textarea, .success select {
  border-color: var(--success-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Enhanced Card Accessibility */
.card {
  border: 1px solid var(--light-grey);
  position: relative;
}

.card:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.1);
}

/* Skip link styles removed per request */

/* ===================================
   UTILITY CLASSES FOR CONSISTENCY
=================================== */

/* Text Color Utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-light) !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-success { color: var(--success-green) !important; }
.text-warning { color: var(--warning-orange) !important; }
.text-error { color: var(--error-red) !important; }

/* Background Color Utilities */
.bg-primary { background-color: var(--primary-blue) !important; }
.bg-light { background-color: var(--light-grey) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-success { background-color: var(--success-green) !important; }
.bg-warning { background-color: var(--warning-orange) !important; }
.bg-error { background-color: var(--error-red) !important; }

/* Common Text Styles */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

/* Responsive Text Sizes */
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }

/* ===================================
   COMPONENT SPECIFIC FIXES
=================================== */

/* Business Proposition Section */
.business-proposition {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.business-proposition h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.business-proposition p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.stat-card.success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.1);
}

.stat-card.purple {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-card.success .stat-number {
  color: var(--success-green);
}

.stat-card.purple .stat-number {
  color: #8b5cf6;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Dark Theme Stats */
[data-theme="dark"] .stat-card {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .stat-card.success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .stat-card.purple {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

/* Service Cards Enhanced */
.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero h1, .hero h2, .hero h3 {
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
}

/* Testimonial Cards */
.testimonial-card h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
}

.testimonial-author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================
   MODERN BUTTON SYSTEM
=================================== */

.primary-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  border: 2px solid var(--primary-blue);
}

.secondary-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.secondary-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* Enhanced Hero Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-buttons .cta-button {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hardware acceleration for performance */
.card, .cta-button, .nav-link, .hero {
  will-change: transform;
  transform: translateZ(0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Import Modern Typography Stack */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 25%, #cbd5e1 50%, #f8fafc 75%, #f1f5f9 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-feature-settings: 'liga' 1, 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.6s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.025) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  transition: background 0.6s ease;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  /* Modern glass effect */
  background-image: var(--gradient-glass);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  min-height: 140px;
}

.logo-center {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 10;
  /* Futuristic glow effect */
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem;
  border-radius: 50px;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  /* Subtle inner glow */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-utilities {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--nav-text);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  /* Hover preparation */
  backdrop-filter: blur(8px);
}

.nav-link:hover {
  color: white;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 16px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 
    0 4px 16px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  color: rgba(203, 213, 225, 0.9);
  transition: all 0.3s ease;
}

/* CTA Button Enhancement */
.nav-cta {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 4px 16px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #5b5bd6 0%, #8b5cf6 100%);
}

.cta-button {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-modern);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-spring);
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0.5px;
  /* Modern glass morphism effect */
  backdrop-filter: blur(10px);
  background-image: 
    linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%),
    var(--gradient-primary);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-fast);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-flow), 0 0 40px rgba(59, 130, 246, 0.3);
  background-image: 
    linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%),
    var(--gradient-primary);
}

.cta-button:hover::before {
  left: 100%;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 6rem 2rem 7rem;
  text-align: center;
  background: 
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  /* Modern subtle pattern overlay */
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(96, 165, 250, 0.04) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
  clip-path: ellipse(150% 100% at 50% 100%);
}

/* Simplified Animations */
@keyframes gentle-float {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-3px);
  }
}

@keyframes soft-pulse {
  0%, 100% { 
    opacity: 0.8;
  }
  50% { 
    opacity: 1;
  }
}

@keyframes wave-flow {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.05);
  }
}

@keyframes float {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: 0.01em;
  line-height: 1.6;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Component Cards */
.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-radius: var(--border-radius-modern);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* Modern glass morphism */
  background-image: var(--gradient-glass);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: translateX(-100%);
  transition: var(--transition-fast);
  border-radius: 0 0 2px 2px;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-flow), 0 0 32px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(59, 130, 246, 0.2);
}

.card:hover::before {
  transform: translateX(0);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--white);
}

.card h3 {
  color: var(--primary-blue);
  margin-bottom: 1.2rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  letter-spacing: 0.005em;
}

/* Sections */
.section {
  padding: 5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}


.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary-blue);
  margin-bottom: 3.5rem;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-soft);
  animation: wave-flow 4s ease-in-out infinite;
}

.grid {
  display: grid;
  gap: 2.5rem 2rem;
  animation: fadeIn 1s ease-out;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem 2.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.8rem 2.2rem;
}

/* Asymmetrical grid for organic feel */
.grid-organic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  grid-auto-rows: auto;
}

.grid-organic .card:nth-child(3n+1) {
  transform: translateY(-10px);
}

.grid-organic .card:nth-child(3n+2) {
  transform: translateY(15px);
}

.grid-organic .card:nth-child(3n+3) {
  transform: translateY(-5px);
}

.grid-masonry {
  columns: 3;
  column-gap: 2rem;
  break-inside: avoid;
}

.grid-masonry .card {
  break-inside: avoid;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer */
.footer {
  background: var(--dark-grey);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  margin: 2rem 0;
}

.footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-soft);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Special Effects */
.glow {
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.translucent {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* Fluid Animations */
.fluid-animation {
  position: relative;
  overflow: hidden;
}

.fluid-animation::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 60%);
  animation: fluid 15s infinite ease-in-out;
}

@keyframes fluid {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Booking Form Styles */
.booking-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-organic);
  box-shadow: var(--shadow-organic);
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-grey);
  border-radius: var(--border-radius-soft);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Calendar Availability Styles */
.calendar-day.available {
  background: linear-gradient(135deg, #10b981, #4ade80);
  color: white;
  font-weight: 600;
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #059669, #10b981);
  transform: scale(1.05);
}

/* Time Slots Styles */
#available-time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.75rem;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.time-slot:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  color: #1e40af;
}

.time-slot.selected {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: #1d4ed8;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.time-slot.selected:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.time-slot small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.loading-slots,
.no-slots,
.error-slots {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  margin: 1rem 0;
}

.loading-slots {
  color: #3b82f6;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.no-slots {
  color: #f59e0b;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.error-slots {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.error-slots {
  color: #dc2626;
}

.no-slots {
  color: var(--text-muted);
}

/* Blog Styles */
.blog-post {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  margin-bottom: 2rem;
}

.blog-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(44, 82, 130, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Portfolio Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  background: var(--white);
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 82, 130, 0.9) 100%);
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-description {
  font-size: 0.875rem;
  opacity: 0.9;
}