:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;

  /* Hero gradient tokens */
  --hero-from: #667eea;
  --hero-to: #764ba2;
  --on-hero-strong: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#root {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Dark mode global styles */
:root.dark-mode {
  color-scheme: dark;
}

:root.dark-mode body {
  background-color: #0f172a;
  color: #f1f5f9;
}

/* Light mode global styles */
:root.light-mode {
  color-scheme: light;
}

:root.light-mode body {
  background-color: #ffffff;
  color: #1e293b;
}

/* Smooth transitions for all elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Drive System Styles - Modern beautiful design (no Tailwind dependency) */

/* Layout utilities that replace Tailwind classes */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.truncate { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

/* Spacing utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-auto { margin-left: auto; }

/* Border and radius utilities */
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Text utilities */
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }

/* Color utilities for our theme */
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-300 { color: #93c5fd; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.border-slate-600 { border-color: #475569; }
.border-slate-700 { border-color: #334155; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }

/* Beautiful scrollbars */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #64748b transparent;
}

/* Base reset for drive area only */
.drive-area button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
}

/* Modern ghost controls with refined styling */
.tw-btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgb(203, 213, 225);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  position: relative;
}

.tw-btn-ghost:hover {
  background: rgba(59, 130, 246, 0.08);
  color: rgb(241, 245, 249);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tw-btn-ghost:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

.tw-btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.tw-btn-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
}

.tw-btn-icon:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

/* Beautiful breadcrumb styling */
.tw-crumb {
  color: rgb(203, 213, 225);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tw-crumb:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  transform: translateY(-1px);
}

.tw-crumb-sep {
  color: rgb(148, 163, 184);
  margin: 0 8px;
  user-select: none;
  font-weight: 300;
}

/* Enhanced tree row styling */
.tw-tree-row {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  margin-bottom: 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tw-tree-row:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Modern pane styling with beautiful backgrounds */
.tw-pane {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Beautiful card styling */
.tw-card {
  background: linear-gradient(135deg, rgb(30, 41, 59) 0%, rgb(37, 50, 70) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.3) 50%, transparent 100%);
}

.tw-card:hover {
  background: linear-gradient(135deg, rgb(38, 50, 72) 0%, rgb(45, 58, 82) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.tw-drive-text {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

/* Drive-specific area overrides */
.drive-area .btn,
.drive-area button.btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
}

/* Active states with beautiful styling */
.tw-tree-row[data-active="true"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transform: translateX(6px);
}

.tw-tree-row[data-active="true"] .tw-btn-ghost {
  color: rgb(241, 245, 249);
}

.tw-view-toggle-active {
  background: linear-gradient(135deg, rgb(59, 130, 246) 0%, rgb(37, 99, 235) 100%);
  color: white;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Category tiles styling (for future enhancement) */
.tw-category-tile {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--category-from) 0%, var(--category-to) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tw-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}.App {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

main {
  flex: 1;
}

* {
  box-sizing: border-box;
}

/* Global Button Styles - Scoped to avoid Drive conflicts */
.legacy-ui .btn,
.page-content .btn,
:not(.drive-area) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.legacy-ui .btn:focus-visible,
.page-content .btn:focus-visible,
:not(.drive-area) .btn:focus-visible {
  outline: 2px solid var(--hero-from, #667eea);
  outline-offset: 2px;
}

/* Button Sizes - Scoped to avoid Drive conflicts */
.legacy-ui .btn-small,
.page-content .btn-small,
:not(.drive-area) .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.legacy-ui .btn-medium,
.page-content .btn-medium,
:not(.drive-area) .btn-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.legacy-ui .btn-large,
.page-content .btn-large,
:not(.drive-area) .btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button Variants - Scoped to avoid Drive conflicts */
.legacy-ui .btn-primary,
.page-content .btn-primary,
:not(.drive-area) .btn-primary {
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
  color: white;
  border: 1px solid transparent;
}

.legacy-ui .btn-primary:hover:not(:disabled),
.page-content .btn-primary:hover:not(:disabled),
:not(.drive-area) .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.legacy-ui .btn-primary:active:not(:disabled),
.page-content .btn-primary:active:not(:disabled),
:not(.drive-area) .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  border: 1px solid var(--border-color, #e2e8f0);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  border-color: var(--text-tertiary, #94a3b8);
  transform: translateY(-1px);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-secondary, #64748b);
  border: 1px solid transparent;
}

.btn-tertiary:hover:not(:disabled) {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Dark mode button styles */
:root.dark-mode .btn-secondary {
  background: var(--card-bg, #1e293b);
  color: var(--text-secondary, #cbd5e1);
  border-color: var(--border-color, #334155);
}

:root.dark-mode .btn-secondary:hover:not(:disabled) {
  background: var(--bg-secondary, #334155);
  color: var(--text-primary, #f1f5f9);
  border-color: var(--text-tertiary, #64748b);
}

:root.dark-mode .btn-tertiary:hover:not(:disabled) {
  background: var(--bg-secondary, #334155);
  color: var(--text-primary, #f1f5f9);
}
/* Dark Mode Fixes - High Contrast & Visibility Improvements */

/**
 * This file contains comprehensive dark mode fixes to ensure all content
 * remains visible and accessible in dark mode with proper WCAG AA contrast ratios.
 * 
 * Target contrast ratios:
 * - Normal text: 4.5:1 minimum
 * - Large text (18pt+): 3:1 minimum
 * - UI components: 3:1 minimum
 */

/* ============================================
   GLOBAL DARK MODE IMPROVEMENTS
   ============================================ */

:root.dark-mode {
  /* Enhanced color palette for better contrast */
  --dm-bg-primary: #1a1a2e;
  --dm-bg-secondary: #16213e;
  --dm-bg-tertiary: #0f1629;
  --dm-bg-card: #2c3e50;
  --dm-bg-card-hover: #34495e;
  
  --dm-text-primary: #ecf0f1;
  --dm-text-secondary: #bdc3c7;
  --dm-text-muted: #95a5a6;
  --dm-text-inverse: #2c3e50;
  
  --dm-border-color: #4a5f7f;
  --dm-border-light: #3a4f6f;
  
  --dm-accent-blue: #5dade2;
  --dm-accent-green: #58d68d;
  --dm-accent-orange: #f39c12;
  --dm-accent-red: #ec7063;
  --dm-accent-purple: #a569bd;
}

/* ============================================
   DASHBOARD BACKGROUND FIXES
   ============================================ */

:root.dark-mode body {
  background: var(--dm-bg-primary);
  color: var(--dm-text-primary);
}

:root.dark-mode .cofounder-dashboard {
  background: linear-gradient(135deg, var(--dm-bg-primary) 0%, var(--dm-bg-secondary) 100%);
}

/* ============================================
   CARD & PANEL FIXES
   ============================================ */

:root.dark-mode .stat-card,
:root.dark-mode .chart-card,
:root.dark-mode .action-card,
:root.dark-mode .alert-card {
  background: var(--dm-bg-card);
  color: var(--dm-text-primary);
  border-color: var(--dm-border-color);
}

:root.dark-mode .stat-card:hover,
:root.dark-mode .action-card:hover {
  background: var(--dm-bg-card-hover);
}

:root.dark-mode .stat-card h3,
:root.dark-mode .chart-card h3 {
  color: var(--dm-text-secondary);
}

:root.dark-mode .stat-value,
:root.dark-mode .action-card h4,
:root.dark-mode .alert-card strong {
  color: var(--dm-text-primary);
}

:root.dark-mode .stat-subtitle,
:root.dark-mode .action-card p,
:root.dark-mode .alert-card p {
  color: var(--dm-text-secondary);
}

:root.dark-mode .alert-card small {
  color: var(--dm-text-muted);
}

/* ============================================
   NAVIGATION & TABS FIXES
   ============================================ */

:root.dark-mode .dashboard-nav-modern {
  background: var(--dm-bg-card);
  border: 1px solid var(--dm-border-color);
}

:root.dark-mode .nav-tab-modern {
  background: var(--dm-bg-secondary);
  color: var(--dm-text-primary);
  border: 1px solid var(--dm-border-light);
}

:root.dark-mode .nav-tab-modern:hover {
  background: var(--dm-bg-card-hover);
  border-color: var(--dm-border-color);
}

:root.dark-mode .nav-tab-modern.active {
  /* Keep the gradient for active state for visual hierarchy */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

/* ============================================
   BUTTON FIXES
   ============================================ */

:root.dark-mode .btn-secondary-modern {
  background: var(--dm-bg-secondary);
  border-color: var(--dm-border-color);
  color: var(--dm-text-primary);
}

:root.dark-mode .btn-secondary-modern:hover {
  background: var(--dm-bg-card);
  border-color: #667eea;
  color: var(--dm-accent-blue);
}

:root.dark-mode .btn-primary-modern {
  /* Keep gradient for primary buttons */
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* ============================================
   FORM & INPUT FIXES
   ============================================ */

:root.dark-mode input,
:root.dark-mode textarea,
:root.dark-mode select {
  background: var(--dm-bg-secondary);
  border-color: var(--dm-border-color);
  color: var(--dm-text-primary);
}

:root.dark-mode input:focus,
:root.dark-mode textarea:focus,
:root.dark-mode select:focus {
  background: var(--dm-bg-card);
  border-color: var(--dm-accent-blue);
  outline: 2px solid rgba(93, 173, 226, 0.3);
}

:root.dark-mode input::placeholder,
:root.dark-mode textarea::placeholder {
  color: var(--dm-text-muted);
}

/* ============================================
   TABLE FIXES
   ============================================ */

:root.dark-mode table {
  background: var(--dm-bg-card);
  border: 1px solid var(--dm-border-color);
}

:root.dark-mode thead {
  background: var(--dm-bg-secondary);
  border-bottom: 2px solid var(--dm-border-color);
}

:root.dark-mode th {
  color: var(--dm-text-primary);
  border-bottom: 1px solid var(--dm-border-color);
}

:root.dark-mode td {
  color: var(--dm-text-secondary);
  border-bottom: 1px solid var(--dm-border-light);
}

:root.dark-mode tr:hover {
  background: var(--dm-bg-card-hover);
}

/* ============================================
   ALERT VARIATIONS FIXES
   ============================================ */

:root.dark-mode .alert-card.critical {
  background: linear-gradient(90deg, #441616 0%, var(--dm-bg-card) 100%);
  border-left-color: var(--dm-accent-red);
}

:root.dark-mode .alert-card.high {
  background: linear-gradient(90deg, #443616 0%, var(--dm-bg-card) 100%);
  border-left-color: var(--dm-accent-orange);
}

:root.dark-mode .alert-card.medium {
  background: linear-gradient(90deg, #164444 0%, var(--dm-bg-card) 100%);
  border-left-color: var(--dm-accent-blue);
}

/* ============================================
   LOADING & EMPTY STATES FIXES
   ============================================ */

:root.dark-mode .loading-state {
  color: var(--dm-text-primary);
}

:root.dark-mode .spinner {
  border-color: var(--dm-border-color);
  border-top-color: var(--dm-accent-blue);
}

:root.dark-mode .empty-state {
  background: linear-gradient(135deg, #1e4d2b 0%, #27613b 100%);
  color: var(--dm-text-primary);
}

:root.dark-mode .empty-state h3,
:root.dark-mode .empty-state p {
  color: var(--dm-accent-green);
}

/* ============================================
   HEADER SECTION FIXES
   ============================================ */

:root.dark-mode .dashboard-header-section {
  /* Keep gradient for visual hierarchy */
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

:root.dark-mode .inbox-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

/* ============================================
   LINK & ANCHOR FIXES
   ============================================ */

:root.dark-mode a {
  color: var(--dm-accent-blue);
}

:root.dark-mode a:hover {
  color: var(--dm-accent-purple);
}

:root.dark-mode a:visited {
  color: var(--dm-accent-purple);
}

/* ============================================
   SCROLLBAR FIXES
   ============================================ */

:root.dark-mode ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

:root.dark-mode ::-webkit-scrollbar-track {
  background: var(--dm-bg-secondary);
}

:root.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--dm-border-color);
  border-radius: 6px;
}

:root.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--dm-accent-blue);
}

/* ============================================
   CODE & PRE FIXES
   ============================================ */

:root.dark-mode code {
  background: var(--dm-bg-secondary);
  color: var(--dm-accent-blue);
  border: 1px solid var(--dm-border-light);
}

:root.dark-mode pre {
  background: var(--dm-bg-tertiary);
  color: var(--dm-text-primary);
  border: 1px solid var(--dm-border-color);
}

/* ============================================
   MODAL & OVERLAY FIXES
   ============================================ */

:root.dark-mode .modal,
:root.dark-mode .overlay {
  background: var(--dm-bg-card);
  border: 1px solid var(--dm-border-color);
}

:root.dark-mode .modal-header {
  background: var(--dm-bg-secondary);
  border-bottom: 1px solid var(--dm-border-color);
  color: var(--dm-text-primary);
}

:root.dark-mode .modal-footer {
  background: var(--dm-bg-secondary);
  border-top: 1px solid var(--dm-border-color);
}

/* ============================================
   BADGE & TAG FIXES
   ============================================ */

:root.dark-mode .badge,
:root.dark-mode .tag {
  background: var(--dm-bg-secondary);
  color: var(--dm-text-primary);
  border: 1px solid var(--dm-border-color);
}

:root.dark-mode .badge.primary {
  background: var(--dm-accent-blue);
  color: var(--dm-text-inverse);
}

:root.dark-mode .badge.success {
  background: var(--dm-accent-green);
  color: var(--dm-text-inverse);
}

:root.dark-mode .badge.warning {
  background: var(--dm-accent-orange);
  color: var(--dm-text-inverse);
}

:root.dark-mode .badge.danger {
  background: var(--dm-accent-red);
  color: white;
}

/* ============================================
   DROPDOWN & SELECT FIXES
   ============================================ */

:root.dark-mode .dropdown-menu {
  background: var(--dm-bg-card);
  border: 1px solid var(--dm-border-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

:root.dark-mode .dropdown-item {
  color: var(--dm-text-primary);
}

:root.dark-mode .dropdown-item:hover {
  background: var(--dm-bg-card-hover);
  color: var(--dm-accent-blue);
}

/* ============================================
   TOOLTIP FIXES
   ============================================ */

:root.dark-mode .tooltip {
  background: var(--dm-bg-tertiary);
  color: var(--dm-text-primary);
  border: 1px solid var(--dm-border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================
   PROGRESS BAR FIXES
   ============================================ */

:root.dark-mode .progress-bar {
  background: var(--dm-bg-secondary);
  border: 1px solid var(--dm-border-light);
}

:root.dark-mode .progress-fill {
  background: linear-gradient(90deg, var(--dm-accent-blue), var(--dm-accent-purple));
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
:root.dark-mode *:focus-visible {
  outline: 2px solid var(--dm-accent-blue);
  outline-offset: 2px;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  :root.dark-mode {
    --dm-text-primary: #ffffff;
    --dm-text-secondary: #e0e0e0;
    --dm-border-color: #6a7f9f;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :root.dark-mode * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* CSS Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

:root.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --card-bg: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.home-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.hero-section {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.home-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
  pointer-events: none; /* Allow mouse events to pass through */
}

/* Re-enable pointer events for interactive elements on home page */
.home-page .ai-input-container,
.home-page .ai-input,
.home-page .get-consultation-btn,
.home-page .learn-more-text {
  pointer-events: auto;
}

/* Ensure hero text doesn't block network interaction */
.home-page .hero-section h1,
.home-page .hero-subtitle {
  pointer-events: none;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  position: relative;
  z-index: 3;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.ai-input-container {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  width: 100%;
}

.ai-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  outline: none;
}

/* Fix dark mode black box issue */
:root.dark-mode .ai-input {
  background-color: transparent !important;
}

.ai-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.ai-submit-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.ai-submit-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.ai-input-hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  max-width: 500px;
  text-align: center;
  margin-top: 0.5rem;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  color: var(--text-tertiary);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* Approach Section */
.approach-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.approach-section .approach-text h2 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.approach-section .approach-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.approach-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.point-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.point h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.point p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.methodology-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.method-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.method-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Success Section */
.success-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.success-header {
  text-align: center;
  margin-bottom: 3rem;
}

.success-header h2 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.success-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.success-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.success-card.featured {
  border-left: 4px solid #3b82f6;
}

.success-type {
  color: #3b82f6;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.success-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.success-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.success-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.success-metrics .metric {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-btn.primary {
  background: white;
  color: #1e293b;
}

.cta-btn.primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn.secondary:hover {
  background: white;
  color: #1e293b;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .approach-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .success-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .ai-input-container {
    flex-direction: column;
    border-radius: 1rem;
  }
  
  .ai-input {
    border-radius: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .ai-submit-button {
    border-radius: 1rem;
    justify-content: center;
  }
  
  .features-section h2,
  .services-section h2,
  .approach-section .approach-text h2,
  .success-header h2,
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .approach-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .methodology-cards {
    gap: 1rem;
  }
  
  .success-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card,
  .method-card,
  .success-card {
    padding: 1.5rem;
  }
  
  .approach-points {
    gap: 1rem;
  }
  
  .point {
    flex-direction: column;
    text-align: center;
  }
  
  .point-icon {
    align-self: center;
  }
}
.about-page {
  min-height: 100vh;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.team-member {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
  align-self: start;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.member-avatar {
  position: relative;
  margin-bottom: 1.5rem;
  width: 120px;
  height: 120px;
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.member-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.member-info {
  flex: 1;
}

.team-member.featured .member-avatar {
  margin-right: 2rem;
  margin-bottom: 0;
}

.team-member h3 {
  font-size: 1.4rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.member-role {
  color: #667eea;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.member-bio {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

/* Show bio on team member hover */
.team-member:hover .member-bio {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
}

.member-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.team-member.featured .member-expertise {
  justify-content: flex-start;
}

.expertise-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* LinkedIn Social Link */
.member-social {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0077b5;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.linkedin-link:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.linkedin-link svg {
  width: 20px;
  height: 20px;
}

/* Team Categories */
.team-category {
  margin-bottom: 4rem;
}

.team-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Single column grid for interns */
.team-grid-single {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Intern-specific styling */
.team-member-intern {
  border: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  position: relative;
  color: white;
}

.team-member-intern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0.2;
}

.team-member-intern .member-role {
  color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.team-member-intern .expertise-tag {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Ensure good text contrast for intern cards */
.team-member-intern .member-bio {
  color: #e2e8f0;
  font-weight: 400;
}

.team-member-intern h3 {
  color: #1e293b;
  font-weight: 700;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-banner h1 {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Story Section */
.story-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1));
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 2rem;
  position: relative;
}

.story-text h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.5rem;
}

.language-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
}

.language-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.values-section h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #1e293b;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.value-card.innovation {
  border-top-color: #3b82f6;
}

.value-card.preservation {
  border-top-color: #10b981;
}

.value-card.inclusivity {
  border-top-color: #f59e0b;
}

.value-card.integrity {
  border-top-color: #8b5cf6;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.4rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.value-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.team-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.team-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 4rem;
  opacity: 0.95;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-member {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.member-avatar {
  margin-bottom: 2rem;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.member-role {
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.member-bio {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Mission & Vision */
.mission-vision {
  padding: 5rem 0;
  background: #1e293b;
  color: white;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.mission-card, .vision-card {
  padding: 3rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.mission-card {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.vision-card {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mission-card::before,
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  pointer-events: none;
}

.mission-card h2,
.vision-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.mission-card p,
.vision-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* Journey Timeline Section */
.journey-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1));
}

.journey-timeline {
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 5%;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: white;
}

.timeline-content h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: #475569;
  line-height: 1.7;
}

/* Philosophy Section */
.philosophy-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.philosophy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy-text h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 2rem;
  position: relative;
}

.philosophy-text h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.point-icon {
  font-size: 1.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
}

.point h4 {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.point p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.mission-vision-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-card, .vision-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #667eea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.vision-card {
  border-left-color: #764ba2;
}

.mission-card h3, .vision-card h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.mission-card p, .vision-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* Enhanced Team Section */
.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h2 {
  font-size: 2.8rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.team-member {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-info {
  flex: 1;
}

.member-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.expertise-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Strip Section */
.contact-strip-section {
  padding: 2.5rem 0 3rem 0;
}

.contact-strip {
  background: linear-gradient(to right, var(--hero-from), var(--hero-to));
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-strip {
    grid-template-columns: 1fr auto;
    padding: 1.75rem 2rem 2rem 2rem;
  }
}

.contact-strip-content h2 {
  color: var(--on-hero-strong, white);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.contact-strip-content p {
  color: var(--on-hero-muted, rgba(255, 255, 255, 0.9));
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.contact-strip-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .contact-strip-buttons {
    flex-direction: row;
  }
}

.contact-strip .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

.contact-strip .btn:focus-visible {
  outline: 2px solid var(--on-hero-strong, white);
  outline-offset: 2px;
}

.contact-strip .btn-primary {
  background: var(--on-hero-strong, white);
  color: var(--hero-from);
}

.contact-strip .btn-primary:hover {
  background: var(--on-hero-muted, rgba(255, 255, 255, 0.9));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-strip .btn-secondary {
  background: transparent;
  color: var(--on-hero-strong, white);
  border: 1.5px solid var(--on-hero-strong, white);
}

.contact-strip .btn-secondary:hover {
  background: var(--on-hero-strong, white);
  color: var(--hero-from);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Dark mode styles */
:root.dark-mode .hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
}

:root.dark-mode .story-section {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 1));
}

:root.dark-mode .story-text h2 {
  color: #f1f5f9;
}

:root.dark-mode .story-text p {
  color: #cbd5e1;
}

:root.dark-mode .values-section {
  background: #1e293b;
}

:root.dark-mode .values-section h2 {
  color: #f1f5f9;
}

:root.dark-mode .value-card {
  background: #334155;
  border: 1px solid #475569;
}

:root.dark-mode .value-card h3 {
  color: #f1f5f9;
}

:root.dark-mode .value-card p {
  color: #cbd5e1;
}

:root.dark-mode .team-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
}

:root.dark-mode .team-header h2 {
  color: #f1f5f9;
}

:root.dark-mode .team-intro {
  color: #cbd5e1;
}

:root.dark-mode .category-title {
  color: #f1f5f9;
}

:root.dark-mode .team-member {
  background: #1e293b;
  color: #f1f5f9;
}

:root.dark-mode .team-member h3 {
  color: #f1f5f9;
}

:root.dark-mode .member-role {
  color: #a5b4fc;
}

:root.dark-mode .member-bio {
  color: #cbd5e1;
}

:root.dark-mode .mission-vision {
  background: #0f172a;
}

/* Light mode styles */
:root.light-mode .hero-banner {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

:root.light-mode .story-section {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1));
}

:root.light-mode .story-text h2 {
  color: #1e293b;
}

:root.light-mode .story-text p {
  color: #475569;
}

:root.light-mode .values-section {
  background: #f8fafc;
}

:root.light-mode .values-section h2 {
  color: #1e293b;
}

:root.light-mode .value-card {
  background: white;
}

:root.light-mode .value-card h3 {
  color: #1e293b;
}

:root.light-mode .value-card p {
  color: #64748b;
}

:root.light-mode .team-section {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

:root.light-mode .mission-vision {
  background: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.1rem;
  }
  
  .story-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .language-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .journey-timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }
  
  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }
  
  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-grid-single {
    grid-template-columns: 1fr;
  }

  .category-title {
    font-size: 1.8rem;
  }

  .team-category {
    margin-bottom: 3rem;
  }

  .team-member {
    min-height: auto;
  }  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 200px;
  }
}
