-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
480 lines (423 loc) · 9.21 KB
/
styles.css
File metadata and controls
480 lines (423 loc) · 9.21 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
/* Basic styles for the body */
body {
font-family: "Segoe UI", Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f6fa;
color: #222;
}
main {
padding-top: 100px; /* adjust based on your header height */
}
/* Header styles */
/* Header styles */
.site-header {
background-color: #4fc3f7;
color: #fff;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
background-color: #4fc3f7;
padding: 1.5rem 2rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-content {
display: flex;
justify-content: center; /* center the content horizontally */
align-items: center;
position: relative;
}
.header-content h1 {
flex: 1;
text-align: center;
transform: translateX(-33px);
font-size: 2rem;
margin: 0;
}
.nav-dropdown {
position: absolute;
top: 50%;
right: 2rem;
transform: translateY(-50%);
width: 160px;
}
.nav-dropdown .hamburger {
background: #4fc3f7;
color: #fff;
border: none;
transform: translateX(-20px); /* adjust this to move left */
padding: 0.5rem 1.2rem;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
white-space: nowrap;
width: 160px;
text-align: center;
}
.nav-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
transform: translateX(-20px); /* adjust this to move left */
width: 160px;
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
list-style: none;
padding: 0;
margin: 0;
text-align: center;
}
.nav-menu.visible {
display: block;
}
.nav-menu a {
color: #1a2533;
text-decoration: none;
display: block;
width: 100%;
height: 100%;
padding: 0.75rem 0;
}
.nav-menu li:hover {
background: #f4f6fa;
}
/* About Me section styles */
.about-me {
max-width: 700px;
margin: 2.5rem auto;
padding: 2rem 2.5rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
text-align: left;
}
.about-me h2 {
font-size: 2rem;
margin-bottom: 1rem;
text-align: center;
letter-spacing: 0.5px;
}
.about-me p {
font-size: 1.15rem;
line-height: 1.7;
margin-bottom: 1.2rem;
color: #333;
text-align: justify;
}
/* Projects section styles */
.projects-section {
max-width: 90%; /* Ensures uniform width with other sections */
margin: 2.5rem auto; /* Centers the section horizontally */
padding: 2rem; /* Adds internal spacing */
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
text-align: center; /* Centers the title */
}
.projects-section h2 {
font-size: 2rem;
margin-bottom: 1.5rem;
letter-spacing: 0.5px;
}
/* Projects list styles */
.projects-list {
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: center; /* Centers the project tiles */
margin: 0;
padding: 0;
list-style: none; /* Removes default list styling */
}
/* Individual project card styles */
.projects-list article {
background: #f9fbfd;
border-radius: 10px;
box-shadow: 0 1px 6px rgba(44, 62, 80, 0.06);
padding: 1.5rem 1.2rem;
width: 320px; /* Fixed width for uniform tiles */
display: flex;
flex-direction: column;
align-items: center;
transition: box-shadow 0.2s;
}
.projects-list article:hover {
box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
}
/* Project image and caption styles */
.projects-list figure {
margin: 0 0 1rem 0;
width: 100%;
text-align: center;
}
.projects-list img {
border-radius: 6px;
width: 100%;
height: auto;
max-width: 300px;
box-shadow: 0 1px 4px rgba(44, 62, 80, 0.08);
}
.projects-list figcaption {
font-size: 0.98rem;
color: #4fc3f7;
margin-top: 0.4rem;
}
/* Project title styles */
.projects-list h3 {
margin: 0.7rem 0 0.5rem 0;
font-size: 1.25rem;
color: #2d3e50;
text-align: center;
}
/* Project description styles */
.projects-list p {
font-size: 1rem;
color: #444;
text-align: center;
margin-bottom: 1.1rem;
}
/* Project link button styles */
.projects-list a {
margin-top: auto;
display: inline-block;
background: #4fc3f7;
color: #fff;
text-decoration: none;
padding: 0.5rem 1.2rem;
border-radius: 5px;
font-weight: 500;
transition: background 0.18s;
}
.projects-list a:hover {
background: #039be5;
}
/* Skills list styles */
.skills-section h2 {
text-align: center; /* Centers the title */
font-size: 2rem;
margin-bottom: 1.5rem;
letter-spacing: 0.5px;
}
.skills-list {
display: flex;
flex-wrap: wrap; /* Allows wrapping to the next line if needed */
justify-content: center; /* Centers the skills horizontally */
gap: 1.5rem; /* Adds spacing between skills */
padding: 0;
margin: 0;
list-style: none; /* Removes default list styling */
}
.skills-list li {
background: #4fc3f7; /* Adds a background color for flair */
color: #fff;
font-size: 1rem;
font-weight: 500;
width: 150px; /* Fixed width for uniform size */
height: 50px; /* Fixed height for uniform size */
display: flex;
justify-content: center; /* Centers text horizontally */
align-items: center; /* Centers text vertically */
border-radius: 25px; /* Rounded pill-like appearance */
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.skills-list li:hover {
transform: scale(1.1); /* Slight zoom effect on hover */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#contact h2 {
font-size: 2rem;
margin-bottom: 1rem;
text-align: center;
letter-spacing: 0.5px;
}
#contact form {
display: flex;
flex-direction: column;
gap: 1rem;
}
#contact label {
font-size: 1rem;
color: #2d3e50;
font-weight: 500;
}
#contact input,
#contact textarea {
width: 100%;
padding: 0.75rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
#contact input:focus,
#contact textarea:focus {
outline: none;
border-color: #4fc3f7;
box-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
}
#contact button {
padding: 0.75rem 1.5rem;
font-size: 1rem;
color: #fff;
background: #4fc3f7;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 0.2s;
}
#contact button:hover {
background: #039be5;
}
/* General section styles for uniform width */
section {
max-width: 90%; /* Covers most of the screen width */
margin: 2.5rem auto; /* Centers the sections horizontally */
padding: 2rem 2.5rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
}
/* Specific adjustments for sections if needed */
.about-me,
.projects-section,
.skills-section,
#contact {
max-width: 90%; /* Ensures all sections are uniform */
}
/* Filter dropdown styles */
/* Projects header styles */
.projects-header {
position: relative;
margin-bottom: 1rem;
text-align: center;
}
.projects-header h2 {
font-size: 2rem;
margin: 0;
letter-spacing: 0.5px;
}
.filter-dropdown {
position: absolute;
top: 0;
right: 0;
display: inline-block;
}
.hamburger {
background: #4fc3f7;
color: #fff;
border: none;
padding: 0.5rem 1.2rem;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
white-space: nowrap;
width: 160px; /* fixed width to match dropdown */
text-align: center;
}
.dropdown-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
width: 160px; /* matches hamburger width */
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
list-style: none;
padding: 0;
margin: 0;
z-index: 1000;
text-align: center;
}
.dropdown-menu li {
padding: 0.75rem 0;
white-space: nowrap;
cursor: pointer;
transition: background 0.3s;
}
.dropdown-menu li:hover {
background: #f4f6fa;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.projects-header {
flex-direction: column; /* Stack heading and button on smaller screens */
align-items: flex-start; /* Align items to the left */
}
.hamburger {
margin-top: 0.5rem;
}
.dropdown-menu {
right: auto; /* Reset alignment for smaller screens */
left: 0; /* Align dropdown to the left */
}
}
/* Lightbox Modal Styles */
body.lightbox-open {
overflow: hidden;
}
/* Modal background */
.lightbox-modal {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 1001;
}
/* When visible */
.lightbox-modal.show {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
/* Modal box */
.lightbox-content {
position: relative;
max-width: 90%;
max-height: 90%;
}
/* Image */
.lightbox-content img {
max-width: 90vw;
max-height: 80vh;
width: auto;
height: auto;
border-radius: 6px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
/* Close button */
.lightbox-content .close {
position: absolute;
top: -20px;
right: -20px;
background: #fff;
color: #000;
border: none;
font-size: 2rem;
cursor: pointer;
border-radius: 50%;
width: 40px;
height: 40px;
line-height: 1;
text-align: center;
}
.error {
color: red;
font-size: 0.875rem;
margin-top: -0.5rem;
margin-bottom: 0.5rem;
display: block;
}