-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
672 lines (620 loc) · 34.5 KB
/
Copy pathindex.html
File metadata and controls
672 lines (620 loc) · 34.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NFCycle | Eco-Friendly Today, Grey-Free Tomorrow</title>
<meta name="description"
content="NFCycle offers a closed-loop, refillable anti-hair loss shampoo ecosystem. Medical-grade formulas in smart NFC-enabled bottles. Join the zero-waste revolution.">
<meta name="keywords"
content="anti-hair loss shampoo, refillable shampoo, NFC technology, sustainable beauty, hair care, eco-friendly, zero waste">
<meta name="author" content="NFCycle">
<link rel="canonical" href="https://nfcycle.netlify.app/">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://nfcycle.netlify.app/">
<meta property="og:title" content="NFCycle | Eco-Friendly Today, Grey-Free Tomorrow">
<meta property="og:description"
content="NFCycle offers a closed-loop, refillable anti-hair loss shampoo ecosystem. Medical-grade formulas in smart NFC-enabled bottles.">
<meta property="og:image" content="https://nfcycle.netlify.app/assets/images/hero-bg.jpg">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://nfcycle.netlify.app/">
<meta property="twitter:title" content="NFCycle | Eco-Friendly Today, Grey-Free Tomorrow">
<meta property="twitter:description"
content="NFCycle offers a closed-loop, refillable anti-hair loss shampoo ecosystem. Medical-grade formulas in smart NFC-enabled bottles.">
<meta property="twitter:image" content="https://nfcycle.netlify.app/assets/images/hero-bg.jpg">
<link rel="icon" type="image/png" href="assets/images/logo.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@500;600;700&display=swap"
rel="stylesheet">
<!-- FontAwesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- AOS Animation Library -->
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="toast-styles.css">
</head>
<body>
<!-- Header -->
<header class="scrolled">
<div class="container">
<nav>
<a href="#" class="logo">
<img src="assets/images/logo.png" alt="NFCycle Logo" style="height: 60px;">
</a>
<div class="nav-links" id="navLinks">
<a href="#solution">Our Solution</a>
<a href="#products">Products</a>
<a href="blog.html">Blog</a>
<a href="pages/final-report.html">Final Report</a>
<a href="login.html">Login</a>
<a href="#preorder" class="btn btn-sm">Pre-Order</a>
</div>
<div class="hamburger" id="hamburger">
<i class="fas fa-bars"></i>
</div>
</nav>
</div>
</header>
<main>
<!-- Hero Section -->
<!-- Hero Section -->
<section class="hero">
<div class="container hero-container">
<div class="hero-text" data-aos="fade-right">
<h1>Eco-Friendly Today,<br>Grey-Free Tomorrow</h1>
<p>Join the zero-waste revolution with our medical-grade, anti-hair loss shampoo in smart,
refillable NFC bottles.</p>
<div class="hero-buttons">
<a href="#products" class="btn btn-primary">Explore the Bottle <i
class="fas fa-arrow-right"></i></a>
<a href="pages/how-it-works.html" class="btn btn-outline">How it Works</a>
</div>
</div>
<div class="hero-video" data-aos="fade-left">
<video autoplay loop muted playsinline class="hero-video-element">
<source src="assets/video/NFCycle_Smart_Refill_Animation_Brief.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
</section>
<!-- Problem Section -->
<section class="problem section-padding" id="problem">
<div class="container">
<div class="text-center" data-aos="fade-up">
<h2>The Problem</h2>
<p>We solve modern problems with an innovative product.</p>
</div>
<div class="grid"
style="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: var(--spacing-lg);">
<div class="card problem-card" data-aos="fade-up" data-aos-delay="100">
<div class="icon"><i class="fas fa-recycle"></i></div>
<h3>Plastic Waste</h3>
<p>Plastic waste increases every year, polluting our planet.</p>
</div>
<div class="card problem-card" data-aos="fade-up" data-aos-delay="200">
<div class="icon"><i class="fas fa-bolt"></i></div>
<h3>High Stress</h3>
<p>High stress levels speed up hair greying and aging.</p>
</div>
<div class="card problem-card" data-aos="fade-up" data-aos-delay="300">
<div class="icon"><i class="fas fa-user-md"></i></div>
<h3>Hair Loss Anxiety</h3>
<p>Hair loss is affecting younger generations, causing stress and anxiety.</p>
</div>
</div>
</div>
</section>
<!-- Solution Section -->
<section class="solution section-padding" id="solution" style="background-color: var(--color-light-gray);">
<div class="container">
<div class="grid" style="grid-template-columns: 1fr 1fr; align-items: center;">
<div class="solution-text" data-aos="fade-right">
<h2>Our Solution</h2>
<p>A smart, circular ecosystem that delivers premium hair care without the plastic waste.
</p>
<ul style="margin-top: var(--spacing-md);">
<li style="margin-bottom: 10px;"><i class="fas fa-check-circle"
style="color: var(--color-primary); margin-right: 10px;"></i> <strong>Zero-Friction
Refills:</strong> Doorstep swap with a "Bridge Bottle" so you never run out.</li>
<li style="margin-bottom: 10px;"><i class="fas fa-check-circle"
style="color: var(--color-primary); margin-right: 10px;"></i> <strong>Digital
Verification:</strong> Tap to track your eco-impact and earn loyalty points.</li>
<li style="margin-bottom: 10px;"><i class="fas fa-check-circle"
style="color: var(--color-primary); margin-right: 10px;"></i>
<strong>Medical-Grade:</strong> Proven formulas for hair growth and scalp health.
</li>
</ul>
</div>
<div class="solution-image" data-aos="fade-left">
<div class="video-wrapper">
<iframe width="560" height="315" src="https://www.youtube.com/embed/Zw_AUNm1fZo"
title="NFCycle Product Video" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</section>
<!-- Process Section -->
<section id="process" class="section-padding process">
<div class="container">
<h2 class="text-center">The NFCycle Process</h2>
<div class="process-steps">
<div class="step-card">
<div class="step-number">1</div>
<h3>Order</h3>
<p>Receive your filled "Regen Starter Kit" at your doorstep.</p>
</div>
<div class="step-card">
<div class="step-number">2</div>
<h3>Use & Tap</h3>
<p>Enjoy the product. Tap the bottle to view tips and track usage.</p>
</div>
<div class="step-card">
<div class="step-number">3</div>
<h3>Request Refill</h3>
<p>Tap to request. We swap your empty for a full one + a "Bridge Bottle".</p>
</div>
<div class="step-card">
<div class="step-number">4</div>
<h3>Loop</h3>
<p>We wash, sterilize, and refill the bottle for the next cycle.</p>
</div>
</div>
</div>
</section>
<!-- Products Showcase -->
<section id="products" class="section-padding products">
<div class="container">
<h2 class="text-center">Our Collection</h2>
<div class="products-grid">
<!-- Product 1: ReGen -->
<div class="product-item">
<div class="product-image">
<img src="assets/images/products/regen.jpg" alt="ReGen Bottle - Sage Green"
onerror="this.src='https://placehold.co/500x500/8A9A5B/FFFFFF?text=ReGen'" width="787"
height="800">
</div>
<div class="product-info">
<h3>ReGen</h3>
<div class="subhead">Stimulate and Awaken</div>
<p>Designed for scalp stimulation, hair growth, and grey-hair prevention.</p>
<div class="product-details">
<ul>
<li><strong>Key Actives:</strong> Rosemary oil (regrowth), Peppermint (circulation),
B12
+
Biotin complex</li>
<li><strong>Scent:</strong> Fresh herbal-mint — energizing but natural</li>
<li><strong>Vibe:</strong> Science-meets-herbal lab</li>
<li><strong>Style:</strong> Matte green with metallic silver minimalist text</li>
</ul>
</div>
<a href="#" class="btn">Learn More →</a>
</div>
</div>
<!-- Product 2: Vital Bloom -->
<div class="product-item">
<div class="product-image">
<img src="assets/images/products/vital-bloom.JPG" alt="Vital Bloom Bottle - Pale Jade"
onerror="this.src='https://placehold.co/500x500/A0D6B4/333333?text=Vital+Bloom'">
</div>
<div class="product-info">
<h3>Vital Bloom</h3>
<div class="subhead">Strength and Balance</div>
<p>Strengthens follicles, reduces shedding, and balances scalp oils.</p>
<div class="product-details">
<ul>
<li><strong>Key Actives:</strong> Korean red ginseng, Green tea antioxidants, Bamboo
water,
Vitamin B complex</li>
<li><strong>Scent:</strong> Earthy-green with a clean spa note</li>
<li><strong>Vibe:</strong> Korean wellness + eco-refill lifestyle</li>
<li><strong>Style:</strong> Cream-white background with green bamboo brush lines
</li>
</ul>
</div>
<a href="#" class="btn">Explore Vital Bloom →</a>
</div>
</div>
<!-- Product 3: Aura Restore -->
<div class="product-item">
<div class="product-image">
<img src="assets/images/products/aura-restore.JPG" alt="Aura Restore Bottle - Soft Lilac"
onerror="this.src='https://placehold.co/500x500/C8A2C8/FFFFFF?text=Aura+Restore'">
</div>
<div class="product-info">
<h3>Aura Restore</h3>
<div class="subhead">Repair and Calm</div>
<p>Hydration, pigment protection, and scalp soothing for sensitive or greying hair.</p>
<div class="product-details">
<ul>
<li><strong>Key Actives:</strong> Lavender oil, Blueberry antioxidants, Black
sesame,
B12
infusion</li>
<li><strong>Scent:</strong> Floral-berry blend — calm, elegant, long-lasting</li>
<li><strong>Vibe:</strong> Relaxed, restorative, slightly luxurious</li>
<li><strong>Style:</strong> Minimal lavender tones with silver outline</li>
</ul>
</div>
<a href="#" class="btn">Try Aura Restore →</a>
</div>
</div>
</div>
</div>
</section>
<section class="impact-section" id="impact">
<div class="container text-center">
<h2 data-aos="fade-up">Our Impact</h2>
<div class="impact-grid">
<div class="impact-card" data-aos="zoom-in" data-aos-delay="100">
<i class="fas fa-leaf fa-3x"></i>
<h3>100%</h3>
<p>Recyclable Materials</p>
</div>
<div class="impact-card" data-aos="zoom-in" data-aos-delay="200">
<i class="fas fa-spa fa-3x"></i>
<h3>0%</h3>
<p>Harmful Chemicals</p>
</div>
<div class="impact-card" data-aos="zoom-in" data-aos-delay="300">
<i class="fas fa-globe-asia fa-3x"></i>
<h3>1 Bottle</h3>
<p>Replaces 100+ Single-Use Plastics</p>
</div>
</div>
</div>
</section>
<section class="section-padding" id="team">
<div class="container">
<h2 class="text-center" data-aos="fade-up">Meet the Team</h2>
<div class="grid" style="margin-top: 40px;">
<div class="team-member" data-aos="fade-up" data-aos-delay="400">
<img src="assets/images/team/Anvar.jpg" alt="Subkhiddinov Anvarbek">
<h3>Subkhiddinov Anvarbek</h3>
<p class="role">Product Manager</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Subkhiddinov Anvarbek"><i
class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Subkhiddinov Anvarbek"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member" data-aos="fade-up" data-aos-delay="500">
<img src="assets/images/team/Javokhir.PNG" alt="Nimatilaev Javokhir" width="169" height="300">
<h3>Nimatilaev Javokhir</h3>
<p class="role">Co-Founder and Chief Operating Officer</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Nimatilaev Javokhir"><i class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Nimatilaev Javokhir"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member" data-aos="fade-up" data-aos-delay="500">
<img src="assets/images/team/Ziyodbek.jpg" alt="Abdumukhiddinov Ziyodbek">
<h3>Abdumukhiddinov Ziyodbek</h3>
<p class="role">Chief Financial Officer</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Abdumukhiddinov Ziyodbek"><i
class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Abdumukhiddinov Ziyodbek"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member" data-aos="fade-up" data-aos-delay="500">
<img src="assets/images/team/Benji.jpg" alt="Benji Laursen">
<h3>Benji Laursen</h3>
<p class="role">Co-Founder and CTO</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Benji Laursen"><i class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Benji Laursen"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member" data-aos="fade-up" data-aos-delay="500">
<img src="assets/images/team/Lera.jpg" alt="Chinieva Shokhida">
<h3>Chinieva Shokhida</h3>
<p class="role">Co-Founder and CEO</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Chinieva Shokhida"><i class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Chinieva Shokhida"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member" data-aos="fade-up" data-aos-delay="100">
<img src="assets/images/team/Otabek.jpg" alt="Otabek Najimov">
<h3>Otabek Najimov</h3>
<p class="role">Operations & Tech Developer</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Otabek Najimov"><i class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Otabek Najimov"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="team-member" data-aos="fade-up" data-aos-delay="400">
<img src="assets/images/team/Nana.jpg" alt="Novikova Anna">
<h3>Novikova Anna</h3>
<p class="role">Chief Marketing Officer</p>
<div class="team-social">
<a href="#" aria-label="LinkedIn - Novikova Anna"><i class="fab fa-linkedin"></i></a>
<a href="#" aria-label="GitHub - Novikova Anna"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section class="section-padding" id="faq" style="background-color: #f9f9f9;">
<div class="container" style="max-width: 800px;">
<h2 class="text-center" data-aos="fade-up">Frequently Asked Questions</h2>
<div class="faq-container" style="margin-top: 30px;">
<div class="faq-item" data-aos="fade-up">
<h3>How does the NFC technology work?</h3>
<p>Simply tap your phone to the logo on the bottle. It instantly opens your personal dashboard
where
you can track usage, request a refill, and see your eco-impact. No app download needed!</p>
</div>
<div class="faq-item" data-aos="fade-up" data-aos-delay="100">
<h3>Is the shampoo really personalized?</h3>
<p>Yes! When you first order, you'll take a quick hair quiz. We formulate your cartridge based
on
your specific hair type, scalp condition, and goals.</p>
</div>
<div class="faq-item" data-aos="fade-up" data-aos-delay="200">
<h3>When will I receive my order?</h3>
<p>We are currently in the pre-order phase. Shipping is estimated to begin in March 2026. You
will
receive regular updates on our progress.</p>
</div>
</div>
</div>
</section>
<section class="section-padding" id="preorder">
<div class="container">
<div class="preorder-wrapper" data-aos="zoom-in">
<h2 class="text-center">Join the Revolution</h2>
<p class="text-center" style="margin-bottom: 30px;">Secure your NFCycle Starter Kit today.</p>
<div class="pricing-box text-center">
<span class="old-price">₩40,000</span>
<span class="new-price">₩32,000</span>
<span class="discount-tag">20% OFF</span>
<p class="shipping-note"><i class="fas fa-shipping-fast"></i> Ships March 2026</p>
</div>
<form action="https://formsubmit.co/2693174e04c37dc21efd936ac7df9463" method="POST"
class="preorder-form" onsubmit="handlePreorder(event)">
<input type="hidden" name="_subject" value="New Pre-order Submission">
<input type="hidden" name="_captcha" value="false">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" id="name" name="name" required placeholder="John Doe">
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required placeholder="john@example.com">
</div>
<div class="form-group">
<label for="product">Select Your Starter Kit</label>
<div class="product-selection">
<label class="radio-card">
<input type="radio" name="product" value="ReGen" required>
<div class="card-content">
<span class="card-title">ReGen</span>
<span class="card-desc">Hair Loss</span>
</div>
</label>
<label class="radio-card">
<input type="radio" name="product" value="Vital Bloom">
<div class="card-content">
<span class="card-title">Vital Bloom</span>
<span class="card-desc">Greying</span>
</div>
</label>
<label class="radio-card">
<input type="radio" name="product" value="Aura Restore">
<div class="card-content">
<span class="card-title">Aura Restore</span>
<span class="card-desc">Damaged</span>
</div>
</label>
</div>
</div>
<div class="trust-signals text-center" style="margin: 20px 0; font-size: 0.9rem; color: #666;">
<p><i class="fas fa-lock"></i> Secure Pre-order • No Payment Required Today</p>
</div>
<button type="submit" class="btn btn-block btn-primary">Reserve My Kit</button>
</form>
</div>
</div>
</section>
</main>
<!-- Toast Notification Container -->
<div id="toast" class="toast hidden">
<i class="fas fa-check-circle"></i>
<span class="toast-message"></span>
</div>
<!-- Footer -->
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-brand">
<h3>NFCycle</h3>
<p>Eco-Friendly Today, Grey-Free Tomorrow.</p>
<div class="social-links" style="margin-top: 15px;">
<a href="https://facebook.com/nfcycle" target="_blank" rel="noopener" aria-label="Facebook"><i
class="fab fa-facebook"></i></a>
<a href="https://instagram.com/nfcycle" target="_blank" rel="noopener" aria-label="Instagram"><i
class="fab fa-instagram"></i></a>
<a href="https://twitter.com/nfcycle" target="_blank" rel="noopener" aria-label="Twitter"><i
class="fab fa-twitter"></i></a>
<a href="https://linkedin.com/company/nfcycle" target="_blank" rel="noopener"
aria-label="LinkedIn"><i class="fab fa-linkedin"></i></a>
</div>
</div>
<div class="footer-links">
<h4>Quick Links</h4>
<ul>
<li><a href="#problem">The Problem</a></li>
<li><a href="#solution">Our Solution</a></li>
<li><a href="#products">Products</a></li>
<li><a href="#team">Team</a></li>
</ul>
</div>
<div class="footer-contact">
<h4>Contact</h4>
<p><i class="fas fa-map-marker-alt"></i> 123 Street ro. Incheon, South Korea</p>
<p><i class="fas fa-phone"></i> 010-1234-5678</p>
<p><i class="fas fa-envelope"></i> info@nfcycle.com</p>
</div>
<div class="footer-newsletter">
<h4>Stay Updated</h4>
<p>Join our newsletter for eco-tips and updates.</p>
<form action="https://formsubmit.co/2693174e04c37dc21efd936ac7df9463" method="POST"
style="display: flex; gap: 10px; margin-top: 10px;">
<input type="hidden" name="_subject" value="New Newsletter Subscription">
<input type="hidden" name="_captcha" value="false">
<input type="email" name="email" placeholder="Your email"
style="padding: 8px; border-radius: 4px; border: none; flex: 1;">
<button type="submit" class="btn"
style="padding: 8px 15px; font-size: 0.9rem;">Subscribe</button>
</form>
</div>
</div>
<div class="footer-bottom">
<p>NFCycle © 2025 - Demo Day Prototype | <a href="#">Privacy Policy</a> | <a href="#">Terms of
Service</a></p>
</div>
</div>
</footer>
<!-- AOS Library -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
// Initialize AOS
AOS.init({
duration: 800,
once: true,
offset: 100
});
// Mobile Menu Toggle
const hamburger = document.getElementById('hamburger');
const navLinks = document.getElementById('navLinks');
if (hamburger && navLinks) {
hamburger.addEventListener('click', () => {
navLinks.classList.toggle('active');
hamburger.classList.toggle('active');
});
// Close menu when clicking a link
document.querySelectorAll('.nav-links a').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
hamburger.classList.remove('active');
});
});
}
// Navbar Scroll Effect
const header = document.querySelector('header');
window.addEventListener('scroll', () => {
if (window.scrollY > 100) {
header.classList.add('scrolled');
} else {
header.classList.remove('scrolled');
}
});
// Scroll Spy for Active Nav Links
const sections = document.querySelectorAll('section[id]');
const navLinksAll = document.querySelectorAll('.nav-links a[href^="#"]');
function setActiveLink() {
let current = '';
sections.forEach(section => {
const sectionTop = section.offsetTop;
const sectionHeight = section.clientHeight;
if (scrollY >= sectionTop - 200) {
current = section.getAttribute('id');
}
});
navLinksAll.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href') === `#${current}`) {
link.classList.add('active');
}
});
}
window.addEventListener('scroll', setActiveLink);
setActiveLink(); // Set active on page load
// NFC Demo Simulation
function simulateNFC() {
const screen = document.getElementById('nfc-screen');
screen.innerHTML = `
<div style="height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; background: #f0f9f0; animation: fadeIn 0.5s;">
<div style="font-size: 3rem; margin-bottom: 10px; color: var(--color-primary);"><i class="fas fa-leaf"></i></div>
<h3 style="color: #2F4F4F;">Welcome Back, Alex!</h3>
<p style="margin-bottom: 20px;">Level: Eco-Warrior</p>
<div style="background: white; padding: 15px; border-radius: 10px; width: 100%; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);">
<strong>Points Balance</strong>
<div style="font-size: 1.5rem; color: #8A9A5B;">1,250 pts</div>
</div>
<div style="background: white; padding: 15px; border-radius: 10px; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.05);">
<strong>Bottle Status</strong>
<div style="color: #555;">Refill due in 5 days</div>
</div>
</div>
`;
}
// Toast Notification Function
function showToast(message, type = 'success') {
const toast = document.getElementById('toast');
const toastMessage = toast.querySelector('.toast-message');
const toastIcon = toast.querySelector('i');
// Update message and icon
toastMessage.textContent = message;
toast.classList.remove('success', 'error', 'hidden');
toast.classList.add(type);
// Update icon based on type
if (type === 'success') {
toastIcon.className = 'fas fa-check-circle';
} else {
toastIcon.className = 'fas fa-exclamation-circle';
}
// Auto-hide after 4 seconds
setTimeout(() => {
toast.classList.add('hidden');
}, 4000);
}
// Pre-order Form Handling
function handlePreorder(event) {
event.preventDefault();
const form = event.target;
const btn = form.querySelector('button[type="submit"]');
const originalText = btn.innerText;
btn.innerText = "Sending...";
btn.disabled = true;
const data = new FormData(form);
fetch(form.action, {
method: form.method,
body: data,
headers: {
'Accept': 'application/json'
}
}).then(response => {
if (response.ok) {
showToast("Thank you for your pre-order! We'll contact you soon.", 'success');
form.reset();
} else {
response.json().then(data => {
if (Object.hasOwn(data, 'errors')) {
showToast(data["errors"].map(error => error["message"]).join(", "), 'error');
} else {
showToast("Oops! There was a problem submitting your form", 'error');
}
})
}
}).catch(error => {
showToast("Oops! There was a problem submitting your form", 'error');
}).finally(() => {
btn.innerText = originalText;
btn.disabled = false;
});
}
</script>
</body>
</html>