-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
589 lines (518 loc) · 14.4 KB
/
styles.css
File metadata and controls
589 lines (518 loc) · 14.4 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
/* Global Reset: Standardize styles across different browsers */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
/* Body Styles: Set the global font and prevent horizontal overflow */
body {
font-family: Arial, sans-serif;
overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Intro Section: Centered circle with animation on landing page */
.intro {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #111; /* Dark background for the intro */
position: relative;
overflow: hidden;
z-index: 10;
}
.intro-circle {
width: 100px;
height: 100px;
position: middle;
top: 50%; /* Center vertically */
left: 50%; /* Center horizontally */
border-radius: 50%;
background-color: #fff; /* White circle */
transition: all 1.5s ease;
z-index: 2;
}
.outline {
position: absolute; /* Position the outline absolutely */
width: 140px; /* Width larger than the circle */
height: 140px; /* Height larger than the circle */
border: 3px dotted transparent; /* Initial transparent border */
border-radius: 50%; /* Make it a circle */
animation: colorChange 2s infinite, spin 10s linear infinite;; /* Animate the color change */
z-index: 1; /* Position it behind the circle */
transition: transform 0.3s ease; /* Smooth transition for scaling */
}
@keyframes colorChange {
0% { border-color: red; }
25% { border-color: blue; }
50% { border-color: green; }
75% { border-color: yellow; }
100% { border-color: red; } /* Loop back to the start */
}
/* Expanded Circle */
.intro.expanded .intro-circle {
width: 3000%; /* Large enough to cover the entire viewport */
height: 3000%;
border-radius: 30%; /* Keep it round during the transition */
background-color: #fff;
position: middle;
top: 50%;
left: 50%;
transform: translate(0, 0);
z-index: 1;
}
/* Hidden Intro */
.intro.hidden {
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}
/* Arrow Animation */
.down-arrow {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 40px;
animation: arrowMove 2s infinite;
z-index: 3;
opacity: 1; /* Visible in intro */
}
@keyframes arrowMove {
0% { top: 0; opacity: 0; }
50% { top: 50px; opacity: 1; }
100% { top: 100px; opacity: 0; }
}
/* Hide the arrow after intro */
.intro.hidden .down-arrow {
display: none;
}
/* Hero Header: Full-screen background image with central text */
.hero-header {
background-image: url('./images/portfolioHeader.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
opacity: 0;
transition: opacity 1.5s ease-in;
position: relative;
z-index: 8;
}
.hero-header.visible {
opacity: 1;
}
/* Name Container: Animates first and last names in the header */
.name-container {
position: relative;
width: 100%;
height: 100px; /* Adjust the height as needed */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden; /* Ensure no overflow is visible */
}
/* Style for the first name */
.first-name {
position: absolute;
bottom: 50%;
left: -100%; /* Start off-screen to the left */
font-size: 4em; /* Adjust font size as needed */
color: white;
animation: slideInOutLeft 4s infinite; /* Continuous animation */
}
/* Style for the last name */
.last-name {
position: absolute;
top: 50%;
right: -100%; /* Start off-screen to the right */
font-size: 4em; /* Adjust font size as needed */
color: white;
animation: slideInOutRight 4s infinite; /* Continuous animation */
}
/* Keyframe animation for sliding in and out from the left */
@keyframes slideInOutLeft {
0% {
left: -100%;
opacity: 0;
}
25% {
left: -100%;
opacity: 0;
}
50% {
left: 50%;
transform: translateX(-50%);
opacity: 1;
}
75% {
left: 50%;
transform: translateX(-50%);
opacity: 1;
}
100% {
left: 100%;
opacity: 0;
}
}
/* Keyframe animation for sliding in and out from the right */
@keyframes slideInOutRight {
0% {
right: -100%;
opacity: 0;
}
25% {
right: -100%;
opacity: 0;
}
50% {
right: 50%;
transform: translateX(50%);
opacity: 1;
}
75% {
right: 50%;
transform: translateX(50%);
opacity: 1;
}
100% {
right: 100%;
opacity: 0;
}
}
/* Navigation Bar */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
padding: 15px 0;
z-index: 1000;
transition: top 0.3s;
}
.navbar ul {
list-style-type: none;
text-align: center;
}
.navbar ul li {
display: inline-block;
margin: 0 15px;
}
.navbar ul li.separator {
display: inline-block;
color: #fff;
}
.navbar ul li a {
color: #fff;
text-decoration: none;
font-size: 20px;
transition: color 0.3s;
}
.navbar ul li a:hover {
color: #ddd;
}
/* Section Styles */
.section {
padding: 60px 20px;
text-align: center;
}
/* Initial background color */
#about.blue-ribbon {
background-color: #5A7FC8;
transition: background-color 0.5s ease; /* Smooth transition */
}
/* Background color when the section is in view */
#about.blue-ribbon.in-view {
background-color: #252E8A; /* Change to dark blue when in view */
}
/* Flexbox container for the About Me section */
.about-content {
display: flex;
align-items: stretch; /* Align items to stretch to the same height */
justify-content: center; /* Center the content */
padding: 50px;
}
/* About Section Layout */
.about-container {
display: flex;
align-items: stretch;
flex-wrap: wrap;
justify-content: center;
padding: 40px 20px;
}
.about-text {
flex: 1;
color: #fff;
margin-right: 20px;
}
.about-media {
flex: 1;
position: relative;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.about-media a {
margin-bottom: 20px; /* Space between images */
position: relative;
width: 100%; /* Make images responsive */
max-width: 300px; /* Limit the width */
transition: transform 0.3s ease;
}
.about-media img {
width: 100%;
height: auto;
transition: transform 0.3s ease;
}
.about-media .image-title {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 16px;
padding: 5px;
opacity: 0;
transition: opacity 0.3s ease;
}
.date-info {
position: absolute;
top: 50%; /* Start vertically centered */
right: 110%; /* Position it to the left of the image */
transform: translateY(-50%); /* Center it vertically */
color: #fff;
font-size: 30px; /* Make text larger */
padding: 5px;
width: 400px; /* Set a specific width */
opacity: 0; /* Initially invisible */
transition: right 0.3s ease, opacity 0.3s ease;
}
.about-media a:hover .image-title {
opacity: 1;
}
.about-media a:hover .date-info {
right: 100%; /* Slide out from the right side of the image */
opacity: 1; /* Make it visible */
}
.about-media a:hover img {
transform: scale(1.1);
}
#about h2 {
font-size: 60px; /* Larger font size for the header */
margin-bottom: 20px; /* Add more spacing between the header and the text */
color: #fff;
gap: 30px;
}
#about p {
font-size: 30px; /* Larger font size for the text */
line-height: 3; /* Increase line height for more vertical space */
margin-bottom: 40px; /* Add more space at the bottom */
color: #fff;
}
/* Projects Section Layout */
.project-section {
padding: 50px;
}
/* Initial background color */
.project-section.pinkpurple {
background-color: #5A7FC8;
transition: background-color 0.5s ease;
}
/* Background color when the section is in view */
.project-section.pinkpurple.in-view {
background-color: #0E0E34;
}
/* Centered header for the Projects section */
.projects-container {
padding: 40px 20px;
text-align: center;
}
#projects h2 {
font-size: 60px;
margin-bottom: 20px;
color: #fff;
}
/* Flexbox container for the Projects boxes */
.project-boxes {
display: flex;
justify-content: space-between; /* Space between the boxes */
gap: 40px;
flex-wrap: nowrap; /* Prevent wrapping to keep boxes in one row */
}
/* Individual project box */
.project-box {
flex: 1;
min-width: 300px; /* Minimum width to maintain box size */
max-width: 30%; /* Adjust width to keep boxes consistent */
background-color: #252E8A;
color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.project-box:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
background-color: #9A4D87;
}
.project-box h3 {
font-size: 30px;
margin-bottom: 10px;
}
.project-box p {
font-size: 20px; /* Font size for the project descriptions */
line-height: 1.8; /* Increase line-height for more space between lines */
margin-bottom: 20px; /* Optional: Add more space below the paragraph */
}
/* Resume Section with Blurry Background Image */
.resume-background {
position: relative;
overflow: hidden; /* Hide any overflow from the blurred image */
padding: 100px 50px; /* Adjust padding for better spacing */
text-align: center; /* Center the content */
background-color: transparent; /* Ensure the background is transparent */
}
.resume-background::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('./images/portfolioHeader.jpg'); /* Path to your background image */
background-size: cover;
background-position: center;
filter: blur(15px); /* Adjust blur level here */
z-index: -1; /* Place the blurred image behind the content */
opacity: 1; /* Ensure the background image is fully opaque */
}
.resume-content {
position: relative; /* Ensure the content stays above the background */
color: white; /* Ensure the text color is white */
}
.resume-content h2 {
font-size: 30px; /* Increase font size */
margin-bottom: 40px; /* Increase spacing between header and button */
}
.resume-button {
display: inline-block;
padding: 15px 30px;
font-size: 18px;
background-color: #da8c74; /* Button background color */
color: #fff; /* Button text color */
text-decoration: none; /* Remove underline */
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.resume-button:hover {
background-color: #73a0af; /* Background color on hover */
transform: translateY(-5px); /* Slight lift effect on hover */
}
/* Contact Section Styling */
.ghost-color {
background-color: #f8f8ff;
color: #6082B6 !important; /* Change font color */
font-size: 40px;
transition: filter 0.5s ease-out, opacity 0.5s ease-out;
filter: blur(10px);
opacity: 0;
padding: 80px;
text-align: center; /* Center the content horizontally */
}
/* Clear blur and opacity when section is in view */
.ghost-color.in-view {
filter: blur(0);
opacity: 1;
}
/* Contact Buttons Styling */
.contact-buttons {
display: flex;
justify-content: center; /* Center the buttons horizontally */
gap: 240px; /* Further increase space between each button */
margin-top: 90px; /* Add some space above the buttons */
}
.contact-button {
position: relative; /* Create a new stacking context */
display: inline-block;
width: 70px; /* Further reduce the size of the button (logo) */
height: 70px;
transition: transform 0.3s ease;
}
.contact-button::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 150%; /* Keep the circles larger than the button */
height: 150%;
background-color: #6082B6;/* Initial circle color */
border-radius: 50%;
transform: translate(-50%, -50%);
z-index: -1; /* Place the circle behind the image */
transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-button img {
width: 100%;
height: 100%;
object-fit: contain; /* Ensure the entire image fits within the button */
z-index: 1; /* Ensure the image is above the circle */
}
.contact-button:hover {
transform: scale(1.15); /* Slightly enlarge the entire button on hover */
}
.contact-button:hover::before {
transform: translate(-50%, -50%) scale(1.1); /* Enlarge the circle a bit more on hover */
background-color:#ADD8E6; /* Change the circle color on hover */
}
.gray-bottom{
background-color: #e2dfdf;
color: #111;
}
/* Footer Styles */
footer {
padding: 15px;
font-size: 18px;
}
/* Logo Styles */
.logo {
position: fixed;
left: 5px;
top: 3px;
width: 50px;
height: auto;
animation: spin 5s linear infinite;
transition: filter 0.5s smooth; /* Smooth transition for filter */
cursor:pointer;
}
.logo-invert {
animation: rgb-effect 2s infinite, spin 5s linear infinite;; /* Apply the RGB effect animation */
}
/* Logo Animation */
@keyframes rgb-effect {
0% { filter: drop-shadow(0 4px 4px blue); }
25% { filter: drop-shadow(4px 0 4px red); } /* Increased shadow and added blur */
50% { filter: drop-shadow(-4px 0 4px green); }
75% { filter: drop-shadow(0 4px 4px yellow); }
100% { filter: drop-shadow(0 4px 4px blue); }
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}