/* Design System - Premium Medical Color System */
:root {
  /* Primary - Deep Ocean Teal */
  --color-primary: #0f5257;
  --color-primary-hover: #0a3d41;
  --color-primary-light: #e8f4f4;
  --color-primary-dark: #082a2d;

  /* Secondary - Soft Aqua */
  --color-secondary: #4a9b9f;
  --color-secondary-light: #c5e5e7;
  --color-secondary-dark: #2d7a7e;

  /* Accent - Warm Coral */
  --color-accent: #c17f59;
  --color-accent-light: #f0e6dc;
  --color-accent-dark: #9e6342;

  /* Additional Accent - Soft Gold */
  --color-gold: #b8956e;
  --color-gold-light: #f5efe6;

  /* Background Colors - Layered System */
  --color-base: #fdfcfa;
  --color-surface: #ffffff;
  --color-surface-warm: #fbf9f6;
  --color-surface-cool: #f8fbfb;
  --color-surface-accent: #faf8f5;

  /* Text Colors */
  --color-text: #1a2e35;
  --color-text-secondary: #4a6570;
  --color-text-muted: #7a9199;
  --color-text-light: #ffffff;

  /* Borders */
  --color-border: #e4ebe9;
  --color-border-light: #f0f4f3;
  --color-border-dark: #0f5257;

  /* Section Backgrounds */
  --color-section-dark: #0f5257;
  --color-section-deep: #082a2d;
  --color-section-teal: #1a6b70;
  --color-section-ivory: #fbf9f4;
  --color-section-cream: #f7f5f0;
  --color-section-sage: #eef5f4;
  --color-section-warm: #faf7f2;

  /* Typography */
  --font-body: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  --font-english: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;

  /* Shadows - Subtle Depth */
  --shadow-xs: 0 1px 2px 0 rgb(15 82 87 / 0.04);
  --shadow-sm: 0 2px 4px 0 rgb(15 82 87 / 0.06);
  --shadow-base: 0 4px 8px 0 rgb(15 82 87 / 0.08);
  --shadow-md: 0 8px 16px -4px rgb(15 82 87 / 0.1);
  --shadow-lg: 0 16px 32px -8px rgb(15 82 87 / 0.12);
  --shadow-xl: 0 24px 48px -12px rgb(15 82 87 / 0.15);

  /* Colored Shadows */
  --shadow-primary: 0 8px 24px -8px rgb(15 82 87 / 0.25);
  --shadow-accent: 0 8px 24px -8px rgb(193 127 89 / 0.25);

  /* Border Radius */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background-color: var(--color-base);
  overflow-x: hidden;
}

/* English text styling */
.english {
  font-family: var(--font-english);
}

/* Selection Styling */
::selection {
  background-color: var(--color-secondary);
  color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-lg {
  max-width: var(--container-2xl);
}

.container-md {
  max-width: var(--container-lg);
}

.container-sm {
  max-width: var(--container-md);
}

/* Buttons - Premium Design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgb(15 82 87 / 0.35);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgb(193 127 89 / 0.35);
  color: white;
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--color-primary-dark);
  border-color: white;
}

.btn-white {
  background-color: white;
  color: var(--color-primary-dark);
  border-color: white;
}

.btn-white:hover {
  background-color: var(--color-base);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Button with Arrow */
.btn-arrow {
  padding-right: var(--space-4);
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition-base);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Cards - Editorial Design */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

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

/* Section Number Labels */
.section-number {
  font-family: var(--font-english);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: var(--space-2);
}

/* Decorative Line */
.decorative-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: white; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

/* Responsive Typography */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  html {
    font-size: 15px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  h4 { font-size: var(--text-xl); }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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