/* Import modern premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design Tokens */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Colors - Light Theme default with high trust medical tones */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --color-primary: #e11d48; /* Urgency & Warmth - soft crimson */
  --color-primary-hover: #be123c;
  --color-primary-light: #ffe4e6;
  
  --color-secondary: #0284c7; /* Trust & Medical - calm blue */
  --color-secondary-hover: #0369a1;
  --color-secondary-light: #e0f2fe;

  --color-success: #10b981;
  --color-success-light: #d1fae5;
  
  /* Borders and Glassmorphism */
  --border-light: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 20px rgba(225, 29, 72, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Dark Mode Tokens (toggled via JS class) */
.dark-theme {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --text-primary: #f9fafb;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-light: rgba(55, 65, 81, 0.5);
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(225, 29, 72, 0.25);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Ambient Background Blobs */
.bg-ambients {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(100px);
  opacity: 0.12;
  animation: floatBlobs 20s infinite alternate ease-in-out;
}

.ambient-blob-1 {
  background: var(--color-primary);
  width: 500px;
  height: 500px;
  top: -100px;
  left: -200px;
}

.ambient-blob-2 {
  background: var(--color-secondary);
  width: 600px;
  height: 600px;
  top: 40%;
  right: -300px;
  animation-delay: -5s;
}

.ambient-blob-3 {
  background: var(--color-primary);
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -150px;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

/* Dynamic Grid Overlay for Premium Look */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Header & Glassmorphic Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header-scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Switcher Toggle */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.sun-icon {
  display: none;
}

.dark-theme .sun-icon {
  display: block;
}

.dark-theme .moon-icon {
  display: none;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  min-width: 130px;
  animation: slideUpFast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.lang-option {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 550;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-option:hover {
  background-color: var(--bg-primary);
  color: var(--color-primary);
}

.lang-active {
  background-color: var(--color-primary-light);
  color: var(--color-primary) !important;
}

.dark-theme .lang-active {
  background-color: rgba(225, 29, 72, 0.15);
}

/* Hamburger Menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding: 160px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dark-theme .hero-tag {
  background-color: rgba(225, 29, 72, 0.15);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.3);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

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

.hero-media-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.hero-image-card:hover {
  transform: rotate(0) scale(1.02);
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-media-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: pulseBadge 3s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-media-badge .badge-icon {
  background-color: var(--color-success-light);
  color: var(--color-success);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.dark-theme .hero-media-badge .badge-icon {
  background-color: rgba(16, 185, 129, 0.15);
}

.hero-media-badge .badge-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.hero-media-badge .badge-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Floating Action Button (FAB) */
.floating-donate-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: var(--color-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.floating-donate-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.floating-donate-btn:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.scroll-indicator::after {
  content: '';
  width: 2px;
  height: 35px;
  background-image: linear-gradient(var(--color-primary), transparent);
  animation: scrollLine 2s infinite ease-in-out;
  border-radius: var(--radius-full);
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Layout Grid System */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-subtitle {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* About & Story Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
}

.story-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.story-para {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.story-highlight {
  font-weight: 600;
  color: var(--text-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
}

/* Rehabilitation Details Card Styles */
.rehab-info-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  transition: var(--transition-smooth);
}

.rehab-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: var(--color-secondary);
}

.rehab-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rehab-info-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.rehab-info-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.rehab-info-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.rehab-info-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

.rehab-info-action {
  display: flex;
  align-items: center;
}

.rehab-clinic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.rehab-clinic-link:hover {
  color: var(--color-secondary-hover);
}

.rehab-clinic-link .link-arrow {
  transition: transform 0.2s ease;
}

.rehab-clinic-link:hover .link-arrow {
  transform: translate(2px, -2px);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.stat-icon-1 { background-color: #fee2e2; color: #ef4444; }
.stat-icon-2 { background-color: #e0f2fe; color: #0284c7; }
.stat-icon-3 { background-color: #d1fae5; color: #10b981; }
.stat-icon-4 { background-color: #fef3c7; color: #f59e0b; }

.dark-theme .stat-icon-1 { background-color: rgba(239, 68, 68, 0.15); }
.dark-theme .stat-icon-2 { background-color: rgba(2, 132, 199, 0.15); }
.dark-theme .stat-icon-3 { background-color: rgba(16, 185, 129, 0.15); }
.dark-theme .stat-icon-4 { background-color: rgba(245, 158, 11, 0.15); }

.stat-number {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-desc {
  font-size: 0.78rem;
  margin-top: 10px;
  line-height: 1.45;
}

.stat-desc-link {
  color: var(--color-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.stat-desc-link:hover {
  color: var(--color-secondary-hover);
  text-decoration: underline;
}

.stat-desc-link .inline-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.stat-desc-link:hover .inline-arrow {
  transform: translate(1px, -1px);
}

/* Timeline component */
.timeline-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-primary);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Before & After Gallery Redesign */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.ba-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg-card);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .ba-column {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ba-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.dark-theme .ba-column:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

.ba-column-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.dark-theme .ba-column-header {
  border-color: rgba(255, 255, 255, 0.08);
}

.ba-column-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ba-column-before .ba-column-badge::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(var(--color-secondary-rgb), 0.5);
  animation: pulseGlowSecondary 2s infinite alternate ease-in-out;
}

.ba-column-after .ba-column-badge::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
  animation: pulseGlowPrimary 2s infinite alternate ease-in-out;
}

@keyframes pulseGlowPrimary {
  0% { transform: scale(0.9); box-shadow: 0 0 4px rgba(var(--color-primary-rgb), 0.3); }
  100% { transform: scale(1.1); box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.7); }
}

@keyframes pulseGlowSecondary {
  0% { transform: scale(0.9); box-shadow: 0 0 4px rgba(var(--color-secondary-rgb), 0.3); }
  100% { transform: scale(1.1); box-shadow: 0 0 12px rgba(var(--color-secondary-rgb), 0.7); }
}

/* Before Column - Carousel */
.ba-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  cursor: pointer;
  background-color: #0f172a;
}

.dark-theme .ba-carousel {
  border-color: rgba(255, 255, 255, 0.08);
}

.ba-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.ba-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-carousel-slide:hover .ba-carousel-image {
  transform: scale(1.05);
}

/* Premium Frosted Glass Overlay */
.ba-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 65%, rgba(15, 23, 42, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  z-index: 3;
}

.ba-carousel-caption-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Carousel Navigation - Sleek Blur Buttons */
.ba-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.ba-carousel:hover .ba-carousel-nav {
  opacity: 1;
}

.ba-carousel-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.4);
}

.ba-carousel-prev {
  left: 20px;
}

.ba-carousel-next {
  right: 20px;
}

.ba-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.ba-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--border-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .ba-dot {
  background-color: rgba(255, 255, 255, 0.2);
}

.ba-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
  width: 18px;
  border-radius: 6px;
}

/* After Column - Media REDESIGN */
.ba-video-card {
  background: var(--bg-body);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .ba-video-card {
  background: rgba(30, 41, 59, 0.3);
  border-color: rgba(255, 255, 255, 0.06);
}

.ba-video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.dark-theme .ba-video-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ba-video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.ba-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-video-info {
  padding: 24px;
}

.ba-video-caption-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 10px;
}

.ba-photo-card {
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .ba-photo-card {
  border-color: rgba(255, 255, 255, 0.06);
}

.ba-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.dark-theme .ba-photo-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ba-photo-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #0f172a;
}

.ba-photo-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-photo-card:hover .ba-photo-element {
  transform: scale(1.05);
}

.ba-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 65%, rgba(15, 23, 42, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.ba-photo-caption-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gallery-badge {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-after {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Fallback Gutter Styles for Video actions */
.ba-video-fallback-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ba-video-fallback-actions .btn {
  font-size: 0.8rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Fullscreen Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: white;
  margin-top: 20px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--color-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Video Grid and Update Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.video-thumb-wrapper {
  position: relative;
  height: 210px;
  cursor: pointer;
  background-color: #0f172a;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.video-thumb-wrapper:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-primary-hover);
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.4);
}

.video-card-body {
  padding: 24px;
}

.video-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.video-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.video-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Video Player Overlay Popup */
.video-overlay-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-overlay-player.active {
  display: flex;
  opacity: 1;
}

.video-container-inner {
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.video-container-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-video-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.mock-video-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  animation: pulseGlow 2s infinite alternate ease-in-out;
}

/* Single Document Showcase */
.doc-single-container {
  max-width: 800px;
  margin: 0 auto;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .doc-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
}

.doc-single-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  text-align: left;
  padding: 36px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.doc-single-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary);
}

.doc-single-icon {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.dark-theme .doc-single-icon {
  background-color: rgba(2, 132, 199, 0.15);
}

.doc-single-content {
  flex-grow: 1;
}

.doc-single-meta-wrapper {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-single-badge {
  font-weight: 700;
  color: var(--color-secondary);
  background: var(--color-secondary-light);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.dark-theme .doc-single-badge {
  background-color: rgba(2, 132, 199, 0.15);
}

.doc-single-size {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.doc-single-verified {
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-single-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
}

.doc-single-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.doc-single-btns {
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .doc-single-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  
  .doc-single-meta-wrapper {
    justify-content: center;
    gap: 10px;
  }
  
  .doc-single-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .doc-single-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn-doc-small {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Donation Tabs & Cards */
.donation-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
}

.donation-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.donation-tab {
  background: none;
  border: none;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.donation-tab:hover {
  color: var(--text-primary);
}

.donation-tab.active {
  color: var(--color-primary);
}

.donation-tab.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.donation-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

@media (max-width: 600px) {
  .donation-tabs {
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-bottom: 8px;
  }
  
  .donation-tab {
    padding: 8px 4px;
    font-size: clamp(0.75rem, 3.2vw, 0.9rem);
    text-align: center;
    flex: 1;
    white-space: nowrap;
  }
  
  .donation-tab.active::after {
    bottom: -9px;
  }
}

.donation-pane.active {
  display: block;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

#pane-usa .payment-grid,
#pane-tj .payment-grid,
#pane-ru .payment-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 450px));
  justify-content: center;
}

.payment-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.payment-card:hover {
  border-color: var(--text-muted);
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.payment-method-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.payment-flag {
  font-size: 1.5rem;
}

.payment-number-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.payment-number {
  font-family: monospace;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  word-break: break-all;
  overflow-wrap: break-word;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background-color: var(--color-primary-light);
}

.dark-theme .btn-copy:hover {
  background-color: rgba(225, 29, 72, 0.15);
}

.payment-holder {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.payment-holder strong {
  color: var(--text-primary);
}

.btn-sberbank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background-color: #21a038;
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-sberbank:hover {
  background-color: #1a822c;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(33, 160, 56, 0.4);
}

.payment-link-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}


.payment-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qr-placeholder {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--text-muted);
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
}

.qr-icon {
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.secure-badge {
  font-size: 0.75rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  flex: 1;
  min-width: 160px;
}

/* PayPal QR Cards and Modal Styling */
.payment-qr-wrapper {
  width: 90px;
  height: 90px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.payment-qr-wrapper:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
  border-color: var(--color-primary);
}

.payment-qr-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-sm) - 2px);
}

.qr-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 600;
  text-align: center;
  padding: 2px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.payment-qr-wrapper:hover .qr-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.qr-modal-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: qrModalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.qr-modal-image-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.qr-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.qr-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Simulated Interactive Donation Box */
.interactive-donate-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
  max-width: 100%;
}

.progress-section {
  margin-bottom: 30px;
}

.progress-metrics {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.progress-raised {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--text-primary);
}

.progress-goal {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.progress-bar-container {
  height: 12px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0; /* Animated via JS */
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-percentage {
  position: absolute;
  right: 0;
  top: -30px;
  background-color: var(--color-primary);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.supporters-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.supporter-avatars {
  display: flex;
  align-items: center;
}

.supporter-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  background-color: var(--text-muted);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: -8px;
}

.supporter-avatar:first-child {
  margin-left: 0;
}

.supporter-count {
  font-size: 0.9rem;
  font-weight: 600;
}

.supporter-count span {
  color: var(--color-primary);
}

/* Supporter messages ticker */
.ticker-container {
  overflow: hidden;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 30px;
}

.ticker-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.ticker-track {
  display: flex;
  gap: 30px;
  animation: marquee 25s infinite linear;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-primary);
  white-space: nowrap;
}

.ticker-heart {
  color: var(--color-primary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Interactive Mock Donation Form */
.donation-sim-form {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed var(--border-light);
}

.donation-sim-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.donation-sim-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.donation-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preset-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-btn:hover {
  border-color: var(--text-muted);
}

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

.custom-donation-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.donation-currency {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-primary);
}

.custom-donation-input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.custom-donation-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

/* Contact Section & Support Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-icon {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dark-theme .contact-icon {
  background-color: rgba(2, 132, 199, 0.15);
}

.contact-method-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-method-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn-social {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-whatsapp { background-color: #25d366; }
.btn-whatsapp:hover { background-color: #128c7e; transform: translateY(-2px); }

.btn-telegram { background-color: #0088cc; }
.btn-telegram:hover { background-color: #006699; transform: translateY(-2px); }

/* Quick message form */
.message-form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-alert-success {
  background-color: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

/* Footer Section */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 80px 24px 40px;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-icon {
  background: var(--color-primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.footer-thankyou {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 550;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-prayer {
  font-style: italic;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-social-btn {
  background-color: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-social-link-btn {
  background-color: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 10px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-social-link-btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-sm);
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.footer-copyright {
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(225, 29, 72, 0.4)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.8)); }
}

/* Scroll reveal classes handles by JS */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Success Pop Notification */
.toast-notif {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 9999;
}

.toast-notif.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--color-success);
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
  .hero-container, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image-card {
    transform: rotate(0);
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
  
  .header-scrolled {
    padding: 0 !important;
  }

  .nav-container {
    padding: 12px 16px;
  }
  
  .logo-section {
    gap: 8px;
    flex-shrink: 0;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  .logo-text {
    font-size: 1.1rem;
    white-space: nowrap;
  }
  
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  
  .header-actions .btn-primary {
    display: none !important;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  
  .lang-selector {
    flex-shrink: 0;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 4px;
    flex-shrink: 0;
  }
  
  .lang-btn span {
    white-space: nowrap;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
    flex-shrink: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .donation-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .payment-card {
    padding: 16px;
  }
}

/* ==========================================
   10. HIGH FIDELITY DOCUMENT VIEWER & PAPERS
   ========================================== */
.doc-viewer-container {
  width: 90%;
  max-width: 720px;
  height: 85vh;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-viewer-controlbar {
  background-color: #0f172a;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-viewer-body {
  flex-grow: 1;
  overflow-y: auto;
  background-color: #f1f5f9; /* Contrast background for simulated white paper */
  padding: 32px 16px;
  display: flex;
  justify-content: center;
}

.dark-theme .doc-viewer-body {
  background-color: #0b0f19;
}

/* Realistic A4 Medical Letterhead/Sheet */
.paper-sheet {
  background-color: #ffffff;
  color: #1e293b;
  width: 100%;
  max-width: 600px;
  min-height: 700px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 40px;
  position: relative;
  font-family: sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.paper-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #b91c1c; /* Crimson border */
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.paper-clinic-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
}

.paper-clinic-icon {
  background-color: #fee2e2;
  color: #b91c1c;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.paper-clinic-name {
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paper-clinic-sub {
  font-size: 0.7rem;
  color: #64748b;
}

.paper-meta {
  text-align: right;
  font-size: 0.75rem;
  color: #64748b;
}

.paper-meta strong {
  color: #1e293b;
}

.paper-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.paper-section {
  margin-bottom: 20px;
}

.paper-section-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #b91c1c;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.paper-table th {
  background-color: #f8fafc;
  text-align: left;
  padding: 8px 12px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.paper-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.paper-table tr:last-child td {
  border-bottom: none;
}

.paper-table-total {
  font-weight: 700;
  color: #0f172a;
  background-color: #fef2f2;
}

.paper-footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.paper-signature {
  width: 150px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.paper-signature-line {
  border-top: 1px solid #94a3b8;
  margin-top: 30px;
  padding-top: 4px;
}

.paper-stamp {
  position: absolute;
  bottom: 40px;
  right: 50px;
  border: 3px double #10b981;
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.05);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 8px;
  transform: rotate(-10deg);
  opacity: 0.85;
  pointer-events: none;
}

.paper-stamp-red {
  border-color: #ef4444;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

/* Simulated realistic Video Player Captions and Subtitles */
.video-subtitle-track {
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  min-height: 48px;
  animation: pulseSub 3s infinite alternate;
}

@keyframes pulseSub {
  0% { color: #f8fafc; }
  100% { color: #e2e8f0; }
}

.video-progress-sim {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
}

.video-progress-fill-sim {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%; /* simulated loading spot */
  background-color: var(--color-primary);
  animation: playProgress 15s infinite linear;
}

@keyframes playProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

