-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
800 lines (709 loc) · 26.4 KB
/
about.html
File metadata and controls
800 lines (709 loc) · 26.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Me | Danda Akhil Reddy - Software Engineer II @ Microsoft</title>
<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=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="netflix-styles.css">
<style>
/* About Page Specific Styles */
.about-hero {
min-height: 80vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 120px 4% 80px;
background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #141414 100%);
position: relative;
overflow: hidden;
}
.about-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.hero-profile-image {
width: 300px;
height: 300px;
border-radius: 50%;
object-fit: cover;
border: 4px solid #E50914;
box-shadow: 0 0 60px rgba(229, 9, 20, 0.3);
margin-bottom: 40px;
position: relative;
z-index: 1;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
overflow: hidden;
}
.hero-profile-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.about-hero h1 {
font-family: 'Bebas Neue', sans-serif;
font-size: 4rem;
letter-spacing: 4px;
margin-bottom: 20px;
background: linear-gradient(135deg, #fff 0%, #E50914 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
position: relative;
z-index: 1;
}
.about-hero .tagline {
font-size: 1.3rem;
color: #b3b3b3;
font-weight: 400;
max-width: 600px;
line-height: 1.6;
position: relative;
z-index: 1;
}
.about-hero .tagline span {
color: #E50914;
font-weight: 600;
}
/* Bio Section */
.bio-section {
padding: 80px 4%;
background: #141414;
}
.bio-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 300px 1fr;
gap: 60px;
align-items: center;
}
.bio-image-container {
position: relative;
}
.bio-profile-image {
width: 250px;
height: 250px;
border-radius: 16px;
object-fit: cover;
border: 2px solid #333;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.bio-profile-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bio-image-accent {
position: absolute;
top: -10px;
left: -10px;
right: 60px;
bottom: 60px;
border: 2px solid #E50914;
border-radius: 16px;
z-index: -1;
}
.bio-content h2 {
font-family: 'Bebas Neue', sans-serif;
font-size: 2.5rem;
letter-spacing: 2px;
margin-bottom: 25px;
color: #fff;
}
.bio-content p {
color: #b3b3b3;
font-size: 1.1rem;
line-height: 1.8;
margin-bottom: 20px;
}
.bio-content p strong {
color: #fff;
}
.bio-content p .highlight {
color: #E50914;
font-weight: 600;
}
/* Passions Section */
.passions-section {
padding: 80px 4%;
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}
.passions-section h2 {
font-family: 'Bebas Neue', sans-serif;
font-size: 2.5rem;
letter-spacing: 2px;
text-align: center;
margin-bottom: 50px;
color: #fff;
}
.passions-grid {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
}
.passion-card {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border-radius: 16px;
padding: 35px;
border: 1px solid #333;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.passion-card:hover {
transform: scale(1.02);
border-color: #E50914;
box-shadow: 0 20px 50px rgba(229, 9, 20, 0.15);
}
.passion-card .card-bg-icon {
position: absolute;
top: -20px;
right: -20px;
font-size: 100px;
opacity: 0.1;
}
.passion-card-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
}
.passion-icon {
width: 60px;
height: 60px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
}
.passion-icon.cricket {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.passion-icon.llm {
background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.passion-icon.research {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.passion-card h3 {
color: #fff;
font-size: 1.4rem;
margin: 0;
}
.passion-card p {
color: #aaa;
line-height: 1.7;
margin-bottom: 20px;
}
.passion-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 15px;
}
.passion-tag {
padding: 6px 14px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
}
.passion-tag.green {
background: rgba(16, 185, 129, 0.2);
color: #34d399;
}
.passion-tag.purple {
background: rgba(139, 92, 246, 0.2);
color: #a78bfa;
}
.passion-tag.blue {
background: rgba(59, 130, 246, 0.2);
color: #60a5fa;
}
/* Cricket Stats Link */
.cricket-stats-link {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 15px;
padding: 10px 20px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: #fff;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.3s ease;
}
.cricket-stats-link:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
/* Cricket Gallery */
.cricket-gallery {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-top: 20px;
}
.cricket-gallery img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
border-radius: 10px;
transition: transform 0.3s ease;
}
.cricket-gallery img:hover {
transform: scale(1.05);
}
/* Connect Section */
.connect-section {
padding: 80px 4%;
background: #141414;
text-align: center;
}
.connect-section h2 {
font-family: 'Bebas Neue', sans-serif;
font-size: 2.5rem;
letter-spacing: 2px;
margin-bottom: 20px;
color: #E50914;
}
.connect-section p {
color: #b3b3b3;
font-size: 1.1rem;
max-width: 600px;
margin: 0 auto 40px;
}
.social-links {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}
.social-link {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 15px 30px;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border: 1px solid #333;
border-radius: 12px;
color: #fff;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}
.social-link:hover {
border-color: #E50914;
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}
.social-link svg {
width: 24px;
height: 24px;
}
/* Back Link */
.back-link {
position: fixed;
bottom: 30px;
right: 30px;
background: #E50914;
color: #fff;
padding: 15px 25px;
border-radius: 30px;
text-decoration: none;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
z-index: 100;
box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}
.back-link:hover {
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5);
}
/* Responsive */
@media (max-width: 900px) {
.bio-container {
grid-template-columns: 1fr;
text-align: center;
}
.bio-image-container {
margin: 0 auto;
}
.about-hero h1 {
font-size: 2.5rem;
}
.about-hero .tagline {
font-size: 1rem;
}
.hero-profile-image {
width: 220px;
height: 220px;
}
.passions-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.about-hero {
padding: 100px 4% 60px;
min-height: auto;
}
.hero-profile-image {
width: 180px;
height: 180px;
}
.about-hero h1 {
font-size: 2rem;
}
.bio-profile-image {
width: 200px;
height: 200px;
}
.passion-card {
padding: 25px;
}
.social-links {
flex-direction: column;
align-items: center;
}
.social-link {
width: 100%;
max-width: 280px;
justify-content: center;
}
.back-link {
bottom: 20px;
right: 20px;
padding: 12px 20px;
}
}
/* Image Lightbox Modal */
.image-lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.image-lightbox.active {
opacity: 1;
visibility: visible;
}
.lightbox-content {
max-width: 90vw;
max-height: 85vh;
position: relative;
animation: lightboxZoomIn 0.3s ease;
}
@keyframes lightboxZoomIn {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.lightbox-content img {
max-width: 100%;
max-height: 80vh;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(229, 9, 20, 0.3);
}
.lightbox-caption {
text-align: center;
color: #fff;
margin-top: 15px;
font-size: 1.1rem;
}
.lightbox-close {
position: absolute;
top: 20px;
right: 30px;
font-size: 40px;
color: #fff;
background: none;
border: none;
cursor: pointer;
transition: color 0.3s ease;
z-index: 2001;
}
.lightbox-close:hover {
color: #E50914;
}
.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(229, 9, 20, 0.8);
color: #fff;
border: none;
padding: 15px 20px;
font-size: 24px;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
}
.lightbox-nav:hover {
background: #E50914;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
/* Make gallery images clickable */
.cricket-gallery img {
cursor: pointer;
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-left">
<a href="index.html" class="nav-logo">AKHIL REDDY DANDA</a>
<ul class="nav-menu">
<li><a href="browse.html">Home</a></li>
<li><a href="browse.html#experience">Professional</a></li>
<li><a href="browse.html#skills">Skills</a></li>
<li><a href="browse.html#daily-shipping">Projects</a></li>
<li><a href="browse.html#certifications">Certifications</a></li>
<li><a href="about.html" class="active">About Me</a></li>
<li><a href="browse.html#contact">Hire Me</a></li>
</ul>
</div>
<div class="nav-right">
<a href="browse.html" class="profile-icon">
<img src="https://i.imgur.com/YQK3Qby.png" alt="Profile" class="nav-profile-img">
</a>
</div>
</nav>
<!-- Hero Section -->
<section class="about-hero">
<div class="hero-profile-image">
<img src="assets/profile/Profilepicture.jpeg" alt="Akhil Reddy Danda">
</div>
<h1>DANDA AKHIL REDDY</h1>
<p class="tagline">
<span>Software Engineer @ Microsoft</span> | <span>Distributed Systems</span> | <span>AI/ML</span>
</p>
</section>
<!-- Bio Section -->
<section class="bio-section">
<div class="bio-container">
<div class="bio-image-container">
<div class="bio-profile-image">
<img src="assets/profile/Profilepicture.jpeg" alt="Akhil Reddy">
</div>
<div class="bio-image-accent"></div>
</div>
<div class="bio-content">
<h2>THE JOURNEY</h2>
<p>
I'm a <strong>Software Engineer II at Microsoft</strong> with <span class="highlight">5 years</span> of experience building
distributed backend services and high-impact applications. Previously at <strong>Amazon</strong> and <strong>HHA Medicine</strong>.
With a Master's degree from <strong>Texas A&M University</strong>, I specialize in
<span class="highlight">Distributed Systems</span>, <span class="highlight">C#/.NET</span>, and
<span class="highlight">Cloud Architecture on Azure</span>.
</p>
<p>
But engineering isn't my only passion. I'm also a <strong>professional cricket player</strong>,
competing in the San Antonio Cricket League where I've scored centuries and led teams to victory.
Cricket taught me discipline, strategy, and the importance of teamwork - skills that translate
directly into building great software.
</p>
<p>
When I'm not coding or on the cricket field, you'll find me diving deep into <span class="highlight">AI research papers</span>,
fine-tuning LLMs, or exploring the latest breakthroughs in machine learning.
</p>
</div>
</div>
</section>
<!-- Passions Section -->
<section class="passions-section">
<h2>WHAT DRIVES ME</h2>
<div class="passions-grid">
<!-- LLM Fine-tuning Card -->
<div class="passion-card">
<span class="card-bg-icon">🧠</span>
<div class="passion-card-header">
<div class="passion-icon llm">🧠</div>
<h3>LLM Fine-tuning</h3>
</div>
<p>
I spend my evenings pushing the boundaries of Large Language Models. From
fine-tuning models for specific domains to building RAG systems that actually work,
I'm obsessed with making AI more useful and accessible. My daily shipping challenge
keeps me constantly experimenting.
</p>
<div class="passion-tags">
<span class="passion-tag purple">Fine-tuning</span>
<span class="passion-tag purple">RAG Systems</span>
<span class="passion-tag purple">Prompt Engineering</span>
<span class="passion-tag purple">Model Optimization</span>
</div>
</div>
<!-- AI Research Card -->
<div class="passion-card">
<span class="card-bg-icon">📚</span>
<div class="passion-card-header">
<div class="passion-icon research">📚</div>
<h3>AI/ML Research</h3>
</div>
<p>
Every day starts with ArXiv. I read research papers on machine learning,
distributed systems, and AI advancements to stay at the cutting edge. Understanding
the theory behind the tools makes me a better engineer and helps me anticipate
where the field is heading.
</p>
<div class="passion-tags">
<span class="passion-tag blue">ArXiv Daily</span>
<span class="passion-tag blue">Research Papers</span>
<span class="passion-tag blue">Distributed Systems</span>
<span class="passion-tag blue">ML Advancements</span>
</div>
</div>
<!-- Cricket Card -->
<div class="passion-card">
<span class="card-bg-icon">🏏</span>
<div class="passion-card-header">
<div class="passion-icon cricket">🏏</div>
<h3>Professional Cricket</h3>
</div>
<p>
Cricket runs in my blood. I play competitively in the San Antonio Cricket League,
where every match is a lesson in strategy, pressure handling, and peak performance.
From scoring centuries to leading teams, the cricket field is where I find my
competitive edge.
</p>
<div class="passion-tags">
<span class="passion-tag green">San Antonio League</span>
<span class="passion-tag green">Century Scorer</span>
<span class="passion-tag green">Team Leadership</span>
</div>
<a href="https://www.cricclubs.com/CricketofSanAntonioLeagueCSAL/viewPlayer.do?playerId=5110441&clubId=1007625"
target="_blank"
class="cricket-stats-link">
View My Cricket Stats
</a>
<div class="cricket-gallery">
<img src="assets/cricket/Century_sanantonioleague.jpeg" alt="Century in San Antonio League">
<img src="assets/cricket/Cricclubs_163.jpeg" alt="Cricket Stats">
</div>
</div>
</div>
</section>
<!-- Connect Section -->
<section class="connect-section">
<h2>LET'S CONNECT</h2>
<p>
Whether you want to discuss AI, cricket strategies, or potential collaborations,
I'm always open to connecting with like-minded individuals.
</p>
<div class="social-links">
<a href="mailto:[email protected]" class="social-link">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>
Email Me
</a>
<a href="https://www.linkedin.com/in/akhil-reddy-danda-1a74b214b/" target="_blank" class="social-link">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
LinkedIn
</a>
<a href="https://github.com/DandaAkhilReddy" target="_blank" class="social-link">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
GitHub
</a>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<p>© 2026 Akhil Reddy Danda. All rights reserved.</p>
<p class="footer-note">Software Engineer @ Microsoft | Distributed Systems | AI/ML</p>
</div>
</footer>
<!-- Back to Browse Link -->
<a href="browse.html" class="back-link">
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
Back to Portfolio
</a>
<!-- Image Lightbox Modal -->
<div class="image-lightbox" id="imageLightbox">
<button class="lightbox-close" onclick="closeLightbox()">×</button>
<div class="lightbox-content">
<img id="lightboxImage" src="" alt="">
<p class="lightbox-caption" id="lightboxCaption"></p>
</div>
<button class="lightbox-nav lightbox-prev" onclick="navigateLightbox(-1)">❮</button>
<button class="lightbox-nav lightbox-next" onclick="navigateLightbox(1)">❯</button>
</div>
<script>
// Navbar scroll effect
window.addEventListener('scroll', () => {
const navbar = document.querySelector('.navbar');
navbar.classList.toggle('scrolled', window.scrollY > 50);
});
// Lightbox functionality
const galleryImages = document.querySelectorAll('.cricket-gallery img');
const lightbox = document.getElementById('imageLightbox');
const lightboxImg = document.getElementById('lightboxImage');
const lightboxCaption = document.getElementById('lightboxCaption');
let currentImageIndex = 0;
let imageArray = [];
// Initialize gallery images
galleryImages.forEach((img, index) => {
imageArray.push({ src: img.src, alt: img.alt });
img.addEventListener('click', () => openLightbox(index));
});
function openLightbox(index) {
currentImageIndex = index;
lightboxImg.src = imageArray[index].src;
lightboxCaption.textContent = imageArray[index].alt;
lightbox.classList.add('active');
document.body.style.overflow = 'hidden';
}
function closeLightbox() {
lightbox.classList.remove('active');
document.body.style.overflow = '';
}
function navigateLightbox(direction) {
currentImageIndex += direction;
if (currentImageIndex >= imageArray.length) currentImageIndex = 0;
if (currentImageIndex < 0) currentImageIndex = imageArray.length - 1;
lightboxImg.src = imageArray[currentImageIndex].src;
lightboxCaption.textContent = imageArray[currentImageIndex].alt;
}
// Close on backdrop click
lightbox.addEventListener('click', (e) => {
if (e.target === lightbox) closeLightbox();
});
// Keyboard navigation
document.addEventListener('keydown', (e) => {
if (!lightbox.classList.contains('active')) return;
if (e.key === 'Escape') closeLightbox();
if (e.key === 'ArrowLeft') navigateLightbox(-1);
if (e.key === 'ArrowRight') navigateLightbox(1);
});
</script>
</body>
</html>