forked from joinpursuit/FSW-Personal-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
420 lines (361 loc) · 8.87 KB
/
main.css
File metadata and controls
420 lines (361 loc) · 8.87 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
#mobileSecondContainer {
visibility: hidden;
display: none;
}
#secondContainerWrap {
/* Container for About Me section */
display: flex;
justify-content: center;
align-items: center;
color: white;
text-align: center;
width: 100%;
padding: 20px;
}
.mobile-icon-divs {
visibility: hidden;
}
#secondContainer {
/* Liquid Glass Effect - EXACT CodePen Reference */
position: relative;
width: 100%; /* Matching width with Projects container */
max-width: 1200px; /* Modern max-width for readability */
height: auto;
min-height: 600px;
padding: 50px 60px; /* Balanced padding */
text-align: center;
align-items: center;
color: white;
overflow: hidden;
border-radius: 24px;
margin: 0 auto; /* Center the container */
box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
/* Performance optimizations */
will-change: transform;
contain: layout style paint;
transform: translateZ(0); /* GPU acceleration */
}
#secondContainer::before {
/* Glass blur effect - EXACT reference */
content: '';
position: absolute;
z-index: 0;
inset: 0;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
filter: url(#glass-distortion);
overflow: hidden;
isolation: isolate;
border-radius: 24px;
/* Performance optimizations */
will-change: filter;
transform: translateZ(0); /* GPU acceleration */
}
#secondContainer::after {
/* Tint + Shine layers combined - EXACT reference */
content: '';
z-index: 1;
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.25);
box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
overflow: hidden;
border-radius: 24px;
pointer-events: none;
}
#secondContainer > * {
position: relative;
z-index: 3;
}
.paragraph-text {
color: white;
text-align: left;
}
#profile-photo-div {
display: flex;
}
#mobile-profile-div {
/* Hide old mobile profile div - we use the regular profile photo */
display: none;
visibility: hidden;
}
#mobileProfilePhoto {
width:2px;
}
/* Modern social icons inside About Me container - NO extra glass */
.social-icons-container {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 30px;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.social-icon {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
text-decoration: none;
color: white;
transition: all 0.3s ease;
padding: 20px 30px;
border-radius: 12px;
background: transparent; /* Fully transparent */
border: none; /* No border */
}
.social-icon:hover {
transform: translateY(-3px);
background: transparent; /* Keep transparent on hover */
}
.social-icon img {
width: 48px;
height: 48px;
transition: all 0.3s ease;
filter: brightness(0.9);
}
.social-icon:hover img {
transform: scale(1.1);
filter: brightness(1.1);
}
.social-icon span {
font-size: 1rem;
font-weight: 500;
letter-spacing: 0.5px;
}
/* Hide old icon divs outside container */
.icon-divs {
display: none;
}
#thirdContainer {
/* Liquid Glass Effect - EXACT CodePen Reference */
position: relative;
width: 100%;
max-width: 1200px; /* Matching max-width with About Me */
height: 100%;
margin: 50px auto 0; /* Center the container */
padding: 50px 60px; /* Consistent padding */
color: white;
text-align: center;
overflow: hidden;
border-radius: 24px;
box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
/* Performance optimizations */
will-change: transform;
contain: layout style paint;
transform: translateZ(0); /* GPU acceleration */
}
#thirdContainer::before {
/* Glass blur effect - EXACT reference */
content: '';
position: absolute;
z-index: 0;
inset: 0;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
filter: url(#glass-distortion);
overflow: hidden;
isolation: isolate;
border-radius: 24px;
/* Performance optimizations */
will-change: filter;
transform: translateZ(0); /* GPU acceleration */
}
#thirdContainer::after {
/* Tint + Shine layers combined - EXACT reference */
content: '';
z-index: 1;
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.25);
box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
overflow: hidden;
border-radius: 24px;
pointer-events: none;
}
#thirdContainer > * {
position: relative;
z-index: 3;
}
#fourthContainer {
/* Liquid Glass Effect - EXACT CodePen Reference */
position: relative;
margin: 50px auto 0; /* Center and add consistent spacing */
width: 100%;
max-width: 1200px; /* Matching max-width for consistency */
height: 100%;
color: white;
text-align: center;
overflow: hidden;
padding: 50px 60px; /* Consistent padding */
border-radius: 24px;
box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
/* Performance optimizations */
will-change: transform;
contain: layout style paint;
transform: translateZ(0); /* GPU acceleration */
}
#fourthContainer::before {
/* Glass blur effect - EXACT reference */
content: '';
position: absolute;
z-index: 0;
inset: 0;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
filter: url(#glass-distortion);
overflow: hidden;
isolation: isolate;
border-radius: 24px;
/* Performance optimizations */
will-change: filter;
transform: translateZ(0); /* GPU acceleration */
}
#fourthContainer::after {
/* Tint + Shine layers combined - EXACT reference */
content: '';
z-index: 1;
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.25);
box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
overflow: hidden;
border-radius: 24px;
pointer-events: none;
}
#fourthContainer > * {
position: relative;
z-index: 3;
}
#projects-div {
/* Modern 3-column grid layout */
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-top: 30px;
padding: 20px 0;
/* Performance optimizations */
will-change: contents;
contain: layout;
}
/* Stack to 2 columns on tablets */
@media (max-width: 900px) {
#projects-div {
grid-template-columns: repeat(2, 1fr);
}
}
/* Stack to 1 column on mobile */
@media (max-width: 600px) {
#projects-div {
grid-template-columns: 1fr;
}
}
.project-screenshot {
width: 100%;
height: auto;
border-radius: 8px;
margin: 15px 0;
transition: all 0.3s ease;
}
.project-screenshot:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
/* Individual project cards - NO glass effect, clean and simple */
.project1, .project2, .project3, .project4, .project5 {
border-radius: 12px;
padding: 20px;
transition: all 0.3s ease;
border: none; /* No border */
background: transparent; /* Fully transparent, no background */
}
.project1:hover, .project2:hover, .project3:hover, .project4:hover, .project5:hover {
transform: translateY(-5px);
background: transparent; /* Keep transparent even on hover */
}
.project1 h2, .project2 h2, .project3 h2, .project4 h2, .project5 h2 {
font-size: 1.4rem;
margin-bottom: 12px;
color: white;
font-weight: 600;
}
.projects {
width: 100%; /* Full width within grid cell */
}
#profilePhoto {
margin-left: auto;
margin-right: auto;
margin-top: 3%;
margin-bottom: 3%;
width: 380px;
height: auto;
border-radius: 12px;
transition: all 0.3s ease;
cursor: pointer;
}
#profilePhoto:hover {
transform: scale(1.08) translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
filter: brightness(1.05);
}
.profile-photo {
width: 380px;
height: auto;
border-radius: 12px;
transition: all 0.3s ease;
cursor: pointer;
}
.profile-photo:hover {
transform: scale(1.08) translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
filter: brightness(1.05);
}
.project-description-p {
font-size: 0.95rem;
line-height: 1.6;
padding: 10px 0;
margin: 10px 0 0;
color: rgba(255, 255, 255, 0.9);
}
.project-link {
color: #4fc3f7;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
display: inline-block;
margin-bottom: 10px;
}
.project-link:hover {
color: #81d4fa;
transform: translateX(3px);
}
.project-link:visited {
color: #29b6f6;
}
.skills-div {
display: inline-block;
width: 30%;
height: auto;
position: relative;
padding: 25px;
margin: 10px;
border-radius: 12px;
overflow: hidden;
color: white;
background: transparent; /* Fully transparent */
border: none; /* No border */
transition: all 0.3s ease;
}
.skills-div:hover {
transform: translateY(-5px);
background: transparent; /* Keep transparent on hover */
}
#fourthContainer > h1 {
color: white;
}