-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
813 lines (672 loc) · 15.4 KB
/
styles.css
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
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
/* Global styles */
html {
margin: 0;
height: 100%;
scroll-behavior: smooth;
}
body {
padding-top: 0;
background-color: #f2f2f2;
font-family: "Nunito Sans", sans-serif;
color: #333;
display: grid;
grid-template-rows: auto 1fr auto;
font-optical-sizing: auto;
}
main {
padding-top: 60px;
}
h2 {
text-align: center;
}
h1 {
font-size: 36px;
font-weight: bold;
margin-bottom: 20px;
}
p,
li {
color: #777;
}
section{
transition: all 0.3s ease;
text-rendering: optimizeLegibility;
text-rendering: optimizeSpeed;
}
/* Header styles */
.navbar-dark .navbar-nav .nav-link {
color: white !important;
z-index: 100;
}
.navbar-nav .nav-link:hover {
color: green !important;
}
header {
text-align: center;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
height: 60px;
}
header nav a {
color: white;
margin: 0 10px;
text-decoration: none;
font-size: 18px;
}
header h1 {
margin: 0;
}
/* Section styles */
section {
display: flex;
justify-content: center;
scroll-margin-top: 60px;
flex-direction: column;
width: 80%; /* Set the width to 80% */
margin: 0 auto; /* Add auto margins to horizontally center the section */
padding: 20px 0; /* Add vertical padding */
transform: translateZ(0);
will-change: transform;
}
section ul {
list-style-type: none;
padding: 0;
width: 100%; /* Take up the full width */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}
section ul li {
margin-bottom: 10px;
text-align: center; /* Center the text */
}
.font-color {
color: black;
}
.navbar {
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100vh;
width: 100%;
margin: 0 auto;
}
.card {
transition: background-color 0.3s ease;
}
.card:hover {
background-color: #f5f5f5;
}
/* ABOUT SECTION */
#about {
position: relative;
}
#about h2{
margin-bottom: 10px;
}
#about .fa-address-card {
position: absolute; /* This allows the icon to be positioned relative to the about section */
top: 10px; /* Adjust this value to move the icon vertically */
right: 10px; /* Adjust this value to move the icon horizontally */
font-size: 25px; /* Adjust the size of the icon */
}
#about:hover .fa-address-card {
color: #008000; /* Change the color on hover */
transition: color 0.3s ease; /* Add a transition effect */
}
.about-content {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
align-items: center;
background-color: #f9f9f9;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
position: relative;
min-height: 450px;
transition: all 0.3s ease-in-out;
transform: translateZ(0);
will-change: transform;
}
.about-content:hover {
box-shadow: 0 0 10px rgba(0, 128, 0, 0.3); /* darker green shadow on hover */
transform: scale(1.01) translateZ(0)
}
#about p {
font-size: 1em; /* Use ems instead of pixels */
max-width: 90%; /* Use percentage instead of pixels */
margin: 0 auto;
}
.button-container {
display: flex;
gap: 10px;
justify-content: center;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 10px;
}
.button {
background-color: black;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
outline: none;
border: none;
text-transform: uppercase;
}
.button:focus {
border: none;
outline: none;
}
.button:hover {
background-color: green;
text-decoration: none;
color: white;
border: none;
}
.img-fluid {
max-width: 150px;
max-height: 150px;
border-radius: 50%;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
align-self: center; /* Align this item to the center */
margin: 0 auto; /* Center the image horizontally */
}
.about-icons {
display: flex;
flex-direction: row; /* Change this from column to row */
font-size: 25px;
transition: all 0.3s ease;
justify-content: center;
align-items: center;
gap: 10px;
color: black;
}
.about-icons a {
color: black;
transition: color 0.3s ease;
}
.about-icons a:hover {
color: green;
}
/* ABOUT SECTION */
/* Skills section */
#skills {
position: relative;
}
.skills{
margin-bottom: 12px;
}
#skillsCarousel {
border-radius: 15px;
background-color: #f9f9f9;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
display: flex; /* Use Flexbox */
flex-direction: column; /* Stack the children vertically */
justify-content: center; /* Center the children vertically */
align-items: center; /* Center the children horizontally */
min-height: 450px;
}
.carousel-item {
height: 100%; /* make the carousel items fill the height of the carousel */
display: flex;
flex-direction: column;
justify-content: flex-start; /* align the content to the top */
align-items: center;
position: relative;
}
.carousel-icon {
position: absolute; /* This allows the icon to be positioned relative to the carousel item */
top: 0px; /* Aligns the icon with the top of the carousel item */
right: 20px; /* Aligns the icon with the right of the carousel item */
font-size: 20px;
}
#skillsCarousel:hover .carousel-icon {
color: green; /* Green for languages */
}
#skillsCarousel:hover {
box-shadow: 0 0 10px rgba(0, 128, 0, 0.3); /* darker green shadow on hover */
transform: scale(1.01);
}
.carousel-control-prev i,
.carousel-control-next i {
color: black; /* Change this to the color you want */
}
.carousel-control-prev :hover,
.carousel-control-next :hover {
transform: scale(1.01);
}
.skills-container {
display: flex;
flex-direction: column;
align-items: center;
}
.skills-section {
background-image: radial-gradient(circle, #008000 1px, transparent 1px),
radial-gradient(circle, #008000 1px, transparent 1px);
background-size: 20px 20px; /* Size of the squares */
background-position: 0 0, 10px 10px; /* Position of the background */
}
.row {
display: flex;
justify-content: center;
gap: 25px; /* Add some space between the items */
margin-bottom: 25px;
margin-top: 25px;
}
.row li {
display: flex;
flex-direction: column;
align-items: center; /* Center the items vertically */
justify-content: center; /* Center the items horizontally */
text-align: center; /* Center the text */
}
.skill-icon {
align-self: center; /* Vertically center the icon */
}
.skills-list li i {
margin-right: 10px; /* Add some space between the icon and the skill name */
}
.star-rating {
display: inline-block;
margin-left: 10px;
}
.star-rating i {
color: #008000;
font-size: 16px; /* Increase the size of the stars */
}
.title-icon-wrapper {
display: flex; /* Use flexbox to align the icon and the title */
align-items: center; /*Vertically center the icon and the title */
justify-content: center; /* Align the icon and the title to the left */
width: 100%; /* Make the title wrapper take up as much horizontal space as possible */
padding-top: 10px;
}
.title-icon-wrapper i {
margin-right: 10px; /* Add some space between the icon and the title */
color: #008000; /* Green color for the icon */
font-size: 22px; /* Increase the size of the icon */
}
.title-icon-wrapper h3 {
font-size: 22px; /* Increase the size of the icon */
margin-top: 7px; /* Add some space above the title */
line-height: 1; /* Remove the space below the title */
}
/* Experience section */
.section-title {
font-size: 2em;
color: #333;
text-align: center;
}
.experience-content {
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
}
.experience-item {
background-color: #f9f9f9;
padding: 10px 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
position: relative;
transform: translateZ(0);
will-change: transform;
}
.experience-item:hover {
box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
transform: scale(1.01);
}
.experience-item:hover .experience-date {
color: green; /* Change the color to red on hover */
transition: all 0.3s ease; /* Add a transition effect */
}
.experience-item:hover .experience-container i {
color: green;
}
.experience-text {
font-size: 1em;
color: #666;
}
.experience-date {
font-size: 0.9em;
font-weight: bold;
color: #999;
text-align: center;
margin: 5px;
}
.experience-container {
position: absolute;
top: 10px;
right: 10px;
margin-left: 10px;
}
.experience-content ul {
list-style-type: none;
margin: 0;
}
.experience-content ul li::before {
content: "•";
display: inline-block;
width: 1em;
}
.experience-row {
display: flex;
justify-content: space-between;
width: 100%;
}
.experience {
padding: 0 10px; /* Add some horizontal padding */
word-wrap: break-word; /* Break the word */
justify-content: flex-start; /* or center */
white-space: normal; /* Wrap the text */
}
.experience-button:hover {
background-color: green; /* Add this line */
cursor: pointer; /* Add this line */
}
.experience-button:focus {
border: none;
outline: none;
}
/* Projects section */
#projects {
position: relative;
}
#projects h2 {
text-align: center; /* Centered title */
margin-bottom: 10px; /* Space below the title */
}
#projects .list-group-item {
background-color: #f9f9f9; /* Light grey background */
border-radius: 15px; /* Rounded corners */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
margin-bottom: 20px; /* Space below each card */
transition: all 0.3s ease;
position: relative;
border: 0px;
transform: translateZ(0);
will-change: transform;
}
#projects .list-group-item:hover {
box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
transform: scale(1.01) translateZ(0);
z-index: 1;
}
.language-icon {
position: absolute;
top: 10px;
right: 10px;
font-size: 25px;
transition: all 0.3s ease;
color: black;
}
.project-tags{
position: relative;
font-size: 20px;
transition: all 0.3s ease;
align-content: center;
}
#projects .list-group-item:hover .language-icon {
color: green; /* Change to the hover color for Python icon */
}
.project-details {
display: flex;
gap: 10px;
margin-top: 10px;
margin-bottom: 5px;
justify-content: center;
font-size: 1.05em; /* Smaller text */
}
/* Papers Section */
#papers {
position: relative;
transform: translateZ(0);
will-change: transform;
}
.paper {
border: 0px solid #ddd; /* Lighter border color */
border-radius: 15px; /* Less rounded corners */
background-color: #f9f9f9; /* White background */
transition: all 0.3s ease;
position: relative;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
padding: 20px;
justify-content: center;
text-align: center;
transform: translateZ(0);
will-change: transform;
}
.paper:hover {
box-shadow: 0 0 20px rgba(0, 128, 0, 0.5);
transform: scale(1.01) translateZ(0);
z-index: 1;
}
.paper p {
margin-bottom: 30px;
text-align: center;
padding: 5px;
}
.paper-preview {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2 columns */
grid-template-rows: repeat(2, 1fr); /* 2 rows */
gap: 20px; /* Adjust as needed */
justify-content: space-between;
transform: translateZ(0);
will-change: transform;
transition: all 0.3s ease;
}
.paper-container {
display: flex;
gap: 10px;
justify-content: center;
transform: translateZ(0);
will-change: transform;
transition: all 0.3s ease;
}
.paper-icons {
display: flex;
font-size: 25px;
color: black;
}
.paper-icons a {
color: black;
transition: color 0.3s ease;
}
.paper-icons a:hover {
color: green;
}
.paper button {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
padding: 10px 15px;
background-color: black;
margin: 5px;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em; /* Smaller text */
transition: all 0.3s ease;
text-transform: uppercase; /* Uppercase text */
}
.paper button:focus {
border: none;
outline: none;
}
.paper button:hover {
background-color: green;
}
.paper .paper-icon {
position: absolute;
top: 10px;
right: 10px;
font-size: 22px;
color: black;
}
.paper:hover .paper-icon {
color: green; /* Change to the hover color for Python icon */
}
/* FOOTER SECTION */
footer {
position: fixed;
bottom: 0;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #343a40;
z-index: 100;
}
.footer-center {
display: flex;
align-items: center;
padding: 10px;
justify-content: center;
color: white;
font-size: 18px;
transition: all 0.3s ease;
flex-direction: column;
}
/* Social icons styles */
.footer-center a {
color: white;
font-size: 20px;
justify-content: center;
}
.footer-center p {
color: white;
font-size: 0.8em;
margin: 0;
}
/* FOOTER SECTION */
/* Styles for medium screens */
@media (max-width: 1024px) {
h1,
h2 {
font-size: 1.75em;
line-height: 1.4;
}
p {
font-size: 0.9em;
line-height: 1.4;
margin: 0 0 0.9em;
margin-top: 1.5em;
}
.profile-pic,
.social-icons {
position: absolute;
top: 5px;
right: 5px;
}
div:hover {
transform: none !important; /* Disables any transform on hover for all divs */
}
#projects .list-group-item:hover {
transform: none;
}
}
/* Styles for small screens */
@media (max-width: 768px) {
h1,
h2 {
font-size: 1.5em;
line-height: 1.3;
}
p {
font-size: 0.8em;
line-height: 1.3;
margin: 0 0 0.8em;
margin-top: 2em;
}
/* About section */
.about h2 {
font-size: 1em; /* Use smaller font size */
}
.about-text{
font-size: 5px;
}
.button {
padding: 10px 25px; /* Adjusted padding for smaller screens */
font-size: 0.9em; /* Adjusted font size for smaller screens */
}
.button span{
display: none;
}
.a .button span{
display: none;
}
.profile-pic,
.social-icons {
position: static; /* Reset to default positioning */
display: block;
margin-left: auto;
margin-right: auto;
}
.img-fluid{
max-width: 120px; /* Adjusted max-width for smaller screens */
max-height: 120px; /* Adjusted max-height for smaller screens */
margin-top: 10px;
}
.icon{
display: none;
}
/* Paper section */
.paper-preview {
grid-template-columns: repeat(1, 1fr); /* 2 columns */
}
#paper p {
padding-bottom: 5px;
}
.experience-date {
font-size: 0.8em; /* Adjust the font size for smaller screens */
text-align: center; /* Change the text alignment for smaller screens */
padding-bottom: 10px;
}
div:hover {
transform: none !important; /* Disables any transform on hover for all divs */
}
#projects .list-group-item:hover {
transform: none;
}
}
/* Scrollbar styles */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}