/* SinAI Inc Master Unified Theme CSS */
/* This file serves as the main stylesheet for the SinAI Inc corporate website */

/* Import CSS assets removed - loaded directly in HTML for parallel loading */
/* Bootstrap, common.css, vendors.css all loaded via <link> tags */

/* SinAI Inc Brand Variables - Modern Purple Gradient Theme */
:root {
  /* Primary Purple Gradient (matches admin login) */
  --sinai-primary: #667eea;
  --sinai-primary-dark: #5a67d8;
  --sinai-secondary: #764ba2;
  --sinai-secondary-light: #9f7aea;
  --sinai-accent: #ed64a6;
  --sinai-dark: #1a202c;
  --sinai-light: #f7fafc;
  
  /* Unified Media Control System: Dark Gradient Theme (Blue → Purple → Teal) */
  --gradient-blue: #4a5edc;
  --gradient-purple: #764ba2;
  --gradient-teal: #00acc1;
  --gradient-dark: linear-gradient(135deg, #1a2a6c 0%, #3a1c71 50%, #1a5f7a 100%);
  --gradient-main: linear-gradient(135deg, var(--gradient-blue) 0%, var(--gradient-purple) 50%, var(--gradient-teal) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(74, 94, 220, 0.9) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(0, 172, 193, 0.9) 100%);
  
  /* Text Gradients (Pink/Purple for emphasis) */
  --text-gradient-pink-purple: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
  --text-gradient-purple-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Modern Gradients */
  --sinai-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --sinai-gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b3f8a 100%);
  --sinai-gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  
  /* Glassmorphism Variables */
  --glass-bg-light: rgba(255, 255, 255, 0.95);
  --glass-bg-dark: rgba(45, 55, 72, 0.95);
  --glass-border-light: rgba(102, 126, 234, 0.15);
  --glass-border-dark: rgba(167, 139, 250, 0.25);
  --glass-blur: blur(12px);
  
  /* Neon Accents for Dark Mode */
  --neon-purple: #a78bfa;
  --neon-pink: #f472b6;
  --neon-blue: #60a5fa;
  --neon-teal: #2dd4bf;
  /* Light mode hero dynamic background tuning */
  --hero-overlay-light-accent1: rgba(102, 126, 234, 0.08);
  --hero-overlay-light-accent2: rgba(237, 100, 166, 0.06);
  --hero-dynamic-light-opacity: 0.15; /* Accessible subtle motion visibility */
  
  /* Animation Variables */
  --animation-speed: 0.3s;
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ============================================
     UNIFIED Z-INDEX SYSTEM
     Critical fix for layering conflicts
     ============================================ */
  --z-base: 1;                    /* Base content layer */
  --z-dropdown: 1000;             /* Dropdowns, popovers */
  --z-sticky: 1020;               /* Sticky headers, scroll-to-top */
  --z-fixed: 1030;                /* Fixed navbar, toolbars */
  --z-modal-backdrop: 1040;       /* Modal backgrounds */
  --z-modal: 1050;                /* Modal dialogs */
  --z-popover: 1060;              /* Popovers above modals */
  --z-tooltip: 1070;              /* Tooltips top layer */
  --z-notification: 9000;         /* Toast notifications */
  --z-orb-portal: 9500;           /* Orb portal markers (below canvas) */
  --z-chat-widget: 9800;          /* Chat widget container */
  --z-chat-window: 9900;          /* Chat window (when open) */
  --z-orb-canvas: 500;            /* Orb master canvas (interactive layer) */
  --z-overlay: 10000;             /* Full-screen overlays */
  --z-debug: 10001;               /* Debug/dev tools */
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #1a202c;
  transition: background-color var(--animation-speed) var(--animation-timing),
              color var(--animation-speed) var(--animation-timing);
}

/* Light theme text color override */
[data-bs-theme="light"] body,
[data-theme="light"] body {
  color: #0f1419 !important; /* Deep black text for light theme */
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #000000 !important; /* Pure black headings */
}

[data-bs-theme="light"] p,
[data-bs-theme="light"] li,
[data-bs-theme="light"] span,
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] span {
  color: #0f1419; /* Deep black body text */
}

/* Light Mode: Text Color Overrides for WCAG AA Compliance (4.5:1) */
/* Bootstrap uses CSS variables, so we override both the class AND the variable */
[data-bs-theme="light"] {
  --bs-primary-rgb: 13, 71, 161 !important; /* #0d47a1 - Deep blue */
  --bs-success-rgb: 27, 94, 32 !important; /* #1b5e20 - Deep green */
  --bs-danger-rgb: 183, 28, 28 !important; /* #b71c1c - Deep red */
  --bs-warning-rgb: 230, 81, 0 !important; /* #e65100 - Deep orange */
  --bs-info-rgb: 1, 87, 155 !important; /* #01579b - Deep cyan */
}

[data-bs-theme="light"] .text-primary,
[data-theme="light"] .text-primary,
html[data-bs-theme="light"] .text-primary,
html[data-theme="light"] .text-primary {
  color: #0d47a1 !important; /* Deep blue - 4.5:1 contrast on white */
  --bs-text-opacity: 1 !important;
}

[data-bs-theme="light"] .text-success,
[data-theme="light"] .text-success,
html[data-bs-theme="light"] .text-success,
html[data-theme="light"] .text-success {
  color: #1b5e20 !important; /* Deep green - 4.5:1 contrast on white */
  --bs-text-opacity: 1 !important;
}

[data-bs-theme="light"] .text-danger,
[data-theme="light"] .text-danger,
html[data-bs-theme="light"] .text-danger,
html[data-theme="light"] .text-danger {
  color: #b71c1c !important; /* Deep red - 4.5:1 contrast on white */
  --bs-text-opacity: 1 !important;
}

[data-bs-theme="light"] .text-warning,
[data-theme="light"] .text-warning,
html[data-bs-theme="light"] .text-warning,
html[data-theme="light"] .text-warning {
  color: #e65100 !important; /* Deep orange - 4.5:1 contrast on white */
  --bs-text-opacity: 1 !important;
}

[data-bs-theme="light"] .text-info,
[data-theme="light"] .text-info,
html[data-bs-theme="light"] .text-info,
html[data-theme="light"] .text-info {
  color: #01579b !important; /* Deep cyan - 4.5:1 contrast on white */
  --bs-text-opacity: 1 !important;
}

[data-bs-theme="light"] .text-muted,
[data-theme="light"] .text-muted {
  color: #4a5568 !important; /* Darker muted text */
}

/* ============================================
   LIGHT THEME (Opposition Coloring System)
   ============================================ */
[data-bs-theme="light"],
[data-theme="light"] {
  /* Background Strategy: Softer white with deeper text contrast */
  --bs-body-bg: #ffffff; /* Pure white for maximum contrast */
  --bs-body-color: #0f1419; /* Deep black text (WCAG AAA: 18.7:1) */
  --bs-heading-color: #000000; /* Pure black for headings (WCAG AAA: 21:1) */
  
  /* Text Hierarchy: Maximum Contrast */
  --text-primary: #0f1419; /* Body text - deep black */
  --text-secondary: #2d3748; /* Secondary text - dark gray (WCAG AAA: 12:1) */
  --text-muted: #4a5568; /* Muted text - medium gray (WCAG AA: 7.2:1) */
  
  /* Navigation: Glassmorphism with Purple Accents */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-text: #0f1419; /* Deep black for navigation */
  --nav-border: rgba(102, 126, 234, 0.25); /* Visible purple border */
  
  /* Hero/Section: Clean white with gradient accents */
  --hero-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --hero-text: #000000; /* Pure black for hero text */
  --hero-subtitle: #2d3748; /* Dark gray subtitle */
  
  /* Cards: Clear Hierarchy with Purple Accents */
  --card-bg: #f8f9fa; /* Light gray cards for depth */
  --card-text: #0f1419; /* Deep black text */
  --card-border: rgba(102, 126, 234, 0.25); /* Visible purple border */
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* Subtle black shadow */
  
  /* Background Layers - CRITICAL for main.css compatibility */
  --bg-primary: #ffffff; /* Pure white body background */
  --bg-secondary: #f8f9fa; /* Light gray sections (subtle hierarchy) */
  --bg-tertiary: #e9ecef; /* Medium gray alternates */
  
  /* Borders */
  --border-color: rgba(102, 126, 234, 0.18); /* Visible purple borders */
  
  /* Navigation & Footer - CRITICAL for main.css */
  --navbar-bg: rgba(248, 250, 252, 0.95); /* Warm tinted glassmorphism */
  --footer-bg: #f0f3f7; /* Slightly darker than body */
  --footer-text: #4a5568; /* Secondary text color */
  
  /* Accent Colors: Vibrant Purples/Pinks (Match Dark Mode Energy) */
  --accent-primary: #667eea; /* SinAI purple */
  --accent-secondary: #764ba2; /* Deep purple */
  --accent-tertiary: #ed64a6; /* Pink accent */
  
  /* Interactive States: Clear Feedback */
  --hover-bg: rgba(102, 126, 234, 0.08);
  --active-bg: rgba(102, 126, 234, 0.15);
  --focus-ring: rgba(102, 126, 234, 0.5);
  
  /* Gradients: Maintain Energy of Dark Mode */
  --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ed64a6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  
  /* Shadows: Colored Shadows (NOT gray) - Strengthened for Depth */
  --shadow-sm: 0 2px 6px rgba(102, 126, 234, 0.12);
  --shadow-md: 0 6px 16px rgba(102, 126, 234, 0.18);
  --shadow-lg: 0 12px 32px rgba(102, 126, 234, 0.25);
  
  /* Footer */
  --footer-bg: #f5f6f8;
  --footer-text: #4a5568;
  --footer-border: rgba(102, 126, 234, 0.12);
  
  /* ============================================
     BOOTSTRAP VARIABLE OVERRIDES - Light Theme
     Critical for proper contrast and visibility
     ============================================ */
  
  /* Links */
  --bs-link-color: #4c3fb5; /* Darker purple (4.5:1 WCAG AA) */
  --bs-link-hover-color: #3a2d8f; /* Even darker on hover (6:1) */
  --bs-link-decoration: none;
  --bs-link-hover-decoration: underline;
  
  /* Buttons - Primary (Purple Gradient) */
  --bs-btn-bg: #667eea;
  --bs-btn-color: #ffffff;
  --bs-btn-border-color: #667eea;
  --bs-btn-hover-bg: #5a67d8;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-border-color: #5a67d8;
  --bs-btn-active-bg: #4c3fb5;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-border-color: #4c3fb5;
  --bs-btn-disabled-bg: #e2e8f0;
  --bs-btn-disabled-color: #94a3b8;
  --bs-btn-disabled-border-color: #e2e8f0;
  
  /* Buttons - Secondary (Outlined) */
  --bs-btn-secondary-bg: transparent;
  --bs-btn-secondary-color: #4c3fb5;
  --bs-btn-secondary-border-color: #4c3fb5;
  --bs-btn-secondary-hover-bg: #4c3fb5;
  --bs-btn-secondary-hover-color: #ffffff;
  
  /* Forms & Inputs */
  --bs-input-bg: #ffffff;
  --bs-input-color: #0f1419;
  --bs-input-border-color: #cbd5e0;
  --bs-input-placeholder-color: #94a3b8;
  --bs-input-focus-bg: #ffffff;
  --bs-input-focus-color: #0f1419;
  --bs-input-focus-border-color: #667eea;
  --bs-input-disabled-bg: #f7fafc;
  --bs-input-disabled-color: #94a3b8;
  
  /* Focus Ring - Highly Visible */
  --bs-focus-ring-color: rgba(102, 126, 234, 0.5);
  --bs-focus-ring-width: 3px;
  --bs-focus-ring-opacity: 1;
  
  /* Borders */
  --bs-border-color: #e2e8f0;
  --bs-border-width: 1px;
  --bs-border-radius: 8px;
  
  /* State Colors with Proper Contrast */
  --bs-success: #059669; /* Green (7:1) */
  --bs-success-bg: #d1fae5;
  --bs-success-border: #6ee7b7;
  --bs-info: #0284c7; /* Blue (7:1) */
  --bs-info-bg: #dbeafe;
  --bs-info-border: #7dd3fc;
  --bs-warning: #d97706; /* Orange (7:1) */
  --bs-warning-bg: #fed7aa;
  --bs-warning-border: #fbbf24;
  --bs-danger: #dc2626; /* Red (7:1) */
  --bs-danger-bg: #fecaca;
  --bs-danger-border: #f87171;
}

/* Hero Divider - Section transition gradient */
.hero-divider {
  height: 48px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.12) 40%, transparent 100%);
  margin-top: -24px; /* overlap slightly with hero */
  pointer-events: none;
}

[data-theme="dark"] .hero-divider,
[data-bs-theme="dark"] .hero-divider {
  background: linear-gradient(to bottom, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.2) 40%, rgba(15,20,25,0) 100%);
}

/* Light Theme Body & HTML - Clean solid white for maximum clarity */
html[data-bs-theme="light"],
html[data-theme="light"],
[data-bs-theme="light"] body,
[data-theme="light"] body {
  background-color: #ffffff !important; /* Pure solid white - no gradients */
  background-image: none !important; /* Remove all gradient overlays */
  color: #0f1419 !important; /* Deep black text */
}

/* Light Theme Header/Navigation - Glassmorphism with strong framing */
[data-bs-theme="light"] .navbar,
[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.75) !important; /* Light glass effect - subtle, not white */
  border-bottom: 1px solid rgba(102, 126, 234, 0.15); /* Softer border matching dark mode style */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  position: sticky !important;
  top: 0;
  z-index: var(--z-fixed) !important;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08); /* Subtle shadow matching dark mode */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safety overrides: ensure canvases/overlays never wash UI in light mode */
[data-bs-theme="light"] .orb-canvas,
[data-theme="light"] .orb-canvas,
[data-bs-theme="light"] canvas[data-role="background"],
[data-theme="light"] canvas[data-role="background"],
[data-bs-theme="light"] .particles-canvas,
[data-theme="light"] .particles-canvas {
  position: absolute !important;
  z-index: 0 !important; /* beneath all UI */
  pointer-events: none !important;
  opacity: var(--hero-dynamic-light-opacity) !important; /* restore gentle dynamic presence */
}

/* Any full-screen overlay in light mode must be transparent unless explicitly shown */
/* NOTE: .hero::before is handled separately in hero section below with proper opacity */
[data-bs-theme="light"] .overlay,
[data-theme="light"] .overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Elevate key UI layers explicitly above canvases */
[data-bs-theme="light"] header,
[data-theme="light"] header,
[data-bs-theme="light"] .site-header,
[data-theme="light"] .site-header {
  position: sticky;
  z-index: var(--z-fixed) !important; /* 1030: above content, below modals */
}

[data-bs-theme="light"] .hero-content,
[data-theme="light"] .hero-content,
[data-bs-theme="light"] main,
[data-theme="light"] main {
  position: relative;
  z-index: var(--z-base) !important; /* 1: base layer, above overlays/canvases */
}

[data-bs-theme="light"] .navbar-brand,
[data-theme="light"] .navbar-brand {
  color: #4c3fb5 !important; /* Darker purple for WCAG AA (4.5:1) */
}

/* Logo styling - circular-rectangle design */
[data-bs-theme="light"] .navbar-brand img,
[data-theme="light"] .navbar-brand img,
[data-bs-theme="dark"] .navbar-brand img,
[data-theme="dark"] .navbar-brand img {
  border-radius: 12px !important; /* Rounded square (circular-rectangle) */
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

[data-bs-theme="light"] .navbar-brand img:hover,
[data-theme="light"] .navbar-brand img:hover,
[data-bs-theme="dark"] .navbar-brand img:hover,
[data-theme="dark"] .navbar-brand img:hover {
  transform: scale(1.05);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

[data-bs-theme="light"] .nav-link,
[data-theme="light"] .nav-link {
  color: #1a1f2e !important; /* Rich dark text */
  transition: color 0.2s ease, background-color 0.2s ease;
}

[data-bs-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link:hover {
  color: #4c3fb5 !important; /* Darker purple for WCAG AA (4.5:1) */
  background-color: rgba(76, 63, 181, 0.08);
}

[data-bs-theme="light"] .nav-link.active,
[data-theme="light"] .nav-link.active {
  color: #4c3fb5 !important; /* Darker purple for WCAG AA (4.5:1) */
  background-color: rgba(76, 63, 181, 0.12);
}

/* Light Theme Hero Sections - Clean and clear */
[data-bs-theme="light"] .hero,
[data-theme="light"] .hero,
[data-bs-theme="light"] section,
[data-theme="light"] section {
  color: #0f1419 !important; /* Deep black text */
  background-color: transparent; /* Inherit from body */
  background-image: none !important; /* No overlays */
}

/* Hero Background - Light Theme: Subtle gradient without overlay */
[data-bs-theme="light"] .hero,
[data-theme="light"] .hero {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.04) 0%,  /* Very subtle purple */
    rgba(118, 75, 162, 0.03) 50%,  /* Very subtle deep purple */
    rgba(237, 100, 166, 0.02) 100% /* Very subtle pink accent */
  );
  position: relative;
}

[data-bs-theme="light"] .hero::before,
[data-theme="light"] .hero::before {
  content: '' !important; /* Re-enable light overlay */
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  display: block !important;
  opacity: var(--hero-dynamic-light-opacity, 0.15) !important; /* Visible but subtle */
  background-image: radial-gradient(circle at 30% 50%, var(--hero-overlay-light-accent1) 0%, transparent 55%),
                    radial-gradient(circle at 70% 80%, var(--hero-overlay-light-accent2) 0%, transparent 55%);
  mix-blend-mode: normal;
  pointer-events: none !important;
  z-index: 0; /* Beneath content */
}

/* Ensure hero content is above overlay */
[data-bs-theme="light"] .hero-content,
[data-theme="light"] .hero-content,
[data-bs-theme="light"] .hero *,
[data-theme="light"] .hero * {
  position: relative;
  z-index: 1;
}

/* Hero Background - Dark Theme: Rich Gradient */
[data-bs-theme="dark"] .hero,
[data-theme="dark"] .hero {
  background: linear-gradient(135deg,
    #1a2a6c 0%,
    #2d1f4f 50%,
    #1a2a6c 100%
  );
  position: relative;
}

[data-bs-theme="dark"] .hero::before,
[data-theme="dark"] .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

[data-bs-theme="light"] .hero h1,
[data-theme="light"] .hero h1,
[data-bs-theme="light"] .display-1,
[data-theme="light"] .display-1,
[data-bs-theme="light"] .display-2,
[data-theme="light"] .display-2,
[data-bs-theme="light"] .display-3,
[data-theme="light"] .display-3,
[data-bs-theme="light"] .display-4,
[data-theme="light"] .display-4,
[data-bs-theme="light"] h1, [data-bs-theme="light"] h2, [data-bs-theme="light"] h3,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3 {
  color: #1a202c !important;
}

[data-bs-theme="light"] .lead,
[data-theme="light"] .lead,
[data-bs-theme="light"] p,
[data-theme="light"] p {
  color: #4a5568 !important;
}

[data-bs-theme="light"] .text-muted,
[data-theme="light"] .text-muted {
  color: #718096 !important;
}

/* Light Theme Cards - Warm tinted cards with clear depth */
[data-bs-theme="light"] .card,
[data-theme="light"] .card {
  background-color: #f4f6f9 !important; /* Warm tinted neutral */
  border: 1px solid rgba(102, 126, 234, 0.18); /* Visible purple border */
  color: #2d3748;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12), 
              0 1px 4px rgba(0, 0, 0, 0.08); /* Strong shadow with layered depth */
}

[data-bs-theme="light"] .card:hover,
[data-theme="light"] .card:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15), 
              0 4px 8px rgba(0, 0, 0, 0.10); /* Strong elevation on hover */
  border-color: rgba(102, 126, 234, 0.25);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

[data-bs-theme="light"] .card-title,
[data-theme="light"] .card-title {
  color: #1a202c !important;
}

[data-bs-theme="light"] .card-text,
[data-theme="light"] .card-text {
  color: #4a5568 !important;
}

/* Light Theme Footer */
[data-bs-theme="light"] .site-footer,
[data-theme="light"] .site-footer {
  background-color: #f7fafc !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #4a5568;
}

[data-bs-theme="light"] .footer-links a,
[data-theme="light"] .footer-links a {
  color: #4a5568 !important;
}

[data-bs-theme="light"] .footer-links a:hover,
[data-theme="light"] .footer-links a:hover {
  color: #4c3fb5 !important; /* Darker purple for better contrast */
}

/* Light Theme Buttons - Explicit Styling */
[data-bs-theme="light"] .btn,
[data-theme="light"] .btn {
  font-weight: 600;
  border-width: 2px;
  transition: all 0.2s ease;
}

[data-bs-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

[data-bs-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b3f8a 100%);
  border-color: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

[data-bs-theme="light"] .btn-primary:active,
[data-theme="light"] .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

[data-bs-theme="light"] .btn-secondary,
[data-theme="light"] .btn-secondary,
[data-bs-theme="light"] .btn-outline-primary,
[data-theme="light"] .btn-outline-primary {
  background: transparent;
  border-color: #4c3fb5;
  color: #4c3fb5;
}

[data-bs-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-secondary:hover,
[data-bs-theme="light"] .btn-outline-primary:hover,
[data-theme="light"] .btn-outline-primary:hover {
  background: #4c3fb5;
  border-color: #4c3fb5;
  color: #ffffff;
}

/* Light Theme Forms & Inputs */
[data-bs-theme="light"] input,
[data-bs-theme="light"] textarea,
[data-bs-theme="light"] select,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background-color: #ffffff;
  color: #0f1419;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
}

[data-bs-theme="light"] input:focus,
[data-bs-theme="light"] textarea:focus,
[data-bs-theme="light"] select:focus,
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
  outline: none;
}

[data-bs-theme="light"] input::placeholder,
[data-bs-theme="light"] textarea::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94a3b8;
}

/* Light Theme Links */
[data-bs-theme="light"] a,
[data-theme="light"] a {
  color: #4c3fb5;
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-bs-theme="light"] a:hover,
[data-theme="light"] a:hover {
  color: #3a2d8f;
  text-decoration: underline;
}

[data-bs-theme="light"] a:focus,
[data-theme="light"] a:focus {
  outline: 3px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

/* Light Theme Background Sections - Inspired by dark mode colors but lighter */
[data-bs-theme="light"] .bg-light,
[data-theme="light"] .bg-light {
  background-color: #edf2f7 !important; /* Lighter blue-gray */
  color: #1a202c !important;
}

[data-bs-theme="light"] .bg-white,
[data-theme="light"] .bg-white {
  background-color: #f7fafc !important; /* Override pure white utility */
  color: #1a202c !important;
}

/* Light Theme - Sections with alternating subtle backgrounds */
[data-bs-theme="light"] section,
[data-theme="light"] section {
  background-color: transparent !important;
  color: #1a202c !important;
}

[data-bs-theme="light"] section.bg-light,
[data-theme="light"] section.bg-light {
  background-color: #edf2f7 !important; /* Alternating section color */
  color: #1a202c !important;
}

/* Main container uses body background */
html[data-bs-theme="light"] main,
html[data-theme="light"] main {
  background-color: transparent !important;
}

html[data-bs-theme="light"] .container,
html[data-theme="light"] .container {
  background-color: transparent !important;
}

/* Ensure all div text is visible in light theme */
[data-bs-theme="light"] div,
[data-theme="light"] div {
  color: inherit;
}

[data-bs-theme="light"] .container,
[data-bs-theme="light"] .row,
[data-bs-theme="light"] .col,
[data-theme="light"] .container,
[data-theme="light"] .row,
[data-theme="light"] .col {
  color: #1a202c;
}

/* ============================================
   LIGHT THEME MOBILE RESPONSIVE STYLES
   Critical Missing Variables for Small Screens
   ============================================ */

/* Mobile Small (≤576px) - Portrait Phones */
@media (max-width: 576px) {
  [data-bs-theme="light"],
  [data-theme="light"] {
    /* Mobile Typography */
    --bs-body-font-size: 16px;
    --bs-btn-font-size: 1rem;
    --mobile-touch-target: 44px;
    
    /* Mobile Spacing */
    --bs-gutter-x: 1rem;
    --bs-border-width: 2px;
    --bs-focus-ring-width: 4px;
  }
  
  /* Mobile Buttons - 44px touch targets */
  [data-bs-theme="light"] .btn,
  [data-theme="light"] .btn {
    min-height: 44px !important;
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
  }
  
  /* Mobile Forms - Prevent iOS zoom */
  [data-bs-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
  [data-bs-theme="light"] textarea,
  [data-bs-theme="light"] select,
  [data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
  [data-theme="light"] textarea,
  [data-theme="light"] select {
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 0.75rem 1rem !important;
    border-width: 2px !important;
    border-color: #cbd5e0 !important;
  }
  
  /* Mobile Nav - Full width */
  [data-bs-theme="light"] .navbar-collapse,
  [data-theme="light"] .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    margin: 0.5rem -1rem !important;
    padding: 1rem !important;
    border: 2px solid rgba(102, 126, 234, 0.15) !important;
  }
  
  [data-bs-theme="light"] .nav-link,
  [data-theme="light"] .nav-link {
    min-height: 44px !important;
    padding: 0.875rem 1rem !important;
    color: #0f1419 !important;
  }
  
  /* Mobile Cards */
  [data-bs-theme="light"] .card,
  [data-theme="light"] .card {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
  }
  
  /* Mobile Headings - Responsive */
  [data-bs-theme="light"] h1,
  [data-theme="light"] h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }
  
  [data-bs-theme="light"] h2,
  [data-theme="light"] h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
  
  [data-bs-theme="light"] h3,
  [data-theme="light"] h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }
  
  /* Mobile Hamburger */
  [data-bs-theme="light"] .navbar-toggler,
  [data-theme="light"] .navbar-toggler {
    min-width: 44px !important;
    min-height: 44px !important;
    border: 2px solid rgba(102, 126, 234, 0.4) !important;
  }
  
  /* Mobile Focus - Visible */
  [data-bs-theme="light"] *:focus-visible,
  [data-theme="light"] *:focus-visible {
    outline: 4px solid rgba(102, 126, 234, 0.6) !important;
    outline-offset: 2px !important;
  }
  
  /* Mobile Container */
  [data-bs-theme="light"] .container,
  [data-theme="light"] .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Mobile Medium (577px - 767px) */
@media (min-width: 577px) and (max-width: 767px) {
  [data-bs-theme="light"] .btn,
  [data-theme="light"] .btn {
    min-height: 42px !important;
  }
  
  [data-bs-theme="light"] input,
  [data-bs-theme="light"] select,
  [data-theme="light"] input,
  [data-theme="light"] select {
    min-height: 42px !important;
    font-size: 15px !important;
  }
}

/* ============================================
   DARK THEME
   ============================================ */

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-1, .display-2, .display-3, .display-4 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* SinAI Branding */
.sinai-brand {
  color: var(--sinai-primary);
}

.sinai-bg {
  background: var(--sinai-gradient);
}

/* Navigation */
.navbar-brand {
  font-weight: bold;
  color: var(--sinai-primary) !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

/* Theme Toggle Button - Always Visible */
.theme-toggle-btn {
  position: absolute;
  right: 70px; /* Space for hamburger menu */
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-modal);
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--nav-text);
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  color: var(--sinai-primary);
  transform: translateY(-50%) scale(1.1);
}

/* On desktop, move theme toggle to right side */
@media (min-width: 992px) {
  .theme-toggle-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: 1rem;
    order: 3; /* After nav items */
  }
  
  .theme-toggle-btn:hover {
    transform: scale(1.1);
  }
}

/* Modern Navbar Styling */
.navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

/* Removed generic .navbar-light - using theme-specific styles instead */

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--sinai-gradient);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--sinai-primary) !important;
  transform: translateY(-2px);
}

/* Accessibility: ensure footer and policy mailto links meet 4.5:1 contrast */
footer a.nav-link,
footer a:not(.btn):not(.nav-link),
[data-bs-theme="dark"] footer a,
[data-theme="dark"] footer a {
  color: #e2e8f0 !important; /* light slate */
}

footer a.nav-link:hover,
footer a:not(.btn):not(.nav-link):hover {
  color: #f0f6ff !important;
}

/* Privacy page email links */
.content-max-width-800 a[href^="mailto:"] {
  color: #2563eb; /* accessible blue on light background */
}
[data-bs-theme="dark"] .content-max-width-800 a[href^="mailto:"],
[data-theme="dark"] .content-max-width-800 a[href^="mailto:"] {
  color: #93c5fd; /* lighter blue for dark background contrast */
}

/* --- A11y Contrast Remediation Overrides --- */
/* Badges using *-subtle utilities: force stronger foreground */
.badge.bg-primary-subtle.text-primary,
.badge.bg-success-subtle.text-success,
.badge.bg-warning-subtle.text-warning,
.badge.bg-info-subtle.text-info {
  color: #123 !important; /* placeholder improved base; will be overridden below per theme */
}

[data-bs-theme="light"] .badge.bg-primary-subtle.text-primary,
[data-theme="light"] .badge.bg-primary-subtle.text-primary,
[data-bs-theme="light"] .badge.bg-success-subtle.text-success,
[data-theme="light"] .badge.bg-success-subtle.text-success,
[data-bs-theme="light"] .badge.bg-warning-subtle.text-warning,
[data-theme="light"] .badge.bg-warning-subtle.text-warning,
[data-bs-theme="light"] .badge.bg-info-subtle.text-info,
[data-theme="light"] .badge.bg-info-subtle.text-info {
  color: #1e293b !important; /* slate-800 for sufficient contrast */
  font-weight: 600;
}

[data-bs-theme="dark"] .badge.bg-primary-subtle.text-primary,
[data-theme="dark"] .badge.bg-primary-subtle.text-primary,
[data-bs-theme="dark"] .badge.bg-success-subtle.text-success,
[data-theme="dark"] .badge.bg-success-subtle.text-success,
[data-bs-theme="dark"] .badge.bg-warning-subtle.text-warning,
[data-theme="dark"] .badge.bg-warning-subtle.text-warning,
[data-bs-theme="dark"] .badge.bg-info-subtle.text-info,
[data-theme="dark"] .badge.bg-info-subtle.text-info {
  color: #f1f5f9 !important; /* near-white */
  font-weight: 600;
}

/* Light Mode: Badge Background Overrides for WCAG AA Compliance */
html[data-bs-theme="light"] .badge.bg-warning,
[data-bs-theme="light"] .badge.bg-warning,
[data-theme="light"] .badge.bg-warning {
  --bs-badge-color: #ffffff !important;
  background-color: #e65100 !important; /* Deep orange - 4.5:1 with white text */
  color: #ffffff !important;
}

html[data-bs-theme="light"] .badge.bg-info,
[data-bs-theme="light"] .badge.bg-info,
[data-theme="light"] .badge.bg-info {
  --bs-badge-color: #ffffff !important;
  background-color: #0081a1 !important; /* Deep cyan - 4.5:1 with white text */
  color: #ffffff !important;
}

html[data-bs-theme="light"] .badge.bg-primary,
[data-bs-theme="light"] .badge.bg-primary,
[data-theme="light"] .badge.bg-primary {
  --bs-badge-color: #ffffff !important;
  background-color: #0d47a1 !important;
  color: #ffffff !important;
}

html[data-bs-theme="light"] .badge.bg-success,
[data-bs-theme="light"] .badge.bg-success,
[data-theme="light"] .badge.bg-success {
  --bs-badge-color: #ffffff !important;
  background-color: #1b5e20 !important;
  color: #ffffff !important;
}

html[data-bs-theme="light"] .badge.bg-danger,
[data-bs-theme="light"] .badge.bg-danger,
[data-theme="light"] .badge.bg-danger {
  --bs-badge-color: #ffffff !important;
  background-color: #b71c1c !important;
  color: #ffffff !important;
}

/* Accessibility: Custom badge class with WCAG AA compliant contrast (4.5:1) */
.badge.badge-sinai-info,
.badge.badge-sinai-info.small {
  background-color: #0081a1 !important; /* Pa11y recommended: exactly 4.5:1 contrast with white text */
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  border-radius: 0.25rem;
}

[data-bs-theme="dark"] .badge.bg-info,
[data-theme="dark"] .badge.bg-info,
[data-bs-theme="dark"] .badge.bg-info.small,
[data-theme="dark"] .badge.bg-info.small {
  background-color: #0891b2 !important;
  color: #ffffff !important;
}

/* Hero / metric display primary text ensure contrast */
.display-4.text-primary, .display-6.text-primary, h3.text-primary, .btn.btn-outline-primary, .btn.btn-outline-dark, .btn.btn-outline-warning {
  /* Provide fallback color variables if original is too low contrast */
  filter: none;
}

[data-bs-theme="light"] .display-4.text-primary,
[data-theme="light"] .display-4.text-primary,
[data-bs-theme="light"] .display-6.text-primary,
[data-theme="light"] .display-6.text-primary,
[data-bs-theme="light"] h3.text-primary,
[data-theme="light"] h3.text-primary {
  color: #1e3a8a !important; /* deeper blue */
}

[data-bs-theme="dark"] .display-4.text-primary,
[data-theme="dark"] .display-4.text-primary,
[data-bs-theme="dark"] .display-6.text-primary,
[data-theme="dark"] .display-6.text-primary,
[data-bs-theme="dark"] h3.text-primary,
[data-theme="dark"] h3.text-primary {
  color: #93c5fd !important; /* light blue for dark bg */
}

/* Outline button variants: adjust text color for contrast */
.btn.btn-outline-primary.btn-lg, .btn.btn-outline-primary.btn-sm { color: #1e3a8a !important; }
[data-bs-theme="dark"] .btn.btn-outline-primary.btn-lg, [data-theme="dark"] .btn.btn-outline-primary.btn-lg,
[data-bs-theme="dark"] .btn.btn-outline-primary.btn-sm, [data-theme="dark"] .btn.btn-outline-primary.btn-sm { color: #bfdbfe !important; }

.btn.btn-outline-dark.btn-sm { color: #1e293b !important; }
[data-bs-theme="dark"] .btn.btn-outline-dark.btn-sm, [data-theme="dark"] .btn.btn-outline-dark.btn-sm { color: #e2e8f0 !important; }

.btn.btn-outline-warning.btn-sm { color: #92400e !important; }
[data-bs-theme="dark"] .btn.btn-outline-warning.btn-sm, [data-theme="dark"] .btn.btn-outline-warning.btn-sm { color: #fde68a !important; }

/* Global mailto link accessibility */
a[href^="mailto:"] { text-decoration: underline; }
[data-bs-theme="dark"] a[href^="mailto:"], [data-theme="dark"] a[href^="mailto:"] { color: #93c5fd !important; }

/* Accessibility: Fix .btn-success contrast (WCAG AA 4.5:1) */
.btn-success,
.btn-success.btn-lg {
  background-color: #003e21 !important; /* Darker green for 4.5:1 with white text */
  border-color: #003e21 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn-success:hover,
.btn-success.btn-lg:hover {
  background-color: #002817 !important;
  border-color: #002817 !important;
  color: #ffffff !important;
}

/* Accessibility: Fix .text-success contrast on light backgrounds */
.text-success,
h3.text-success,
.display-6.text-success {
  color: #006837 !important; /* Darker green for 4.5:1 on white bg */
}

[data-bs-theme="dark"] .text-success,
[data-theme="dark"] .text-success,
[data-bs-theme="dark"] h3.text-success,
[data-theme="dark"] h3.text-success,
[data-bs-theme="dark"] .display-6.text-success,
[data-theme="dark"] .display-6.text-success {
  color: #4ade80 !important; /* Lighter green for dark bg */
}

/* Accessibility: Fix .btn-success contrast (WCAG AA 4.5:1) */
.btn-success,
.btn-success.btn-lg {
  background-color: #003e21 !important; /* Darker green for 4.5:1 with white text */
  border-color: #003e21 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn-success:hover,
.btn-success.btn-lg:hover {
  background-color: #002817 !important;
  border-color: #002817 !important;
  color: #ffffff !important;
}

/* Accessibility: Fix .text-success contrast on light backgrounds */
.text-success,
h3.text-success,
.display-6.text-success {
  color: #006837 !important; /* Darker green for 4.5:1 on white bg */
}

[data-bs-theme="dark"] .text-success,
[data-theme="dark"] .text-success,
[data-bs-theme="dark"] h3.text-success,
[data-theme="dark"] h3.text-success,
[data-bs-theme="dark"] .display-6.text-success,
[data-theme="dark"] .display-6.text-success {
  color: #4ade80 !important; /* Lighter green for dark bg */
}

/* Accessibility: Fix .btn-light contrast (WCAG AA 4.5:1) */
.btn-light,
.btn-light.btn-lg {
  background-color: #f8f9fa !important;
  border-color: #e9ecef !important;
  color: #0f003d !important; /* Dark purple for 4.5:1 contrast on light bg */
  font-weight: 600;
}

.btn-light:hover,
.btn-light.btn-lg:hover {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #0f003d !important;
}

[data-bs-theme="dark"] .btn-light,
[data-theme="dark"] .btn-light,
[data-bs-theme="dark"] .btn-light.btn-lg,
[data-theme="dark"] .btn-light.btn-lg {
  background-color: #343a40 !important;
  border-color: #495057 !important;
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-light.btn-lg:hover,
[data-theme="dark"] .btn-light.btn-lg:hover {
  background-color: #495057 !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}


.dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease;
}

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

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--sinai-primary);
  transform: translateX(5px);
}

/* Theme Toggle Slot */
.theme-toggle-slot {
  display: inline-block;
  width: 44px;
  height: 36px;
  margin-left: 0.25rem;
}

/* Logo Styling */
.navbar-brand img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    max-height: 32px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    max-height: 28px;
  }
}

/* Buttons */
.btn-sinai,
.btn-primary {
  background: var(--sinai-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-sinai:hover,
.btn-primary:hover {
  background: var(--sinai-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  color: white;
}

/* Light Mode: Outline Button Color Overrides for WCAG AA Compliance */
html[data-bs-theme="light"] .btn.btn-outline-primary,
[data-bs-theme="light"] .btn.btn-outline-primary,
[data-theme="light"] .btn.btn-outline-primary {
  --bs-btn-color: #0d47a1 !important;
  --bs-btn-border-color: #0d47a1 !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #0d47a1 !important;
  color: #0d47a1 !important;
  border-color: #0d47a1 !important;
}

html[data-bs-theme="light"] .btn.btn-outline-success,
[data-bs-theme="light"] .btn.btn-outline-success,
[data-theme="light"] .btn.btn-outline-success {
  --bs-btn-color: #1b5e20 !important;
  --bs-btn-border-color: #1b5e20 !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #1b5e20 !important;
  color: #1b5e20 !important;
  border-color: #1b5e20 !important;
}

html[data-bs-theme="light"] .btn.btn-outline-danger,
[data-bs-theme="light"] .btn.btn-outline-danger,
[data-theme="light"] .btn.btn-outline-danger {
  --bs-btn-color: #b71c1c !important;
  --bs-btn-border-color: #b71c1c !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #b71c1c !important;
  color: #b71c1c !important;
  border-color: #b71c1c !important;
}

html[data-bs-theme="light"] .btn.btn-outline-warning,
[data-bs-theme="light"] .btn.btn-outline-warning,
[data-theme="light"] .btn.btn-outline-warning {
  --bs-btn-color: #e65100 !important;
  --bs-btn-border-color: #e65100 !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #e65100 !important;
  color: #e65100 !important;
  border-color: #e65100 !important;
}

html[data-bs-theme="light"] .btn.btn-outline-info,
[data-bs-theme="light"] .btn.btn-outline-info,
[data-theme="light"] .btn.btn-outline-info {
  --bs-btn-color: #01579b !important;
  --bs-btn-border-color: #01579b !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #01579b !important;
  color: #01579b !important;
  border-color: #01579b !important;
}

/* Outline Button Variant - Accessibility Enhanced (WCAG AA 4.5:1) */
/* Bootstrap 5.3.2: .btn uses color: var(--bs-btn-color), loaded from CDN BEFORE our CSS
   Match all variants with ultra-high specificity */
.btn.btn-outline-sinai,
.btn.btn-sm.btn-outline-sinai,
.btn.btn-lg.btn-outline-sinai {
  /* Override Bootstrap's CSS custom property system */
  --bs-btn-color: #2b3546 !important;
  --bs-btn-border-color: #2b3546 !important;
  --bs-btn-bg: #ffffff !important;  /* CHANGED: White background instead of transparent */
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #2b3546 !important;
  --bs-btn-hover-border-color: #2b3546 !important;
  --bs-btn-active-color: #fff !important;
  --bs-btn-active-bg: #2b3546 !important;
  --bs-btn-active-border-color: #2b3546 !important;
  --bs-btn-disabled-color: #2b3546 !important;
  --bs-btn-disabled-bg: #ffffff !important;  /* CHANGED: White background for disabled */
  --bs-btn-disabled-border-color: #2b3546 !important;
  
  /* ALSO directly override computed properties (belt AND suspenders approach) */
  background: #ffffff !important;  /* CHANGED: White background */
  background-color: #ffffff !important;  /* CHANGED: White background */
  border: 2px solid #2b3546 !important;
  border-color: #2b3546 !important;
  color: #2b3546 !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure icons inside buttons also get the correct color */
.btn.btn-outline-sinai i,
.btn.btn-sm.btn-outline-sinai i,
.btn.btn-lg.btn-outline-sinai i {
  color: #2b3546 !important;
}

/* NUCLEAR: Force color on ALL child elements including pseudo-elements */
.btn.btn-outline-sinai *,
.btn.btn-sm.btn-outline-sinai *,
.btn.btn-lg.btn-outline-sinai * {
  color: inherit !important;
}

.btn.btn-outline-sinai::before,
.btn.btn-outline-sinai::after,
.btn.btn-sm.btn-outline-sinai::before,
.btn.btn-sm.btn-outline-sinai::after,
.btn.btn-lg.btn-outline-sinai::before,
.btn.btn-lg.btn-outline-sinai::after {
  color: #2b3546 !important;
}

/* CRITICAL: Override link pseudo-classes for <a> tags with .btn-outline-sinai */
/* NUCLEAR OPTION: Separate each pseudo-class to maximize specificity */
a.btn.btn-outline-sinai:link {
  color: #2b3546 !important;
  --bs-btn-color: #2b3546 !important;
}
a.btn.btn-outline-sinai:visited {
  color: #2b3546 !important;
  --bs-btn-color: #2b3546 !important;
}
a.btn.btn-sm.btn-outline-sinai:link {
  color: #2b3546 !important;
  --bs-btn-color: #2b3546 !important;
}
a.btn.btn-sm.btn-outline-sinai:visited {
  color: #2b3546 !important;
  --bs-btn-color: #2b3546 !important;
}
a.btn.btn-lg.btn-outline-sinai:link {
  color: #2b3546 !important;
  --bs-btn-color: #2b3546 !important;
}
a.btn.btn-lg.btn-outline-sinai:visited {
  color: #2b3546 !important;
  --bs-btn-color: #2b3546 !important;
}

/* Hover and active states - keep white text on gradient */
a.btn.btn-outline-sinai:hover,
a.btn.btn-outline-sinai:active,
a.btn.btn-sm.btn-outline-sinai:hover,
a.btn.btn-sm.btn-outline-sinai:active,
a.btn.btn-lg.btn-outline-sinai:hover,
a.btn.btn-lg.btn-outline-sinai:active {
  color: #fff !important;
  --bs-btn-color: #fff !important;
}

a.btn.btn-outline-sinai:hover i,
a.btn.btn-sm.btn-outline-sinai:hover i,
a.btn.btn-lg.btn-outline-sinai:hover i {
  color: #fff !important;
}

.btn.btn-outline-sinai:hover,
.btn.btn-sm.btn-outline-sinai:hover,
.btn.btn-lg.btn-outline-sinai:hover {
  --bs-btn-hover-bg: var(--sinai-gradient) !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-border-color: transparent !important;
  
  background: var(--sinai-gradient) !important;
  border-color: transparent !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Cards - Modern Elevated Design */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--animation-speed) var(--animation-timing),
              box-shadow var(--animation-speed) var(--animation-timing);
  overflow: hidden;
  /* Removed generic white background - using theme-specific styles */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Gradient Card Variant */
.card-gradient {
  background: var(--sinai-gradient);
  color: white;
}

.card-gradient .card-title,
.card-gradient .card-text {
  color: white;
}

/* Glass Morphism Card */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* Icon Sizing Classes */
.product-icon,
.product-icon-sm,
.team-avatar,
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.product-icon {
  width: 60px;
  height: 60px;
}

.product-icon-sm {
  width: 40px;
  height: 40px;
}

.team-avatar,
.feature-icon {
  width: 80px;
  height: 80px;
}

/* Hero Section - Modern Gradient Background */
.hero {
  background: var(--sinai-gradient);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

/* Animated Background Particles */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

/* Footer */
.footer {
  background-color: var(--sinai-dark);
  color: white;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 767.98px) {
  .hero {
    padding: 2rem 0;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Animations - Modern & Smooth */
@keyframes fadeIn {
  from { 
    opacity: 0;
  }
  to { 
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

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

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ========================================
   DARK MODE - Enhanced Modern Styling
   ======================================== */

[data-theme="dark"] {
  /* Dark Background Colors */
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #2d3748;
  
  /* Dark Text Colors (improved contrast for muted) */
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e0; /* was #a0aec0 - lighten to improve readability on #0f1419 */
  
  /* Neon Accents for Dark Mode */
  --neon-purple: #a78bfa;
  --neon-pink: #f472b6;
  --neon-blue: #60a5fa;
}

/* Fallback: ensure elements using data-aos or animation helper classes remain visible even if JS/AOS fails */
[data-theme="dark"] [data-aos],
[data-theme="light"] [data-aos] {
  /* If AOS library not loaded, elements should not remain visually hidden */
  opacity: 1 !important;
  transform: none !important;
}

[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .bg-light {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-white {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 31, 46, 0.95) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-primary);
}

/* Dark Mode Neon Effects */
[data-theme="dark"] .neon-text {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

[data-theme="dark"] .neon-border {
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

/* Dark Mode Gradient Overlays */
[data-theme="dark"] .hero::before {
  background: 
    radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.15) 0%, transparent 50%);
}

/* Glassmorphism in Dark Mode */
[data-theme="dark"] .card-glass {
  background: rgba(45, 55, 72, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Platform Recognition Section Styling */
.badge-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bg-gradient-subtle {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.05) 0%, 
    rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

[data-theme="dark"] .bg-gradient-subtle {
  background: linear-gradient(135deg, 
    rgba(167, 139, 250, 0.1) 0%, 
    rgba(244, 114, 182, 0.1) 100%);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Badge Styling */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Dark Mode Link Styling */
[data-theme="dark"] a {
  color: var(--neon-purple);
  transition: color 0.2s ease;
}

[data-theme="dark"] a:hover {
  color: var(--neon-pink);
  text-decoration: none;
}

/* Dark Mode Button Enhancements */
[data-theme="dark"] .btn-sinai,
[data-theme="dark"] .btn-primary {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
}

[data-theme="dark"] .btn-sinai:hover,
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.8);
}

[data-theme="dark"] .btn-outline-sinai {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

[data-theme="dark"] .btn-outline-sinai:hover {
  border-color: transparent;
  background: var(--sinai-gradient);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.5);
}

/* Dark Mode Form Elements */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: var(--bg-tertiary);
  border-color: rgba(167, 139, 250, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background: var(--bg-tertiary);
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 0.25rem rgba(167, 139, 250, 0.15);
  color: var(--text-primary);
}

/* Dark Mode Hero Section */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 50%, #1a1f2e 100%);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero .lead,
[data-theme="dark"] .hero-stats {
  color: var(--text-primary);
}

/* Dark Mode Navbar Glow */
[data-theme="dark"] .navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.1);
}

/* Dark Mode Section Dividers */
[data-theme="dark"] section {
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

[data-theme="dark"] section:first-of-type {
  border-top: none;
}

/* ========================================
   HERO SECTION SPECIFIC STYLES
   ======================================== */

.hero h1 {
  color: white;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #fff 0%, #f472b6 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-lg {
  font-weight: 600;
  border-radius: 0.5rem;
}

.hero .btn-outline-light {
  border-width: 2px;
}

.hero-stats {
  color: white;
}

.hero-stats h3 {
  color: white;
}

.hero-stats p {
  opacity: 0.75;
}

/* ============================================
   UI Unification: Glassmorphism & Navigation
   ============================================ */

/* Glassmorphism for Dropdown Menus - Light Theme uses theme variables */
[data-theme="light"] .dropdown-menu,
[data-bs-theme="light"] .dropdown-menu {
  background: var(--navbar-bg) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(102, 126, 234, 0.18) !important;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15) !important;
}

[data-theme="dark"] .dropdown-menu {
  background: rgba(45, 55, 72, 0.95) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Hamburger Menu (Navbar Toggler) Styling */
[data-theme="light"] .navbar-toggler,
[data-bs-theme="light"] .navbar-toggler {
  border: 1px solid rgba(102, 126, 234, 0.3) !important;
  background: rgba(248, 250, 252, 0.8) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
}

[data-theme="dark"] .navbar-toggler,
[data-bs-theme="dark"] .navbar-toggler {
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  background: rgba(45, 55, 72, 0.8) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
}

.navbar-toggler:hover {
  background: rgba(102, 126, 234, 0.15) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25) !important;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(102, 126, 234, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
}

[data-theme="dark"] .navbar-toggler {
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  background: rgba(45, 55, 72, 0.9) !important;
}

[data-theme="dark"] .navbar-toggler:hover {
  background: rgba(167, 139, 250, 0.2) !important;
  border-color: rgba(167, 139, 250, 0.6) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(167, 139, 250, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown Item Hover with Glassmorphism */
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(102, 126, 234, 0.12) !important;
  color: var(--sinai-primary) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: rgba(167, 139, 250, 0.2) !important;
  color: var(--neon-purple) !important;
}

/* ============================================
   Unified Gradient Utilities
   ============================================ */

/* Background Gradients */
.bg-gradient-dark {
  background: var(--gradient-dark) !important;
  color: white !important;
}

.bg-gradient-main {
  background: var(--gradient-main) !important;
  color: white !important;
}

.bg-gradient-overlay {
  background: var(--gradient-overlay) !important;
  color: white !important;
}

/* Text Gradients */
.text-gradient-pink-purple {
  background: var(--text-gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.text-gradient-purple-blue {
  background: var(--text-gradient-purple-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.text-gradient-main {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Glassmorphism Utility Classes */
.glass {
  background: var(--glass-bg-light) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border-light) !important;
}

[data-theme="dark"] .glass {
  background: var(--glass-bg-dark) !important;
  border: 1px solid var(--glass-border-dark) !important;
}

/* Button with Gradient */
.btn-gradient {
  background: var(--gradient-main) !important;
  color: white !important;
  border: none !important;
  font-weight: 600 !important;
  transition: all var(--animation-speed) var(--animation-timing) !important;
}

.btn-gradient:hover {
  background: var(--gradient-overlay) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 94, 220, 0.4) !important;
}

/* Card with Gradient Border */
.card-gradient-border {
  position: relative;
  background: var(--surface-card);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: inherit;
  z-index: -1;
}



/* ============================================
   SCROLL TO TOP BUTTON - Unified Design
   ============================================ */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-sticky);
  transition: all 0.3s ease;
  border: 2px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

[data-bs-theme="light"] #scrollToTop,
[data-theme="light"] #scrollToTop {
  background: rgba(247, 250, 252, 0.85);
  color: #667eea;
}

[data-bs-theme="light"] #scrollToTop:hover,
[data-theme="light"] #scrollToTop:hover {
  background: rgba(102, 126, 234, 0.15);
  color: #5a67d8;
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
}

[data-bs-theme="dark"] #scrollToTop,
[data-theme="dark"] #scrollToTop {
  background: rgba(45, 55, 72, 0.85);
  color: #a78bfa;
}

[data-bs-theme="dark"] #scrollToTop:hover,
[data-theme="dark"] #scrollToTop:hover {
  background: rgba(102, 126, 234, 0.25);
  color: #c4b5fd;
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.3);
  border-color: rgba(167, 139, 250, 0.5);
}

#scrollToTop i {
  font-size: 1.25rem;
}

#scrollToTop.show {
  display: flex !important;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
