-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobileStyles.css
360 lines (303 loc) · 10.7 KB
/
mobileStyles.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
/* Mobile styles for Header */
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: center;
padding: 0.1rem;
}
header .logo {
/* margin-bottom: 0.1rem; */
font-size: 1rem;
}
header nav ul {
display: flex;
flex-wrap: wrap;
justify-content: center; /* Center items horizontally */
padding: 0;
margin: 0;
}
header nav ul li {
width: 45%; /* Allows for two items per row */
margin: 0.1rem 1%; /* Adjust spacing between items */
text-align: center;
background: #444;
border-radius: 25px;
transition: background-color 0.3s ease; /* Smooth background transition */
}
header nav ul li a {
display: block;
padding: 0.7rem;
color: #fff;
font-size: 0.6rem;
text-transform: uppercase;
border-radius: 30px;
transition: color 0.3s ease, background-color 0.3s ease; /* Smooth color transition */
}
header nav ul li a:hover {
color: #f4a261;
background-color: #222;
}
}
/* Mobile Styles for Side Navigation */
@media (max-width: 768px) {
.side-nav {
visibility: hidden;
opacity: 0; /* Start hidden */
}
.side-nav.show-side-nav {
visibility: hidden;
opacity: 0; /* Fully visible when shown */
}
/* .side-nav ul {
visibility: hidden;
}
.side-nav ul li a {
visibility: hidden;
}
/* Active Section Indicator */
/* .side-nav ul li a.active {
visibility: hidden;
} */
}
/* Mobile Styles for Hero Section */
@media (max-width: 768px) {
.hero {
padding: 0rem;
}
.profile-photo-container {
margin-top: 0rem;
margin-bottom: 0%;
}
/* Adjust Social Icons for Mobile */
.social-icons {
position: static; /* Position the icons statically */
display: flex;
justify-content: center; /* Center the icons horizontally */
margin-top: 1rem; /* Add space above the icons */
margin-bottom: 0rem;
flex-direction: row; /* Align the icons horizontally */
box-shadow: none; /* Remove shadow effect */
transform: none; /* Remove any scaling or transformation */
filter: none; /* Remove grayscale or other filters */
transition: none; /* Disable any transitions or animations */
}
.social-icon {
font-size: 1.2rem; /* Slightly smaller icons */
width: 30px; /* Adjust icon size */
height: 30px; /* Adjust icon size */
margin: 0 5px; /* Space between icons */
box-shadow: none; /* Remove shadow effect */
transform: none; /* Remove any scaling or transformation */
filter: none; /* Remove grayscale or other filters */
transition: none; /* Disable any transitions or animations */
}
/* Adjust Intro Text for Mobile */
.intro-text {
margin-top: 0rem;
font-size: 0.1rem; /* Smaller text size */
/* padding: 1rem; Adjust padding */
max-width: 95%; /* Reduce max width */
padding: 0.1rem;
}
/* Profile Name Adjustments */
.hero.in-view .profile-name {
font-size: 1.5rem; /* Reduce name size */
}
/* Hover Effect */
.social-icon:hover {
box-shadow: none; /* Remove shadow effect */
transform: none; /* Remove any scaling or transformation */
filter: none; /* Remove grayscale or other filters */
transition: none; /* Disable any transitions or animations */
}
/* Smooth Transition for Icons */
.social-icons a {
box-shadow: none; /* Remove shadow effect */
transform: none; /* Remove any scaling or transformation */
filter: none; /* Remove grayscale or other filters */
transition: none; /* Disable any transitions or animations */
}
.social-icons a:hover {
box-shadow: none; /* Remove shadow effect */
transform: none; /* Remove any scaling or transformation */
filter: none; /* Remove grayscale or other filters */
transition: none; /* Disable any transitions or animations */
}
}
/* Skills Section - Mobile */
@media (max-width: 768px) {
.skills {
margin-top: 1.5rem;
padding: 0 1rem; /* Add padding to avoid content touching the edges */
text-align: center; /* Center the title */
}
/* Skills Section Title - Mobile */
.skills h2 {
font-size: 1.5rem; /* Reduce the font size for better visibility on small screens */
margin-bottom: 1.5rem;
transform: translateY(-15px); /* Slightly reduce the translation */
}
/* Adjusted Category Title - Mobile */
.category-title {
font-size: 1.25rem; /* Reduce the font size for mobile */
margin-bottom: 0.75rem;
}
/* Adjust container for proper alignment - Mobile */
.skills-compact-grid {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjust grid for smaller screens */
gap: 8px; /* Reduce gap between grid items */
max-width: 100%; /* Ensure it fits within the screen width */
transform: translateY(15px); /* Slightly reduce the translation */
}
/* Skill Item - Mobile */
.skill-item {
padding: 8px 15px; /* Reduce padding for smaller screens */
font-size: 0.75rem; /* Further reduce font size */
transform: scale(1); /* Default scale */
}
/* Highlight on Hover - Mobile */
.skill-item:hover {
transform: scale(1.1); /* Slightly smaller scale on hover */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Slightly reduce shadow size */
}
/* Blur effect adjustment - Mobile */
.skills-compact-grid:hover .skill-item:not(:hover) {
filter: blur(3px); /* Slightly reduce the blur effect */
}
/* Active class when in view - Mobile */
.skills.in-view h2,
.skills.in-view .skills-compact-grid {
transform: translateY(0); /* Bring to original position */
}
}
/* Highlighted Company Name - Mobile */
@media (max-width: 768px) {
.company-name {
font-size: 1rem; /* Adjust font size for mobile */
padding: 0.15rem 0.3rem; /* Adjust padding for mobile */
border-radius: 4px; /* Slightly reduce border-radius */
}
}
/* Experience Section - Mobile */
@media (max-width: 768px) {
.experience {
margin: 2rem 0; /* Reduce margin to fit mobile screens */
padding: 1.5rem; /* Adjust padding for better spacing */
transform: translateY(15px); /* Slightly reduce the translation */
}
/* Experience Section Title - Mobile */
.experience h2 {
font-size: 2rem; /* Reduce font size for mobile */
margin-bottom: 2rem; /* Reduce bottom margin for better spacing */
transform: translateY(-15px); /* Slightly reduce the translation */
}
/* Experience Item - Mobile */
.experience-item {
margin-bottom: 1.5rem; /* Reduce margin between items */
padding: 1rem; /* Adjust padding for better fit */
transform: translateY(15px); /* Slightly reduce the translation */
}
.experience-item h3 {
font-size: 1.5rem; /* Reduce font size for mobile */
}
.experience-duration {
font-size: 0.9rem; /* Adjust font size for readability on mobile */
}
.experience-description {
font-size: 0.9rem; /* Adjust font size for readability on mobile */
}
}
/* Project Section - Mobile */
@media (max-width: 768px) {
.projects {
padding: 2rem 0.5rem; /* Reduce padding for better fit on mobile */
margin-bottom: 1.5rem; /* Adjust bottom margin */
}
.projects h2 {
font-size: 2rem; /* Reduce font size for mobile */
margin-bottom: 0.75rem; /* Adjust bottom margin */
animation: fadeInTitle 1s ease-out forwards; /* Keep the same animation */
}
.projects.in-view .project-card {
padding: 1.5rem; /* Reduce padding for smaller screens */
margin: 1rem 0; /* Keep margin consistent */
max-width: 100%; /* Ensure full width on mobile */
border-radius: 8px; /* Slightly reduce border-radius */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Adjust shadow for smaller screens */
}
.project-card h3 {
font-size: 1.5rem; /* Reduce font size for mobile */
margin-bottom: 0.75rem; /* Adjust bottom margin */
}
.project-card p,
.project-card ul li {
font-size: 0.9rem; /* Slightly reduce font size for better readability */
margin-bottom: 0.5rem; /* Keep consistent spacing */
}
.project-link {
padding: 0.4rem 0.8rem; /* Adjust padding for mobile */
font-size: 0.9rem; /* Slightly reduce font size */
border-radius: 4px; /* Slightly reduce border-radius */
}
}
/* Contact Section - Mobile */
@media (max-width: 768px) {
.contact.in-view {
padding: 1rem 0.5rem; /* Reduce padding for mobile */
margin: 0.5rem 0; /* Reduce margin */
flex-direction: column; /* Stack elements vertically on mobile */
}
/* Contact Box - Mobile */
.contact.in-view .contact-box {
max-width: 100%; /* Full width on mobile */
border-radius: 10px; /* Slightly reduce border-radius */
padding: 1.5rem; /* Add padding inside the box for better spacing */
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Adjust shadow for mobile */
}
/* Contact Content - Mobile */
.contact-content {
padding: 1.5rem; /* Reduce padding inside the content */
}
/* Contact Section Title - Mobile */
.contact-content h2 {
font-size: 2rem; /* Reduce font size for mobile */
margin-bottom: 1rem; /* Add some margin at the bottom */
}
/* Form Elements - Mobile */
.contact-content form {
gap: 0.75rem; /* Reduce gap between form elements */
}
input[type="text"],
input[type="email"],
textarea {
padding: 0.6rem; /* Adjust padding for mobile */
font-size: 0.9rem; /* Reduce font size */
border-radius: 8px; /* Slightly reduce border-radius */
}
textarea {
height: 120px; /* Reduce textarea height for mobile */
}
/* Submit Button Styling - Mobile */
button {
padding: 0.6rem; /* Adjust padding for mobile */
font-size: 1rem; /* Reduce font size */
border-radius: 8px; /* Slightly reduce border-radius */
}
}
/* Mobile Optimization */
@media (max-width: 768px) {
.scroll-button {
padding: 0.75rem;
font-size: 0.875rem;
bottom: 15px;
right: 15px;
}
}
@media (max-width: 480px) {
.scroll-button {
padding: 0.6rem;
font-size: 0.75rem;
bottom: 10px;
right: 10px;
}
}