@keyframes fadeIn { 0% { opacity: 0; }
  100% { opacity: 1; } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { 0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; } }
@keyframes slideInLeft { 0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { 0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; } }
@keyframes scaleIn { 0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); } }
@keyframes gradient-x { 0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; } }
@keyframes shimmer { 0% { background-position: -200% 0; }
  100% { background-position: 200% 0; } }
@keyframes skeleton-loading { 0% { background-position: 200% 0; }
  100% { background-position: -200% 0; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); } }
@keyframes bounce-subtle { 0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); } }
@keyframes rotate-slow { 0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); } }
@keyframes count-up { from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal--left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--left.revealed { opacity: 1; transform: translateX(0); }
.reveal--right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--right.revealed { opacity: 1; transform: translateX(0); }
.reveal--scale { opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--scale.revealed { opacity: 1; transform: scale(1); }

.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.7s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.8s; }

::selection { background-color: #1B5E20; color: white; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background: #f5f5f5; }

::-webkit-scrollbar-thumb { background: #455A64; border-radius: 4px; border: 2px solid #f5f5f5; }

::-webkit-scrollbar-thumb:hover { background: #1B5E20; }

.dark ::-webkit-scrollbar-track { background: #424242; }

.dark ::-webkit-scrollbar-thumb { border-color: #424242; background: #616161; }

.dark ::-webkit-scrollbar-thumb:hover { background: #1B5E20; }

*:focus-visible { outline: 2px solid #1B5E20; outline-offset: 2px; border-radius: 4px; }

* { transition-property: background-color, border-color, color; transition-duration: 200ms; transition-timing-function: ease-out; }

main { animation: fadeIn 0.5s ease-out; }

html { scroll-behavior: smooth; }

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

.site-header { position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: 1px solid #e0e0e0; }

.dark .site-header { background: #1a1a1a; border-bottom: 1px solid #424242; }

.site-footer { margin-top: auto; border-top: 1px solid #e0e0e0; background: #f5f5f5; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer .footer-links a { font-size: 0.875rem; color: #616161; transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.site-footer .footer-links a:hover { color: #1B5E20; }
.site-footer .social-icon { width: 2.25rem; height: 2.25rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid #e0e0e0; }
.site-footer .social-icon:hover { color: #ffffff; background: #1B5E20; border-color: #1B5E20; }
.site-footer .status-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; border: 1px solid #e0e0e0; }

.dark .site-footer { border-color: #424242; background: #212121; }
.dark .site-footer .footer-links a { color: #9e9e9e; }
.dark .site-footer .footer-links a:hover { color: #1B5E20; }
.dark .site-footer .social-icon { border-color: #424242; }
.dark .site-footer .social-icon:hover { background: #1B5E20; border-color: #1B5E20; }
.dark .site-footer .status-badge { border-color: #424242; }

.content-container { max-width: 80rem; margin: 0 auto; padding: 1rem 1rem; }
@media (min-width: 640px) { .content-container { padding: 1rem 1.5rem; } }
@media (min-width: 1024px) { .content-container { padding: 1rem 2rem; } }

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

.glass { background: #ffffff; border: 1px solid #e0e0e0; }

.dark .glass { background: #212121; border: 1px solid #424242; }

.gradient-text { color: #1B5E20; }

.card-hover { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1); }

.btn-primary { background: #1B5E20; border: 1px solid #103613; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.btn-primary:hover { background: #155020; border-color: #0a2810; box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25); }
.btn-primary:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); }

.btn-green { background: #1a5420; border: 1px solid #0e2d11; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.btn-green:hover { background: #3d505b; border-color: #29353c; box-shadow: 0 4px 12px rgba(26, 84, 32, 0.25); }
.btn-green:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); }

.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #1B5E20, #455A64); transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px; }
.nav-link:hover::after { width: 100%; }

.badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 9999px; letter-spacing: 0.025em; }

.floating-shape { display: none; }

.skeleton { background: linear-gradient(90deg, #e0e0e0 0%, #f5f5f5 50%, #e0e0e0 100%); background-size: 200% 100%; animation: skeleton-loading 1.5s ease-in-out infinite; border-radius: 0.25rem; }

.dark .skeleton { background: linear-gradient(90deg, #424242 0%, #616161 50%, #424242 100%); background-size: 200% 100%; }

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }

.skeleton-text-sm { height: 0.75rem; margin-bottom: 0.375rem; }

.skeleton-text-lg { height: 1.5rem; margin-bottom: 0.75rem; }

.skeleton-title { height: 2rem; width: 60%; margin-bottom: 1rem; }

.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }

.skeleton-card { padding: 1.5rem; background: #ffffff; border-radius: 0.75rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }

.dark .skeleton-card { background: #212121; }

.skeleton-map { height: 400px; border-radius: 1rem; }

.skeleton-button { height: 48px; width: 140px; border-radius: 12px; }

.skeleton-input { height: 52px; border-radius: 12px; }

.skeleton-chart { height: 300px; border-radius: 0.75rem; }

.weather-widget { background: #1B5E20; border-radius: 0.75rem; padding: 1rem 1.5rem; color: white; display: flex; align-items: center; gap: 1rem; border: 1px solid #155020; }

.weather-icon { font-size: 2rem; }

.weather-temp { font-size: 1.5rem; font-weight: 700; }

.weather-condition { font-size: 0.875rem; opacity: 0.9; }

.weather-advisory { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%); border-left: 4px solid #f59e0b; border-radius: 0.5rem; padding: 1rem; margin-top: 0.75rem; }

.share-modal-backdrop { position: fixed; inset: 0; background: rgba(18, 18, 18, 0.6); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }

.share-modal { background: #ffffff; border-radius: 1rem; padding: 2rem; max-width: 420px; width: 100%; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: scaleIn 0.3s ease; }

.dark .share-modal { background: #212121; }

.share-option { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 0.75rem; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; }
.share-option:hover { background: #f5f5f5; border-color: #e0e0e0; }

.dark .share-option:hover { background: #424242; border-color: #616161; }

.share-option-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

.qr-code-container { background: white; padding: 1rem; border-radius: 0.75rem; display: inline-block; }

.copy-success { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: #22c55e; color: white; padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 600; box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3); animation: slideUp 0.3s ease; z-index: 1001; }

.section-heading { text-align: center; margin-bottom: 4rem; }
.section-heading .section-badge { display: inline-block; padding: 0.25rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.section-heading h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.5rem; } }
.section-heading p { font-size: 1.125rem; max-width: 42rem; margin: 0 auto; }

.tooltip { position: relative; }
.tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(0.8); background: #121212; color: white; padding: 0.375rem 0.75rem; border-radius: 0.25rem; font-size: 0.75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s ease; }
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

.ribbon { position: absolute; top: 1rem; right: -0.5rem; padding: 0.25rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 0.25rem 0 0 0.25rem; }
.ribbon--green { background: linear-gradient(135deg, #1B5E20, #3d505b); color: white; }
.ribbon--blue { background: linear-gradient(135deg, #1B5E20, #455A64); color: white; }

.progress-bar { height: 8px; background: #e0e0e0; border-radius: 9999px; overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #1B5E20, #455A64); transition: width 1s ease; }

.dark .progress-bar { background: #424242; }

.hero-blob { display: none; }

.stat-counter { font-variant-numeric: tabular-nums; transition: all 0.3s ease; }

.impact-card { position: relative; overflow: hidden; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid #e0e0e0; border-radius: 8px; }
.impact-card:hover { box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15); border-color: #1B5E20; }

.testimonial-card { position: relative; padding: 2rem; border-radius: 8px; border: 1px solid #e0e0e0; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-card::before { content: ''; /* Remove quotation mark for cleaner professional look */ }
.testimonial-card:hover { box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15); border-color: #1B5E20; }

.partners-marquee { overflow: hidden; white-space: nowrap; }
.partners-marquee .marquee-inner { display: inline-flex; animation: marquee 30s linear infinite; gap: 4rem; }
.partners-marquee:hover .marquee-inner { animation-play-state: paused; }

@keyframes marquee { 0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } }
.cta-glow { position: relative; background: #f5f5f5; border-radius: 8px; border: 1px solid #e0e0e0; }

.how-it-works-step { position: relative; }
.how-it-works-step:not(:last-child)::after { content: ''; position: absolute; left: 1.25rem; top: 3.5rem; bottom: -1.5rem; width: 1px; background: #e0e0e0; opacity: 1; }

.food-card { position: relative; overflow: hidden; border: 1px solid #e0e0e0; border-radius: 8px; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.food-card:hover { border-color: #1B5E20; box-shadow: 0 4px 12px rgba(27, 94, 32, 0.1); }

.filter-btn { cursor: pointer; white-space: nowrap; }
.filter-btn.active { background: #dceee7; color: #155020; }
.filter-btn:not(.active) { background: #f5f5f5; color: #757575; }
.filter-btn:not(.active):hover { background: #e0e0e0; color: #424242; }

.dark .filter-btn.active { background: rgba(26, 84, 32, 0.2); color: #409678; }
.dark .filter-btn:not(.active) { background: #424242; color: #a8a8a8; }
.dark .filter-btn:not(.active):hover { background: #616161; color: #d0d0d0; }

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

#qr-reader video { border-radius: 1rem; }
#qr-reader__dashboard { padding: 0.5rem; }
#qr-reader__dashboard button { background: linear-gradient(135deg, #1B5E20, #455A64) !important; color: #ffffff !important; border: none !important; border-radius: 0.75rem !important; padding: 0.5rem 1rem !important; font-weight: 600 !important; cursor: pointer !important; transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) !important; }
#qr-reader__dashboard button:hover { opacity: 0.9 !important; }

@keyframes scan-line { 0% { top: 10%; }
  50% { top: 85%; }
  100% { top: 10%; } }
.animate-scan-line { animation: scan-line 2.5s ease-in-out infinite; position: absolute; }

.status-timeline { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 0 0.5rem; }
.status-timeline__step { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; position: relative; z-index: 1; }
.status-timeline__step-icon { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; background: #f5f5f5; color: #a8a8a8; border: 2px solid #e0e0e0; transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.status-timeline__step-label { font-size: 0.75rem; font-weight: 600; color: #a8a8a8; text-align: center; transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.status-timeline__step.is-active .status-timeline__step-icon { background: linear-gradient(135deg, #1B5E20, #455A64); color: #ffffff; border-color: #409678; box-shadow: 0 0 12px rgba(27, 94, 32, 0.4); }
.status-timeline__step.is-active .status-timeline__step-label { color: #1a5420; }
.status-timeline__step.is-complete .status-timeline__step-icon { background: #dceee7; color: #1a5420; border-color: #75b8a3; }
.status-timeline__step.is-complete .status-timeline__step-label { color: #1a5420; }
.status-timeline__connector { flex: 1; height: 2px; background: #e0e0e0; margin: 0 0.25rem; position: relative; top: -0.75rem; transition: background 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.status-timeline__connector.is-complete { background: linear-gradient(90deg, #409678, #9ba8b3); }

.dark .status-timeline__step-icon { background: #424242; color: #757575; border-color: #616161; }
.dark .status-timeline__step-label { color: #757575; }
.dark .status-timeline__step.is-active .status-timeline__step-icon { background: linear-gradient(135deg, #1B5E20, #455A64); color: #ffffff; border-color: #1B5E20; }
.dark .status-timeline__step.is-active .status-timeline__step-label { color: #409678; }
.dark .status-timeline__step.is-complete .status-timeline__step-icon { background: rgba(27, 94, 32, 0.2); color: #409678; border-color: rgba(64, 150, 120, 0.5); }
.dark .status-timeline__step.is-complete .status-timeline__step-label { color: #409678; }
.dark .status-timeline__connector { background: #616161; }
.dark .status-timeline__connector.is-complete { background: linear-gradient(90deg, #1B5E20, #455A64); }

.donation-card { transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.donation-card:hover { transform: translateY(-2px); }

.donation-warning { border-radius: 1rem; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.donation-warning--expired { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); color: #ef4444; }
.donation-warning--warning { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); color: #c57f08; }
.donation-warning--info { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25); color: #3b82f6; }

.dark .donation-warning--expired { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
.dark .donation-warning--warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); color: #f8bb54; }
.dark .donation-warning--info { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }

.volunteer-card { border-radius: 1.5rem; padding: 1.25rem; background: #fafafa; border: 1px solid #e0e0e0; }
.volunteer-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.volunteer-card__avatar { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: linear-gradient(135deg, #1B5E20, #455A64); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; }
.volunteer-card__name { font-weight: 700; color: #212121; font-size: 0.875rem; }
.volunteer-card__contact { font-size: 0.75rem; color: #616161; }

.dark .volunteer-card { background: #212121; border-color: #424242; }
.dark .volunteer-card__name { color: #ffffff; }
.dark .volunteer-card__contact { color: #a8a8a8; }

#food-name-select optgroup { font-weight: 700; color: #424242; padding: 0.25rem 0; }
#food-name-select option { font-weight: 400; padding: 0.35rem 0.5rem; }

.dark #food-name-select optgroup { color: #d0d0d0; background: #212121; }
.dark #food-name-select option { background: #212121; }

#autofill-toast .animate-slide-up { animation: slideUp 0.3s ease-out; }

@keyframes autofill-highlight { 0% { box-shadow: 0 0 0 0 rgba(27, 94, 32, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(27, 94, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 94, 32, 0); } }
