-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
903 lines (782 loc) · 30.9 KB
/
index.html
File metadata and controls
903 lines (782 loc) · 30.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SeedSafe - Reimagining Seed Storage</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Playfair Display', Georgia, serif;
line-height: 1.6;
color: #2d3e2d;
}
/* Navigation */
nav {
position: fixed;
top: 0;
width: 100%;
background: rgba(34, 63, 42, 0.95);
padding: 1.5rem 5%;
z-index: 1000;
backdrop-filter: blur(10px);
}
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1400px;
margin: 0 auto;
}
nav .logo {
font-size: 1.5rem;
color: #f5f5f0;
font-weight: 400;
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo-icon {
width: 45px;
height: 45px;
position: relative;
filter: drop-shadow(0 0 8px rgba(139, 195, 154, 0.4));
}
@keyframes logoFloat {
0%,
100% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-3px) rotate(2deg);
}
}
.logo-icon {
animation: logoFloat 3s ease-in-out infinite;
}
nav ul {
display: flex;
list-style: none;
gap: 2.5rem;
}
nav a {
color: #f5f5f0;
text-decoration: none;
font-size: 1rem;
transition: opacity 0.3s;
}
nav a:hover {
opacity: 0.7;
}
/* Hero Section */
.hero {
height: 100vh;
display: flex;
align-items: center;
position: relative;
margin-top: 70px;
overflow: hidden;
background: #223f2a;
}
.hero-video-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.hero-video-bg canvas {
width: 100%;
height: 100%;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to right, rgba(34, 63, 42, 0.95) 0%, rgba(34, 63, 42, 0.85) 40%, rgba(34, 63, 42, 0.4) 70%, transparent 100%);
z-index: 1;
}
.hero-content {
max-width: 1400px;
margin: 0 auto;
padding: 0 5%;
width: 100%;
position: relative;
z-index: 2;
}
.hero h1 {
font-size: 4.5rem;
color: #f5f5f0;
margin-bottom: 1.5rem;
font-weight: 400;
line-height: 1.2;
}
.hero p {
font-size: 1.4rem;
color: #e8e8e0;
max-width: 600px;
margin-bottom: 3rem;
line-height: 1.8;
}
/* Section Styles */
section {
padding: 6rem 5%;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
h2 {
font-size: 3.5rem;
margin-bottom: 3rem;
font-weight: 400;
color: #223f2a;
}
/* The Problem Section */
#problem {
background: #3d6547;
color: #f5f5f0;
}
#problem h2 {
color: #f5f5f0;
}
#problem p {
font-size: 1.3rem;
line-height: 2;
margin-bottom: 2rem;
max-width: 900px;
}
/* Prototype Section */
#prototype {
background: linear-gradient(rgba(61, 101, 71, 0.7), rgba(61, 101, 71, 0.7)),
url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%234a7c59" width="1200" height="800"/></svg>');
background-size: cover;
color: #f5f5f0;
}
#prototype h2 {
color: #f5f5f0;
}
.prototype-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.prototype-card {
background: rgba(245, 245, 240, 0.95);
padding: 2.5rem;
border-radius: 8px;
color: #2d3e2d;
}
.prototype-card p {
font-size: 1.05rem;
line-height: 1.8;
}
/* Unique Section */
#unique {
background: #c5c9b8;
}
#unique p {
font-size: 1.2rem;
line-height: 2;
margin-bottom: 2rem;
max-width: 1000px;
}
/* Team Section */
#team {
background: #99a68a;
color: #2d3e2d;
}
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 3rem;
margin-top: 3rem;
}
.team-member {
text-align: left;
}
.team-member-photo {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
border-radius: 8px;
margin-bottom: 1.5rem;
}
.team-member h3 {
font-size: 1.4rem;
margin-bottom: 0.5rem;
color: #1a2e1a;
}
.team-member p {
font-size: 1.05rem;
color: #2d3e2d;
line-height: 1.6;
}
/* Future Plans Section */
#future {
background: #d4dcc8;
}
.future-item {
margin-bottom: 3rem;
}
.future-item h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #223f2a;
}
.future-item p {
font-size: 1.1rem;
line-height: 1.9;
color: #3d3d3d;
max-width: 900px;
}
.cta-button {
display: inline-block;
padding: 1rem 2.5rem;
background: #223f2a;
color: #f5f5f0;
text-decoration: none;
font-size: 1.1rem;
border-radius: 5px;
margin-top: 1rem;
transition: all 0.3s;
}
.cta-button:hover {
background: #3d6547;
transform: translateY(-2px);
}
/* Responsive */
@media (max-width: 768px) {
nav ul {
gap: 1.5rem;
font-size: 0.9rem;
}
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.1rem;
}
h2 {
font-size: 2.5rem;
}
}
</style>
</head>
<body>
<nav>
<div class="container">
<div class="logo">
<img class="logo-icon" src="logo.png" alt="SeedSafe Logo">
Seedsafe
</div>
<ul>
<li><a href="#problem">The Problem</a></li>
<li><a href="product-description.html">Product Description</a></li>
<li><a href="#team">Our Team</a></li>
</ul>
</div>
</nav>
<section class="hero">
<div class="hero-video-bg">
<canvas id="seedCanvas"></canvas>
</div>
<div class="hero-content">
<h1>SeedSafe</h1>
<p>Reimagining seed storage - upgraded with smart and resilient design</p>
</div>
</section>
<section id="problem">
<div class="container">
<h2>The Problem</h2>
<p>For millions of smallholder farmers, seed failure doesn't come from lack of effort, it comes from
uncertainty. Farmers dry and store seeds, but they don't know when seeds are safe, at risk, or already
compromised. That information arrives too late, after planting. SeedSafe is designed to change that.</p>
<p>Seeds lose viability when moisture and temperature cross biological thresholds for too long. Our approach
is simple: control moisture, stabilise the environment, and provide early signals before failure occurs.
Every component you see here exists to reduce uncertainty, not to add complexity.</p>
<a href="product-description.html" class="cta-button">Learn How It Works</a>
</div>
</section>
<section id="prototype">
<div class="container">
<h2>The Prototype</h2>
<div class="prototype-cards">
<div class="prototype-card">
<svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="#223f2a" stroke-width="2"
style="margin-bottom: 1rem;">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
<p>This is our working SeedSafe prototype. It is not a finished product, it is a functional system
designed to test a core idea: can we monitor and control seed storage conditions in a way that
actually helps farmers make better decisions?</p>
</div>
<div class="prototype-card">
<svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="#223f2a" stroke-width="2"
style="margin-bottom: 1rem;">
<path d="M18 20V10M12 20V4M6 20v-6"></path>
</svg>
<p>This prototype demonstrates three critical capabilities: first, that internal humidity can be
stabilised despite external conditions; second, that moisture can be actively reduced when
thresholds are exceeded; and third, that seed storage conditions can be made visible and
understandable to the user.</p>
</div>
<div class="prototype-card">
<svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="#223f2a" stroke-width="2"
style="margin-bottom: 1rem;">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"></path>
</svg>
<p>SeedSafe is not about perfect precision, it is about early warning. By providing farmers with
timely signals before irreversible loss occurs, SeedSafe improves planting decisions, reduces
seed waste, and increases confidence in seed quality.</p>
</div>
</div>
</div>
</section>
<section id="unique">
<div class="container">
<h2>What Makes Us Unique</h2>
<p>SeedSafe is designed as a complete, farmer-first solution. Unlike conventional systems that address
drying, storage, or monitoring in isolation, SeedSafe integrates all three into a single, portable unit
built for real-world farming conditions.</p>
<p>Our design is localised for regions like Bihar, combining low-energy mechanisms with language-neutral
visual indicators that work across literacy levels. Inspired by familiar rural storage practices,
SeedSafe uses simple mechanics, tactile controls, and clear visual cues to ensure intuitive use without
training fatigue.</p>
<p>SeedSafe is built to scale. By integrating seamlessly with government seed supply chains and Farmer
Producer Organisations (FPOs), it enables trusted distribution and measurable impact - improving seed
germination rates, increasing crop yields, and supporting data-driven agricultural planning.</p>
</div>
</section>
<section id="team">
<div class="container">
<h2>Our Team</h2>
<div class="team-grid">
<div class="team-member">
<img class="team-member-photo" src="placeholder2.png" alt="Taksh Kothari" id="taksh-photo">
<h3>Taksh Kothari</h3>
<p>Project Director and Head of Engineering</p>
</div>
<div class="team-member">
<img class="team-member-photo" src="placeholder4.png" alt="Vedansh Gupta" id="vedansh-photo">
<h3>Vedansh Gupta</h3>
<p>Web Development Lead and Component Strategist</p>
</div>
<div class="team-member">
<img class="team-member-photo" src="placeholder3.png" alt="Aadhar Mandhotra" id="aadhar-photo">
<h3>Aadhar Mandhotra</h3>
<p>Design Ideation and Systems Engineer</p>
</div>
<div class="team-member">
<img class="team-member-photo" src="placeholder1.png" alt="Shrinika Bhavsar" id="shrinika-photo">
<h3>Shrinika Bhavsar</h3>
<p>Ideation, Project and Product Strategy Lead</p>
</div>
<div class="team-membor">
<img class="team-member-photo" src="placeholder5.png" alt="Arbaz Reza" id="arbaz-reza-photo">
<h3>Arbaz Reza</h3>
<p>Team Mentor, Director Accelo Mobility</p>
</div>
</div>
</div>
</section>
<section id="future">
<div class="container">
<h2>Future Plans and Improvements</h2>
<div class="future-item">
<h3>1. Deep adoption across Bihar</h3>
<p>SeedSafe's first goal is widespread adoption among small and marginal farmers across Bihar. By
working closely with Farmer Producer Organisations (FPOs), state agriculture departments, and
government seed distribution programs, SeedSafe aims to become a standard post-harvest seed storage
solution.</p>
</div>
<div class="future-item">
<h3>2. Scaling across India's diverse agro-climatic regions</h3>
<p>Once validated across Bihar, SeedSafe will be adapted for use in other high-humidity and
climate-sensitive regions across India. Future versions will be tuned to different crop types and
regional conditions, enabling deployment nationwide through existing government and cooperative
supply chains.</p>
</div>
<div class="future-item">
<h3>3. Enhanced digital integration for institutions</h3>
<p>Future iterations will strengthen optional app-based dashboards for FPOs and agricultural bodies,
enabling large-scale monitoring, inventory planning, and early identification of storage risks -
while
keeping the farmer-facing experience simple and intuitive.</p>
</div>
<p style="margin-top: 3rem; font-size: 1.2rem;">This prototype is a foundation. Future iterations will
integrate improved thermal storage and simplified decision-state indicators. Our goal is a system that
fits seamlessly into existing agricultural practices while quietly preventing failure, before it
happens.</p>
</div>
</section>
<script>
// Ultra-dynamic animated background with 3D-like effects
const canvas = document.getElementById('seedCanvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let mouseX = canvas.width / 2;
let mouseY = canvas.height / 2;
let time = 0;
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
window.addEventListener('mousemove', (e) => {
mouseX = e.clientX;
mouseY = e.clientY;
});
// Enhanced 3D-like seed with depth
class Seed3D {
constructor() {
this.reset();
}
reset() {
this.x = Math.random() * canvas.width;
this.y = -50;
this.z = Math.random() * 10 + 1; // Depth
this.baseSpeed = 0.5 + Math.random() * 1.5;
this.baseSize = 4 + Math.random() * 7;
this.opacity = 0.3 + Math.random() * 0.6;
this.sway = Math.random() * 4 - 2;
this.swaySpeed = 0.01 + Math.random() * 0.02;
this.angle = 0;
this.rotation = Math.random() * Math.PI * 2;
this.rotationSpeed = (Math.random() - 0.5) * 0.03;
this.pulsePhase = Math.random() * Math.PI * 2;
this.glowIntensity = Math.random();
}
update() {
const scale = this.z / 10;
this.speed = this.baseSpeed * scale;
this.size = this.baseSize * scale;
this.y += this.speed;
this.angle += this.swaySpeed;
this.x += Math.sin(this.angle) * this.sway;
this.rotation += this.rotationSpeed;
this.pulsePhase += 0.05;
// Mouse interaction - parallax effect
const dx = (mouseX - canvas.width / 2) * 0.01 * scale;
const dy = (mouseY - canvas.height / 2) * 0.01 * scale;
this.x += dx * 0.1;
this.y += dy * 0.1;
if (this.y > canvas.height + 50) {
this.reset();
}
}
draw() {
ctx.save();
ctx.translate(this.x, this.y);
ctx.rotate(this.rotation);
const pulse = Math.sin(this.pulsePhase) * 0.2 + 1;
const currentSize = this.size * pulse;
ctx.globalAlpha = this.opacity;
// Outer glow
const glowGrad = ctx.createRadialGradient(0, 0, 0, 0, 0, currentSize * 2);
glowGrad.addColorStop(0, `rgba(139, 195, 154, ${this.glowIntensity * 0.4})`);
glowGrad.addColorStop(0.5, `rgba(139, 195, 154, ${this.glowIntensity * 0.15})`);
glowGrad.addColorStop(1, 'rgba(139, 195, 154, 0)');
ctx.fillStyle = glowGrad;
ctx.beginPath();
ctx.arc(0, 0, currentSize * 2, 0, Math.PI * 2);
ctx.fill();
// Seed body with gradient
const gradient = ctx.createRadialGradient(0, -currentSize * 0.3, 0, 0, 0, currentSize);
gradient.addColorStop(0, '#d4e8dc');
gradient.addColorStop(0.4, '#a8d4b8');
gradient.addColorStop(0.7, '#8fb899');
gradient.addColorStop(1, '#7fa889');
ctx.fillStyle = gradient;
ctx.beginPath();
ctx.ellipse(0, 0, currentSize, currentSize * 1.6, 0, 0, Math.PI * 2);
ctx.fill();
// Inner highlight
ctx.fillStyle = 'rgba(255, 255, 255, 0.3)';
ctx.beginPath();
ctx.ellipse(-currentSize * 0.2, -currentSize * 0.4, currentSize * 0.4, currentSize * 0.6, 0, 0, Math.PI * 2);
ctx.fill();
// Energy lines
if (Math.random() > 0.8) {
ctx.strokeStyle = `rgba(184, 212, 196, ${this.opacity * 0.8})`;
ctx.lineWidth = 1.5;
ctx.beginPath();
ctx.moveTo(0, -currentSize);
ctx.quadraticCurveTo(-currentSize, -currentSize * 2, -currentSize * 1.5, -currentSize * 2.8);
ctx.stroke();
ctx.beginPath();
ctx.moveTo(0, -currentSize);
ctx.quadraticCurveTo(currentSize, -currentSize * 2, currentSize * 1.5, -currentSize * 2.8);
ctx.stroke();
}
ctx.restore();
}
}
// Energy particles with trails
class EnergyParticle {
constructor() {
this.reset();
this.trail = [];
this.maxTrail = 8;
}
reset() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.z = Math.random() * 5 + 1;
this.size = 1.5 + Math.random() * 2.5;
this.speedX = (Math.random() - 0.5) * 2;
this.speedY = (Math.random() - 0.5) * 2;
this.opacity = 0.4 + Math.random() * 0.6;
this.hue = 140 + Math.random() * 40;
this.life = 0;
this.maxLife = 150 + Math.random() * 150;
this.trail = [];
}
update() {
// Mouse attraction
const dx = mouseX - this.x;
const dy = mouseY - this.y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < 200) {
this.speedX += (dx / dist) * 0.1;
this.speedY += (dy / dist) * 0.1;
}
// Add position to trail
this.trail.push({ x: this.x, y: this.y });
if (this.trail.length > this.maxTrail) {
this.trail.shift();
}
this.x += this.speedX;
this.y += this.speedY;
this.life++;
// Damping
this.speedX *= 0.99;
this.speedY *= 0.99;
if (this.life > this.maxLife || this.x < -50 || this.x > canvas.width + 50 ||
this.y < -50 || this.y > canvas.height + 50) {
this.reset();
}
}
draw() {
// Draw trail
for (let i = 0; i < this.trail.length; i++) {
const trailPoint = this.trail[i];
const alpha = (i / this.trail.length) * this.opacity * 0.4;
ctx.fillStyle = `hsla(${this.hue}, 60%, 70%, ${alpha})`;
const trailSize = this.size * (i / this.trail.length);
ctx.beginPath();
ctx.arc(trailPoint.x, trailPoint.y, trailSize, 0, Math.PI * 2);
ctx.fill();
}
// Draw particle
ctx.save();
ctx.globalAlpha = this.opacity * (1 - this.life / this.maxLife);
const gradient = ctx.createRadialGradient(this.x, this.y, 0, this.x, this.y, this.size * 3);
gradient.addColorStop(0, `hsl(${this.hue}, 70%, 80%)`);
gradient.addColorStop(0.4, `hsl(${this.hue}, 60%, 60%)`);
gradient.addColorStop(1, 'transparent');
ctx.fillStyle = gradient;
ctx.beginPath();
ctx.arc(this.x, this.y, this.size * 3, 0, Math.PI * 2);
ctx.fill();
ctx.restore();
}
}
// Hexagonal protection field
class HexField {
constructor() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.size = 40 + Math.random() * 120;
this.opacity = 0.08 + Math.random() * 0.12;
this.rotation = Math.random() * Math.PI / 3;
this.rotationSpeed = (Math.random() - 0.5) * 0.005;
this.pulse = Math.random() * Math.PI * 2;
this.pulseSpeed = 0.01 + Math.random() * 0.02;
this.connections = [];
}
update() {
this.rotation += this.rotationSpeed;
this.pulse += this.pulseSpeed;
}
draw() {
const pulseSize = this.size + Math.sin(this.pulse) * 12;
ctx.save();
ctx.translate(this.x, this.y);
ctx.rotate(this.rotation);
ctx.globalAlpha = this.opacity;
// Draw hexagon
ctx.strokeStyle = '#5fb87a';
ctx.lineWidth = 2;
ctx.beginPath();
for (let i = 0; i < 6; i++) {
const angle = (Math.PI / 3) * i;
const x = Math.cos(angle) * pulseSize;
const y = Math.sin(angle) * pulseSize;
if (i === 0) {
ctx.moveTo(x, y);
} else {
ctx.lineTo(x, y);
}
}
ctx.closePath();
ctx.stroke();
// Inner glow
ctx.globalAlpha = this.opacity * 0.3;
ctx.strokeStyle = '#8bc39a';
ctx.lineWidth = 1;
ctx.beginPath();
for (let i = 0; i < 6; i++) {
const angle = (Math.PI / 3) * i;
const x = Math.cos(angle) * pulseSize * 0.7;
const y = Math.sin(angle) * pulseSize * 0.7;
if (i === 0) {
ctx.moveTo(x, y);
} else {
ctx.lineTo(x, y);
}
}
ctx.closePath();
ctx.stroke();
ctx.restore();
}
}
// Wave effects
class Wave {
constructor() {
this.y = Math.random() * canvas.height;
this.amplitude = 20 + Math.random() * 40;
this.frequency = 0.001 + Math.random() * 0.002;
this.phase = Math.random() * Math.PI * 2;
this.speed = 0.02 + Math.random() * 0.03;
this.opacity = 0.1 + Math.random() * 0.2;
}
update() {
this.phase += this.speed;
}
draw() {
ctx.save();
ctx.globalAlpha = this.opacity;
ctx.strokeStyle = '#6fa882';
ctx.lineWidth = 2;
ctx.beginPath();
for (let x = 0; x < canvas.width; x += 5) {
const y = this.y + Math.sin(x * this.frequency + this.phase) * this.amplitude;
if (x === 0) {
ctx.moveTo(x, y);
} else {
ctx.lineTo(x, y);
}
}
ctx.stroke();
ctx.restore();
}
}
// Initialize all elements
const seeds = Array.from({ length: 100 }, () => new Seed3D());
const particles = Array.from({ length: 80 }, () => new EnergyParticle());
const hexFields = Array.from({ length: 15 }, () => new HexField());
const waves = Array.from({ length: 5 }, () => new Wave());
function animate() {
time += 0.01;
// Dynamic gradient background
const gradient = ctx.createLinearGradient(
0, 0,
canvas.width + Math.sin(time * 0.5) * 200,
canvas.height + Math.cos(time * 0.3) * 200
);
gradient.addColorStop(0, '#1a3d2b');
gradient.addColorStop(0.25, '#223f2a');
gradient.addColorStop(0.5, '#2d5a3a');
gradient.addColorStop(0.75, '#3d6547');
gradient.addColorStop(1, '#4a7c59');
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, canvas.width, canvas.height);
// Pulsing radial overlay
const radialGradient = ctx.createRadialGradient(
mouseX, mouseY, 0,
mouseX, mouseY, canvas.width * 0.8
);
radialGradient.addColorStop(0, 'rgba(95, 184, 122, 0.15)');
radialGradient.addColorStop(0.5, 'rgba(61, 101, 71, 0.1)');
radialGradient.addColorStop(1, 'rgba(29, 50, 36, 0.5)');
ctx.fillStyle = radialGradient;
ctx.fillRect(0, 0, canvas.width, canvas.height);
// Draw waves
waves.forEach(wave => {
wave.update();
wave.draw();
});
// Draw hex fields
hexFields.forEach(hex => {
hex.update();
hex.draw();
});
// Draw energy particles
particles.forEach(p => {
p.update();
p.draw();
});
// Draw seeds
seeds.forEach(seed => {
seed.update();
seed.draw();
});
requestAnimationFrame(animate);
}
animate();
// Load team member photos
async function loadTeamPhotos() {
const photos = {
'shrinika-photo': 'image_1.jpg',
'taksh-photo': 'image_2.jpg',
'aadhar-photo': 'image_3.jpg',
'vedansh-photo': 'image_4.jpg'
};
for (const [id, filename] of Object.entries(photos)) {
try {
const data = await window.fs.readFile(filename);
const blob = new Blob([data], { type: 'image/jpeg' });
const url = URL.createObjectURL(blob);
const imgElement = document.getElementById(id);
if (imgElement) {
imgElement.src = url;
imgElement.onerror = () => {
console.log(`Failed to display ${filename}`);
imgElement.style.background = 'linear-gradient(135deg, #478557 0%, #3d6547 100%)';
};
}
} catch (error) {
console.log(`Could not load ${filename}:`, error);
const imgElement = document.getElementById(id);
if (imgElement) {
imgElement.style.background = 'linear-gradient(135deg, #478557 0%, #3d6547 100%)';
}
}
}
}
loadTeamPhotos();
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
</script>
</body>
</html>