-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
665 lines (597 loc) · 28.2 KB
/
Copy pathindex.html
File metadata and controls
665 lines (597 loc) · 28.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pranav's Portfolio</title>
<link rel="stylesheet" href="styles.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@700&display=swap');
/* ══════════════════════════════════════════════
LANDING OVERLAY
══════════════════════════════════════════════ */
#landing-overlay {
position: fixed;
inset: 0;
background: #050505;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* ── Content wrapper ── */
#welcome-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
position: relative;
z-index: 2;
text-align: center;
}
/* "Hi there, I'm" */
#welcome-sub {
font-family: 'Rajdhani', sans-serif;
font-size: clamp(0.75rem, 2vw, 1rem);
letter-spacing: 0.55em;
color: #C9D8FF;
text-transform: uppercase;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.7s ease, transform 0.7s ease;
}
#welcome-sub.visible { opacity: 1; transform: translateY(0); }
/* "Mohana Pranav" name */
#welcome-name {
font-family: 'Rajdhani', sans-serif;
font-size: clamp(1.1rem, 3vw, 1.8rem);
font-weight: 700;
letter-spacing: 0.3em;
color: #ffffff;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}
#welcome-name.visible { opacity: 1; transform: translateY(0); }
/* Ghost row — reserves exact WELCOME height/width, invisible */
#welcome-ghost {
font-family: 'Rajdhani', sans-serif;
font-size: clamp(3.5rem, 11vw, 7.5rem);
font-weight: 700;
letter-spacing: 0.18em;
white-space: nowrap;
visibility: hidden; /* takes up space but invisible */
user-select: none;
pointer-events: none;
line-height: 1;
}
/* Flying letters — positioned absolutely within overlay */
.wl {
position: fixed;
font-family: 'Rajdhani', sans-serif;
font-size: clamp(3.5rem, 11vw, 7.5rem);
font-weight: 700;
line-height: 1;
white-space: nowrap;
will-change: transform, opacity, filter;
opacity: 0;
z-index: 10;
/* base glow — white majority */
text-shadow:
0 0 15px rgba(255,255,255,0.8),
0 0 35px rgba(120,180,255,0.5),
0 0 70px rgba(120,180,255,0.3);
}
/* Orange accent letters: W (0), O (4), E (6) */
.wl.orange {
color: #4F9FFF;
text-shadow:
0 0 15px rgba(79,159,255,0.9),
0 0 35px rgba(79,159,255,0.6),
0 0 70px rgba(30,100,255,0.4);
}
/* White majority letters */
.wl.white {
color: #FFFFFF;
text-shadow:
0 0 15px rgba(255,255,255,0.8),
0 0 35px rgba(120,180,255,0.5),
0 0 70px rgba(120,180,255,0.3);
}
/* Radial glow behind assembled WELCOME */
#welcome-glow {
position: fixed;
width: min(800px, 90vw);
height: 300px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: radial-gradient(
ellipse,
rgba(120,180,255,0.12) 0%,
rgba(255,120,40,0.06) 40%,
transparent 70%
);
opacity: 0;
transition: opacity 0.8s ease;
pointer-events: none;
z-index: 1;
}
#welcome-glow.show { opacity: 1; }
/* Divider */
#welcome-bar {
display: flex;
align-items: center;
gap: 14px;
opacity: 0;
transition: opacity 0.6s ease;
}
#welcome-bar.open { opacity: 1; }
.bar-line {
height: 1px;
width: 80px;
background: linear-gradient(90deg, transparent, #356FD6, transparent);
}
.bar-dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: #4F9FFF;
box-shadow: 0 0 8px rgba(79,159,255,0.9);
}
/* Tagline */
#welcome-tag {
font-family: 'Rajdhani', sans-serif;
font-size: clamp(0.65rem, 1.8vw, 0.88rem);
letter-spacing: 0.42em;
color: #8EA6D8;
text-transform: uppercase;
opacity: 0;
transform: translateY(8px);
transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
#welcome-tag.visible { opacity: 1; transform: translateY(0); }
/* ── Glow pulse — uses filter not transform to avoid position reset ── */
@keyframes wl-pulse-white {
0% { filter: brightness(1) drop-shadow(0 0 8px rgba(120,180,255,0.5)); }
50% { filter: brightness(1.4) drop-shadow(0 0 25px rgba(120,180,255,0.9)); }
100% { filter: brightness(1) drop-shadow(0 0 8px rgba(120,180,255,0.5)); }
}
@keyframes wl-pulse-orange {
0% { filter: brightness(1) drop-shadow(0 0 8px rgba(79,159,255,0.9)); }
50% { filter: brightness(1.5) drop-shadow(0 0 25px rgba(79,159,255,0.6)); }
100% { filter: brightness(1) drop-shadow(0 0 8px rgba(30,100,255,0.4)); }
}
.wl.pulse.white { animation: wl-pulse-white 0.9s ease forwards; }
.wl.pulse.orange { animation: wl-pulse-orange 0.9s ease forwards; }
/* ── Exit slide ── */
@keyframes doorSlide {
0% { clip-path: inset(0 0 0% 0); }
100% { clip-path: inset(0 0 100% 0); }
}
#landing-overlay.slide-away {
animation: doorSlide 2.8s cubic-bezier(0.76,0,0.24,1) forwards;
}
#landing-overlay.done {
pointer-events: none;
display: none;
}
</style>
</head>
<body>
<!-- ═══════════════════════════════════════════════ -->
<!-- LANDING OVERLAY -->
<!-- ═══════════════════════════════════════════════ -->
<div id="landing-overlay" aria-hidden="true">
<!-- Soft radial glow behind WELCOME word -->
<div id="welcome-glow"></div>
<div id="welcome-wrap">
<div id="welcome-sub">Hi there, I'm</div>
<div id="welcome-name">Mohana Pranav</div>
<!-- Ghost row reserves exact height so wrap never shifts during flight -->
<div id="welcome-ghost">WELCOME</div>
<div id="welcome-bar">
<div class="bar-line"></div>
<div class="bar-dot"></div>
<div class="bar-line"></div>
</div>
<div id="welcome-tag"> MERN Stack Developer </div>
</div>
<!-- Flying letters injected here by JS (position:fixed, outside wrap) -->
</div>
<!-- ─────────────────────────────────────────────── -->
<!-- PORTFOLIO MARKUP (UNCHANGED) -->
<!-- ─────────────────────────────────────────────── -->
<!-- Animated Background -->
<div class="background-animation"></div>
<!-- Navbar -->
<nav class="navbar">
<div class="container">
<div class="logo">Pranav's Portfolio</div>
<div class="mobile-menu" id="menuBtn">
<div class="hamburger"></div>
<div class="hamburger"></div>
<div class="hamburger"></div>
</div>
<ul class="nav-links" id="navLinks">
<li><a href="#home" class="nav-link active">Home</a></li>
<li><a href="#about" class="nav-link">About</a></li>
<li><a href="#skills" class="nav-link">Skills</a></li>
<li><a href="#projects" class="nav-link">Projects</a></li>
<li><a href="#certifications" class="nav-link">Certifications</a></li>
<li><a href="#contact" class="nav-link">Contact</a></li>
</ul>
</div>
</nav>
<!-- Main Container -->
<div class="main-container">
<!-- Home Section -->
<div class="content-section active" id="home">
<div class="home-section">
<div class="profile-section rain-drop">
<img src="my image.png" alt="Pranav">
</div>
<div class="hero-content">
<h1 class="rain-drop">Hello, I'm <span class="highlight">Pranav</span></h1>
<h3 class="hero-description rain-drop">Aspiring <span id="typing-text">Web developer</span></h3>
<a href="#about" class="cta-button nav-link rain-drop">Discover More</a>
<div class="social-links rain-drop">
<a href="https://www.linkedin.com/in/mohana-pranav-1b087b2bb?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app" target="_blank" class="social-box linkedin">
<img src="https://cdn-icons-png.flaticon.com/512/174/174857.png" alt="LinkedIn">
</a>
<a href="https://github.com/Pranav18M" target="_blank" class="social-box github">
<img src="https://cdn-icons-png.flaticon.com/512/25/25231.png" alt="GitHub"
style="filter: invert(1);">
</a>
<a href="https://mail.google.com/mail/?view=cm&to=mohnapranav@gmail.com"
target="_blank" class="social-box email">
<img src="https://cdn-icons-png.flaticon.com/512/732/732200.png" alt="Email">
</a>
</div>
</div>
</div>
</div>
<!-- About Section -->
<div class="content-section" id="about">
<div class="content-box">
<div class="nav-buttons">
<button class="back-btn" onclick="goBack()">Back</button>
<button class="next-btn" onclick="goNext('skills')">Next</button>
</div>
<h2 class="rain-drop">About Me</h2>
<p class="rain-drop">I'm Mohana Pranav — a Passionate MERN Stack Developer with hands-on experience building and deploying 4 production-grade full-stack web applications.I work with React.js, Node.js, TypeScript and MongoDB — and I'm an AWS Certified Cloud Practitioner proficient in RESTful API development, JWT Authentication, and cloud deployment on Vercel and Render.</p>
<p class="rain-drop">Currently in my 4th year of B.E. ECE at Excel Engineering College, I deliver scalable solutions independently and in team environments — focused on solving real-world problems through efficient and user-friendly solutions.</p>
</div>
</div>
<!-- Skills Section -->
<div class="content-section" id="skills">
<div class="content-box">
<div class="nav-buttons">
<button class="back-btn" onclick="goBack()">Back</button>
<button class="next-btn" onclick="goNext('projects')">Next</button>
</div>
<h2 class="rain-drop">My Skills</h2>
<div class="skills-grid">
<div class="skill-box rain-drop">
<h3>Frontend</h3>
<div class="skill-icons">
<img src="https://cdn-icons-png.flaticon.com/512/732/732212.png" alt="HTML" title="HTML">
<img src="https://cdn-icons-png.flaticon.com/512/732/732190.png" alt="CSS" title="CSS">
<img src="https://cdn-icons-png.flaticon.com/512/5968/5968292.png" alt="JavaScript" title="JavaScript">
<img src="https://cdn-icons-png.flaticon.com/512/1126/1126012.png" alt="React" title="React">
<img src="https://cdn-icons-png.flaticon.com/512/919/919832.png" alt="TypeScript" title="TypeScript">
</div>
</div>
<div class="skill-box rain-drop">
<h3>Backend</h3>
<div class="skill-icons">
<img src="https://cdn-icons-png.flaticon.com/512/919/919825.png" alt="Node.js" title="Node.js">
<img src="https://img.icons8.com/fluency/256/express-js.png" alt="Express.js" title="Express.js">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/java/java-original.svg" alt="Java" title="Java">
<img src="https://cdn-icons-png.flaticon.com/512/2165/2165004.png" alt="REST API" title="REST API">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nestjs/nestjs-original.svg" alt="NestJS" title="NestJS">
</div>
</div>
<div class="skill-box rain-drop">
<h3>Database</h3>
<div class="skill-icons">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mongodb/mongodb-original.svg" alt="MongoDB" title="MongoDB">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mysql/mysql-original.svg" alt="MySQL" title="MySQL">
<img src="https://cdn.simpleicons.org/postgresql/4169E1"alt="PostgreSQL" title="PostgreSQL">
<img src="https://cdn.simpleicons.org/supabase/3ECF8E"alt="Supabase" title="Supabase">
</div>
</div>
<div class="skill-box rain-drop">
<h3>Tools</h3>
<div class="skill-icons">
<img src="https://cdn-icons-png.flaticon.com/512/2111/2111288.png" alt="Git" title="Git">
<img src="https://cdn-icons-png.flaticon.com/512/733/733609.png" alt="GitHub" title="GitHub">
<img src="https://cdn-icons-png.flaticon.com/512/906/906324.png" alt="VS Code" title="VS Code">
<img src="https://cdn.simpleicons.org/postman/FF6C37" alt="Postman" title="Postman">
<img src="https://cdn.simpleicons.org/npm/CB3837"alt="npm" title="npm">
</div>
</div>
<div class="skill-box rain-drop">
<h3>Platforms</h3>
<div class="skill-icons">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/vercel/vercel-original.svg"
alt="Vercel" title="Vercel">
<img src="https://cdn.simpleicons.org/render/46E3B7"
alt="Render" title="Render">
<img src="https://cdn.simpleicons.org/railway/FFFFFF"
alt="Railway" title="Railway">
</div>
</div>
</div>
</div>
</div>
<!-- Projects Section -->
<div class="content-section" id="projects">
<div class="content-box">
<div class="nav-buttons">
<button class="back-btn" onclick="goBack()">Back</button>
<button class="next-btn" onclick="goNext('certifications')">Next</button>
</div>
<h2 class="rain-drop">My Projects</h2>
<div class="projects-grid">
<a href="https://routineos-site.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>RoutineOS – AI-Powered Habit & Routine Builder</h3>
<p>Developed and deployed a production-ready AI habit builder as an installable PWA — users can download the app directly to their
Android/iOS device from the browser.</p>
</a>
<a href="https://mock-intervue-ai.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>InterviewAI</h3>
<p>AI-powered mock interview platform with voice interviews, real-time scoring, ATS resume analyzer, and resume generator--built with React, Node.js+NestJS, MongoDB, and Google Gemini AI.</p>
</a>
<a href="https://shop-ix.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>Shop-ix</h3>
<p>Full-stack e-commerce platform with Spring Boot, React, JWT auth, admin panel, seller dashboard, UPI payments & Telegram order notifications.</p>
</a>
<a href="https://think-byte.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>ThinkByte</h3>
<p>Developed a online coding platform enabling users to solve programming problems, execute code, and track submissions with accuracy-based evaluation.</p>
</a>
<a href="https://ats-resumescanner-ai.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>ATS-Resume_scanner</h3>
<p>Recruiter's Assistant — Simplifies resume shortlisting with ATS-based scanning.</p>
</a>
<a href="https://shopease-io.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>ShopEase</h3>
<p>Modern e-commerce platform built for seamless shopping, featuring scalable architecture, secure payments, and smooth UX.</p>
</a>
<a href="https://fit-nest-018.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>FitNest</h3>
<p>A fitness tracking application designed to help users stay consistent with their workouts and health goals.</p>
</a>
<a href="https://pranav-to-do-list.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>To-Do-List</h3>
<p>Task management tool to help users organize daily activities efficiently.</p>
</a>
<a href="https://pranavperfumy.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>Perfumy</h3>
<p>Perfume ordering platform where users can browse and place orders online.</p>
</a>
<a href="https://booksky-018.vercel.app/" target="_blank" class="project-card rain-drop">
<h3>BookSky</h3>
<p>Book management tool allowing users to save book titles and personal notes.</p>
</a>
</div>
</div>
</div>
<!-- Certifications Section -->
<div class="content-section" id="certifications">
<div class="content-box">
<div class="nav-buttons">
<button class="back-btn" onclick="goBack()">Back</button>
<button class="next-btn" onclick="goNext('contact')">Next</button>
</div>
<h2 class="rain-drop">Certifications</h2>
<ul class="cert-list">
<li class="rain-drop" onclick="openCert('image7.jpg')">
<strong>MERN Stack Internship-KioTech</strong><br>
<p class="certificate-paragraph">Completed a short-term internship with hands-on exposure to MERN stack fundamentals and full-stack web development concepts.</p>
</li>
<li class="rain-drop" onclick="openCert('image5.jpg.jpg')">
<strong>AWS Certified Cloud Practitioner</strong><br>
<p class="certificate-paragraph">Foundational knowledge of cloud concepts, AWS services, and architectural best practices.</p>
</li>
<li class="rain-drop" onclick="openCert('image6.jpg.jpg')">
<strong>Backend Development with Node.js, Express, MongoDB</strong><br>
<p class="certificate-paragraph">L&T EduTech – Practical backend development using Node.js, Express, and MongoDB.</p>
</li>
<li class="rain-drop" onclick="openCert('image8.jpg')">
<strong>Python 101 for Data Science</strong><br>
<p class="certificate-paragraph">IBM(PY0101EN) - successfully completed</p>
</li>
<li class="rain-drop" onclick="openCert('image9.jpg')">
<strong>Cloud Computing and Full-Stack Development Mastery — L&T Edutech</strong><br>
<p class="certificate-paragraph">Completed an integrated pathway covering web fundamentals, JavaScript & DOM, full-stack development, and cloud computing concepts.</p>
</li>
<li class="rain-drop" onclick="openCert('image1.jpg')">
<strong>EPOCH 2K25</strong><br>
<p class="certificate-paragraph">Secured 1st prize in Paper presentation</p>
</li>
<li class="rain-drop" onclick="openCert('image4.jpg')">
<strong>TRIXATHON'25</strong><br>
<p class="certificate-paragraph">Participation in a National Level Hackathon</p>
</li>
<li class="rain-drop" onclick="openCert('image2.jpg')">
<strong>QR Code Generator in Python</strong><br>
<p class="certificate-paragraph">Great Learning – Practical Python programming and application development.</p>
</li>
<li class="rain-drop" onclick="openCert('image3.jpg')">
<strong>Arduino Workshop</strong><br>
<p class="certificate-paragraph">Successfully completing one day hands on training on the Arduino Workshop.</p>
</li>
</ul>
</div>
</div>
<!-- Certification Popup -->
<div id="certPopup" class="cert-popup">
<div class="cert-popup-content">
<span class="close-btn" onclick="closeCert()">×</span>
<img id="certImage" src="" alt="Certification" class="cert-full">
</div>
</div>
<!-- Contact Section -->
<div class="content-section" id="contact">
<div class="content-box">
<div class="nav-buttons">
<button class="back-btn" onclick="goBack()">Back</button>
<button class="next-btn" onclick="goNext('home')">Next</button>
</div>
<h2 class="rain-drop">Contact Me</h2>
<form class="contact-form rain-drop" onsubmit="handleSubmit(event)">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>
</div>
</div>
</div><!-- /.main-container -->
<script src="script.js"></script>
<!-- ═══════════════════════════════════════════════ -->
<!-- LANDING ANIMATION SCRIPT -->
<!-- ═══════════════════════════════════════════════ -->
<script>
(function () {
'use strict';
const overlay = document.getElementById('landing-overlay');
const subEl = document.getElementById('welcome-sub');
const nameEl = document.getElementById('welcome-name');
const ghostEl = document.getElementById('welcome-ghost');
const barEl = document.getElementById('welcome-bar');
const tagEl = document.getElementById('welcome-tag');
const wrapEl = document.getElementById('welcome-wrap');
const glowEl = document.getElementById('welcome-glow');
if (!overlay || !ghostEl) return;
/*
STRATEGY (bug-free):
─────────────────────────────────────────────────
Each .wl span uses position:fixed.
• left / top → set to the FINAL pixel position (measured from ghost)
• transform → used ONLY for the flight offset (starts far off-screen,
transitions to translate(0,0) to land perfectly)
This way the pulse animation (filter only) never touches transform,
so letters never jump to 0,0.
─────────────────────────────────────────────────
*/
// W E L C O M E — off-screen launch offsets in px
// We overshoot well past viewport so letters truly come from edges
const getOriginOffset = (i, vw, vh) => {
const dirs = [
{ dx: -vw * 1.3, dy: 0 }, // W — far left
{ dx: -vw * 0.8, dy: -vh * 1.2 }, // E — top-left
{ dx: -vw * 0.8, dy: vh * 1.2 }, // L — bottom-left
{ dx: 0, dy: -vh * 1.2 }, // C — top-center
{ dx: 0, dy: vh * 1.2 }, // O — bottom-center
{ dx: vw * 0.8, dy: -vh * 1.2 }, // M — top-right
{ dx: vw * 1.3, dy: 0 }, // E — far right
];
return dirs[i];
};
// Orange accent indices: W(0), O(4), last E(6)
const ORANGE_IDX = new Set([0, 4, 6]);
const WORD = 'WELCOME';
const STAGGER = 90; // ms between letters
const TRAVEL = 850; // ms flight duration
const PHASE2_START = 500;
const ALL_LANDED = PHASE2_START + (WORD.length - 1) * STAGGER + TRAVEL + 150;
/* ── Phase 1 — labels fade in ── */
setTimeout(() => { if (subEl) subEl.classList.add('visible'); }, 200);
setTimeout(() => { if (nameEl) nameEl.classList.add('visible'); }, 500);
/* ── Phase 2 — launch letters ── */
setTimeout(() => {
// Measure each character's bounding rect from the ghost
// Ghost uses visibility:hidden so it's in layout but invisible
const ghostRect = ghostEl.getBoundingClientRect();
const vw = window.innerWidth;
const vh = window.innerHeight;
// Build individual char spans by measuring ghost's character widths
// We do this by temporarily rendering each char in a hidden span
const charWidths = [];
const measurer = document.createElement('span');
measurer.style.cssText = [
'position:fixed', 'visibility:hidden', 'pointer-events:none',
`font-family:'Rajdhani',sans-serif`,
`font-size:${getComputedStyle(ghostEl).fontSize}`,
'font-weight:700', 'letter-spacing:0.18em', 'white-space:nowrap',
'top:-9999px', 'left:-9999px'
].join(';');
let runningX = ghostRect.left;
// Simpler approach: divide ghost width evenly (Rajdhani is monospaced-ish)
// but account for letter-spacing by measuring the ghost directly
const totalW = ghostRect.width;
const charSlot = totalW / WORD.length;
const charH = ghostRect.height;
const charTopY = ghostRect.top;
const allSpans = [];
WORD.split('').forEach((char, i) => {
const isOrange = ORANGE_IDX.has(i);
const span = document.createElement('span');
span.className = 'wl ' + (isOrange ? 'orange' : 'white');
span.textContent = char;
// Final resting position
const finalLeft = ghostRect.left + i * charSlot;
const finalTop = charTopY;
// Flight start offset (relative to final position)
const { dx, dy } = getOriginOffset(i, vw, vh);
// Set final position as left/top; flight offset via transform
span.style.left = finalLeft + 'px';
span.style.top = finalTop + 'px';
span.style.width = charSlot + 'px';
span.style.height = charH + 'px';
span.style.display = 'flex';
span.style.alignItems = 'center';
span.style.justifyContent = 'center';
span.style.opacity = '0';
span.style.filter = 'blur(14px)';
span.style.transform = `translate(${dx}px, ${dy}px) scale(1.3)`;
span.style.transition = 'none';
overlay.appendChild(span);
allSpans.push(span);
});
/* Stagger-launch each letter toward translate(0,0) = its final position */
allSpans.forEach((span, i) => {
setTimeout(() => {
// Force layout so transition fires
span.getBoundingClientRect();
span.style.transition = [
`transform ${TRAVEL}ms cubic-bezier(0.16,1,0.3,1)`,
`filter ${TRAVEL}ms ease-out`,
`opacity 100ms ease-out`,
].join(', ');
span.style.opacity = '1';
span.style.transform = 'translate(0,0) scale(1)';
span.style.filter = 'blur(0px)';
}, i * STAGGER);
});
/* ── Phase 3/4 — after all land: glow + bar + tagline + pulse ── */
const SETTLE = ALL_LANDED - PHASE2_START;
setTimeout(() => {
if (glowEl) glowEl.classList.add('show');
if (barEl) barEl.classList.add('open');
if (tagEl) tagEl.classList.add('visible');
// Phase 4: premium glow pulse — filter only, no transform
setTimeout(() => {
allSpans.forEach(span => span.classList.add('pulse'));
}, 250);
}, SETTLE);
}, PHASE2_START);
/* ── Exit — slide overlay up ── */
const SLIDE_START = ALL_LANDED + 2400;
setTimeout(() => {
// The overlay clip-path slides up, taking everything inside with it
overlay.classList.add('slide-away');
setTimeout(() => { overlay.classList.add('done'); }, 2900);
setTimeout(() => {
const homeSection = document.querySelector('.home-section');
if (homeSection) homeSection.classList.add('zoom-reveal');
}, 1400);
}, SLIDE_START);
})();
</script>
</body>
</html>