-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
829 lines (734 loc) · 30.3 KB
/
Copy pathindex.html
File metadata and controls
829 lines (734 loc) · 30.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shreyash Srivastva - Portfolio CV</title>
<!-- Driver.js CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/driver.js@1.3.1/dist/driver.css"/>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--black: #000000;
--white: #ffffff;
--gray-dark: #333333;
--gray-medium: #666666;
--gray-light: #cccccc;
--spacing-unit: 8px;
}
body {
font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--white);
color: var(--black);
line-height: 1.6;
font-size: 10pt;
}
.page {
max-width: 8.5in;
margin: 0 auto;
padding: 0.75in;
background: var(--white);
min-height: 11in;
position: relative;
}
/* Tour Button */
.tour-btn {
position: fixed;
top: 20px;
right: 20px;
background: var(--black);
color: var(--white);
border: 2px solid var(--black);
padding: 12px 24px;
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s ease;
z-index: 1000;
}
.tour-btn:hover {
background: var(--white);
color: var(--black);
}
/* Header */
.header {
text-align: center;
border-bottom: 3px solid var(--black);
padding-bottom: calc(var(--spacing-unit) * 3);
margin-bottom: calc(var(--spacing-unit) * 4);
}
.name {
font-family: 'IBM Plex Mono', monospace;
font-size: 36pt;
font-weight: 700;
letter-spacing: -1px;
margin-bottom: calc(var(--spacing-unit) * 2);
text-transform: uppercase;
}
.contact-line {
font-size: 9pt;
color: var(--gray-medium);
margin-top: calc(var(--spacing-unit) * 1);
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: calc(var(--spacing-unit) * 1);
}
.contact-line span {
transition: all 0.2s ease;
cursor: pointer;
position: relative;
}
.contact-line span:hover {
color: var(--black);
font-weight: 500;
}
.contact-line .separator {
color: var(--gray-light);
cursor: default;
}
.contact-line .separator:hover {
color: var(--gray-light);
font-weight: 400;
}
.contact-line a {
color: var(--gray-medium);
text-decoration: none;
transition: all 0.2s ease;
}
.contact-line a:hover {
color: var(--black);
font-weight: 500;
}
/* Section Headers */
.section {
margin-bottom: calc(var(--spacing-unit) * 4);
transition: all 0.3s ease;
}
.section:hover {
transform: translateX(4px);
}
.section-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 13pt;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
border-bottom: 2px solid var(--black);
padding-bottom: calc(var(--spacing-unit) * 1);
margin-bottom: calc(var(--spacing-unit) * 3);
}
/* Academic Record Table */
.academic-table {
width: 100%;
border-collapse: collapse;
margin-bottom: calc(var(--spacing-unit) * 2);
}
.academic-table th,
.academic-table td {
padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
text-align: left;
border: 1px solid var(--gray-light);
}
.academic-table th {
background: var(--black);
color: var(--white);
font-weight: 600;
font-size: 9pt;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.academic-table td {
font-size: 9.5pt;
color: var(--gray-dark);
}
.academic-table tr:hover {
background: #fafafa;
}
/* Project Items */
.project-item {
margin-bottom: calc(var(--spacing-unit) * 4);
padding-left: calc(var(--spacing-unit) * 2);
border-left: 3px solid transparent;
transition: all 0.2s ease;
cursor: pointer;
}
.project-item:hover {
border-left-color: var(--black);
padding-left: calc(var(--spacing-unit) * 3);
}
.project-header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: calc(var(--spacing-unit) * 1);
flex-wrap: wrap;
gap: calc(var(--spacing-unit) * 1);
}
.project-title {
font-size: 11pt;
font-weight: 600;
color: var(--black);
}
.project-date {
font-size: 9pt;
color: var(--gray-medium);
text-align: right;
}
.project-subtitle {
font-size: 9.5pt;
font-weight: 500;
color: var(--gray-dark);
margin-bottom: calc(var(--spacing-unit) * 1);
}
.project-details {
list-style-position: outside;
margin-left: 20px;
margin-top: calc(var(--spacing-unit) * 1);
}
.project-details li {
font-size: 9.5pt;
color: var(--gray-dark);
margin-bottom: calc(var(--spacing-unit) * 1);
line-height: 1.6;
padding-left: calc(var(--spacing-unit) * 1);
transition: all 0.2s ease;
}
.project-details li:hover {
color: var(--black);
transform: translateX(4px);
}
/* Skills Section */
.skills-section {
margin-bottom: calc(var(--spacing-unit) * 3);
}
.skills-category {
margin-bottom: calc(var(--spacing-unit) * 2);
}
.skills-category-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 9.5pt;
font-weight: 600;
color: var(--black);
margin-bottom: calc(var(--spacing-unit) * 1);
}
.skills-list {
font-size: 9.5pt;
line-height: 1.7;
color: var(--gray-dark);
}
/* Awards Section */
.awards-table {
width: 100%;
border-collapse: collapse;
}
.awards-table tr {
border-bottom: 1px solid var(--gray-light);
transition: all 0.2s ease;
}
.awards-table tr:hover {
background: #fafafa;
}
.awards-table td {
padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1);
font-size: 9.5pt;
}
.awards-table td:first-child {
color: var(--gray-dark);
line-height: 1.6;
}
.awards-table td:last-child {
text-align: right;
color: var(--gray-medium);
font-style: italic;
white-space: nowrap;
width: 60px;
}
.award-category {
font-family: 'IBM Plex Mono', monospace;
font-size: 10pt;
font-weight: 600;
color: var(--black);
padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1);
background: #f5f5f5;
}
/* Custom Driver.js Styling */
.driver-popover {
background: var(--black) !important;
color: var(--white) !important;
border: none !important;
font-family: 'IBM Plex Sans', sans-serif !important;
}
.driver-popover-title {
font-family: 'IBM Plex Mono', monospace !important;
color: var(--white) !important;
font-size: 14pt !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
}
.driver-popover-description {
color: rgba(255, 255, 255, 0.9) !important;
font-size: 10pt !important;
line-height: 1.6 !important;
}
.driver-popover-next-btn,
.driver-popover-prev-btn {
background: var(--white) !important;
color: var(--black) !important;
border: 2px solid var(--white) !important;
padding: 8px 16px !important;
font-family: 'IBM Plex Mono', monospace !important;
font-size: 9pt !important;
font-weight: 600 !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
transition: all 0.2s ease !important;
}
.driver-popover-next-btn:hover,
.driver-popover-prev-btn:hover {
background: var(--black) !important;
color: var(--white) !important;
}
.driver-popover-close-btn {
color: var(--white) !important;
font-size: 20pt !important;
}
.driver-popover-progress-text {
color: rgba(255, 255, 255, 0.7) !important;
font-family: 'IBM Plex Mono', monospace !important;
}
/* Print Styles */
@media print {
body {
background: white;
}
.tour-btn {
display: none;
}
.page {
margin: 0;
padding: 0.5in;
}
.section {
page-break-inside: avoid;
}
}
/* Responsive */
@media (max-width: 768px) {
.page {
padding: calc(var(--spacing-unit) * 4);
}
.name {
font-size: 28pt;
}
.contact-line {
flex-direction: column;
align-items: center;
gap: calc(var(--spacing-unit) * 0.5);
}
.project-header {
flex-direction: column;
align-items: flex-start;
}
.project-date {
text-align: left;
}
.tour-btn {
top: 10px;
right: 10px;
padding: 10px 20px;
font-size: 10px;
}
.academic-table,
.awards-table {
font-size: 8.5pt;
}
}
/* Tooltip for copy functionality */
.copy-tooltip {
position: absolute;
background: var(--black);
color: var(--white);
padding: 4px 8px;
font-size: 8pt;
font-family: 'IBM Plex Mono', monospace;
border-radius: 2px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
z-index: 1000;
top: -30px;
left: 50%;
transform: translateX(-50%);
}
.copy-tooltip.show {
opacity: 1;
}
</style>
</head>
<body>
<button class="tour-btn" id="startTour">► Start Tour</button>
<div class="page">
<!-- Header -->
<div class="header" id="header">
<h1 class="name">SHREYASH SRIVASTVA</h1>
<div class="contact-line">
<span class="contact-item" data-copy="Mail">✉ Mail</span>
<span class="separator">•</span>
<span class="contact-item" data-copy="+918765906865">☎ +918765906865</span>
<span class="separator">•</span>
<a href="https://www.linkedin.com/in/shreyashsrivastva/" target="_blank">🔗 shreyash</a>
<span class="separator">•</span>
<a href="https://github.com/shreyazh" target="_blank">⚙ shreyazh</a>
</div>
</div>
<!-- Academic Record Section -->
<div class="section" id="academic">
<h2 class="section-title">Academic Record</h2>
<table class="academic-table">
<thead>
<tr>
<th>Year</th>
<th>Degree</th>
<th>Institute</th>
<th>% / CGPA</th>
</tr>
</thead>
<tbody>
<tr>
<td>2026</td>
<td>B.TECH. (Computer Science)</td>
<td>AKTU, LUCKNOW</td>
<td>77.7% or 7.77</td>
</tr>
<tr>
<td>2022</td>
<td>12<sup>th</sup> (CBSE Board)</td>
<td>RLB Memorial School, Lucknow</td>
<td>80%</td>
</tr>
<tr>
<td>2020</td>
<td>10<sup>th</sup> (CBSE Board)</td>
<td>DAV Public School, Lucknow</td>
<td>90%</td>
</tr>
</tbody>
</table>
</div>
<!-- Professional Experience Section -->
<div class="section" id="projects">
<h2 class="section-title">Professional Experience</h2>
<div class="project-item">
<div class="project-header">
<div class="project-title">Parkinson's Disease Detection Model | iNeuron.ai</div>
<div class="project-date">October 2024</div>
</div>
<div class="project-subtitle">Methodology</div>
<ul class="project-details">
<li>Data Analysis of the dataset of <strong>Parkinson's Disease Patients</strong> checking whether having or not having the disease.</li>
<li>Model could <strong>retrieve</strong> semantic insights out of the dataset and tell the <strong>confidence</strong> of disease's occurance.</li>
<li>Programmed the whole using tools like- <strong>Python, Scikit-Learn, Pandas and Numpy</strong></li>
</ul>
<div class="project-subtitle">Deliverable</div>
<ul class="project-details">
<li>Proposed this solution in <strong>video and jupyter notebook</strong> format to explain the working of the project.</li>
</ul>
</div>
<div class="project-item">
<div class="project-header">
<div class="project-title">Sentiment Text Analysis | Data Analysis</div>
<div class="project-date">May 2024</div>
</div>
<div class="project-subtitle">Methodology</div>
<ul class="project-details">
<li>Performed <strong>Sentiment Analysis of Text</strong> using Python libraries <strong>DataClasses and TextBlob</strong>.</li>
<li>Categorized the text into <strong>Deci-Val Range</strong> categories like: 1 = Positive, Neutral, >0.5 = Positive and < 0 = Negative Emotions</li>
<li>Tools Used – <strong>Python, Jupyter Notebook, TextBlob, DataClass</strong></li>
</ul>
<div class="project-subtitle">Deliverable</div>
<ul class="project-details">
<li>Tells the <strong>nature of the emotions or intensity expressed</strong> in the text written by the user.</li>
</ul>
</div>
<div class="project-item">
<div class="project-header">
<div class="project-title">Breast Cancer Detection Model using Scikit-Learn | Data Analysis and Deep Learning</div>
<div class="project-date">August 2024</div>
</div>
<div class="project-subtitle">Methodology</div>
<ul class="project-details">
<li>Collected historical data of Healthcare – <strong>Breast Cancer Diagnosis</strong> of bodies using Scikit-Learn Library.</li>
<li>Using this data found the correlation, similarities and pattern in the given set of Breast Cancer Patients.</li>
<li>Performed Regression to predict the <strong>occurrence probability</strong> of the breast cancer in the particular patient.</li>
<li>Plotted interactive analysis stories to show the trend and the pattern in the breast cancer patients in Jupyter.</li>
</ul>
<div class="project-subtitle">Deliverable</div>
<ul class="project-details">
<li>Early Prediction of Breast Cancer in Patients led to <strong>early treatment and quick recovery</strong> in the patients.</li>
</ul>
</div>
<div class="project-item">
<div class="project-header">
<div class="project-title">floodSafeMyanmar - Flood Info and Alert System | Hackathon - ML & IoT</div>
<div class="project-date">October 2024</div>
</div>
<div class="project-subtitle">Methodology</div>
<ul class="project-details">
<li>Analysed historical <strong>meteorological, rainfall, soil moisture and hyperlocal weather data (drone)</strong> and API data.</li>
<li>Performed Regression through all data from <em>Datasets, API and IoT datas</em> and predicted <strong>flood probability</strong>.</li>
</ul>
<div class="project-subtitle">Deliverable</div>
<ul class="project-details">
<li>Sends alert to <em>Government Bodies and Agencies</em> to inform people to Evacuate.</li>
</ul>
</div>
<div class="project-item">
<div class="project-header">
<div class="project-title">Facial Emotion Detection utilizing DeepFace Library | Deep Learning</div>
<div class="project-date">October 2024</div>
</div>
<div class="project-subtitle">Methodology</div>
<ul class="project-details">
<li>Analysed various <strong>emotions of the face</strong> to predict the exact emotion expressed in the image.</li>
<li>Obtained <strong>seven set of values</strong> categorized like: <em>fear, happy, sad, disgust, surprise, anger and neutral</em>.</li>
</ul>
<div class="project-subtitle">Deliverable</div>
<ul class="project-details">
<li>Achieved parallel results and image deployment using <strong>streamlit</strong> and showing emotion results side-by-side.</li>
</ul>
</div>
</div>
<!-- Coursework and Skills Section -->
<div class="section" id="skills">
<h2 class="section-title">Coursework and Skills</h2>
<div class="skills-section">
<div class="skills-category">
<div class="skills-category-title">Academic Courses</div>
<p class="skills-list">
Data Analytics | Data Analysis and Algorithms | Machine Learning Techniques | Probability and Statistics |
Data Structures | Discrete Structures and Theory of Logic | Programming and Problem Solving | Web Development |
Database Management System | Operating System | Technical Communication
</p>
</div>
<div class="skills-category">
<div class="skills-category-title">Skills</div>
<p class="skills-list">
Python (NumPy, Pandas, Scikit-learn, OpenCV, Matplotlib, Seaborn, Keras, Pytorch, TensorFlow) | C |
SQL | Streamlit | Microsoft Excel | Deep Learning | Power BI
</p>
</div>
<div class="skills-category">
<div class="skills-category-title">Online Courses</div>
<p class="skills-list">
Machine Learning | Python Data Structure | Python and Data Handling Libraries | Deep Learning |
SwiftUI | TypeScript | Git
</p>
</div>
</div>
</div>
<!-- Awards & Achievements Section -->
<div class="section" id="awards">
<h2 class="section-title">Awards & Achievements</h2>
<table class="awards-table">
<tr>
<td colspan="2" class="award-category">Co-Curriculum</td>
</tr>
<tr>
<td>• Got Appreciation for teaching students who needed extra attention through <strong>NGO</strong> "Robin Hood"</td>
<td>2024</td>
</tr>
<tr>
<td>• Won <strong>Second Prize</strong> in College Poetry Event | Tutored an <strong>ADHD Student</strong> needing Special Care</td>
<td>2023</td>
</tr>
<tr>
<td>• Awarded <strong>First Prize</strong> in <strong>UN Information Center for India and Bhutan Essay Competition</strong></td>
<td>2020</td>
</tr>
<tr>
<td>• <strong>State Level Under-19 Chess Player</strong> in Class 10<sup>th</sup></td>
<td>2019</td>
</tr>
<tr>
<td colspan="2" class="award-category">Position of Responsibility and Achievements</td>
</tr>
<tr>
<td>• Lead and Won <strong>6 Global Level Hackathons</strong> winning a total of <strong>$1500 USD</strong></td>
<td>2024</td>
</tr>
<tr>
<td>• Mentoring <strong>450+ Students</strong> in <strong>GDG Club</strong> of our College – Specialisation <strong>AIML</strong></td>
<td>2024</td>
</tr>
<tr>
<td>• Submitted <strong>3 Joint Research Papers</strong> on Deep Learning with Academic Professors.</td>
<td>2024</td>
</tr>
<tr>
<td>• <strong>House Captain</strong> of my School throughout the Intermediate Schooling</td>
<td>2020-22</td>
</tr>
<tr>
<td>• <strong>Organized Science & Environment Event</strong> and anchored the whole event with enthusiasm</td>
<td>2019</td>
</tr>
</table>
</div>
</div>
<!-- Driver.js JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/driver.js@1.3.1/dist/driver.js.iife.js"></script>
<script>
// Initialize Driver.js
const driver = window.driver.js.driver;
const driverObj = driver({
showProgress: true,
showButtons: ['next', 'previous', 'close'],
steps: [
{
element: '#header',
popover: {
title: 'Header Section',
description: 'Professional identity with contact information. Click on any contact detail to copy it to clipboard.',
side: "bottom",
align: 'start'
}
},
{
element: '#academic',
popover: {
title: 'Academic Record',
description: 'Educational qualifications presented in a structured table format. Hover over rows to see them highlight.',
side: "bottom",
align: 'start'
}
},
{
element: '#projects',
popover: {
title: 'Professional Experience',
description: 'Project portfolio with detailed methodology and deliverables. Hover over items and bullet points for subtle interactions.',
side: "left",
align: 'start'
}
},
{
element: '#skills',
popover: {
title: 'Coursework and Skills',
description: 'Technical competencies organized by academic courses, practical skills, and online learning.',
side: "top",
align: 'start'
}
},
{
element: '#awards',
popover: {
title: 'Awards & Achievements',
description: 'Recognition and accomplishments organized by category. Hover over entries to highlight them.',
side: "top",
align: 'start'
}
},
{
popover: {
title: 'Tour Complete',
description: 'This resume is fully interactive while maintaining a professional, print-ready format. Click the tour button anytime to revisit this guide.',
}
}
],
onDestroyStarted: () => {
driverObj.destroy();
},
});
// Start tour button
document.getElementById('startTour').addEventListener('click', () => {
driverObj.drive();
});
// Auto-start tour on first visit
if (!sessionStorage.getItem('tourCompleted')) {
setTimeout(() => {
driverObj.drive();
sessionStorage.setItem('tourCompleted', 'true');
}, 800);
}
// Copy to clipboard functionality
document.querySelectorAll('.contact-item[data-copy]').forEach(item => {
const tooltip = document.createElement('div');
tooltip.className = 'copy-tooltip';
tooltip.textContent = 'COPIED';
item.style.position = 'relative';
item.appendChild(tooltip);
item.addEventListener('click', function() {
const text = this.getAttribute('data-copy');
navigator.clipboard.writeText(text).then(() => {
tooltip.classList.add('show');
setTimeout(() => {
tooltip.classList.remove('show');
}, 1500);
});
});
});
// Project item click animation
document.querySelectorAll('.project-item').forEach(item => {
item.addEventListener('click', function() {
this.style.transform = 'translateX(8px)';
setTimeout(() => {
this.style.transform = '';
}, 200);
});
});
// Section hover effect enhancement
document.querySelectorAll('.section').forEach(section => {
section.addEventListener('mouseenter', function() {
this.style.transition = 'transform 0.3s ease';
});
});
// Keyboard navigation
document.addEventListener('keydown', (e) => {
// Press 'T' to start tour
if (e.key === 't' || e.key === 'T') {
driverObj.drive();
}
// Press 'P' to print
if ((e.ctrlKey || e.metaKey) && e.key === 'p') {
e.preventDefault();
window.print();
}
});
// Add subtle animation on page load
window.addEventListener('load', () => {
const sections = document.querySelectorAll('.section');
sections.forEach((section, index) => {
setTimeout(() => {
section.style.opacity = '0';
section.style.transform = 'translateY(20px)';
section.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
requestAnimationFrame(() => {
section.style.opacity = '1';
section.style.transform = 'translateY(0)';
});
}, index * 100);
});
});
// Print functionality
window.addEventListener('beforeprint', () => {
document.body.dataset.beforePrint = 'true';
});
window.addEventListener('afterprint', () => {
delete document.body.dataset.beforePrint;
});
</script>
</body>
</html>