-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
755 lines (699 loc) · 45.1 KB
/
index.html
File metadata and controls
755 lines (699 loc) · 45.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
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jay Khairnar - Personal Portfolio</title>
<script src="https://cdn.tailwindcss.com"></script>
<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=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- AOS Animation Library --><link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f0f2f5;
}
/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e0e0e0; }
::-webkit-scrollbar-thumb { background: #a0a0a0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #888; }
.section {
padding-top: 6rem;
padding-bottom: 6rem;
position: relative;
overflow: hidden;
}
#particle-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background-color: #111827;
}
/* Glassmorphism Effect */
.glassmorphism {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}
.pattern-bg {
background-color: #f0f2f5;
background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.06'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Chatbot Styles */
.chatbot-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; }
.chat-toggle-button {
background: linear-gradient(45deg, #3b82f6, #6366f1);
color: white; width: 60px; height: 60px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); cursor: pointer; transition: all 0.3s ease;
}
.chat-toggle-button:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); }
.chat-popup {
display: none; position: fixed; bottom: 7rem; right: 2rem; width: 90vw; max-width: 400px;
height: 70vh; max-height: 600px; border-radius: 1rem;
flex-direction: column; overflow: hidden;
opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s;
}
.chat-popup.active { display: flex; opacity: 1; transform: translateY(0); }
/* Brainstorming Game Animation */
.idea-card.is-flipping { animation: flip 0.5s ease-in-out; }
@keyframes flip {
0% { transform: rotateX(0deg); opacity: 1; }
50% { transform: rotateX(90deg); opacity: 0; }
100% { transform: rotateX(0deg); opacity: 1; }
}
/* Animated Skill Bars */
.skill-bar-container {
width: 100%;
background-color: #e5e7eb;
border-radius: 9999px;
height: 12px;
overflow: hidden;
}
.skill-bar-fill {
background-color: #3b82f6;
height: 100%;
width: 0; /* Initially 0 */
border-radius: 9999px;
transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}
/* New Download Resume Button Style */
.resume-btn {
position: relative;
overflow: hidden;
transition: color 0.4s ease-in-out;
z-index: 1;
}
.resume-btn:hover {
color: white; /* Text turns white on hover */
}
.resume-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #1f2937; /* A dark gray for the fill */
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s ease-in-out;
z-index: -1;
}
.resume-btn:hover::before {
transform: scaleX(1);
}
/* Icon animation */
.resume-btn .download-icon {
transition: transform 0.3s ease;
}
.resume-btn:hover .download-icon {
transform: translateY(3px); /* Moves icon down slightly */
}
</style>
</head>
<body class="text-gray-800 transition-colors duration-300">
<!-- Header Section --><header id="header" class="glassmorphism fixed w-full top-0 z-50 transition-all duration-300">
<nav class="container mx-auto px-6 py-4 flex justify-between items-center">
<a href="#home" class="text-2xl font-bold text-gray-800">Jay Khairnar</a>
<div class="flex items-center space-x-5">
<div class="hidden md:flex space-x-6 items-center">
<a href="#about" class="text-gray-700 font-medium hover:text-blue-600 transition duration-300">About</a>
<a href="#projects" class="text-gray-700 font-medium hover:text-blue-600 transition duration-300">Projects</a>
<a href="#achievements" class="text-gray-700 font-medium hover:text-blue-600 transition duration-300">Achievements</a>
<a href="#game" class="text-gray-700 font-medium hover:text-blue-600 transition duration-300">Game</a>
<a href="#contact" class="text-gray-700 font-medium hover:text-blue-600 transition duration-300">Contact</a>
</div>
<button id="mobile-menu-button" class="md:hidden text-gray-800"><i data-feather="menu"></i></button>
</div>
</nav>
<div id="mobile-menu" class="hidden md:hidden bg-white/80 backdrop-blur-md">
<a href="#about" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100">About</a>
<a href="#projects" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100">Projects</a>
<a href="#achievements" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100">Achievements</a>
<a href="#game" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100">Game</a>
<a href="#contact" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100">Contact</a>
</div>
</header>
<main>
<!-- Hero Section --><section id="home" class="min-h-screen flex items-center justify-center relative overflow-hidden">
<canvas id="particle-canvas"></canvas>
<div class="container mx-auto px-6 text-center relative z-10" data-aos="zoom-in">
<h1 class="text-4xl md:text-6xl font-extrabold text-white leading-tight mb-4 drop-shadow-lg">
Hi, I'm <span class="text-yellow-300">Jay Khairnar</span>
</h1>
<p class="text-lg md:text-2xl text-white/90 mb-8 drop-shadow-md">
BE Information Technology Student & Aspiring Developer
</p>
<a href="#projects" class="bg-white text-blue-600 font-bold py-3 px-8 rounded-full hover:bg-yellow-300 hover:text-gray-900 transition duration-300 transform hover:scale-105 inline-block shadow-lg">
View My Work
</a>
</div>
</section>
<!-- About Me Section --><section id="about" class="section pattern-bg">
<div class="container mx-auto px-6">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-900" data-aos="fade-up">About Me</h2>
<div class="flex flex-col md:flex-row items-center gap-12">
<div class="md:w-1/3 flex flex-col items-center" data-aos="fade-right" data-aos-delay="200">
<p class="text-gray-700 leading-relaxed mb-6 text-center">
I am a 3rd-year BE IT student at SPPU, passionate about coding and web development. I'm curious, innovative, and dedicated to creating impactful tech projects.
</p>
<a href="#" class="resume-btn mt-4 inline-flex items-center gap-3 rounded-lg border-2 border-gray-900 px-8 py-4 font-bold text-gray-900">
<i data-feather="download" class="download-icon w-5 h-5"></i>
<span>Download Resume</span>
</a>
</div>
<div id="skills-section" class="md:w-2/3" data-aos="fade-left" data-aos-delay="400">
<h3 class="text-xl font-semibold mb-6 text-center md:text-left text-gray-900"><i data-feather="tool" class="inline-block mr-2"></i>My Skills</h3>
<div class="space-y-5">
<!-- Skill bars will be dynamically populated here -->
<div class="skill-item" data-skill="HTML" data-level="95"></div>
<div class="skill-item" data-skill="CSS & Tailwind" data-level="90"></div>
<div class="skill-item" data-skill="JavaScript" data-level="85"></div>
<div class="skill-item" data-skill="Node.js" data-level="75"></div>
<div class="skill-item" data-skill="MySQL & MongoDB" data-level="70"></div>
<div class="skill-item" data-skill="Git & VS Code" data-level="90"></div>
<div class="skill-item" data-skill="AWS Basics" data-level="60"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Projects Section --><section id="projects" class="section pattern-bg">
<div class="container mx-auto px-6">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-900" data-aos="fade-up">My Projects</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto">
<div class="glassmorphism rounded-2xl overflow-hidden transform hover:-translate-y-2 transition-transform duration-300" data-aos="fade-up" data-aos-delay="100">
<img src="https://placehold.co/600x400/3B82F6/FFFFFF?text=Spam+Detection" alt="Spam Message Detection Project" class="w-full h-56 object-cover">
<div class="p-6">
<h3 class="font-bold text-xl mb-2 text-gray-800">Spam Message Detection App</h3>
<p class="text-gray-700 text-base mb-4">A user-friendly web app that detects spam messages using trained datasets. Built with HTML, CSS, JavaScript, and Node.js.</p>
<div class="flex space-x-4">
<a href="#" class="bg-gray-800 text-white px-4 py-2 rounded-md text-sm hover:bg-gray-900 transition-colors">Live Demo</a>
<a href="https://github.com/jaykhairnar2005" target="_blank" rel="noopener noreferrer" class="border border-gray-800 text-gray-800 px-4 py-2 rounded-md text-sm hover:bg-gray-800 hover:text-white transition-colors">Source Code</a>
</div>
</div>
</div>
<div class="glassmorphism rounded-2xl overflow-hidden transform hover:-translate-y-2 transition-transform duration-300" data-aos="fade-up" data-aos-delay="200">
<img src="https://placehold.co/600x400/F59E0B/FFFFFF?text=More+Projects" alt="More Projects on GitHub" class="w-full h-56 object-cover">
<div class="p-6">
<h3 class="font-bold text-xl mb-2 text-gray-800">Personal Coding Experiments</h3>
<p class="text-gray-700 text-base mb-4">My GitHub includes various mini web apps, Data Structures & Algorithms solutions, and other personal coding projects.</p>
<div class="flex space-x-4">
<a href="https://github.com/jaykhairnar2005" target="_blank" rel="noopener noreferrer" class="bg-gray-800 text-white px-4 py-2 rounded-md text-sm hover:bg-gray-900 transition-colors">Explore on GitHub</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Achievements Section --><section id="achievements" class="section pattern-bg">
<div class="container mx-auto px-6">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-900" data-aos="fade-up">Timeline & Achievements</h2>
<div class="max-w-3xl mx-auto">
<div class="relative border-l-2 border-blue-200 pl-6">
<!-- Timeline Item 1 -->
<div class="relative mb-10" data-aos="fade-left">
<span class="absolute flex items-center justify-center w-8 h-8 bg-blue-100 rounded-full -left-[2.7rem] top-0 ring-8 ring-white">
<i data-feather="award" class="w-5 h-5 text-blue-600"></i>
</span>
<div class="flex items-center mb-1">
<h3 class="text-lg font-semibold text-gray-900">AWS Academy Graduate</h3>
<span class="bg-blue-100 text-blue-800 text-sm font-medium px-2.5 py-0.5 rounded ml-3">2025</span>
</div>
<p class="text-sm font-normal text-gray-500 mb-2">AWS Cloud Foundations</p>
<p class="text-base font-normal text-gray-600">Received official training and badge for foundational AWS cloud concepts.</p>
</div>
<!-- Timeline Item 2 -->
<div class="relative mb-10" data-aos="fade-left">
<span class="absolute flex items-center justify-center w-8 h-8 bg-blue-100 rounded-full -left-[2.7rem] top-0 ring-8 ring-white">
<i data-feather="users" class="w-5 h-5 text-blue-600"></i>
</span>
<div class="flex items-center mb-1">
<h3 class="text-lg font-semibold text-gray-900">Hackathon Participant</h3>
<span class="bg-blue-100 text-blue-800 text-sm font-medium px-2.5 py-0.5 rounded ml-3">2025</span>
</div>
<p class="text-sm font-normal text-gray-500 mb-2">Event like Hacktober25 | Organized by GDG, MET College</p>
<p class="text-base font-normal text-gray-600">Gained hands-on collaborative problem-solving experience in a competitive environment.</p>
</div>
<!-- Timeline Item 3 -->
<div class="relative" data-aos="fade-left">
<span class="absolute flex items-center justify-center w-8 h-8 bg-blue-100 rounded-full -left-[2.7rem] top-0 ring-8 ring-white">
<i data-feather="code" class="w-5 h-5 text-blue-600"></i>
</span>
<div class="flex items-center mb-1">
<h3 class="text-lg font-semibold text-gray-900">Completed DSA Roadmap</h3>
<span class="bg-blue-100 text-blue-800 text-sm font-medium px-2.5 py-0.5 rounded ml-3">2024-25</span>
</div>
<p class="text-sm font-normal text-gray-500 mb-2">Self-guided learning</p>
<p class="text-base font-normal text-gray-600">Strengthened my problem-solving skills by completing numerous coding projects and a comprehensive DSA roadmap.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Brainstorming Game Section --><section id="game" class="section pattern-bg">
<div class="container mx-auto px-6 text-center" data-aos="fade-up">
<h2 class="text-3xl font-bold mb-4 text-gray-900">✨ AI Brainstorming Hub</h2>
<p class="text-gray-600 mb-8 max-w-2xl mx-auto">Feeling creative? Generate a random tech idea, then let Gemini elaborate on it for you. A great way to spark new innovation!</p>
<div class="flex flex-col md:flex-row items-center justify-center gap-4 md:gap-8 mb-8">
<!-- Idea Card 1: Technology -->
<div id="idea-tech" class="idea-card glassmorphism rounded-2xl p-6 w-full md:w-64 h-32 flex items-center justify-center">
<span class="text-2xl font-bold text-gray-800">Technology</span>
</div>
<span class="text-4xl font-bold text-gray-400">+</span>
<!-- Idea Card 2: Industry -->
<div id="idea-industry" class="idea-card glassmorphism rounded-2xl p-6 w-full md:w-64 h-32 flex items-center justify-center">
<span class="text-2xl font-bold text-gray-800">Industry</span>
</div>
</div>
<div class="flex flex-col sm:flex-row justify-center items-center gap-4">
<button id="generate-idea-btn" class="bg-gradient-to-r from-gray-700 to-gray-900 text-white font-bold py-4 px-10 rounded-full hover:from-gray-600 hover:to-gray-800 transition duration-300 transform hover:scale-105 shadow-lg">
Generate Idea
</button>
<button id="generate-details-btn" class="hidden bg-gradient-to-r from-blue-500 to-indigo-600 text-white font-bold py-4 px-10 rounded-full hover:from-blue-600 hover:to-indigo-700 transition duration-300 transform hover:scale-105 shadow-lg">
✨ Generate Project Details with AI
</button>
</div>
<button id="suggest-steps-btn" class="hidden mt-4 bg-gradient-to-r from-green-500 to-emerald-600 text-white font-bold py-4 px-10 rounded-full hover:from-green-600 hover:to-emerald-700 transition duration-300 transform hover:scale-105 shadow-lg">
✨ Suggest Tech Stack & Steps
</button>
<div id="ai-idea-output" class="mt-8 max-w-3xl mx-auto text-left glassmorphism rounded-2xl p-6 hidden">
<div id="ai-idea-container">
<p id="ai-idea-text" class="text-gray-800"></p>
<div id="ai-idea-loader" class="flex items-center justify-center space-x-2">
<div class="w-3 h-3 bg-blue-500 rounded-full animate-pulse"></div>
<div class="w-3 h-3 bg-blue-500 rounded-full animate-pulse [animation-delay:0.2s]"></div>
<div class="w-3 h-3 bg-blue-500 rounded-full animate-pulse [animation-delay:0.4s]"></div>
<span class="ml-2 text-gray-700">Gemini is thinking...</span>
</div>
</div>
<div id="ai-steps-output" class="mt-4 pt-4 border-t border-gray-300/50 hidden">
<div id="ai-steps-text" class="text-gray-800"></div>
<div id="ai-steps-loader" class="flex items-center justify-center space-x-2">
<div class="w-3 h-3 bg-green-500 rounded-full animate-pulse"></div>
<div class="w-3 h-3 bg-green-500 rounded-full animate-pulse [animation-delay:0.2s]"></div>
<div class="w-3 h-3 bg-green-500 rounded-full animate-pulse [animation-delay:0.4s]"></div>
<span class="ml-2 text-gray-700">Gemini is planning...</span>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section --><section id="contact" class="section pattern-bg">
<div class="container mx-auto px-6" data-aos="fade-up">
<div class="max-w-2xl mx-auto text-center">
<h2 class="text-3xl font-bold mb-4 text-gray-900">Get In Touch</h2>
<p class="text-gray-600 mb-8">Let’s connect! Feel free to reach out for collaboration, projects, or just to say hi.</p>
</div>
<form id="contact-form" class="glassmorphism max-w-2xl mx-auto p-8 rounded-2xl">
<div id="form-message" class="mb-4 text-center"></div>
<div class="mb-6 relative">
<i data-feather="user" class="absolute left-4 top-3.5 text-gray-600"></i>
<input type="text" id="name" name="name" required placeholder="Your Name" class="w-full pl-12 pr-4 py-3 bg-white/50 text-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 border border-white/30 placeholder:text-gray-600">
</div>
<div class="mb-6 relative">
<i data-feather="mail" class="absolute left-4 top-3.5 text-gray-600"></i>
<input type="email" id="email" name="email" required placeholder="Your Email" class="w-full pl-12 pr-4 py-3 bg-white/50 text-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 border border-white/30 placeholder:text-gray-600">
</div>
<div class="mb-6 relative">
<i data-feather="message-square" class="absolute left-4 top-3.5 text-gray-600"></i>
<textarea id="message" name="message" rows="5" required placeholder="Your Message" class="w-full pl-12 pr-4 py-3 bg-white/50 text-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 border border-white/30 placeholder:text-gray-600"></textarea>
</div>
<div class="text-center">
<button type="submit" class="bg-blue-600 text-white font-bold py-3 px-8 rounded-full hover:bg-blue-700 transition duration-300 transform hover:scale-105">
Send Message
</button>
</div>
</form>
</div>
</section>
</main>
<!-- Footer --><footer class="bg-gray-900 text-gray-400">
<div class="container mx-auto px-6 py-8">
<div class="text-center mb-6">
<p class="text-lg italic">“Curiosity drives innovation.”</p>
</div>
<div class="flex flex-col md:flex-row justify-between items-center">
<p class="text-center md:text-left">© 2025 Jay Khairnar. All Rights Reserved.</p>
<div class="flex space-x-4 mt-4 md:mt-0">
<a href="https://linkedin.com/in/jaykhairnar" target="_blank" rel="noopener noreferrer" class="hover:text-white transition duration-300 transform hover:scale-125"><i data-feather="linkedin"></i></a>
<a href="https://github.com/jaykhairnar2005" target="_blank" rel="noopener noreferrer" class="hover:text-white transition duration-300 transform hover:scale-125"><i data-feather="github"></i></a>
<a href="mailto:jay.khairnar@example.com" class="hover:text-white transition duration-300 transform hover:scale-125"><i data-feather="mail"></i></a>
</div>
</div>
</div>
</footer>
<!-- AI Assistant Chatbot --><div class="chatbot-container">
<div id="chat-popup" class="chat-popup glassmorphism">
<div class="flex items-center justify-between p-4 bg-white/20 text-gray-800">
<div class="flex items-center gap-3">
<i data-feather="cpu" class="w-8 h-8"></i>
<h3 class="font-bold text-lg">✨ Auxil AI</h3>
</div>
<button id="close-chat" class="hover:text-gray-600"><i data-feather="x"></i></button>
</div>
<div id="chat-log" class="flex-1 p-4 overflow-y-auto bg-white/10">
<div class="flex gap-2 mb-4">
<span class="flex-shrink-0 w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center font-bold">A</span>
<div class="bg-blue-100 p-3 rounded-lg max-w-xs">
<p class="text-sm text-gray-800">Hello! I'm Auxil, Jay's AI assistant, powered by Gemini. Ask me anything about his profile!</p>
</div>
</div>
</div>
<div id="typing-indicator" class="p-4 hidden">
<div class="flex gap-2 items-center">
<span class="flex-shrink-0 w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center font-bold">A</span>
<div class="bg-blue-100 p-3 rounded-lg">
<div class="flex items-center justify-center space-x-1">
<div class="w-2 h-2 bg-gray-500 rounded-full animate-pulse"></div>
<div class="w-2 h-2 bg-gray-500 rounded-full animate-pulse [animation-delay:0.2s]"></div>
<div class="w-2 h-2 bg-gray-500 rounded-full animate-pulse [animation-delay:0.4s]"></div>
</div>
</div>
</div>
</div>
<div class="p-4 bg-white/20 border-t border-white/30">
<form id="chat-form" class="flex items-center gap-2">
<input type="text" id="chat-input" placeholder="Ask a question..." autocomplete="off" class="w-full px-4 py-2 bg-white/50 text-gray-800 border border-white/30 rounded-full focus:outline-none focus:ring-2 focus:ring-blue-500 placeholder:text-gray-600">
<button type="submit" class="bg-blue-600 text-white p-3 rounded-full hover:bg-blue-700 transition duration-300"><i data-feather="send"></i></button>
</form>
</div>
</div>
<button id="chat-toggle-button" class="chat-toggle-button">
<i id="chat-open-icon" data-feather="message-square" class="w-8 h-8"></i>
<i id="chat-close-icon" data-feather="x" class="w-8 h-8 hidden"></i>
</button>
</div>
<!-- JS Libraries -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
AOS.init({ duration: 800, once: true });
feather.replace();
// --- Particle Background ---
const canvas = document.getElementById('particle-canvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let particlesArray;
const mouse = { x: null, y: null, radius: (canvas.height / 100) * (canvas.width / 100) };
window.addEventListener('mousemove', (event) => {
mouse.x = event.x;
mouse.y = event.y;
});
class Particle {
constructor(x, y, directionX, directionY, size, color) {
this.x = x; this.y = y; this.directionX = directionX; this.directionY = directionY; this.size = size; this.color = color;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2, false);
ctx.fillStyle = 'rgba(255,255,255,0.5)';
ctx.fill();
}
update() {
if (this.x > canvas.width || this.x < 0) this.directionX = -this.directionX;
if (this.y > canvas.height || this.y < 0) this.directionY = -this.directionY;
let dx = mouse.x - this.x; let dy = mouse.y - this.y;
let distance = Math.sqrt(dx * dx + dy * dy);
if (distance < mouse.radius + this.size) {
if (mouse.x < this.x && this.x < canvas.width - this.size * 10) this.x += 5;
if (mouse.x > this.x && this.x > this.size * 10) this.x -= 5;
if (mouse.y < this.y && this.y < canvas.height - this.size * 10) this.y += 5;
if (mouse.y > this.y && this.y > this.size * 10) this.y -= 5;
}
this.x += this.directionX; this.y += this.directionY;
this.draw();
}
}
function initParticles() {
particlesArray = [];
let numberOfParticles = (canvas.height * canvas.width) / 9000;
for (let i = 0; i < numberOfParticles; i++) {
let size = (Math.random() * 2) + 1;
let x = (Math.random() * ((innerWidth - size * 2) - (size * 2)) + size * 2);
let y = (Math.random() * ((innerHeight - size * 2) - (size * 2)) + size * 2);
let directionX = (Math.random() * .4) - .2;
let directionY = (Math.random() * .4) - .2;
particlesArray.push(new Particle(x, y, directionX, directionY, size));
}
}
function animateParticles() {
requestAnimationFrame(animateParticles);
ctx.clearRect(0, 0, innerWidth, innerHeight);
for (let i = 0; i < particlesArray.length; i++) particlesArray[i].update();
connectParticles();
}
function connectParticles() {
let opacityValue = 1;
for (let a = 0; a < particlesArray.length; a++) {
for (let b = a; b < particlesArray.length; b++) {
let distance = ((particlesArray[a].x - particlesArray[b].x) * (particlesArray[a].x - particlesArray[b].x)) +
((particlesArray[a].y - particlesArray[b].y) * (particlesArray[a].y - particlesArray[b].y));
if (distance < (canvas.width / 7) * (canvas.height / 7)) {
opacityValue = 1 - (distance / 20000);
ctx.strokeStyle = `rgba(255,255,255,${opacityValue})`;
ctx.lineWidth = 1;
ctx.beginPath();
ctx.moveTo(particlesArray[a].x, particlesArray[a].y);
ctx.lineTo(particlesArray[b].x, particlesArray[b].y);
ctx.stroke();
}
}
}
}
window.addEventListener('resize', () => {
canvas.width = innerWidth;
canvas.height = innerHeight;
mouse.radius = (canvas.height / 100) * (canvas.width / 100);
initParticles();
});
window.addEventListener('mouseout', () => { mouse.x = undefined; mouse.y = undefined; });
initParticles();
animateParticles();
// --- Animated Skill Bars ---
const skillsSection = document.getElementById('skills-section');
const skillItems = document.querySelectorAll('.skill-item');
function createSkillBar(item) {
const skillName = item.dataset.skill;
const skillLevel = item.dataset.level;
const skillHTML = `
<div class="mb-4">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700">${skillName}</span>
<span class="text-sm font-medium text-gray-700">${skillLevel}%</span>
</div>
<div class="skill-bar-container">
<div class="skill-bar-fill" data-level="${skillLevel}"></div>
</div>
</div>
`;
item.innerHTML = skillHTML;
}
skillItems.forEach(createSkillBar);
const skillObserver = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const skillBars = skillsSection.querySelectorAll('.skill-bar-fill');
skillBars.forEach(bar => {
bar.style.width = bar.dataset.level + '%';
});
observer.unobserve(entry.target);
}
});
}, { threshold: 0.5 });
skillObserver.observe(skillsSection);
// --- Gemini API & Chat/Game Logic ---
const GEMINI_API_KEY = "AIzaSyCAEupbTJ4qfyK_Isf6x8R2IHF8qR1-bBM"; // Kept empty as per instructions
const GEMINI_API_URL = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-05-20:generateContent?key=${GEMINI_API_KEY}`;
const generateIdeaBtn = document.getElementById('generate-idea-btn');
const generateDetailsBtn = document.getElementById('generate-details-btn');
const suggestStepsBtn = document.getElementById('suggest-steps-btn');
const techCard = document.getElementById('idea-tech');
const industryCard = document.getElementById('idea-industry');
const aiIdeaOutput = document.getElementById('ai-idea-output');
const aiIdeaText = document.getElementById('ai-idea-text');
const aiIdeaLoader = document.getElementById('ai-idea-loader');
const aiStepsOutput = document.getElementById('ai-steps-output');
const aiStepsText = document.getElementById('ai-steps-text');
const aiStepsLoader = document.getElementById('ai-steps-loader');
const technologies = ['AI/ML', 'Blockchain', 'IoT', 'Virtual Reality', 'Cloud Computing', 'Cybersecurity', 'Mobile App', 'Web 3.0'];
const industries = ['Healthcare', 'Education', 'Finance', 'Entertainment', 'Sustainable Energy', 'E-commerce', 'Travel', 'Social Media'];
let currentTech = '';
let currentIndustry = '';
generateIdeaBtn.addEventListener('click', () => {
currentTech = technologies[Math.floor(Math.random() * technologies.length)];
currentIndustry = industries[Math.floor(Math.random() * industries.length)];
techCard.classList.add('is-flipping');
industryCard.classList.add('is-flipping');
setTimeout(() => {
techCard.innerHTML = `<span class="text-2xl font-bold text-gray-800">${currentTech}</span>`;
industryCard.innerHTML = `<span class="text-2xl font-bold text-gray-800">${currentIndustry}</span>`;
techCard.classList.remove('is-flipping');
industryCard.classList.remove('is-flipping');
generateDetailsBtn.classList.remove('hidden');
suggestStepsBtn.classList.add('hidden');
aiIdeaOutput.classList.add('hidden');
aiStepsOutput.classList.add('hidden');
}, 250);
});
generateDetailsBtn.addEventListener('click', async () => {
if (!currentTech || !currentIndustry) return;
aiIdeaOutput.classList.remove('hidden');
aiStepsOutput.classList.add('hidden');
aiIdeaText.classList.add('hidden');
aiIdeaLoader.classList.remove('hidden');
suggestStepsBtn.classList.add('hidden');
const userPrompt = `Based on the following combination, generate a concise, one-paragraph project idea for a university student's portfolio: Technology - ${currentTech}, Industry - ${currentIndustry}. The tone should be enthusiastic and professional.`;
try {
const payload = { contents: [{ parts: [{ text: userPrompt }] }] };
const response = await fetch(GEMINI_API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload)
});
if (!response.ok) throw new Error(`API call failed: ${response.status}`);
const result = await response.json();
const generatedText = result.candidates[0]?.content?.parts[0]?.text;
aiIdeaText.textContent = generatedText || 'Sorry, I could not generate an idea. Please try again.';
if (generatedText) {
suggestStepsBtn.classList.remove('hidden');
}
} catch (error) {
console.error("Gemini API Error:", error);
aiIdeaText.textContent = 'An error occurred while fetching the idea. Please check the console.';
} finally {
aiIdeaLoader.classList.add('hidden');
aiIdeaText.classList.remove('hidden');
}
});
suggestStepsBtn.addEventListener('click', async () => {
const projectIdea = aiIdeaText.textContent;
if (!projectIdea) return;
aiStepsOutput.classList.remove('hidden');
aiStepsText.innerHTML = '';
aiStepsLoader.classList.remove('hidden');
const userPrompt = `Given the project idea: "${projectIdea}", suggest a suitable technology stack (e.g., Frontend, Backend, Database) and outline the first 3-5 steps to get started on this project. Format the response with clear headings for 'Tech Stack' and 'First Steps', using bold text for the headings and a numbered list for the steps.`;
try {
const payload = { contents: [{ parts: [{ text: userPrompt }] }] };
const response = await fetch(GEMINI_API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload)
});
if (!response.ok) throw new Error(`API call failed: ${response.status}`);
const result = await response.json();
let generatedText = result.candidates[0]?.content?.parts[0]?.text;
// Simple markdown to HTML conversion
generatedText = generatedText
.replace(/\*\*(.*?)\*\*/g, '<strong class="text-lg text-gray-900 block mt-2 mb-1">$1</strong>') // Bold for headings
.replace(/(\d\.)/g, '<br><span class="font-bold mr-2">$1</span>'); // Numbered list items
aiStepsText.innerHTML = generatedText || 'Sorry, I could not generate the steps. Please try again.';
} catch (error) {
console.error("Gemini API Error:", error);
aiStepsText.innerHTML = 'An error occurred while fetching the steps. Please check the console.';
} finally {
aiStepsLoader.classList.add('hidden');
}
});
const mobileMenuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
mobileMenuButton.addEventListener('click', () => mobileMenu.classList.toggle('hidden'));
mobileMenu.addEventListener('click', (e) => {
if (e.target.tagName === 'A') mobileMenu.classList.add('hidden');
});
const contactForm = document.getElementById('contact-form');
const formMessage = document.getElementById('form-message');
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
const name = document.getElementById('name').value;
formMessage.innerHTML = `<p class="text-green-600 font-semibold">Thank you, ${name}! Your message has been sent.</p>`;
contactForm.reset();
setTimeout(() => { formMessage.innerHTML = ''; }, 5000);
});
const chatPopupButton = document.getElementById('chat-toggle-button');
const chatPopup = document.getElementById('chat-popup');
const closeChatButton = document.getElementById('close-chat');
const chatForm = document.getElementById('chat-form');
const chatInput = document.getElementById('chat-input');
const chatLog = document.getElementById('chat-log');
const typingIndicator = document.getElementById('typing-indicator');
const openIcon = document.getElementById('chat-open-icon');
const closeIcon = document.getElementById('chat-close-icon');
const toggleChat = () => {
chatPopup.classList.toggle('active');
openIcon.classList.toggle('hidden');
closeIcon.classList.toggle('hidden');
};
chatPopupButton.addEventListener('click', toggleChat);
closeChatButton.addEventListener('click', toggleChat);
const appendMessage = (sender, message) => {
const messageElement = document.createElement('div');
let messageHTML;
if (sender === 'user') {
messageHTML = `
<div class="flex justify-end mb-4">
<div class="bg-blue-500 text-white p-3 rounded-lg max-w-xs">
<p class="text-sm">${message}</p>
</div>
</div>`;
} else {
messageHTML = `
<div class="flex gap-2 mb-4">
<span class="flex-shrink-0 w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center font-bold">A</span>
<div class="bg-blue-100 p-3 rounded-lg max-w-xs">
<p class="text-sm text-gray-800">${message}</p>
</div>
</div>`;
}
messageElement.innerHTML = messageHTML;
chatLog.appendChild(messageElement);
chatLog.scrollTop = chatLog.scrollHeight;
};
const getBotResponse = async (userInput) => {
const portfolioContext = `Jay Khairnar is a 3rd-year BE IT student at SPPU. Skills: HTML, CSS, JavaScript, Node.js, MySQL, MongoDB, Git, VS Code, AWS Basics. Hobbies: Movies, cricket, dance, travel, anime. He is curious and innovative. Projects: Spam Detection App and other experiments on GitHub. Achievements: AWS Academy Graduate (2025), Hackathon Participant (2025), Completed DSA Roadmap (2024-25). Contact via form, LinkedIn, or GitHub.`;
const systemPrompt = `You are Auxil, a friendly AI assistant on Jay Khairnar's portfolio. Answer questions based ONLY on this provided context about Jay: ${portfolioContext}. Be concise. If a question is outside this scope, politely state you can only answer questions about Jay's professional profile.`;
try {
const payload = {
contents: [{ parts: [{ text: userInput }] }],
systemInstruction: { parts: [{ text: systemPrompt }] },
};
const response = await fetch(GEMINI_API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload)
});
if (!response.ok) throw new Error(`API Error: ${response.status}`);
const result = await response.json();
const botResponse = result.candidates[0]?.content?.parts[0]?.text;
appendMessage('bot', botResponse || "I'm having trouble connecting. Please try again.");
} catch (error) {
console.error("Gemini Chatbot Error:", error);
appendMessage('bot', "Sorry, I encountered an error.");
} finally {
typingIndicator.classList.add('hidden');
}
};
chatForm.addEventListener('submit', (e) => {
e.preventDefault();
const userInput = chatInput.value.trim();
if (userInput) {
appendMessage('user', userInput);
chatInput.value = '';
typingIndicator.classList.remove('hidden');
getBotResponse(userInput);
}
});
});
</script>
</body>
</html>