-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
596 lines (525 loc) · 11 KB
/
styles.css
File metadata and controls
596 lines (525 loc) · 11 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
/*
* Stylesheet for Akash Banerjee’s portfolio website.
*
* The design uses translucent panels, blurred backgrounds and smooth animations.
* A light tonal backdrop along with a cool blue accent highlights interactive
* elements. The style aims to reflect and refract surrounding colours while
* drawing focus to content. Colour schemes rely on neutral bases such as grays
* and beiges, with accent hues derived from background colours.
*/
:root {
/* Light base colour with a subtle blue tint. */
--background-color: #e6f4ff;
/* Glass panel colours with higher opacity for readability on light backgrounds. */
--card-bg: rgba(255, 255, 255, 0.6);
--card-bg-light: rgba(255, 255, 255, 0.8);
/* Crisp blue accent colour */
--accent-color: #0a84ff;
/* Hover state for accent colour – slightly lighter */
--accent-color-hover: #57a3ff;
/* Text colours */
--text-color: #1d1d1f;
--text-muted: #555;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
width: 100%;
}
body {
font-family:
"Inter",
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
"Helvetica Neue",
sans-serif;
background-color: var(--background-color);
color: var(--text-color);
overflow-x: hidden;
line-height: 1.6;
position: relative;
height: 100vh;
touch-action: pan-y;
overscroll-behavior-y: contain;
scroll-behavior: smooth;
}
#fluid-canvas {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
.sections {
position: fixed;
inset: 0;
overflow: hidden;
z-index: 1;
}
.panel {
position: absolute;
inset: 0;
overflow-y: auto;
opacity: 0;
pointer-events: none;
transform: scale(0.95);
transition:
opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
padding-top: 6rem;
padding-bottom: 6rem;
}
.panel:first-of-type {
opacity: 1;
pointer-events: auto;
transform: scale(1);
}
/* Animated gradient background */
/* Navigation bar */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: var(--card-bg);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
z-index: 1000;
}
.navbar .brand {
font-size: 1.4rem;
font-weight: 600;
text-decoration: none;
color: var(--text-color);
transition: color 0.3s;
display: flex;
align-items: center;
white-space: nowrap;
}
.brand-short {
display: none;
}
.brand-full {
display: inline;
}
.navbar .brand:hover {
color: var(--accent-color);
}
.navbar nav a {
margin-left: 1.5rem;
text-decoration: none;
color: var(--text-muted);
font-size: 1rem;
transition: color 0.3s;
}
.navbar nav a:hover {
color: var(--accent-color);
}
/* Hero section */
.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 6rem 1rem 4rem; /* top padding accounts for nav height */
}
.profile-photo {
width: 160px;
height: 160px;
object-fit: cover;
border-radius: 50%;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
margin-bottom: 1rem;
}
.hero h1 {
font-size: clamp(2.5rem, 6vw, 4rem);
margin-bottom: 0.5rem;
font-weight: 700;
}
.hero p {
font-size: 1.1rem;
margin-bottom: 1.5rem;
color: var(--text-muted);
}
.cta-button {
padding: 0.8rem 2rem;
font-size: 1rem;
background: var(--accent-color);
color: #fff;
text-decoration: none;
display: inline-block;
border: none;
border-radius: 30px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition:
transform 0.3s ease,
box-shadow 0.3s ease,
background 0.3s;
}
.cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
background: var(--accent-color-hover);
}
/* Arrow linking to next section */
.down-arrow {
position: fixed;
left: 50%;
bottom: 2rem;
transform: translate(-50%, 0);
width: 28px;
height: 28px;
display: flex;
color: var(--accent-color);
opacity: 0.7;
z-index: 5;
animation: arrow-bounce 2s infinite;
transition: opacity 0.3s;
}
.down-arrow:hover {
opacity: 1;
}
.down-arrow svg {
width: 100%;
height: 100%;
}
.down-arrow.hidden {
opacity: 0;
pointer-events: none;
}
@media (min-width: 600px) {
.down-arrow {
bottom: 3rem;
}
}
@keyframes arrow-bounce {
0%, 20%, 50%, 80%, 100% {
transform: translate(-50%, 0);
}
40% {
transform: translate(-50%, 6px);
}
60% {
transform: translate(-50%, 3px);
}
}
/* Global section styles */
section {
padding: 4rem 1rem;
}
section h2 {
font-size: 2.2rem;
margin-bottom: 2rem;
text-align: center;
font-weight: 600;
}
/* Projects */
.projects .project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.project-card {
background: var(--card-bg-light);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition:
transform 0.4s ease,
box-shadow 0.4s ease;
}
.project-card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.project-card h3 {
margin-top: 0;
margin-bottom: 0.4rem;
font-size: 1.3rem;
font-weight: 600;
color: var(--accent-color);
}
.project-card small {
display: block;
margin-bottom: 0.8rem;
font-size: 0.8rem;
color: var(--accent-color);
font-weight: 600;
letter-spacing: 0.5px;
}
.project-card p {
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 1rem;
color: var(--text-muted);
}
.project-card a {
font-size: 0.9rem;
text-decoration: none;
color: var(--accent-color);
font-weight: 600;
transition: color 0.3s;
}
.project-card a:hover {
color: var(--accent-color-hover);
}
/* About */
.about {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding-left: 1rem;
padding-right: 1rem;
}
.about-panel {
background: var(--card-bg-light);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition:
transform 0.4s ease,
box-shadow 0.4s ease;
max-width: 800px;
width: 100%;
}
.about-panel:hover {
transform: translateY(-6px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.about-content p {
margin-bottom: 1.2rem;
font-size: 1rem;
color: var(--text-muted);
line-height: 1.6;
}
/* Keep photography link same colour as text */
.about-content a.link-inherit,
.about-content a.link-inherit:visited,
.about-content a.link-inherit:hover,
.about-content a.link-inherit:active {
color: inherit;
}
/* Skills */
.skills .skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 2rem;
max-width: 1000px;
margin: 0 auto;
justify-content: center;
}
.skill-category {
background: var(--card-bg-light);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-radius: 20px;
padding: 1.5rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition:
transform 0.4s ease,
box-shadow 0.4s ease;
}
.skill-category:hover {
transform: translateY(-4px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.skill-category h3 {
margin-bottom: 1rem;
color: var(--accent-color);
font-weight: 600;
font-size: 1.2rem;
}
.skill-category ul {
list-style: none;
padding: 0;
margin: 0;
}
.skill-category li {
margin-bottom: 0.6rem;
font-size: 0.9rem;
color: var(--text-muted);
position: relative;
padding-left: 1.1rem;
}
.skill-category li::before {
content: "";
position: absolute;
left: 0;
top: 0.5rem;
width: 0.5rem;
height: 0.5rem;
background: var(--accent-color);
border-radius: 50%;
opacity: 0.7;
}
/* Contact */
.contact {
max-width: 900px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
.contact-form {
width: 100%;
max-width: 600px;
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form textarea {
margin-bottom: 1rem;
padding: 0.8rem 1rem;
background: var(--card-bg);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 10px;
color: var(--text-color);
font-size: 0.9rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
color: var(--text-muted);
}
.contact-form button {
padding: 0.8rem 2rem;
background: var(--accent-color);
color: #fff;
border: none;
border-radius: 30px;
font-size: 1rem;
cursor: pointer;
align-self: flex-end;
transition:
background 0.3s,
transform 0.3s;
}
.contact-form button:hover {
background: var(--accent-color-hover);
transform: translateY(-2px);
}
.contact-info {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 3rem;
margin-top: 3rem;
text-align: center;
}
.contact-info div h3 {
margin-bottom: 0.5rem;
color: var(--accent-color);
font-size: 1.1rem;
font-weight: 600;
}
.contact-info div p {
margin: 0;
color: var(--text-muted);
line-height: 1.5;
font-size: 0.9rem;
}
.email a {
color: #000;
}
.social-icons {
display: flex;
justify-content: center;
align-items: center;
gap: 1.5rem;
margin-top: 0.5rem;
}
.social-icons a {
color: var(--text-muted);
transition: color 0.3s;
}
.social-icons a:hover {
color: var(--accent-color);
}
/* Footer */
.footer {
text-align: center;
padding: 2rem 1rem;
font-size: 0.8rem;
color: var(--text-muted);
margin-top: auto;
}
/* Fade in animation using IntersectionObserver. Elements with class
* `fade-in` are initially hidden and slide up into view when scrolled
* into the viewport. */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition:
opacity 0.8s ease,
transform 0.8s ease;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
/* Panels with shadow-fade start with no shadow and fade it in when visible */
.shadow-fade {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
transition: box-shadow 0.4s ease;
}
.shadow-fade.visible {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.shadow-fade.visible:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
/* Hide the navigation bar on small screens to remove the sidebar */
.navbar {
display: none;
}
.hero h1 {
font-size: 2.5rem;
}
.projects .project-grid {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.skills .skills-grid {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.contact-info {
flex-direction: column;
gap: 2rem;
}
.about {
align-items: center;
}
/* Prevent iOS zoom-on-focus and caret misalignment */
.contact-form input,
.contact-form textarea {
font-size: 16px;
}
}