/* ==========================================================================
   Helping Foundation - Design System & Responsive Mobile-First Stylesheet
   ========================================================================== */

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

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-900: #064e3b;

  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-amber-light: #fffbeb;

  --phonepe-color: #5f259f;
  --paytm-color: #00baf2;
  --gpay-color: #ea4335;
  --upi-color: #ff6600;

  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
  --bg-warm: #fcfbfa;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(5, 150, 105, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-warm);
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--neutral-900);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Badge Utilities */
.badge-tax {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-amber-light);
  color: var(--accent-gold-dark);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-tag {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Header */
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--neutral-600);
  font-size: 1.1rem;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  padding: 0.9rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neutral-900);
  z-index: 102;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
  flex-shrink: 0;
}

.brand-logo span strong {
  color: var(--primary-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-weight: 600;
  color: var(--neutral-700);
  transition: var(--transition);
  white-space: nowrap;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.mobile-cta-wrapper {
  display: none;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 102;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--neutral-800);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger Active Animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  color: var(--neutral-900);
}

.hero-content h1 .highlight {
  background: linear-gradient(120deg, var(--primary-600), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--neutral-600);
  margin-bottom: 2rem;
}

.impact-ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
}

.ticker-item h3 {
  font-size: 1.8rem;
  color: var(--primary-700);
  font-weight: 800;
}

.ticker-item p {
  font-size: 0.88rem;
  color: var(--neutral-500);
  font-weight: 600;
}

/* Donation Card Container */
.donation-card-wrapper {
  position: relative;
}

.donation-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.donation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

.donation-header h3 {
  font-size: 1.4rem;
}

/* Amount Selection Grid */
.amount-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--neutral-500);
  margin-bottom: 0.85rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  min-height: 48px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-700);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount-btn:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

.amount-btn.active {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.amount-btn.custom-trigger {
  grid-column: span 4;
  background: var(--neutral-100);
  border-style: dashed;
}

.amount-btn.custom-trigger.active {
  background: var(--primary-50);
  border-color: var(--primary-600);
  border-style: solid;
  color: var(--primary-700);
}

/* Custom Amount Input Container */
.custom-amount-box {
  display: none;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.3s ease;
}

.custom-amount-box.active {
  display: block;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-symbol span {
  position: absolute;
  left: 1.2rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--neutral-600);
}

.input-with-symbol input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.input-with-symbol input:focus {
  border-color: var(--primary-600);
  box-shadow: var(--shadow-glow);
}

.custom-amount-hint {
  font-size: 0.82rem;
  color: var(--neutral-500);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.validation-error {
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
  display: none;
}

.validation-error.active {
  display: block;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neutral-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

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

/* Payment App Options */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pay-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  min-height: 52px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.pay-option-btn:hover {
  border-color: var(--neutral-400);
  background: var(--neutral-50);
}

.pay-option-btn.selected {
  border-color: var(--primary-600);
  background: var(--primary-50);
}

.pay-option-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-app-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  background: white;
  padding: 2px;
}

.pay-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.icon-phonepe { background: var(--phonepe-color); }
.icon-paytm { background: var(--paytm-color); }
.icon-gpay { background: #1a73e8; }
.icon-upi { background: var(--upi-color); }

.pay-option-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--neutral-800);
}

.pay-option-info span {
  font-size: 0.75rem;
  color: var(--neutral-500);
}

/* Main Donate CTA */
.btn-donate-submit {
  width: 100%;
  padding: 1.1rem;
  min-height: 54px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
  transition: var(--transition);
}

.btn-donate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.45);
}

.security-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background: white;
}

.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  min-height: 42px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--neutral-600);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--neutral-200);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--neutral-900);
  cursor: pointer;
  transition: var(--transition);
}

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

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  border: none;
}

.lightbox-img-wrapper img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.lightbox-details {
  padding: 1.5rem 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-desc {
  color: var(--neutral-600);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.about-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-700);
  font-weight: 600;
}

.check-icon {
  color: var(--primary-600);
}

.about-highlight-card {
  background: var(--primary-50);
  border: 2px dashed var(--primary-300);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.about-card-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Live Donor Wall */
.donors-section {
  padding: 5rem 0;
  background: var(--bg-warm);
}

.donor-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.donor-item {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.donor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-500));
  color: var(--primary-900);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donor-meta h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.donor-amount-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--primary-700);
  font-size: 0.95rem;
  margin-right: 0.5rem;
}

.donor-time {
  font-size: 0.78rem;
  color: var(--neutral-500);
}

.donor-comment {
  font-size: 0.88rem;
  color: var(--neutral-600);
  margin-top: 0.35rem;
  font-style: italic;
}

/* UPI Payment & Scanner Modal */
.payment-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.payment-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.payment-modal-box {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header-banner {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: white;
  padding: 1.5rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-header-banner h3 {
  color: white;
  font-size: 1.35rem;
}

.modal-header-banner p {
  font-size: 0.9rem;
  color: var(--primary-100);
  margin-top: 0.2rem;
}

.qr-display-body {
  padding: 1.75rem;
}

.qr-amount-badge {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.qr-box-wrapper {
  background: var(--neutral-50);
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: inline-block;
  margin-bottom: 1rem;
}

#qrcode-container {
  display: flex;
  justify-content: center;
}

#qrcode-container img, #qrcode-container canvas {
  margin: 0 auto;
  max-width: 100%;
}

.upi-id-pill {
  background: var(--neutral-100);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neutral-700);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.app-redirect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.app-redirect-btn {
  padding: 0.85rem 0.5rem;
  min-height: 48px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-phonepe-app { background: var(--phonepe-color); }
.btn-paytm-app { background: var(--paytm-color); }
.btn-gpay-app { background: #1a73e8; }
.btn-bhim-app { background: var(--upi-color); }

/* Mobile Floating Bar */
.mobile-floating-donate {
  display: none;
}

/* Footer */
footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.footer-brand p {
  color: var(--neutral-400);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--neutral-400);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-500);
}

.footer-email-link {
  color: var(--primary-500) !important;
  font-weight: 600;
}

.footer-email-subtext {
  font-size: 0.85rem;
  color: var(--neutral-400);
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--neutral-500);
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET MEDIA QUERIES
   ========================================================================== */

/* Medium Desktop & Laptop Adjustment (769px - 1180px) */
@media (min-width: 769px) and (max-width: 1180px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.92rem;
  }
  .brand-logo {
    font-size: 1.2rem;
  }
  .nav-cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
  }
}

/* Tablet View (Max Width 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Smartphone & Small Tablet View (Max Width 768px) */
@media (max-width: 768px) {

  /* Mobile Navigation Drawer */
  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-only-cta {
    display: none !important;
  }

  .mobile-cta-wrapper {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .mobile-cta-wrapper .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 2px solid var(--neutral-200);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1.1rem;
    padding: 0.4rem 0;
    width: 100%;
  }

  /* Hero Mobile Styling */
  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .impact-ticker {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .ticker-item h3 {
    font-size: 1.35rem;
  }

  .ticker-item p {
    font-size: 0.75rem;
  }

  /* Donation Card Mobile Optimization */
  .donation-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .amount-btn {
    font-size: 1rem;
    min-height: 46px;
  }

  .amount-btn.custom-trigger {
    grid-column: span 2;
  }

  .payment-methods {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .pay-option-btn {
    padding: 0.75rem 0.9rem;
  }

  /* Horizontal Swipe Gallery Filter Pills for Touch Screens */
  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .gallery-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .filter-btn {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery-card img {
    height: 220px;
  }

  /* Payment Modal Mobile Drawer */
  .payment-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .payment-modal-box {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    animation: slideUp 0.3s ease;
  }

  .qr-display-body {
    padding: 1.25rem 1rem;
  }

  .qr-amount-badge {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .app-redirect-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  /* Floating Sticky Bottom Bar for Mobile Phones */
  .mobile-floating-donate {
    display: block;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 99;
  }

  .btn-mobile-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4);
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Extra Small Screens (Max Width 480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .impact-ticker {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .donation-header h3 {
    font-size: 1.2rem;
  }

  .btn-donate-submit {
    font-size: 1.05rem;
    padding: 0.95rem;
  }

  .input-with-symbol input {
    font-size: 1.1rem;
  }
}

/* Keyframe for Mobile Drawer Slide Up */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
