-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfoliyo.css
More file actions
516 lines (416 loc) · 9.39 KB
/
Copy pathportfoliyo.css
File metadata and controls
516 lines (416 loc) · 9.39 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
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
border: none;
outline: none;
scroll-behavior: smooth;
font-family: 'Poppins', sans-serif;
}
:root {
--bg-color: #080808;
--second-bg-color: #131313;
--text-color: #fff;
--main-color: #0ef; /* Bu yerda #1db954 (yashil) ham ishlatsangiz bo'ladi */
}
html {
font-size: 62.5%;
overflow-x: hidden;
}
body {
background: var(--bg-color);
color: var(--text-color);
}
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 2rem 9%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.logo {
font-size: 2.5rem;
color: var(--text-color);
font-weight: 700;
}
.navbar a {
font-size: 1.7rem;
color: var(--text-color);
margin-left: 4rem;
transition: .3s;
}
.navbar a:hover,
.navbar a.active {
color: var(--main-color);
}
#menu-icon {
font-size: 3.6rem;
color: var(--text-color);
display: none;
}
section {
min-height: 100vh;
padding: 10rem 9% 2rem;
}
.home {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
}
.home-content h3 {
font-size: 3.2rem;
font-weight: 700;
}
.home-content h1 {
font-size: 5.6rem;
font-weight: 700;
line-height: 1.3;
}
.home-img img {
width: 35vw;
border-radius: 50%;
box-shadow: 0 0 25px var(--main-color);
transition: .5s ease-in-out;
}
.home-img img:hover {
box-shadow: 0 0 50px var(--main-color);
}
.home-content p {
font-size: 1.6rem;
margin: 2rem 0 3rem;
}
.social-media a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 4rem;
height: 4rem;
background: transparent;
border: .2rem solid var(--main-color);
border-radius: 50%;
font-size: 2rem;
color: var(--main-color);
margin: 0 1.5rem 3rem 0;
transition: .5s ease;
}
.social-media a:hover {
background: var(--main-color);
color: var(--second-bg-color);
box-shadow: 0 0 1rem var(--main-color);
}
.btn {
display: inline-block;
padding: 1rem 2.8rem;
background: var(--main-color);
border-radius: 4rem;
box-shadow: 0 0 1rem var(--main-color);
font-size: 1.6rem;
color: var(--second-bg-color);
letter-spacing: .1rem;
font-weight: 600;
transition: .5s ease;
}
.btn:hover {
box-shadow: none;
}
/* Services and Portfolio designs */
.heading {
text-align: center;
font-size: 4.5rem;
margin-bottom: 5rem;
}
.heading span {
color: var(--main-color);
}
.services-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
.services-box {
background: var(--second-bg-color);
padding: 3rem 2rem 4rem;
border-radius: 2rem;
text-align: center;
border: .2rem solid var(--bg-color);
transition: .5s ease;
}
.services-box:hover {
border-color: var(--main-color);
transform: scale(1.02);
}
.services-box i {
font-size: 7rem;
color: var(--main-color);
}
/* Portfolio boxes */
.portfolio-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2.5rem;
}
.portfolio-box {
position: relative;
border-radius: 2rem;
box-shadow: 0 0 1rem var(--second-bg-color);
overflow: hidden;
display: flex;
}
.portfolio-box img {
width: 100%;
transition: .5s ease;
}
.portfolio-box:hover img {
transform: scale(1.1);
}
.portfolio-layer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
padding: 0 4rem;
transform: translateY(100%);
transition: .5s ease;
}
.portfolio-box:hover .portfolio-layer {
transform: translateY(0);
}
/* Contact form */
.contact form {
max-width: 70rem;
margin: 1rem auto;
text-align: center;
margin-bottom: 3rem;
}
.contact form .input-box {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
width: 100%;
padding: 1.5rem;
font-size: 1.6rem;
color: var(--text-color);
background: var(--second-bg-color);
border-radius: .8rem;
margin: .7rem 0;
}
.contact form .input-box input {
width: 49%;
}
/* Footer */
.footer {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
padding: 2rem 9%;
background: var(--second-bg-color);
}
.footer-text p {
font-size: 1.6rem;
}
/* Responsive (Mobile uchun qisqacha) */
@media (max-width: 768px) {
#menu-icon { display: block; }
.navbar { display: none; } /* JS orqali boshqariladi */
.services-container, .portfolio-container { grid-template-columns: 1fr; }
}
.about {
background: #0f2c3d; /* Orqa fon rangi rasmdagidek to'q ko'k */
padding: 10rem 9% 2rem;
color: white;
}
.about-container {
display: flex; /* Elementlarni yonma-yon qo'yish */
align-items: flex-start;
gap: 5rem;
}
.about-title {
flex: 1;
text-align: right; /* "Men haqimda"ni o'ngga suradi */
}
.about-title h2 {
font-size: 6rem;
line-height: 1.1;
font-weight: 800;
}
.about-title span {
color: #00eeff; /* "haqimda" so'zining rangi */
}
.about-content {
flex: 2; /* Matn qismi ko'proq joy egallaydi */
}
.about-content h3 {
font-size: 2.8rem;
margin-bottom: 2rem;
}
.about-content p {
font-size: 1.6rem;
line-height: 1.6;
margin-bottom: 2rem;
color: #e0e0e0;
}
/* Tugma dizayni (agar hali yo'q bo'lsa) */
.btn {
display: inline-block;
padding: 1rem 2.8rem;
background: #00eeff;
border-radius: 4rem;
color: #0f2c3d;
font-weight: 600;
text-decoration: none;
transition: 0.3s ease;
}
.btn:hover {
box-shadow: 0 0 1rem #00eeff;
}
:root {
/* Rasmdagi to'q ko'k rang kodi: #051925 */
--bg-color: #051925;
--second-bg-color: #072333; /* Biroz ochroq ko'k */
--text-color: #fff;
--main-color: #00eeff; /* Neon ko'k */
}
body {
background: var(--bg-color);
color: var(--text-color);
}
.btn {
display: inline-block;
padding: 1rem 2.8rem;
background: #00eeff; /* Rasmdagi och ko'k neon rang */
border-radius: 4rem;
color: #051925; /* Tugma ichidagi matn rangi */
font-size: 1.6rem;
font-weight: 600;
letter-spacing: .1rem;
transition: .5s ease;
/* Neon nuri (Shadow) */
box-shadow: 0 0 15px #00eeff;
text-decoration: none;
}
.btn:hover {
box-shadow: 0 0 30px #00eeff; /* Sichqoncha borganda kuchliroq yonadi */
transform: scale(1.05);
}
.portfolio {
background: var(--bg-color); /* To'q ko'k fon */
}
.portfolio h2 {
margin-bottom: 4rem;
}
.portfolio-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 ta ustun */
align-items: center;
gap: 2.5rem;
}
.portfolio-box {
position: relative;
border-radius: 2rem;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
overflow: hidden;
display: flex;
height: 250px; /* Balandlikni o'zingizga moslang */
}
.portfolio-box img {
width: 100%;
object-fit: cover;
transition: .5s ease;
}
.portfolio-box:hover img {
transform: scale(1.1);
}
.portfolio-layer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
padding: 0 4rem;
transform: translateY(100%);
transition: .5s ease;
}
.portfolio-box:hover .portfolio-layer {
transform: translateY(0);
}
.portfolio-layer h4 {
font-size: 3rem;
color: var(--bg-color);
}
.portfolio-layer p {
font-size: 1.6rem;
margin: .3rem 0 1rem;
color: var(--bg-color);
}
.portfolio-layer a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 5rem;
height: 5rem;
background: var(--text-color);
border-radius: 50%;
}
.portfolio-layer a i {
font-size: 2rem;
color: var(--bg-color);
}
/* Telefonlar uchun (1 ustun) */
@media (max-width: 768px) {
.portfolio-container {
grid-template-columns: 1fr;
}
}
/* "Men haqimda" sarlavhasi */
.about-title h2 {
font-size: 8rem;
font-weight: 800;
line-height: 1;
color: #ffffff; /* Asl holati oq */
cursor: pointer;
transition: all 0.4s ease; /* Effekt silliq bo'lishi uchun */
}
/* "haqimda" so'zi */
.about-title h2 span {
color: #00eeff; /* Sizning asosiy ko'k rangingiz */
transition: all 0.4s ease;
}
/* SICHQONCHA USTIGA BORGANDA: Rang biroz o'zgaradi va nur yumshoq chiqadi */
.about-title:hover h2 {
color: #e0f7fa; /* Oq rang biroz ko'kimtir-oqqa o'tadi (juda ko'p emas) */
/* Nurni kamaytirdim, shunda xira bo'lib qolmaydi */
text-shadow: 0 0 15px rgba(0, 238, 255, 0.4);
}
.about-title:hover h2 span {
color: #00f2ff; /* Ko'k rang yanada yorqinroq (toza) ko'k bo'ladi */
/* Kuchli nur o'rniga aniq ko'rinadigan nur */
text-shadow: 0 0 10px #00eeff,
0 0 20px rgba(0, 238, 255, 0.3);
}