/* =============================================================================
   ENTERPRISE CONSULTING PLATFORM - DESIGN SYSTEM
   Version 2.0 | Optimized for Professional Services
   ============================================================================= */

/* =============================================================================
   CSS CUSTOM PROPERTIES - Design Tokens
   ============================================================================= */
:root {
  /* Brand Color Palette */
  --brand-primary: #4a148c;
  --brand-primary-hover: #6a1b9a;
  --brand-secondary: #7b1fa2;
  --brand-accent: #9c27b0;
  --brand-light: #e1bee7;
  --brand-gradient: linear-gradient(135deg, #4a148c 0%, #7b1fa2 50%, #9c27b0 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(74, 20, 140, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
  
  /* Neutral Palette */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #eeeeee;
  --neutral-300: #e0e0e0;
  --neutral-400: #bdbdbd;
  --neutral-500: #9e9e9e;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* Semantic Colors */
  --color-success: #2e7d32;
  --color-warning: #f57c00;
  --color-error: #c62828;
  --color-info: #0277bd;
  
  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing System (8px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-base: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;
  
  /* Shadows - Elevation System */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-brand: 0 10px 40px -10px rgba(74, 20, 140, 0.3);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* Transitions & Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-xs: 640px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;
  --container-xl: 1440px;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--neutral-900);
  background: 
 
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* =============================================================================
   TYPOGRAPHY SYSTEM
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--neutral-700);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
}

/* =============================================================================
   SITE HEADER & NAVIGATION
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.wrap {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-base);
}

.site-header.scrolled .wrap {
  height: 72px;
}

/* Logo Styling */
.logo {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--brand-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform var(--transition-fast);
}

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

.logo::before {
  content: '';
  width: 8px;
  height: 32px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav a {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--neutral-700);
  padding: var(--space-2) var(--space-4);
  position: relative;
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.nav a:hover {
  color: var(--brand-primary);
}

.nav a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav a.active {
  color: var(--brand-primary);
  font-weight: var(--font-weight-semibold);
}

.nav a.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* =============================================================================
   MAIN CONTAINER & LAYOUT
   ============================================================================= */
main.container {
  max-width: var(--container-xl);
  margin: var(--space-20) auto;
  padding: 0 var(--space-6);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: var(--space-24) 0 var(--space-16);
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 20, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

main.container h1 {
  font-size: var(--font-size-5xl);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease-out;
}

main.container > p {
  font-size: var(--font-size-xl);
  color: var(--neutral-600);
  max-width: 720px;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-relaxed);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Subtitle / Tagline */
.subtitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
  display: inline-block;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* =============================================================================
   CARD SYSTEM
   ============================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.card {
  background: white;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  text-decoration: none;
  color: var(--neutral-900);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

/* Card Gradient Overlay */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-brand);
  border-color: var(--brand-light);
}

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

.card:hover::after {
  transform: scaleX(1);
}

/* Card Icon */
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  color: white;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-md);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.card:hover h3 {
  color: var(--brand-primary-hover);
}

.card p {
  font-size: var(--font-size-sm);
  color: var(--neutral-600);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* Card Footer / CTA */
.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
}

.card:hover .card-footer {
  opacity: 1;
  transform: translateX(0);
}

.card-footer::after {
  content: '→';
  font-size: var(--font-size-lg);
  transition: transform var(--transition-fast);
}

.card:hover .card-footer::after {
  transform: translateX(4px);
}

/* =============================================================================
   BUTTON SYSTEM
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primary Button */
.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow-base);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: white;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn.outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn.outline:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Large Button */
.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--font-size-lg);
}

/* Small Button */
.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
}
/* =============================================================================
   FORM SYSTEM - Professional Edition
   ============================================================================= */
form {
  max-width: var(--container-sm);
  margin: var(--space-16) auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
              0 2px 8px rgba(0, 0, 0, 0.04);
              opacity: 0.9;
              
}

.form-group {
  margin-bottom: var(--space-6);
}

form label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--neutral-900);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

form input:hover,
form textarea:hover,
form select:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

form input:focus,
form textarea:focus,
form select:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.08),
              0 2px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Form Validation States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.05);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: var(--color-success);
  background: rgba(34, 197, 94, 0.05);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--neutral-600);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
  font-weight: var(--font-weight-medium);
}

/* Professional Enhancement: Placeholder Styling */
form input::placeholder,
form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  opacity: 1;
}

/* Professional Enhancement: Disabled State */
form input:disabled,
form textarea:disabled,
form select:disabled {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--neutral-500);
  cursor: not-allowed;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
footer.site-footer {
  margin-top: var(--space-24);
  padding: var(--space-16) 0 var(--space-8);
  background: white;
  border-top: 1px solid var(--neutral-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.footer-content {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  color: var(--brand-primary);
  margin-bottom: var(--space-4);
}

.footer-section p,
.footer-section a {
  font-size: var(--font-size-sm);
  color: var(--neutral-600);
  line-height: var(--line-height-relaxed);
}

.footer-section a {
  display: block;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  max-width: var(--container-xl);
  margin: var(--space-12) auto 0;
  padding: var(--space-8) var(--space-6) 0;
  border-top: 1px solid var(--neutral-200);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--neutral-500);
}

/* =============================================================================
   DARK MODE THEME
   ============================================================================= */
body.dark {
  --neutral-50: #121212;
  --neutral-100: #1e1e1e;
  --neutral-200: #2a2a2a;
  --neutral-300: #3a3a3a;
  --neutral-400: #545454;
  --neutral-500: #737373;
  --neutral-600: #a3a3a3;
  --neutral-700: #d4d4d4;
  --neutral-800: #e5e5e5;
  --neutral-900: #fafafa;
  
  background-color: var(--neutral-50);
  color: var(--neutral-900);
}

body.dark .site-header {
  background: rgba(30, 30, 30, 0.95);
  border-bottom-color: var(--neutral-300);
}

body.dark .card,
body.dark form,
body.dark footer.site-footer {
  background: var(--neutral-100);
  border-color: var(--neutral-300);
}

body.dark .card:hover {
  border-color: var(--brand-accent);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
  color: var(--neutral-900);
}

body.dark p {
  color: var(--neutral-600);
}

body.dark .card p {
  color: var(--neutral-500);
}

body.dark form input,
body.dark form textarea,
body.dark form select {
  background: var(--neutral-100);
  border-color: var(--neutral-400);
  color: var(--neutral-900);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes fadeInUp {
  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 pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }
  
  .wrap {
    padding: 0 var(--space-5);
  }
  
  .nav {
    gap: var(--space-6);
  }
  
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
  }
  
  .wrap {
    height: 72px;
    padding: 0 var(--space-4);
  }
  
  .logo {
    font-size: var(--font-size-xl);
  }
  
  .nav {
    gap: var(--space-4);
  }
  
  .nav a {
    font-size: var(--font-size-sm);
    padding: var(--space-2);
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .hero-section {
    padding: var(--space-16) 0 var(--space-12);
  }
  
  main.container > p {
    font-size: var(--font-size-lg);
  }
  
  form {
    padding: var(--space-8);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .wrap {
    height: 64px;
  }
  
  .btn {
    width: 100%;
  }
  
  .card {
    padding: var(--space-8);
  }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-4 { padding-top: var(--space-4); }
.pb-4 { padding-bottom: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-md { max-width: var(--container-md); }
.max-w-lg { max-width: var(--container-lg); }

.rounded { border-radius: var(--radius-base); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

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

/* =============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================= */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand-primary);
  color: white;
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  border-radius: 0 0 var(--radius-base) 0;
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}

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

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-header,
  .nav,
  footer.site-footer,
  .btn {
    display: none;
  }
  
  .card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}

.background-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .background-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .background-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
             }

        .background-slide.active {
            opacity: 1;
            animation: pageFlip 1s ease-in-out;
        }

        @keyframes pageFlip {
            0% {
                transform: perspective(1000px) rotateY(-90deg);
                opacity: 0;
            }
            50% {
                opacity: 0.5;
            }
            100% {
                transform: perspective(1000px) rotateY(0deg);
                opacity: 1;
            }
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            max-width: 1400px;
            width: 100%;
            padding: 20px;
            position: relative;
            z-index: 1;
        }

        .card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: white;
            margin-bottom: 20px;
        }

        .card:nth-child(2) .card-icon {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .card:nth-child(3) .card-icon {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .card:nth-child(4) .card-icon {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }

        .card:nth-child(5) .card-icon {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        .card-title {
            font-size: 24px;
            font-weight: 700;
            color: #333;
            margin-bottom: 10px;
        }

        .card-description {
            font-size: 15px;
            color: #666;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .cards-container {
                grid-template-columns: 1fr;
            }
        }
        
        
         .loader-container {
            position: relative;
            width: 200px;
            height: 200px;
            perspective: 1000px;
        }

        .loader {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100px;
            height: 100px;
            margin: -50px 0 0 -50px;
            transform-style: preserve-3d;
            animation: rotate3d 4s linear infinite;
        }

        .cube {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
        }

        .face {
            position: absolute;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, rgba(147, 51, 234, 0.9), rgba(168, 85, 247, 0.7));
            border: 2px solid rgba(192, 132, 252, 0.5);
            box-shadow: 
                0 0 20px rgba(147, 51, 234, 0.5),
                inset 0 0 20px rgba(168, 85, 247, 0.3);
            backdrop-filter: blur(10px);
        }

        .front  { transform: translateZ(50px); }
        .back   { transform: translateZ(-50px) rotateY(180deg); }
        .right  { transform: rotateY(90deg) translateZ(50px); }
        .left   { transform: rotateY(-90deg) translateZ(50px); }
        .top    { transform: rotateX(90deg) translateZ(50px); }
        .bottom { transform: rotateX(-90deg) translateZ(50px); }

        .ring {
            position: absolute;
            width: 150px;
            height: 150px;
            border: 3px solid transparent;
            border-top-color: #a855f7;
            border-right-color: #c084fc;
            border-radius: 50%;
            top: 25px;
            left: 25px;
            animation: spin 2s linear infinite;
        }

        .ring:nth-child(2) {
            width: 120px;
            height: 120px;
            top: 40px;
            left: 40px;
            border-top-color: #c084fc;
            border-right-color: #e9d5ff;
            animation: spin 1.5s linear infinite reverse;
        }

        .glow {
            position: absolute;
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, transparent 70%);
            border-radius: 50%;
            top: 10px;
            left: 10px;
            animation: pulse 2s ease-in-out infinite;
        }

        .loading-text {
            position: absolute;
            bottom: -50px;
            width: 100%;
            text-align: center;
            color: #c084fc;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 3px;
            animation: fadeInOut 2s ease-in-out infinite;
        }

        @keyframes rotate3d {
            0% {
                transform: rotateX(0deg) rotateY(0deg);
            }
            100% {
                transform: rotateX(360deg) rotateY(360deg);
            }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 0.4;
                transform: scale(0.9);
            }
            50% {
                opacity: 0.8;
                transform: scale(1.1);
            }
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }
        
        
        
        
        
        
        
        
        
        
        
        