-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
375 lines (322 loc) · 6.33 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
/* Global Styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f7f9;
color: #333;
line-height: 1.6;
}
header {
background: #003366;
color: #fff;
padding: 15px 0;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
}
nav ul li {
display: inline;
margin: 0 15px;
}
nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
nav ul li a:hover {
color: #a8dadc;
}
section {
padding: 40px;
max-width: 1200px;
margin: auto;
}
footer {
background: #003366;
color: #fff;
text-align: center;
padding: 10px 0;
position: relative;
bottom: 0;
width: 100%;
}
/* Home Page */
#home {
background: #ffffff;
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
#home h1 {
font-size: 2.5em;
margin: 0;
color: #003366;
}
#home p {
font-size: 1.2em;
color: #555;
}
#home .photo {
border-radius: 50%;
overflow: hidden;
margin: 20px auto;
}
#home .photo img {
width: 150px;
height: 150px;
object-fit: cover;
}
/* About Page */
#about {
background: #ffffff;
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#about h2 {
color: #003366;
}
#about .section-content {
margin: 20px 0;
}
#about .section-content h3 {
background: #e6f7ff;
padding: 10px;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s ease;
}
#about .section-content h3:hover {
background: #b3e0ff;
}
#about .section-content .details {
display: none;
padding: 10px;
background: #f0f8ff;
border-radius: 8px;
margin-top: 10px;
}
#about .section-content .details.show {
display: block;
}
/* Skills Page */
#skills {
background: #ffffff;
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#skills h2 {
color: #003366;
}
#skills .skills-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#skills .skill {
background: #e6f7ff;
border: 1px solid #b3e0ff;
border-radius: 8px;
padding: 15px;
margin: 10px;
width: 200px;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#skills .skill:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#skills .skill h3 {
margin: 0;
color: #003366;
}
/* Projects Page */
#projects {
background: #ffffff;
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#projects h2 {
color: #003366;
}
.project {
position: relative;
display: inline-block;
margin: 20px;
border: 1px solid #4682b4;
border-radius: 8px;
overflow: hidden;
transition: box-shadow 0.3s ease, transform 0.3s ease;
cursor: pointer;
animation: fadeIn 1s ease-in-out;
}
.project:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
transform: scale(1.03);
}
.project h3 {
padding: 10px;
background-color: #f0f8ff;
border-radius: 8px;
margin: 0;
color: #003366;
}
.project .show-photo {
display: block;
margin: 10px auto;
padding: 10px 20px;
background-color: #4682b4;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.project .show-photo:hover {
background-color: #4169e1;
}
.zoomed-image {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1000;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
border-radius: 8px;
background: rgba(0, 0, 0, 0.8);
padding: 10px;
}
.zoomed-image img {
max-width: 80vw; /* Ensure the zoomed image fits well on the screen */
max-height: 80vh;
border-radius: 8px;
}
.zoomed-image.show {
display: block;
}
.zoomed-image .close {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
color: white;
cursor: pointer;
transition: color 0.3s ease-in-out;
}
.zoomed-image .close:hover {
color: #ff6347;
}
/* Activities Page */
#activities {
background: #ffffff;
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#activities h2 {
color: #003366;
}
.activity {
margin: 20px 0;
border: 1px solid #4682b4;
border-radius: 8px;
padding: 15px;
background: #f0f8ff;
}
.activity h3 {
color: #003366;
}
/* Contact Page */
#contact {
background: #ffffff;
padding: 40px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#contact h2 {
color: #003366;
}
#contact form {
max-width: 600px;
margin: auto;
}
#contact label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
#contact input, #contact textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 15px;
}
#contact button {
background-color: #4682b4;
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#contact button:hover {
background-color: #4169e1;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideDown {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes bounceIn {
from {
transform: scale(0.3);
opacity: 0;
}
50% {
transform: scale(1.1);
opacity: 1;
}
to {
transform: scale(1);
opacity: 1;
}
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
}
footer {
margin-top: auto;
}