-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
943 lines (821 loc) · 18.3 KB
/
style.css
File metadata and controls
943 lines (821 loc) · 18.3 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
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
*{
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
body {
background: var(--bg-color);
color: var(--text-color);
transition: background 0.3s, color 0.3s;
}
.container{
padding: 10px 10%;
}
:root {
--bg-color: #fff;
--text-color: #111;
--card-bg: #f9f9f9;
--accent: #007bff;
}
body.dark-mode {
--bg-color: #080808;
--text-color: #fff;
--card-bg: #1a1a1a;
--accent: #66ccff;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 10%;
position: sticky;
top: 0;
background: var(--bg-color);
z-index: 1000;
border-bottom: 1px solid #ccc;
}
nav ul {
display: flex;
gap: 2rem;
list-style: none;
margin: 0;
padding: 0;
align-items: center;
}
nav li {
margin: 0;
padding: 0;
}
/*Book Logo Settings Start*/
.logo {
width: 80px !important;
height: auto !important;
}
.logo-dark {
display: none;
}
.dark-mode .logo-dark {
display: inline;
}
.dark-mode .logo-light {
display: none;
}
/*Logo Settings End*/
nav ul li{
display: flex;
align-items: center;
list-style: none;
margin: 10px 20px;
}
nav ul li a{
color: var(--text-color);
text-decoration: none;
vertical-align: middle;
line-height: 1.6;
display: inline-block;
font-size: 18px;
position: relative;
}
nav ul li a:hover {
color: var(--accent);
}
/*Toogle Dark Button*/
.toggle-mode {
background-color: var(--card-bg);
border: 1px solid rgba(20, 20, 20, 0.205); /* lighter border */
border-radius: 10px;
width: 35px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
position: absolute; /* Prevent it from affecting hero layout */
top: 20px;
right: 20px;
z-index: 999; /* Ensure it stays on top */
}
.toggle-mode:hover {
background-color: var(--accent);
transform: scale(1.05);
}
.toggle-mode .icon {
font-size: 18px;
color: var(--text-color);
transition: transform 0.3s, color 0.3s;
}
body.dark-mode .toggle-mode .icon {
transform: rotate(180deg);
}
/*Hero Class (Header)*/
.hero {
display: flex;
align-items: center;
justify-content: center;
gap: 1.2rem; /* ✅ tighter layout */
padding: 3rem 10%;
background-color: var(--card-bg);
flex-wrap: wrap;
text-align: left;
}
.hero-text {
max-width: 500px;
margin: 0 auto; /* centers on small screens */
}
/* Target the image block */
.hero-image {
flex: 1 1 350px;
max-width: 350px;
margin: 0; /* ✅ remove default margin */
padding: 0; /* ✅ remove default padding */
}
.hero-image img {
width: 100%; /* ✅ responsive scaling */
height: auto;
max-width: 400px; /* adjust if needed */
}
.hero-image svg {
width: 100%;
height: auto;
display: block;
}
/*Hero Animation*/
.typing-line {
opacity: 0;
transform: translateX(-20px);
animation: showAndClear 8s linear infinite;
animation-fill-mode: both;
}
.line1 {
animation-delay: 0s;
}
.line2 {
animation-delay: 1s;
}
.line3 {
animation-delay: 2s;
}
.line4 {
animation-delay: 3s;
}
@keyframes showAndClear {
0%, 10% {
opacity: 0;
transform: translateX(-20px);
}
20%, 60% {
opacity: 1;
transform: translateX(0);
}
80%, 100% {
opacity: 0;
transform: translateX(-20px);
}
}
/* Dropdown styles */
.dropdown {
position: relative;
padding: 5px;
top: calc(100% + 10px); /* adds vertical buffer below the text */
}
.dropdown > a {
display: flex;
align-items: center;
position: relative;
gap: 6px;
line-height: 1.6;
z-index: 2;
}
.dropdown .arrow {
margin-left: 6px;
transition: transform 0.3s ease;
display: flex;
}
.dropdown:hover .arrow {
transform: rotate(90deg);
}
/* Make the dropdown content float below with space */
.dropdown-content {
position: absolute;
top: calc(100% + 1px); /* creates a small buffer zone */
left: 0;
background-color: var(--bg-color);
border-radius: 6px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
padding: 10px 0;
display: none;
z-index: 1;
min-width: 180px;
pointer-events: auto;
}
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
display: block;
}
/*Dropdown content li*/
.dropdown-content a::after {
content: none;
display: none;
}
.dropdown-content li {
list-style: none;
/* padding: 10px 16px;*/
display: flex;
align-items: center;
gap: 10px;
white-space: nowrap;
border-radius: 8px; /* 👈 Soft edges */
transition: background-color 0.2s, color 0.2s;
cursor: pointer;
}
.dropdown-link {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
border-radius: 8px;
color: var(--text-color);
text-decoration: none;
width: 100%;
height: 100%;
transition: background-color 0.2s, color 0.2s;
}
.dropdown-link:hover {
background-color: rgba(155, 147, 147, 0.021);
color: var(--accent);
}
.dark-mode .dropdown-link:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.dropdown-content li:hover {
background-color: rgba(0, 0, 0, 0.05); /* or use a light blue tint */
}
.dark-mode .dropdown-content li:hover {
background-color: rgba(255, 255, 255, 0.05); /* Light tint for dark mode */
border: 1px solid rgba(255, 255, 255, 0.08);
}
.dark-mode .dropdown-icon {
filter: invert(1) brightness(2) contrast(1.1);
}
.dark-mode .dropdown-content {
box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.08);
}
/*Dropdown content li Finish*/
.dropdown-icon { /*Project dropdown icons*/
width: 20px;
height: 20px;
opacity: 0.5;
}
.header-text{
margin-top: 20%;
font-size: 30px;
}
.header-text h1{
margin-top: 20px;
font-size: 60px;
}
.header-text h1 span{
color: #d8d2b7;
}
/*Feature Projects*/
/* — Featured Projects Section CSS — */
/* Section wrapper */
.projects {
padding: 3rem 10%;
max-width: 1800px;
margin: 0 auto;
padding-top: 2rem;
}
/* Heading with accent */
.projects h2 {
font-size: 2rem;
font-weight: 700;
text-align: center;
}
.projects .highlight {
color: var(--accent);
}
/* Two-column layout, tighter gap */
.projects-container {
display: flex;
gap: 0.5rem; /* reduced from 2rem */
max-width: 1200px;
margin: 2rem auto 0;
}
/* Left nav, wider tabs, no bottom border */
.project-nav {
position: sticky;
top: 4rem; /* ← push it down by your header’s height */
z-index: 1; /* ← ensure it stays underneath your header */
display: flex;
flex-direction: column;
padding: 0;
gap: 0.75rem;
flex: 0 0 240px; /* widened from 200px */
border-bottom: none; /* ensure no stray line */
}
.project-nav hr { display: none; }
/* Tabs */
.project-tab {
display: flex;
align-items: center;
justify-content: flex-start; /* text hugs icon */
text-align: left;
gap: 0.75rem;
padding: 0.75rem 1rem;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
color: #666;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
width: 86%;
}
body.dark-mode .project-tab {
background: #2b2b2b;
border-color: #444;
color: #aaa;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* default white icons in dark mode */
body.dark-mode .project-tab .tab-icon {
filter: invert(1) brightness(0.5) ;
}
/* when hovered or active, remove the white filter so it picks up the accent color */
body.dark-mode .project-tab:hover .tab-icon,
body.dark-mode .project-tab.active .tab-icon {
filter:
brightness(10%)
invert(100%) /* tweak this to get closer to your exact blue */
}
body.dark-mode .project-tab.active,
body.dark-mode .project-tab:hover {
background: #111111; /* your light-blue tint */
border-color: var(--accent);
color: var(--accent);
}
/* Active & hover */
.project-tab.active,
.project-tab:hover {
background: #E4E9FF;
border-color: var(--accent);
color: var(--accent);
box-shadow: none;
}
/* Tab icons */
.tab-icon {
width: 30px;
height: 30px;
opacity: 0.7;
filter: grayscale(100%);
transition: filter 0.3s, opacity 0.3s;
}
.project-tab.active .tab-icon,
.project-tab:hover .tab-icon {
filter: none;
opacity: 1;
}
/* Preview content area */
.project-content {
flex: 1;
}
/* Preview panels */
.project-preview {
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
body.dark-mode .project-preview {
background: #1f1f1f;
box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.hidden {
display: none;
}
/* Preview header */
.preview-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 1rem 1.5rem;
}
.preview-info h3 {
margin: 0 0 0.5rem;
font-size: 1.25rem;
}
.preview-info p {
margin: 0 0 0.5rem;
line-height: 1;
font-size: 0.85rem;
color: #555;
}
body.dark-mode .preview-info p {
color: #aaa;
}
.preview-tags {
font-size: 0.85rem;
color: var(--accent);
}
/* Separator line before the circle link */
.preview-link {
margin-left: 1.5rem;
padding-left: 1.5rem;
border-left: 1px solid var(--border);
display: flex;
align-items: center;
}
/* Circle + system arrow */
.link-circle {
width: 3rem;
height: 3rem;
border-radius: 50%;
background: #111;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}
body.dark-mode .link-circle {
background: #fff;
}
.arrow-symbol {
display: inline-block;
font-size: 1.25rem;
line-height: 1;
color: #fff;
transform: rotate(-45deg); /* start at 45° */
transition: transform 0.3s ease, color 0.3s ease;
}
body.dark-mode .arrow-symbol {
color: #111;
}
.preview-link:hover .link-circle {
background: var(--accent);
}
.preview-link:hover .arrow-symbol {
transform: rotate(0deg); /* rotate back to 0° */
color: #fff;
}
/* Preview image */
.preview-image {
width: 100%;
display: block;
border-top: 1px solid #eee;
object-fit: cover;
}
body.dark-mode .preview-image {
border-color: #333;
}
/* Responsive */
@media (max-width: 768px) {
.projects-container {
flex-direction: column;
}
.project-nav {
flex-direction: row;
overflow-x: auto;
margin-bottom: 1rem;
flex: none;
}
.project-tab {
flex: 1 0 auto;
white-space: nowrap;
}
}
/*Tech Stack Section*/
.skills-strip {
padding: 3rem 10%;
color: white;
background: #1b4eff;
text-align: center;
}
.skills-strip h2 {
font-size: 2.2rem;
font-weight: 600;
margin-bottom: 2rem;
text-align: center;
}
.stack-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.stack-group {
background: #fafafa;
border-radius: 12px;
padding: 1.2rem 1.5rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.479); /* darker + blurrier */
transition: box-shadow 0.3s ease;
}
.stack-group h3 {
font-size: 1.1rem;
margin-bottom: 1rem;
color: #222; /* or use var(--text-color) if you support theming */
}
.stack-items {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.stack-item:hover {
background-color: #d9e4ff;
color: #1b4eff;
transform: translateY(-2px);
transition: all 0.2s ease;
cursor: default;
}
.stack-item {
padding: 0.4rem 0.8rem;
background-color: #eee;
border-radius: 8px;
font-size: 0.9rem;
color: #333;
}
/*Stack Icon theme*/
.icon-skill {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.8rem;
background-color: #eee;
border-radius: 8px;
font-size: 0.9rem;
color: #333;
transition: background 0.3s ease;
}
.icon-wrapper {
width: 34px;
height: 34px;
border-radius: 50%;
border: 1px solid #cccccc80;
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.3s ease;
}
.icon-wrapper img {
width: 20px;
height: 20px;
filter: grayscale(1) brightness(1.2);
transition: filter 0.3s ease;
}
.icon-skill:hover .icon-wrapper {
border-color: #1b4cff48;
}
.icon-skill:hover .icon-wrapper img {
filter: none;
}
.icon-skill {
text-decoration: none !important; /* Stronger enforcement */
}
/*Why Me? Section*/
.why-me {
padding: 4rem 1.5rem;
max-width: 1400px; /* ✅ wider container to fit content better */
margin: 0 auto;
text-align: center;
}
.why-me h2 {
font-size: 2rem;
margin-bottom: 2rem;
color: var(--text-color);
}
.why-me-wrapper {
display: flex;
justify-content: space-between;
align-items: stretch;
gap: 2rem;
position: relative; /* Important for absolute positioning */
}
.why-me-wrapper::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 50%; /* Center of the wrapper */
transform: translateX(-50%);
width: 0.3px;
background-color: #c6c9cc;
z-index: 1;
}
body.dark-mode .why-me-wrapper::before {
background-color: rgba(255, 255, 255, 0.15);
}
.why-me-left,
.why-me-right {
flex: 1 1 50%; /* Each half takes 50% of the wrapper */
max-width: 50%; /* Prevent overflow into other half */
box-sizing: border-box; /* Include padding/borders in width */
}
.why-me-left {
background: #fff;
max-width: 500px;
border-radius: 10px;
padding: 1.2rem 2rem;
display: flex;
flex-direction: column;
justify-content: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.why-me-left h3 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1.1rem;
color: var(--accent); /* assuming --accent is your site's blue color */
}
body.dark-mode .why-me-left {
background: #1e1e1e; /* Or a soft dark background */
color: #f5f5f5; /* Light text for readability */
border: 1px solid #333; /* Optional: subtle border for definition */
}
.why-list {
list-style: none;
padding: 0;
margin: 0;
}
.why-list li {
display: flex;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid #f0f0f0;
font-size: 0.85rem;
line-height: 1.8;
}
.why-list li:last-child {
border-bottom: none;
}
.check-icon {
width: 20px; /* Adjust size as needed */
height: 20px;
margin-right: 0.5rem;
vertical-align: middle;
}
.why-me-right {
min-width: 200px;
text-align: center; /* Center-align carousel content */
max-width: 600px; /* ✅ Prevent overflow past divider */
margin: 0 auto;
padding-left: 4rem;
}
/* Carousel Styles */
.carousel {
position: relative;
min-height: 150px;
}
.carousel-slide {
opacity: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
transition: opacity 0.5s ease-in-out; /* smoother fade */
text-align: center;
z-index: 0;
}
.carousel-slide.active {
opacity: 1;
position: relative;
z-index: 1;
}
.carousel-slide.active {
display: block;
}
.carousel-slide h3 {
margin-bottom: 0.5rem;
font-size: 1.3rem;
color: var(--accent);
}
.carousel-dots {
margin-top: 1rem;
text-align: center;
}
.dot {
height: 10px;
width: 10px;
margin: 0 6px;
background-color: #ccc;
border-radius: 50%;
display: inline-block;
cursor: pointer;
transition: background-color 0.3s;
}
.dot.active {
background-color: var(--accent);
}
/*Carousel Logos*/
.company-icons {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: nowrap; /* 👈 prevents wrapping */
overflow-x: auto; /* optional: horizontal scroll if still too tight */
}
.company-item {
text-align: center;
text-decoration: none;
transition: color 0.2s ease;
}
.company-item img {
height: 60px;
width: auto;
object-fit: contain;
max-width: 100px; /* optional, prevents overly wide logos like Amazon */
display: block;
margin: 0 auto;
}
.company-item img[alt="Thales Group"] {
height: 60px; /* slightly larger than default */
max-width: 120px; /* optional cap */
}
.company-item p {
font-size: 0.75rem;
color: var(--text-color);
margin: 0;
transition: color 0.2s ease;
}
.education-icons img {
width: 70px !important; /* Adjust size as needed */
height: auto !important;
max-width: unset !important;
max-height: unset !important;
display: block;
}
.awards-icons img {
width: 80px !important; /* Try increasing if needed */
height: auto !important;
max-width: unset !important; /* Prevent restrictive overrides */
max-height: unset !important;
display: block;
}
/* Highlight label when hovering over link */
.company-item:hover p {
color: var(--accent); /* Matches your site’s blue */
}
/*Footer Section*/
.footer {
background-color: var(--card-bg);
font-size: 0.85rem;
padding: 20px 0 10px 0; /* tighten space, especially at bottom */
text-align: center;
margin-top: 3rem;
color: var(--text-color);
}
.social-icons {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
margin-top: 0.5rem;
margin-bottom: 0.8rem;
}
.icon-item {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}
.icon-item:hover span {
color: var(--accent); /* Or use a custom color like #007bff */
}
.icon-item:hover {
cursor: pointer;
}
.social-icon {
width: 40px;
height: 40px;
margin-bottom: 6px;
object-fit: contain;
}
.contact-line {
text-align: center;
margin-top: 1.5rem;
font-size: 1rem;
}
.contact-line a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
.copyright {
text-align: center;
font-size: 0.75rem; /* smaller than normal */
color: var(--text-color);
margin-top: 1rem;
opacity: 0.6; /* optional: makes it more subtle */
}
/*About me page*/
.about-me-image {
display: block;
max-width: 450px; /* Adjust width as needed */
margin: 0 auto -3rem auto; /* Center + reduce space below */
padding-top: -10rem; /* Optional: reduce top padding if needed */
}