-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
990 lines (827 loc) · 19.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
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(180deg, #0b0b40 0%, #1a1a66 50%, #2b2b85 100%);
color: #fff;
font-family: 'Press Start 2P', cursive;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
text-align: center;
overflow: hidden;
padding: 20px; /* Adds padding to avoid overflow */
}
/* .container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1;
position: relative;
text-align: center;
max-width: 90%; /* Prevent overflow by limiting width */
/* margin: 0 auto; Center the container */
.container {
display: flex;
flex-direction: column;
justify-content: center; /* Center content vertically */
align-items: center; /* Center content horizontally */
z-index: 1;
position: relative;
text-align: center;
max-width: 90%; /* Prevent overflow by limiting width */
height: 100vh; /* Make the container take up the full viewport height */
margin: 0 auto; /* Center the container */
}
.title {
font-size: 2.5rem; /* Adjusted font size for better proportions */
color: #00ff00;
margin-bottom: 20px;
}
.start-text {
color: #ff0;
font-size: 1.2rem; /* Adjusted font size */
margin-top: 20px;
margin-bottom: 30px;
animation: blink 1s steps(2, start) infinite;
}
.avatar-container {
margin: 20px 0;
}
.avatar {
width: 150px; /* Increased size for better visibility */
height: 150px;
border: 5px solid #00ff00; /* Retro pixelated border */
border-radius: 10px; /* Slightly rounded corners to give it a unique look */
image-rendering: pixelated; /* Ensure the pixelated look */
background-color: #000; /* Add background color for a better contrast */
}
.menu {
list-style-type: none;
font-size: 1.5rem; /* Adjusted font size */
color: #fff;
}
.menu-item {
margin: 10px 0;
cursor: pointer;
color: #fff; /* Default color for all menu items */
transition: color 0.3s;
}
.menu-item:hover {
color: #00ff00; /* Hover color */
}
/* Moon Styling */
.moon {
position: absolute;
top: 50px;
right: 50px;
width: 150px; /* Increased size */
height: 150px;
background: radial-gradient(circle at 30% 30%, #f0f0f0, #ccc); /* Gradient for moon texture */
border-radius: 50%; /* Ensures the moon stays circular */
box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5); /* Adds depth */
z-index: -2;
overflow: hidden;
}
/* Craters */
.moon::before, .moon::after {
content: '';
position: absolute;
border-radius: 50%;
background: radial-gradient(circle, #bbb, #888); /* Crater shading */
}
.moon::before {
width: 40px;
height: 40px;
top: 40px;
left: 20px;
}
.moon::after {
width: 25px;
height: 25px;
top: 100px;
left: 80px;
}
/* Small craters */
.moon .small-crater {
position: absolute;
background: radial-gradient(circle, #ddd, #999); /* Small craters shading */
border-radius: 50%;
}
.moon .small-crater:nth-child(1) {
width: 15px;
height: 15px;
top: 20px;
left: 90px;
}
.moon .small-crater:nth-child(2) {
width: 10px;
height: 10px;
top: 70px;
left: 40px;
}
.moon .small-crater:nth-child(3) {
width: 8px;
height: 8px;
top: 110px;
left: 20px;
}
.moon .small-crater:nth-child(4) {
width: 12px;
height: 12px;
top: 60px;
left: 120px;
}
/* Cloud Styling */
.clouds {
position: absolute;
width: 200px;
height: 60px;
background: #fff;
border-radius: 40px;
top: 120px;
left: -200px;
z-index: 0;
animation: floatClouds 50s linear infinite;
animation-delay: -5s; /* Start the second cloud earlier by 1 second */
opacity: 0.7; /* Reduce cloud opacity */
}
.clouds::before,
.clouds::after {
content: '';
position: absolute;
background: #fff;
border-radius: 40px;
}
.clouds::before {
width: 150px;
height: 50px;
top: -30px;
left: 50px;
}
.clouds::after {
width: 120px;
height: 40px;
top: 10px;
left: 100px;
}
/* Cloud Movement (left to right) */
@keyframes floatClouds {
0% {
left: -300px;
}
100% {
left: 100vw; /* Keep within viewport */
}
}
/* Second Cloud Styling (right to left) */
.clouds-reverse {
position: absolute;
width: 200px;
height: 60px;
background: #fff;
border-radius: 40px;
top: 180px; /* Adjust position for the second cloud */
right: -200px;
z-index: -1;
animation: floatCloudsReverse 60s linear infinite; /* Slower animation for variety */
animation-delay: -4s; /* Start the second cloud earlier by 1 second */
opacity: 0.7; /* Reduce cloud opacity */
}
.clouds-reverse::before,
.clouds-reverse::after {
content: '';
position: absolute;
background: #fff;
border-radius: 40px;
}
.clouds-reverse::before {
width: 150px;
height: 50px;
top: -30px;
left: 50px;
}
.clouds-reverse::after {
width: 120px;
height: 40px;
top: 10px;
left: 100px;
}
/* Cloud Movement (right to left) */
@keyframes floatCloudsReverse {
0% {
right: -300px;
}
100% {
right: 100vw; /* Keep within viewport */
}
}
/* Starfield Animation */
.stars {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
z-index: 0;
animation: moveStars 30s linear infinite;
}
@keyframes moveStars {
0% {
background-position: 0 0;
}
100% {
background-position: 1000px 1000px;
}
}
.stars::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 3px;
height: 3px;
background: white;
box-shadow:
50px 100px, 150px 200px, 250px 300px, 400px 500px,
600px 120px, 300px 800px, 700px 100px, 900px 350px,
150px 400px, 800px 600px, 50px 600px, 200px 900px;
animation: twinkle 2s infinite alternate;
}
.about-text {
font-size: 0.8 rem;
color: #fff;
margin: 20px 0;
line-height: 1.6;
max-width: 600px;
text-align: center;
padding: 5 px;
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.7);
border: 2px solid #00ff00;
}
@keyframes twinkle {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Blinking effect for "Press Start" */
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Back to Home Button */
.back-home-button {
margin-top: 20px;
padding: 10px 20px;
font-family: 'Press Start 2P', cursive;
background-color: #00ff00; /* Retro green */
color: #000;
border: 2px solid #fff;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
.back-home-button:hover {
background-color: #ffcc00; /* Change to yellow on hover */
transform: scale(1.1); /* Slightly enlarge on hover */
}
/* Projects Grid */
.projects-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Two equal-width columns */
gap: 20px; /* Spacing between project items */
justify-items: center; /* Center align the grid items */
margin-top: 40px;
padding: 0 20px; /* Padding around the grid for spacing */
width: 100%;
}
.project-item {
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
border: 2px solid #00ff00; /* Retro green border */
border-radius: 10px;
padding: 20px;
width: 100%; /* Ensure each item takes up 100% of its grid column */
max-width: 350px; /* Limit width for each project card */
text-align: center;
transition: transform 0.3s;
}
.project-item:hover {
transform: scale(1.05); /* Slight zoom on hover */
}
.project-title {
font-size: 1.5rem;
color: #00ff00; /* Bright green title */
margin-bottom: 10px;
}
.project-description {
font-size: 0.9rem; /* Smaller font for description */
color: #fff;
margin-bottom: 10px;
}
.project-link {
color: #ffcc00; /* Retro yellow link */
text-decoration: none;
font-size: 1rem;
}
.project-link:hover {
color: #00ff00; /* Hover effect to green */
}
/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
.title {
font-size: 2rem;
}
.projects-grid {
grid-template-columns: 1fr; /* One project per row on mobile */
}
.project-item {
max-width: 100%; /* Let project cards take full width on mobile */
padding: 15px;
}
.back-home-button {
padding: 10px 15px;
font-size: 0.9rem;
}
}
/* Additional Mobile Adjustments for smaller screens */
@media (max-width: 480px) {
.title {
font-size: 1.8rem;
}
.project-title {
font-size: 1.2rem;
}
.project-description {
font-size: 0.8rem;
}
.project-link {
font-size: 0.9rem;
}
.back-home-button {
padding: 8px 16px;
font-size: 0.7rem;
}
}
/* Resume Content Layout
.resume-content {
display: flex;
flex-direction: column;
align-items: center;
max-width: 800px; /* Ensure content doesn't stretch too wide */
/* margin: 20px 0;
background-color: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 10px;
border: 2px solid #00ff00; Retro green border */
.resume-section {
margin-bottom: 20px;
}
.resume-heading {
color: #00ff00; /* Bright green headings */
font-size: 1.5rem;
margin-bottom: 10px;
}
.resume-description {
color: #fff;
font-size: 1rem;
margin-bottom: 10px;
}
.resume-skills {
list-style: none;
padding: 0;
}
.resume-skills li {
font-size: 1rem;
color: #fff;
margin-bottom: 5px;
}
/* Align the text of the bullet points to the left */
.resume-job ul {
text-align: left;
margin-left: 20px; /* Adds some space before the bullets */
list-style-position: inside; /* Ensures the bullet is inside the text block */
}
/* Optional: Adjusting font size for better readability */
.resume-job ul li {
font-size: 1rem; /* Slightly adjust the font size if needed */
margin-bottom: 10px; /* Adds space between each bullet point */
color: #fff; /* Ensures text remains white */
}
.job-description {
color: #ffcc00; /* Retro yellow job description */
margin-bottom: 5px;
font-size: 1rem;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
max-width: 100%;
padding: 0 10px;
}
.title {
font-size: 2rem;
}
.resume-heading {
font-size: 1.2rem;
}
.resume-description,
.job-description,
.resume-skills li {
font-size: 0.9rem;
}
.tabs {
flex-direction: column; /* Stack the tabs vertically */
align-items: center;
margin-bottom: 15px;
}
.tab-button {
width: 90%; /* Make buttons take up full width */
margin: 10px 0; /* Add spacing between buttons */
font-size: 1rem; /* Adjust font size for smaller screens */
}
.back-home-button {
padding: 8px 16px;
font-size: 0.8rem;
}
}
@media (max-width: 480px) {
.title {
font-size: 1.8rem;
}
.resume-heading {
font-size: 1rem;
}
.resume-description,
.job-description,
.resume-skills li {
font-size: 0.8rem;
}
.tab-button {
font-size: 0.9rem;
padding: 10px;
width: 90%; /* Ensure full width for smaller screens */
}
.back-home-button {
padding: 6px 14px;
font-size: 0.7rem;
}
}
.download-button {
margin-top: 20px;
padding: 10px 20px;
font-family: 'Press Start 2P', cursive;
background-color: #00ff00; /* Retro green */
color: #000;
border: 2px solid #fff;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
.download-button:hover {
background-color: #ffcc00; /* Hover to yellow */
transform: scale(1.1); /* Slight zoom */
}
/* Tabs Styling */
.tabs {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.tab-button {
background-color: #000;
color: #fff;
border: 2px solid #00ff00;
padding: 10px 20px;
margin: 0 10px;
cursor: pointer;
font-family: 'Press Start 2P', cursive;
transition: background-color 0.3s, transform 0.3s;
}
.tab-button.active {
background-color: #00ff00;
color: #000;
}
.tab-button:hover {
background-color: #00ff00;
color: #000;
}
.tab-content {
display: none;
max-width: 800px;
margin-bottom: 20px;
background-color: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 10px;
border: 2px solid #00ff00;
}
/* Contact Form Styling */
.contact-form {
display: flex;
flex-direction: column;
align-items: center;
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
padding: 20px;
border-radius: 10px;
max-width: 500px;
width: 100%;
}
.form-group {
margin-bottom: 15px;
text-align: left;
width: 100%;
}
label {
font-size: 1.2rem;
color: #00ff00;
margin-bottom: 5px;
display: block;
}
input, textarea {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 2px solid #00ff00;
border-radius: 5px;
background-color: #000;
color: #fff;
}
input::placeholder, textarea::placeholder {
color: #777;
}
input:focus, textarea:focus {
outline: none;
border-color: #ffcc00; /* Change color when focused */
}
.submit-button {
padding: 10px 20px;
font-family: 'Press Start 2P', cursive;
background-color: #00ff00;
color: #000;
border: 2px solid #fff;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
margin-top: 20px;
}
.submit-button:hover {
background-color: #ffcc00; /* Change to yellow on hover */
transform: scale(1.1);
}
/* Responsive Design for Contact Form */
@media (max-width: 600px) {
.contact-form {
padding: 15px;
width: 90%;
}
.form-group {
width: 100%;
}
input, textarea {
font-size: 0.9rem;
}
}
/* Mobile Adjustments */
@media (max-width: 768px) {
body {
padding: 0;
}
.container {
max-width: 100%;
padding: 0 15px;
}
.title {
font-size: 2rem; /* Reduce title size */
}
.about-text {
font-size: 0.7 rem;
line-height: 1.4;
padding: 10px;
max-width: 90%;
}
.back-home-button {
padding: 10px 15px;
font-size: 0.8rem;
}
.clouds, .clouds-reverse {
width: 150px; /* Reduce cloud size on mobile */
height: 45px;
animation-duration: 25s;
animation-delay: -4s;
}
.moon {
width: 100px; /* Reduce moon size */
height: 100px;
}
}
@media (max-width: 480px) {
.title {
font-size: 1.8rem; /* Further reduce title size */
}
.about-text {
font-size: 0.7rem;
padding: 10px;
}
.back-home-button {
padding: 8px 16px;
font-size: 0.7rem;
}
.clouds, .clouds-reverse {
width: 120px;
height: 40px;
}
.moon {
width: 80px;
height: 80px;
}
}
.experience-toggle {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.toggle-button {
background-color: #000;
color: #fff;
border: 2px solid #00ff00;
padding: 10px 20px;
margin: 0 10px;
cursor: pointer;
font-family: 'Press Start 2P', cursive;
transition: background-color 0.3s, transform 0.3s;
}
.toggle-button.active {
background-color: #00ff00;
color: #000;
}
.toggle-button:hover {
background-color: #00ff00;
color: #000;
}
.experience-item {
display: none;
}
.experience-item.active {
display: block;
}
/* Education toggle buttons */
.education-toggle {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.education-button {
background-color: #000;
color: #fff;
border: 2px solid #00ff00;
padding: 10px 20px;
margin: 0 10px;
cursor: pointer;
font-family: 'Press Start 2P', cursive;
transition: background-color 0.3s, transform 0.3s;
}
.education-button.active {
background-color: #00ff00;
color: #000;
}
.education-button:hover {
background-color: #00ff00;
color: #000;
}
/* Education content styling */
.education-content {
display: none;
}
/* Slider Container */
.slider-container {
position: relative;
max-width: 60%;
margin: auto;
overflow: hidden;
border: 2px solid #00ff00;
border-radius: 10px;
}
.photo-slider img {
width: 80%; /* Adjust this to a smaller percentage to fit the image */
height: auto;
max-width: 600px; /* Set a maximum width for the image */
max-height: 400px; /* Set a maximum height for the image */
object-fit: cover; /* Ensure the image maintains its aspect ratio */
border-radius: 10px; /* Optional: adds rounded corners to images */
}
.photo-gallery {
display: flex;
justify-content: center;
align-items: center;
max-width: 0%; /* Ensures the gallery fits the screen width */
overflow: hidden;
}
.photo-slider {
position: relative;
max-width: 1000px;
margin: auto;
overflow: hidden;
text-align: center;
}
.slide img {
width: 100%;
height: auto;
max-height: 600px;
object-fit: contain; /* Keep aspect ratio intact */
border-radius: 10px;
}
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
user-select: none;
}
.prev {
left: 0;
}
.next {
right: 0;
}
.prev:hover, .next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
.slides {
display: flex;
justify-content: center;
transition: transform 0.5s ease-in-out;
}
.slider-item {
display: none;
width: 100%;
height: auto;
border-radius: 10px;
}
.slider-item.active {
display: block;
}
.slider-item:first-of-type {
display: block;
}
/* Mobile view: stack items vertically and make it scrollable */
@media (max-width: 768px) {
.projects-grid {
display: flex; /* Switch to flex layout for scrolling */
flex-direction: column; /* Stack items vertically */
max-height: 70vh; /* Limit height to 70% of viewport */
overflow-y: auto; /* Enable vertical scrolling */
padding-right: 10px;
}
/* Optional scrollbar styling */
.projects-grid::-webkit-scrollbar {
width: 8px;
}
.projects-grid::-webkit-scrollbar-thumb {
background-color: #00ff00; /* Bright green scrollbar */
border-radius: 10px;
}
.projects-grid::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.5); /* Semi-transparent scrollbar track */
}
}
/* Mobile view: Make the resume section scrollable */
@media (max-width: 768px) {
.resume-content {
max-height: 70vh; /* Limit height to 70% of viewport */
overflow-y: auto; /* Enable vertical scrolling */
padding-right: 10px; /* Add padding for better UX */
}
/* Optional scrollbar styling */
.resume-content::-webkit-scrollbar {
width: 8px;
}
.resume-content::-webkit-scrollbar-thumb {
background-color: #00ff00; /* Bright green scrollbar */
border-radius: 10px;
}
.resume-content::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.5); /* Semi-transparent scrollbar track */
}
}