-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
701 lines (606 loc) · 13.2 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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
line-height: 1.6;
transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}
/* Navbar Styles */
nav {
background: #f39c12;
color: white;
padding: 15px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s;
}
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
}
nav .navbar-brand {
font-size: 1.8rem;
color: white;
text-decoration: none;
display: flex;
align-items: center;
}
nav .navbar-brand i {
margin-right: 10px;
font-size: 2rem;
}
nav .nav-links {
list-style: none;
display: flex;
gap: 20px;
transition: max-height 0.3s ease-out;
}
nav .nav-links a {
color: white;
text-decoration: none;
font-weight: 400;
transition: color 0.3s;
}
nav .nav-links a:hover,
nav .nav-links a.active {
color: #333;
border-bottom: 2px solid #333;
padding-bottom: 5px;
}
/* Responsive Menu Styles */
nav .menu-toggle {
display: none;
font-size: 2rem;
cursor: pointer;
color: white;
}
nav .nav-links.active {
max-height: 500px;
}
@media screen and (max-width: 768px) {
nav .nav-links {
display: flex;
flex-direction: column;
max-height: 0;
overflow: hidden;
}
nav .menu-toggle {
display: block;
}
}
/* Button Styles */
.hero-text .btn,
.project-card .btn,
.skill-card .btn,
.modal-links a {
background: #f39c12; /* Match with the navbar color */
color: white;
padding: 8px 16px; /* Adjust padding if needed */
border-radius: 5px;
text-decoration: none;
transition: background 0.3s;
}
.hero-text .btn:hover,
.project-card .btn:hover,
.skill-card .btn:hover,
.modal-links a:hover {
background: #e67e22; /* Slightly darker shade for hover */
}
/* Section Titles and Other Highlights */
h2::after {
background-color: #e67e22; /* Adjusted to complement the new navbar color */
}
/* Theme Switcher */
.theme-switcher {
display: flex;
align-items: center;
}
.theme-switcher label {
margin-left: 5px;
color: white;
}
/* Video Background Styles */
#background-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
/* Adjust the height of the video section */
#hero {
position: relative;
width: 100%;
height: 70vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.hero-text {
color: white;
text-align: center;
padding: 20px;
z-index: 2;
max-width: 80%;
}
.hero-text h1 {
font-size: 3rem;
margin-bottom: 15px;
}
.hero-text p {
font-size: 1.2rem;
margin-bottom: 20px;
}
.hero-text .btn {
background: #f39c12;
color: white;
padding: 8px 16px;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s;
}
.hero-text .btn:hover {
background: #e67e22;
}
@media screen and (max-width: 768px) {
#hero {
height: 50vh;
}
.hero-text h1 {
font-size: 2rem;
}
.hero-text p {
font-size: 1rem;
}
.hero-text .btn {
padding: 6px 12px;
}
}
/* Container Styles */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Section Styles */
section {
padding: 80px 20px;
text-align: center;
}
h2 {
font-size: 2.5rem;
margin-bottom: 30px;
position: relative;
display: inline-block;
}
h2::after {
content: '';
width: 50px;
height: 4px;
background-color: #f39c12;
display: block;
margin: 10px auto 0;
}
/* About Section */
/* About Section Styles */
.about-section {
background-color: #fefefe;
padding: 80px 20px; /* Increased padding for more height */
margin-top: 50px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Center the title for the About Me section */
.about-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 30px;
position: relative;
}
.about-title::after {
content: '';
width: 60px;
height: 4px;
background-color: #f39c12;
display: block;
margin: 10px auto 0;
}
/* About Content Layout */
.about-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 30px;
}
.about-text {
flex: 1;
max-width: 60%;
text-align: justify;
}
.about-image {
flex: 1;
max-width: 35%;
display: flex;
justify-content: center;
}
.about-image img {
width: 100%;
max-width: 300px; /* Increased max width to make the image section larger */
height: auto;
max-height: 400px; /* Adjusted max height to increase the image size */
border-radius: 12px; /* Square format with rounded corners */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Add shadow to the image */
transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease; /* Transition for hover effect */
}
/* Hover Effect on Image */
.about-image img:hover {
transform: scale(1.05); /* Slightly scale the image on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
border: 4px solid #f39c12; /* Add border on hover */
}
.about-icon {
color: #f39c12; /* Icon color */
margin-right: 15px; /* Add more space between the icon and text */
font-size: 1.5rem; /* Adjust icon size */
}
.about-text p {
font-size: 1.1rem;
line-height: 1.8;
color: #555;
margin-bottom: 20px;
display: flex;
align-items: center;
}
@media screen and (max-width: 768px) {
.about-content {
flex-direction: column;
text-align: center;
}
.about-text,
.about-image {
max-width: 100%;
}
.about-image img {
margin-bottom: 20px;
}
}
/* Projects Section */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.project-card {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
}
body.dark-mode .project-card {
background-color: #444;
color: #f4f4f4;
}
.project-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.project-icon {
font-size: 3rem;
color: #f39c12;
margin-bottom: 15px;
}
.project-card h3 {
margin-top: 0;
font-size: 1.8rem;
margin-bottom: 10px;
}
.project-card p {
font-size: 1rem;
color: #666;
margin-bottom: 20px;
}
.project-card .btn {
background: #f39c12;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s;
}
.project-card .btn:hover {
background: #e67e22;
}
/* #Project Left and :right */
/* Project Carousel */
.project-carousel {
position: relative;
display: flex;
align-items: center;
overflow: hidden; /* Hide overflow to create the carousel effect */
}
/* Project Grid Styles */
.project-grid {
display: flex;
overflow-x: scroll; /* Enable horizontal scrolling */
scroll-behavior: smooth; /* Smooth scrolling */
gap: 20px; /* Space between project cards */
padding: 20px; /* Add padding to the project container */
}
/* Hide scrollbar */
.project-grid::-webkit-scrollbar {
display: none; /* For Chrome, Safari, and Opera */
}
.project-grid {
-ms-overflow-style: none; /* For Internet Explorer and Edge */
scrollbar-width: none; /* For Firefox */
}
.project-card {
flex: 0 0 300px; /* Fixed width for each card */
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
}
/* Carousel Button Styles */
.carousel-btn {
background-color: #f39c12;
color: white;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 50%; /* Center vertically */
transform: translateY(-50%); /* Align middle */
cursor: pointer;
transition: background-color 0.3s ease;
z-index: 10; /* Ensure buttons are above other content */
}
/* Adjusted Left Arrow Positioning */
.left-btn {
left: 15px; /* Create more space on the left */
}
/* Adjusted Right Arrow Positioning */
.right-btn {
right: 15px; /* Create more space on the right */
}
/* Hover Effect for Buttons */
.carousel-btn:hover {
background-color: #e67e22;
}
/* Skills Section */
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.skill-card {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
}
body.dark-mode .skill-card {
background-color: #444;
color: #f4f4f4;
}
.skill-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.skill-icon {
font-size: 3rem;
color: #f39c12;
margin-bottom: 15px;
}
.skill-card h3 {
margin-top: 0;
font-size: 1.8rem;
margin-bottom: 10px;
}
.skill-card p {
font-size: 1rem;
color: #666;
margin-bottom: 20px;
}
.skill-card .btn {
background: #f39c12;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s;
}
.skill-card .btn:hover {
background: #e67e22;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
justify-content: center;
align-items: center;
}
/* Modal Content Styling */
.modal-content {
background-color: #ffffff;
margin: auto;
padding: 30px;
border-radius: 12px;
width: 80%;
max-width: 700px;
text-align: left; /* Ensure left alignment for paragraphs */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* Center the title and add some margin */
.modal-content h3 {
text-align: center; /* Center align the title */
margin-bottom: 20px; /* Space below the title */
font-size: 1.8rem; /* Adjust font size if needed */
}
/* Ensure the image is centered and responsive */
.modal-content img {
display: block;
margin: 0 auto 20px; /* Center the image and add space below */
max-width: 100%; /* Ensure the image does not overflow */
height: auto; /* Maintain aspect ratio */
border-radius: 8px; /* Add rounded corners if desired */
}
/* Style the paragraphs inside the modal */
.modal-content p {
margin-bottom: 15px; /* Space between paragraphs */
line-height: 1.6; /* Improve readability */
color: #333; /* Ensure text color contrasts with the background */
}
/* Style for the Detail View button */
.modal-content .btn {
display: block;
width: fit-content;
margin: 20px auto 0; /* Center the button and add margin */
background-color: #f39c12; /* Button background color */
color: white; /* Button text color */
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-size: 1rem;
transition: background 0.3s;
}
.modal-content .btn:hover {
background-color: #e67e22; /* Change color on hover */
}
/* Ensure checkmark and text are aligned */
.modal-content p::before {
/* content: '✅ '; */
/* Add checkmark before the paragraph */
display: inline-block;
margin-right: 8px; /* Space between the checkmark and text */
}
body.dark-mode .modal-content {
background-color: #444;
color: #f4f4f4;
}
.modal-content.show {
transform: translateY(0);
}
.close-btn {
color: #333;
float: right;
font-size: 24px;
font-weight: bold;
cursor: pointer;
transition: color 0.3s;
}
body.dark-mode .close-btn {
color: #f4f4f4;
}
.close-btn:hover,
.close-btn:focus {
color: #f39c12;
}
.project-screenshot {
width: 100%;
height: auto;
border-radius: 8px;
margin-bottom: 20px;
}
.modal-links {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.modal-links a {
background: #f39c12;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s;
font-size: 1rem;
}
.modal-links a:hover {
background: #e67e22;
}
/* Contact Section */
#contact {
padding: 60px 20px;
background-color: #333; /* Black background color */
text-align: center;
color: #f4f4f4; /* Light text color for better contrast */
}
#contact h2 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #f4f4f4; /* Light text color */
}
#contact p {
font-size: 1.2rem;
margin-bottom: 20px;
color: #f4f4f4; /* Light text color */
}
.social-icons {
margin-top: 20px;
}
.social-icons a {
color: #f4f4f4; /* Light icon color */
margin: 0 15px;
font-size: 2rem;
transition: color 0.3s;
}
.social-icons a:hover {
color: #f39c12; /* Highlight color on hover */
}
/* Footer */
footer {
padding: 20px;
background-color: #333; /* Black background color */
color: #f4f4f4; /* Light text color */
text-align: center;
font-size: 1rem;
border-top: 1px solid #f4f4f4; /* Add a line to separate contact and footer */
margin-top: 20px; /* Add some space above the line */
}
/* Responsive Design Adjustments */
@media screen and (max-width: 768px) {
.social-icons a {
margin: 0 10px;
font-size: 1.5rem;
}
}