-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1175 lines (1073 loc) · 65.1 KB
/
index.html
File metadata and controls
1175 lines (1073 loc) · 65.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Open Arms Global - Reaching Out, Changing Lives</title>
<meta name="description" content="Open Arms Global is a charitable organization dedicated to supporting vulnerable families and children across Africa through education, nutrition, and community outreach programs.">
<meta name="keywords" content="charity, nonprofit, global, education, nutrition, community, children, families, donation, volunteer">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://openarmsglobal.org/">
<meta property="og:title" content="Open Arms Global - Reaching Out, Changing Lives">
<meta property="og:description" content="Join us in creating lasting change in communities worldwide through education, nutrition, and community support programs.">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://openarmsglobal.org/">
<meta property="twitter:title" content="Open Arms Global - Reaching Out, Changing Lives">
<meta property="twitter:description" content="Join us in creating lasting change in communities worldwide through education, nutrition, and community support programs.">
<link rel="canonical" href="https://openarmsglobal.org/">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'open-arms-orange': '#ff6b00',
'open-arms-navy': '#2c3e50',
'open-arms-blue': '#3498db',
'open-arms-warm': '#e67e22',
}
}
}
}
</script>
<style>
.hero-overlay {
background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.6));
}
.image-overlay {
background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.modal {
backdrop-filter: blur(5px);
}
/* Subtle animations appropriate for charity */
.gentle-hover {
transition: all 0.3s ease;
}
.gentle-hover:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.scale-hover {
transition: transform 0.2s ease;
}
.scale-hover:hover {
transform: scale(1.02);
}
.fade-in {
opacity: 0;
animation: fadeIn 1s ease-in forwards;
}
@keyframes fadeIn {
to { opacity: 1; }
}
.counter-animate {
transition: all 0.3s ease;
}
.pulse-subtle {
animation: pulse-subtle 3s ease-in-out infinite;
}
@keyframes pulse-subtle {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; }
}
/* Smooth scroll behavior */
html {
scroll-behavior: smooth;
}
/* Progress bars for impact metrics */
.progress-bar {
background: linear-gradient(90deg, #ff6b00, #e67e22);
animation: progressGrow 2s ease-out forwards;
}
@keyframes progressGrow {
from { width: 0%; }
}
/* Improved card shadows */
.impact-card {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
border: 1px solid rgba(255,107,0,0.1);
transition: all 0.3s ease;
}
.impact-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
/* Testimonial cards */
.testimonial-card {
background: linear-gradient(135deg, #f8f9fa, #ffffff);
border-left: 4px solid #ff6b00;
}
/* Button animations */
.btn-animate {
transition: all 0.3s ease;
}
.btn-animate:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-animate:active {
transform: translateY(0);
}
</style>
</head>
<body class="font-sans">
<!-- Header -->
<header class="bg-white shadow-sm fixed w-full z-50 transition-all duration-500" id="header">
<nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center py-4">
<div class="flex items-center">
<div class="w-12 h-12 bg-open-arms-orange rounded-full flex items-center justify-center scale-hover">
<span class="text-white font-bold text-xl">🤗</span>
</div>
<div class="ml-3">
<h1 class="text-2xl font-bold text-open-arms-navy">Open Arms Global</h1>
<p class="text-xs text-gray-600">Reaching Out, Changing Lives</p>
</div>
</div>
<div class="hidden lg:flex space-x-8">
<a href="#home" class="text-gray-700 hover:text-open-arms-orange transition-colors duration-300">Home</a>
<a href="#about" class="text-gray-700 hover:text-open-arms-orange transition-colors duration-300">About</a>
<a href="#work" class="text-gray-700 hover:text-open-arms-orange transition-colors duration-300">Our Work</a>
<a href="#gallery" class="text-gray-700 hover:text-open-arms-orange transition-colors duration-300">Gallery</a>
<a href="#volunteer" class="text-gray-700 hover:text-open-arms-orange transition-colors duration-300">Volunteer</a>
<a href="#contact" class="text-gray-700 hover:text-open-arms-orange transition-colors duration-300">Contact</a>
</div>
<button class="hidden md:block bg-open-arms-orange hover:bg-orange-600 text-white font-semibold py-3 px-6 rounded-full btn-animate" onclick="openDonationModal()">
Donate Now
</button>
<!-- Mobile menu button -->
<button class="lg:hidden scale-hover" id="mobile-menu-btn">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
</nav>
</header>
<!-- Hero Section -->
<section id="home" class="relative min-h-screen flex items-center">
<div class="absolute inset-0">
<img src="public/images/WhatsApp Image 2025-04-06 at 10.22.18 PM.jpeg" alt="Community work" class="w-full h-full object-cover">
<div class="hero-overlay absolute inset-0"></div>
</div>
<div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white">
<h1 class="text-4xl md:text-6xl lg:text-7xl font-bold mb-6 leading-tight fade-in">
Every Child Deserves
<span class="text-open-arms-orange block">Open Arms</span>
</h1>
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto opacity-90 leading-relaxed fade-in" style="animation-delay: 0.3s;">
We're a passionate organization reaching out to vulnerable communities across Africa,
one life at a time. Join us in creating lasting change.
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center fade-in" style="animation-delay: 0.6s;">
<button class="bg-open-arms-orange hover:bg-orange-600 text-white font-bold py-4 px-8 rounded-full btn-animate text-lg" onclick="openDonationModal()">
Start Helping Today
</button>
<button class="border-2 border-white bg-transparent hover:bg-white hover:text-open-arms-navy font-bold py-4 px-8 rounded-full btn-animate text-lg" onclick="document.getElementById('about').scrollIntoView({behavior: 'smooth'})">
Learn Our Story
</button>
</div>
</div>
<!-- Scroll indicator -->
<div class="absolute bottom-8 left-1/2 transform -translate-x-1/2 text-white pulse-subtle">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3" />
</svg>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-16 items-center">
<div class="relative gentle-hover">
<img src="public/images/WhatsApp Image 2025-04-06 at 10.23.21 PM.jpeg" alt="Children" class="rounded-2xl shadow-2xl w-full">
<div class="absolute -bottom-6 -right-6 bg-open-arms-orange text-white p-6 rounded-2xl shadow-lg scale-hover">
<div class="text-3xl font-bold">2024</div>
<div class="text-sm">Year Founded</div>
</div>
</div>
<div>
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-8 leading-tight">
Small Steps,
<span class="text-open-arms-orange">Big Hearts</span>
</h2>
<p class="text-lg text-gray-700 mb-6 leading-relaxed">
Open Arms Global started as a simple idea: what if we could make a real difference
in vulnerable communities across Africa? We're not a massive organization with thousands of
employees - we're passionate individuals who believe that every child deserves love, care, and opportunity.
</p>
<p class="text-lg text-gray-700 mb-8 leading-relaxed">
Though we're growing, our focus remains personal. We create direct, meaningful impact
by building genuine relationships with the families and communities we serve.
</p>
<div class="grid grid-cols-2 gap-8">
<div class="text-center p-6 bg-white rounded-xl shadow-md gentle-hover">
<div class="text-3xl mb-2">🌍</div>
<div class="text-2xl font-bold text-open-arms-navy">Global</div>
<div class="text-gray-600">Worldwide Reach</div>
</div>
<div class="text-center p-6 bg-white rounded-xl shadow-md gentle-hover">
<div class="text-3xl mb-2">🤝</div>
<div class="text-2xl font-bold text-open-arms-navy">Personal</div>
<div class="text-gray-600">Direct Impact</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Impact Statistics Section -->
<section class="py-20 bg-open-arms-navy text-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold mb-6">Our Growing Impact</h2>
<p class="text-xl opacity-90 max-w-3xl mx-auto">
Though we're a growing organization, we're already making meaningful changes in communities across Africa
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<div class="impact-card">
<div class="text-4xl font-bold text-open-arms-orange mb-2" id="families-counter">185</div>
<div class="text-gray-600 mb-4">Families Supported</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="width: 85%"></div>
</div>
</div>
<div class="impact-card">
<div class="text-4xl font-bold text-open-arms-orange mb-2" id="children-counter">420</div>
<div class="text-gray-600 mb-4">Children Reached</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="width: 75%"></div>
</div>
</div>
<div class="impact-card">
<div class="text-4xl font-bold text-open-arms-orange mb-2" id="countries-counter">8</div>
<div class="text-gray-600 mb-4">Countries Active</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="width: 60%"></div>
</div>
</div>
<div class="impact-card">
<div class="text-4xl font-bold text-open-arms-orange mb-2" id="programs-counter">3</div>
<div class="text-gray-600 mb-4">Active Programs</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="width: 90%"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-6">Stories of Hope</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">
Hear from the communities where our programs are making a difference
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="testimonial-card p-8 rounded-2xl shadow-lg gentle-hover">
<div class="text-open-arms-orange text-4xl mb-4">"</div>
<p class="text-gray-700 mb-6 italic">
"When the drought came, we thought we would lose everything. Open Arms Global helped us dig a borehole and taught us sustainable farming. Now our village thrives even in dry seasons."
</p>
<div class="flex items-center">
<div class="w-12 h-12 bg-open-arms-orange rounded-full flex items-center justify-center text-white font-bold mr-4">
A
</div>
<div>
<div class="font-semibold text-open-arms-navy">Amina Kone</div>
<div class="text-gray-600 text-sm">Village Elder, Mali</div>
</div>
</div>
</div>
<div class="testimonial-card p-8 rounded-2xl shadow-lg gentle-hover">
<div class="text-open-arms-orange text-4xl mb-4">"</div>
<p class="text-gray-700 mb-6 italic">
"When my daughter received her school uniform and supplies, she cried with joy. Now she walks to school with her head held high, just like the other children."
</p>
<div class="flex items-center">
<div class="w-12 h-12 bg-open-arms-orange rounded-full flex items-center justify-center text-white font-bold mr-4">
F
</div>
<div>
<div class="font-semibold text-open-arms-navy">Fatou Diallo</div>
<div class="text-gray-600 text-sm">Mother, Senegal</div>
</div>
</div>
</div>
<div class="testimonial-card p-8 rounded-2xl shadow-lg gentle-hover">
<div class="text-open-arms-orange text-4xl mb-4">"</div>
<p class="text-gray-700 mb-6 italic">
"The food packages and educational support changed everything for my family. My children can now focus on their studies without worrying about meals."
</p>
<div class="flex items-center">
<div class="w-12 h-12 bg-open-arms-orange rounded-full flex items-center justify-center text-white font-bold mr-4">
A
</div>
<div>
<div class="font-semibold text-open-arms-navy">Amara Okafor</div>
<div class="text-gray-600 text-sm">Parent, Nigeria</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Our Work Section -->
<section id="work" class="py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-6">What We Do</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
Every program we run comes from listening to community needs across African villages and towns.
We start with purpose and grow with impact.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Program 1 -->
<div class="group bg-white rounded-2xl shadow-lg overflow-hidden gentle-hover">
<div class="relative">
<img src="public/images/WhatsApp Image 2025-04-28 at 1.50.47 PM.jpeg" alt="Food support" class="w-full h-64 object-cover transition-transform duration-300 group-hover:scale-105">
<div class="image-overlay absolute inset-0"></div>
<div class="absolute top-4 left-4 bg-open-arms-orange text-white px-3 py-1 rounded-full text-sm font-semibold">
Active
</div>
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-open-arms-navy mb-3">Community Feeding Programs</h3>
<p class="text-gray-600 mb-4 leading-relaxed">
Regular nutritious meals and food packages delivered directly to families and children.
Ensuring no child in our communities goes hungry.
</p>
<div class="text-sm text-open-arms-orange font-semibold">50+ families receiving regular meals</div>
</div>
</div>
<!-- Program 2 -->
<div class="group bg-white rounded-2xl shadow-lg overflow-hidden gentle-hover">
<div class="relative">
<img src="public/images/WhatsApp Image 2025-05-04 at 4.17.42 PM.jpeg" alt="Education" class="w-full h-64 object-cover transition-transform duration-300 group-hover:scale-105">
<div class="image-overlay absolute inset-0"></div>
<div class="absolute top-4 left-4 bg-open-arms-blue text-white px-3 py-1 rounded-full text-sm font-semibold">
Growing
</div>
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-open-arms-navy mb-3">School Supplies & Uniforms</h3>
<p class="text-gray-600 mb-4 leading-relaxed">
Providing school uniforms, backpacks, notebooks, pens, and essential supplies
so children can attend school with dignity and focus on learning.
</p>
<div class="text-sm text-open-arms-orange font-semibold">85+ children equipped for school</div>
</div>
</div>
<!-- Program 3 -->
<div class="group bg-white rounded-2xl shadow-lg overflow-hidden gentle-hover">
<div class="relative">
<img src="public/images/WhatsApp Image 2025-04-06 at 10.31.13 PM.jpeg" alt="Community support" class="w-full h-64 object-cover transition-transform duration-300 group-hover:scale-105">
<div class="image-overlay absolute inset-0"></div>
<div class="absolute top-4 left-4 bg-green-500 text-white px-3 py-1 rounded-full text-sm font-semibold">
Expanding
</div>
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-open-arms-navy mb-3">Hygiene & Sanitary Supplies</h3>
<p class="text-gray-600 mb-4 leading-relaxed">
Essential hygiene kits, soap, sanitary products, and health supplies
for students, promoting health and school attendance.
</p>
<div class="text-sm text-open-arms-orange font-semibold">Monthly supplies to 40+ students</div>
</div>
</div>
</div>
</div>
</section>
<!-- Photo Gallery Section -->
<section id="gallery" class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-6">Our Story in Pictures</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
See the faces behind our mission and the global impact we're making together.
</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-04-06 at 10.21.06 PM.jpeg', 'Community gathering')">
<img src="public/images/WhatsApp Image 2025-04-06 at 10.21.06 PM.jpeg" alt="Community gathering" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-04-06 at 10.22.41 PM.jpeg', 'Food distribution')">
<img src="public/images/WhatsApp Image 2025-04-06 at 10.22.41 PM.jpeg" alt="Food distribution" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-04-06 at 10.29.32 PM.jpeg', 'Children activities')">
<img src="public/images/WhatsApp Image 2025-04-06 at 10.29.32 PM.jpeg" alt="Children activities" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-04-13 at 11.06.16 PM.jpeg', 'Community event')">
<img src="public/images/WhatsApp Image 2025-04-13 at 11.06.16 PM.jpeg" alt="Community event" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-04-27 at 1.47.47 AM.jpeg', 'Volunteer work')">
<img src="public/images/WhatsApp Image 2025-04-27 at 1.47.47 AM.jpeg" alt="Volunteer work" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-04-28 at 2.30.32 PM.jpeg', 'Family support')">
<img src="public/images/WhatsApp Image 2025-04-28 at 2.30.32 PM.jpeg" alt="Family support" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-05-04 at 4.17.42 PM (1).jpeg', 'Educational program')">
<img src="public/images/WhatsApp Image 2025-05-04 at 4.17.42 PM (1).jpeg" alt="Educational program" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
<div class="cursor-pointer scale-hover" onclick="openGalleryModal('public/images/WhatsApp Image 2025-05-06 at 5.25.44 PM.jpeg', 'Community celebration')">
<img src="public/images/WhatsApp Image 2025-05-06 at 5.25.44 PM.jpeg" alt="Community celebration" class="w-full h-48 object-cover rounded-lg shadow-md">
</div>
</div>
</div>
</section>
<!-- Impact Section -->
<section id="impact" class="py-20 bg-open-arms-navy text-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold mb-6">Growing Global Impact</h2>
<p class="text-xl opacity-90 max-w-3xl mx-auto leading-relaxed">
Every number represents a real person whose life we've touched across the globe.
</p>
</div>
<!-- Statistics -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-8 mb-16">
<div class="text-center counter-animate">
<div class="text-4xl lg:text-5xl font-bold text-open-arms-orange mb-2 counter" data-count="185">0</div>
<div class="text-gray-300">Families Helped</div>
</div>
<div class="text-center counter-animate">
<div class="text-4xl lg:text-5xl font-bold text-open-arms-orange mb-2 counter" data-count="420">0</div>
<div class="text-gray-300">Children Reached</div>
</div>
<div class="text-center counter-animate">
<div class="text-4xl lg:text-5xl font-bold text-open-arms-orange mb-2 counter" data-count="45">0</div>
<div class="text-gray-300">Volunteers</div>
</div>
<div class="text-center counter-animate">
<div class="text-4xl lg:text-5xl font-bold text-open-arms-orange mb-2 counter" data-count="8">0</div>
<div class="text-gray-300">Countries</div>
</div>
</div>
<!-- Story -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
<div class="relative scale-hover">
<img src="public/images/WhatsApp Image 2025-05-04 at 4.24.00 PM.jpeg" alt="Success story" class="rounded-2xl shadow-2xl w-full">
<div class="absolute inset-0 bg-gradient-to-t from-black/30 to-transparent rounded-2xl"></div>
</div>
<div>
<div class="text-6xl text-open-arms-orange mb-4">"</div>
<p class="text-xl leading-relaxed mb-6 opacity-90">
My children were missing school because they had no uniforms or supplies.
Open Arms Global provided school uniforms, backpacks, and regular meals for our family.
Now my daughter attends every day with confidence and pride.
</p>
<div class="border-l-4 border-open-arms-orange pl-4">
<div class="font-semibold">Grace Mwangi, mother of three</div>
<div class="text-sm opacity-75">Community leader, Kenya • Program participant since 2024</div>
</div>
</div>
</div>
<!-- Newsletter Signup -->
<div class="text-center mt-16">
<div class="bg-white/10 backdrop-blur-sm rounded-2xl p-8 max-w-4xl mx-auto gentle-hover">
<h3 class="text-3xl font-bold mb-4">Stay Connected Globally</h3>
<p class="text-xl mb-6 opacity-90">
Get updates on our programs worldwide and see how your support is making a global difference.
</p>
<form class="flex flex-col sm:flex-row gap-4 justify-center max-w-md mx-auto" onsubmit="handleNewsletterSignup(event)">
<input type="email" placeholder="Enter your email" class="flex-1 px-6 py-3 rounded-full text-gray-900 focus:outline-none focus:ring-2 focus:ring-open-arms-orange transition-all" required>
<button type="submit" class="bg-open-arms-orange hover:bg-orange-600 text-white font-bold py-3 px-6 rounded-full btn-animate">
Subscribe
</button>
</form>
</div>
</div>
</div>
</section>
<!-- Latest News Section -->
<section class="py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-6">Latest Updates</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">
Stay informed about our recent activities and upcoming initiatives
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<article class="bg-white rounded-2xl shadow-lg overflow-hidden gentle-hover">
<img src="public/images/WhatsApp Image 2025-04-28 at 1.50.48 PM.jpeg" alt="New Food Program" class="w-full h-48 object-cover">
<div class="p-6">
<div class="text-sm text-open-arms-orange font-semibold mb-2">PROGRAM LAUNCH</div>
<h3 class="text-xl font-bold text-open-arms-navy mb-3">Expanding Food Security Program</h3>
<p class="text-gray-600 mb-4">
We're excited to announce the expansion of our food security initiative to three new communities,
providing regular nutritious meals to over 150 additional families.
</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500">November 1, 2025</span>
<button class="text-open-arms-orange hover:text-orange-600 font-semibold btn-animate">Read More →</button>
</div>
</div>
</article>
<article class="bg-white rounded-2xl shadow-lg overflow-hidden gentle-hover">
<img src="public/images/WhatsApp Image 2025-04-28 at 2.30.32 PM (1).jpeg" alt="Hygiene Program" class="w-full h-48 object-cover">
<div class="p-6">
<div class="text-sm text-open-arms-orange font-semibold mb-2">HYGIENE PROGRAM</div>
<h3 class="text-xl font-bold text-open-arms-navy mb-3">Monthly Hygiene Kits Distribution</h3>
<p class="text-gray-600 mb-4">
We've begun distributing monthly hygiene kits to students, including soap, sanitary products,
and health supplies to promote school attendance and wellbeing.
</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500">October 28, 2025</span>
<button class="text-open-arms-orange hover:text-orange-600 font-semibold btn-animate">Read More →</button>
</div>
</div>
</article>
<article class="bg-white rounded-2xl shadow-lg overflow-hidden gentle-hover">
<div class="w-full h-48 bg-gradient-to-br from-open-arms-blue to-open-arms-navy flex items-center justify-center">
<div class="text-center text-white">
<div class="text-6xl mb-4">📚</div>
<div class="text-xl font-bold">Mobile Learning</div>
<div class="text-sm opacity-80">200+ Children Reached</div>
</div>
</div>
<div class="p-6">
<div class="text-sm text-open-arms-orange font-semibold mb-2">EDUCATION</div>
<h3 class="text-xl font-bold text-open-arms-navy mb-3">Mobile Learning Centers Success</h3>
<p class="text-gray-600 mb-4">
Our mobile learning centers have reached rural areas where traditional schools aren't accessible,
bringing education directly to 200+ children in remote communities.
</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500">October 25, 2025</span>
<button class="text-open-arms-orange hover:text-orange-600 font-semibold btn-animate">Read More →</button>
</div>
</div>
</article>
</div>
<div class="text-center mt-12">
<button class="bg-open-arms-orange hover:bg-orange-600 text-white font-bold py-4 px-8 rounded-full btn-animate">
View All Updates
</button>
</div>
</div>
</section>
<!-- Volunteer Section -->
<section id="volunteer" class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-6">Join Our Global Team</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
We're always looking for passionate people to help us reach more families worldwide.
Every skill, every hour, every heart makes a global difference.
</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12">
<!-- Volunteer Opportunities -->
<div>
<h3 class="text-2xl font-bold text-open-arms-navy mb-6">How You Can Help Globally</h3>
<div class="space-y-4">
<div class="flex items-start space-x-4 p-4 bg-white rounded-lg shadow-md gentle-hover">
<div class="w-12 h-12 bg-open-arms-orange rounded-full flex items-center justify-center flex-shrink-0">
<span class="text-white text-xl">🍎</span>
</div>
<div>
<h4 class="font-bold text-open-arms-navy">Global Food Distribution</h4>
<p class="text-gray-600">Help coordinate and support food packages to families across multiple countries.</p>
</div>
</div>
<div class="flex items-start space-x-4 p-4 bg-white rounded-lg shadow-md gentle-hover">
<div class="w-12 h-12 bg-open-arms-blue rounded-full flex items-center justify-center flex-shrink-0">
<span class="text-white text-xl">👨🏫</span>
</div>
<div>
<h4 class="font-bold text-open-arms-navy">Online Tutoring</h4>
<p class="text-gray-600">Support children worldwide with virtual homework help and reading programs.</p>
</div>
</div>
<div class="flex items-start space-x-4 p-4 bg-white rounded-lg shadow-md gentle-hover">
<div class="w-12 h-12 bg-green-500 rounded-full flex items-center justify-center flex-shrink-0">
<span class="text-white text-xl">💻</span>
</div>
<div>
<h4 class="font-bold text-open-arms-navy">Digital Support</h4>
<p class="text-gray-600">Help with website, social media, and coordinating our global operations.</p>
</div>
</div>
</div>
</div>
<!-- Volunteer Signup Form -->
<div>
<div class="bg-white rounded-2xl p-8 shadow-lg gentle-hover">
<h3 class="text-2xl font-bold text-open-arms-navy mb-6">Global Volunteer Signup</h3>
<form class="space-y-6" onsubmit="handleVolunteerSignup(event)">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">First Name</label>
<input type="text" name="firstName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Your first name" required>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Last Name</label>
<input type="text" name="lastName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Your last name" required>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>
<input type="email" name="email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="your.email@example.com" required>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Country</label>
<input type="text" name="country" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Your country" required>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">How would you like to help globally?</label>
<div class="space-y-2">
<label class="flex items-center">
<input type="checkbox" name="interests" value="food-distribution" class="text-open-arms-orange focus:ring-open-arms-orange">
<span class="ml-2">Global Food Distribution</span>
</label>
<label class="flex items-center">
<input type="checkbox" name="interests" value="tutoring" class="text-open-arms-orange focus:ring-open-arms-orange">
<span class="ml-2">Online Tutoring</span>
</label>
<label class="flex items-center">
<input type="checkbox" name="interests" value="digital" class="text-open-arms-orange focus:ring-open-arms-orange">
<span class="ml-2">Digital Support</span>
</label>
<label class="flex items-center">
<input type="checkbox" name="interests" value="fundraising" class="text-open-arms-orange focus:ring-open-arms-orange">
<span class="ml-2">Fundraising</span>
</label>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Tell us about yourself</label>
<textarea name="about" rows="3" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Your experience, skills, and why you want to help..."></textarea>
</div>
<button type="submit" class="w-full bg-open-arms-orange hover:bg-orange-600 text-white font-bold py-4 px-6 rounded-lg btn-animate">
Join Our Global Team
</button>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- Get Involved Section -->
<section id="contact" class="py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl lg:text-5xl font-bold text-open-arms-navy mb-6">Make a Global Impact</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
Every contribution matters, whether it's time, money, or simply spreading the word about our global mission.
</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-16">
<!-- Donate -->
<div class="bg-white rounded-2xl p-8 shadow-lg text-center gentle-hover">
<div class="w-16 h-16 bg-open-arms-orange rounded-full flex items-center justify-center mx-auto mb-6 pulse-subtle">
<span class="text-2xl">💝</span>
</div>
<h3 class="text-2xl font-bold text-open-arms-navy mb-4">Make a Donation</h3>
<p class="text-gray-600 mb-6">
Every dollar goes directly to families in need worldwide. $25 can feed a family for a week.
</p>
<button class="bg-open-arms-orange hover:bg-orange-600 text-white font-semibold py-3 px-6 rounded-full btn-animate w-full" onclick="openDonationModal()">
Donate Now
</button>
</div>
<!-- Sponsor -->
<div class="bg-white rounded-2xl p-8 shadow-lg text-center gentle-hover">
<div class="w-16 h-16 bg-purple-500 rounded-full flex items-center justify-center mx-auto mb-6">
<span class="text-2xl">👨👩👧👦</span>
</div>
<h3 class="text-2xl font-bold text-open-arms-navy mb-4">Sponsor a Family</h3>
<p class="text-gray-600 mb-6">
Make an ongoing commitment to support a specific family's journey to self-sufficiency.
</p>
<button class="bg-purple-500 hover:bg-purple-600 text-white font-semibold py-3 px-6 rounded-full btn-animate w-full" onclick="openSponsorshipModal()">
Learn More
</button>
</div>
<!-- Spread the Word -->
<div class="bg-white rounded-2xl p-8 shadow-lg text-center gentle-hover">
<div class="w-16 h-16 bg-green-500 rounded-full flex items-center justify-center mx-auto mb-6">
<span class="text-2xl">📢</span>
</div>
<h3 class="text-2xl font-bold text-open-arms-navy mb-4">Share Our Story</h3>
<p class="text-gray-600 mb-6">
Follow us on social media and help us reach more people globally who want to make a difference.
</p>
<button class="bg-green-500 hover:bg-green-600 text-white font-semibold py-3 px-6 rounded-full btn-animate w-full" onclick="shareOnSocial()">
Share Now
</button>
</div>
</div>
<!-- Contact Form -->
<div class="max-w-2xl mx-auto bg-white rounded-2xl p-8 shadow-lg gentle-hover">
<h3 class="text-2xl font-bold text-open-arms-navy mb-6 text-center">Get In Touch</h3>
<form class="space-y-6" onsubmit="handleContactForm(event)">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">First Name</label>
<input type="text" name="firstName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Your first name" required>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Last Name</label>
<input type="text" name="lastName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Your last name" required>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>
<input type="email" name="email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="your.email@example.com" required>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">How would you like to help?</label>
<select name="interest" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" required>
<option value="">Choose an option</option>
<option value="donate">Make a donation</option>
<option value="volunteer">Volunteer my time</option>
<option value="sponsor">Sponsor a family</option>
<option value="partner">Partner with us</option>
<option value="media">Media inquiry</option>
<option value="other">Something else</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Message</label>
<textarea name="message" rows="4" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent transition-all" placeholder="Tell us more about how you'd like to help..." required></textarea>
</div>
<button type="submit" class="w-full bg-open-arms-orange hover:bg-orange-600 text-white font-bold py-4 px-6 rounded-lg btn-animate">
Send Message
</button>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-open-arms-navy text-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Organization Info -->
<div>
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-open-arms-orange rounded-full flex items-center justify-center scale-hover">
<span class="text-white font-bold text-xl">🤗</span>
</div>
<div class="ml-3">
<h1 class="text-2xl font-bold">Open Arms Global</h1>
<p class="text-sm text-gray-300">Reaching Out, Changing Lives</p>
</div>
</div>
<p class="text-gray-300 leading-relaxed mb-4">
A passionate organization dedicated to supporting vulnerable families
and children in communities worldwide.
</p>
<p class="text-sm text-gray-400">
<strong>Website:</strong> <a href="https://openarmsglobal.org" class="text-open-arms-orange hover:text-orange-300 transition-colors">OpenArmsGlobal.org</a>
</p>
</div>
<!-- Quick Links -->
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#about" class="text-gray-300 hover:text-open-arms-orange transition-colors">About Us</a></li>
<li><a href="#work" class="text-gray-300 hover:text-open-arms-orange transition-colors">Our Work</a></li>
<li><a href="#gallery" class="text-gray-300 hover:text-open-arms-orange transition-colors">Photo Gallery</a></li>
<li><a href="#impact" class="text-gray-300 hover:text-open-arms-orange transition-colors">Global Impact</a></li>
<li><a href="#volunteer" class="text-gray-300 hover:text-open-arms-orange transition-colors">Volunteer</a></li>
<li><a href="#contact" class="text-gray-300 hover:text-open-arms-orange transition-colors">Contact</a></li>
</ul>
</div>
<!-- Contact Info -->
<div>
<h3 class="text-lg font-semibold mb-4">Connect With Us</h3>
<div class="space-y-3">
<p class="text-gray-300">📧 hello@openarmsglobal.org</p>
<p class="text-gray-300">🌍 Serving communities worldwide</p>
<div class="flex space-x-4 mt-4">
<button class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center hover:bg-blue-700 transition-colors scale-hover">
<span class="text-xs">f</span>
</button>
<button class="w-8 h-8 bg-blue-400 rounded-full flex items-center justify-center hover:bg-blue-500 transition-colors scale-hover">
<span class="text-xs">t</span>
</button>
<button class="w-8 h-8 bg-pink-600 rounded-full flex items-center justify-center hover:bg-pink-700 transition-colors scale-hover">
<span class="text-xs">i</span>
</button>
</div>
</div>
</div>
</div>
<!-- Bottom Footer -->
<div class="border-t border-gray-700 mt-8 pt-8 text-center">
<p class="text-gray-300">
© 2024 Open Arms Global. Made with ❤️ for communities worldwide.
</p>
</div>
</div>
</footer>
<!-- Donation Modal -->
<div id="donationModal" class="fixed inset-0 bg-black bg-opacity-50 modal hidden z-50 flex items-center justify-center p-4">
<div class="bg-white rounded-2xl max-w-md w-full p-8 transform transition-all scale-hover">
<div class="text-center mb-6">
<h3 class="text-2xl font-bold text-open-arms-navy mb-2">Make a Global Donation</h3>
<p class="text-gray-600">Choose how you'd like to help communities worldwide</p>
</div>
<div class="grid grid-cols-2 gap-4 mb-6">
<button class="donation-amount bg-gray-100 hover:bg-open-arms-orange hover:text-white p-4 rounded-lg font-bold btn-animate" data-amount="25">$25</button>
<button class="donation-amount bg-gray-100 hover:bg-open-arms-orange hover:text-white p-4 rounded-lg font-bold btn-animate" data-amount="50">$50</button>
<button class="donation-amount bg-gray-100 hover:bg-open-arms-orange hover:text-white p-4 rounded-lg font-bold btn-animate" data-amount="100">$100</button>
<button class="donation-amount bg-gray-100 hover:bg-open-arms-orange hover:text-white p-4 rounded-lg font-bold btn-animate" data-amount="custom">Custom</button>
</div>
<div id="customAmountDiv" class="hidden mb-6">
<input type="number" id="customAmount" placeholder="Enter amount" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-open-arms-orange focus:border-transparent">
</div>
<div class="space-y-4">
<button class="w-full bg-open-arms-orange hover:bg-orange-600 text-white font-bold py-3 px-6 rounded-lg btn-animate" onclick="processDonation('one-time')">
Donate Once
</button>
<button class="w-full bg-open-arms-blue hover:bg-blue-600 text-white font-bold py-3 px-6 rounded-lg btn-animate" onclick="processDonation('monthly')">
Monthly Donation
</button>
<button class="w-full border border-gray-300 text-gray-700 font-bold py-3 px-6 rounded-lg hover:bg-gray-100 btn-animate" onclick="closeDonationModal()">
Cancel
</button>
</div>
</div>
</div>
<!-- Gallery Modal -->
<div id="galleryModal" class="fixed inset-0 bg-black bg-opacity-75 modal hidden z-50 flex items-center justify-center p-4">
<div class="max-w-4xl w-full relative">
<img id="galleryModalImage" src="" alt="" class="w-full h-auto rounded-lg">
<div class="absolute top-4 right-4">
<button onclick="closeGalleryModal()" class="bg-white text-gray-800 rounded-full w-10 h-10 flex items-center justify-center hover:bg-gray-100 btn-animate">
×
</button>
</div>
<div id="galleryModalCaption" class="absolute bottom-4 left-4 bg-black bg-opacity-50 text-white px-4 py-2 rounded-lg"></div>
</div>
</div>
<script>
// Counter animation
function animateCounters() {
const counters = document.querySelectorAll('.counter');
counters.forEach(counter => {
const target = parseInt(counter.getAttribute('data-count'));
const increment = target / 60;
let current = 0;
const timer = setInterval(() => {
current += increment;
if (current >= target) {
counter.textContent = target;
clearInterval(timer);
} else {
counter.textContent = Math.floor(current);
}
}, 30);
});
}
// Trigger counter animation when impact section is visible
const impactSection = document.getElementById('impact');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
animateCounters();
observer.unobserve(entry.target);
}
});
});
observer.observe(impactSection);
// Donation Modal Functions
let selectedAmount = 0;
function openDonationModal() {
document.getElementById('donationModal').classList.remove('hidden');
document.body.style.overflow = 'hidden';
}
function closeDonationModal() {
document.getElementById('donationModal').classList.add('hidden');
document.body.style.overflow = 'auto';
selectedAmount = 0;
document.getElementById('customAmountDiv').classList.add('hidden');
// Reset amount buttons
document.querySelectorAll('.donation-amount').forEach(btn => {
btn.classList.remove('bg-open-arms-orange', 'text-white');
btn.classList.add('bg-gray-100');
});
}
// Handle amount selection
document.querySelectorAll('.donation-amount').forEach(button => {
button.addEventListener('click', function() {
// Reset all buttons
document.querySelectorAll('.donation-amount').forEach(btn => {
btn.classList.remove('bg-open-arms-orange', 'text-white');
btn.classList.add('bg-gray-100');
});
// Highlight selected button
this.classList.remove('bg-gray-100');
this.classList.add('bg-open-arms-orange', 'text-white');
const amount = this.getAttribute('data-amount');
if (amount === 'custom') {
document.getElementById('customAmountDiv').classList.remove('hidden');