-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
613 lines (530 loc) · 14.2 KB
/
main.css
File metadata and controls
613 lines (530 loc) · 14.2 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
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
outline: none;
scroll-behavior: smooth;
font-family: 'Poppins', sans-serif;
}
:root {
--bg-color: #1f242d;
--second-bg-color: #323946;
--text-color: #fff;
--main-color: #37b13b; /* Cor principal mantida */
}
html {
font-size: 62.5%; /* Permite fácil conversão para rem: 1rem = 10px */
overflow-x: hidden;
}
body {
background: var(--bg-color);
color: var(--text-color);
}
section {
min-height: 100vh; /* Usar min-height para permitir que a seção cresça se o conteúdo for maior */
padding: 10rem 9% 2rem; /* Padding padrão para seções */
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 2rem 9%; /* Padding padrão para o header */
background: var(--bg-color);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
transition: padding 0.3s ease, background-color 0.3s ease; /* Transição suave para sticky header */
}
.header.sticky {
border-bottom: .1rem solid rgba(0,0,0,.2);
background: var(--second-bg-color); /* Fundo ligeiramente diferente para sticky */
}
.logo {
font-size: 2.5rem;
color: var(--text-color);
font-weight: 600;
cursor: default;
}
.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; /* Inicialmente escondido em telas maiores */
cursor: pointer;
}
/* Seção Home */
.home {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem; /* Espaçamento entre conteúdo e imagem */
}
.home-img img {
width: 30vw; /* Ajustado para melhor proporção inicial */
max-width: 400px; /* Limite máximo para não ficar excessivamente grande */
min-width: 250px; /* Limite mínimo para telas menores */
animation: floatImage 4s ease-in-out infinite;
border-radius: 50%; /* Adiciona um toque de design */
border: 5px solid var(--main-color);
box-shadow: 0 0 20px var(--main-color);
}
@keyframes floatImage {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-2.4rem);
}
100% {
transform: translateY(0);
}
}
.home-content {
max-width: 600px; /* Limita a largura do conteúdo de texto */
}
.home-content h3 {
font-size: 3.2rem;
font-weight: 700;
}
.home-content h3:nth-of-type(2) {
margin-bottom: 2rem;
}
.home-content h1 {
font-size: 5.6rem;
font-weight: 700;
line-height: 1.3;
}
.home-content p {
font-size: 1.6rem;
margin: 1.5rem 0 3rem; /* Ajuste de margem */
}
.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; /* Margem ajustada */
transition: .5s ease;
}
.social-media a:hover {
background: var(--text-color);
color: var(--main-color); /* Contraste melhorado */
box-shadow: 0 0 1rem var(--main-color);
}
.btn {
display: inline-block;
padding: 1.2rem 2.8rem; /* Padding ligeiramente aumentado */
background: var(--main-color);
border-radius: 4rem;
box-shadow: 0 0 .5rem var(--main-color); /* Sombra sutil inicial */
font-size: 1.6rem;
color: var(--second-bg-color); /* Cor de texto para melhor contraste com o botão */
letter-spacing: .1rem;
font-weight: 600;
transition: .3s ease; /* Transição mais suave */
border: none; /* Remover borda padrão do botão */
}
.btn:hover {
background: var(--text-color);
color: var(--main-color);
box-shadow: 0 0 1.5rem var(--main-color); /* Sombra mais pronunciada no hover */
}
/* Seção About */
.about {
display: flex;
justify-content: center;
align-items: center;
gap: 4rem; /* Aumentado o gap */
background: var(--second-bg-color);
}
.about-img img {
width: 30vw; /* Ajustado para melhor proporção inicial */
max-width: 400px; /* Limite máximo */
min-width: 250px; /* Limite mínimo */
border-radius: 1rem; /* Bordas arredondadas */
}
.heading {
text-align: center;
font-size: 4.5rem;
margin-bottom: 3rem; /* Adiciona margem inferior ao heading geral */
}
.about-content {
max-width: 600px;
}
.about-content h2 {
text-align: left;
line-height: 1.2;
font-size: 3.5rem; /* Ajuste de tamanho */
}
.about-content h3 {
font-size: 2.6rem;
margin-top: 1rem; /* Espaçamento */
}
.about-content p {
font-size: 1.6rem;
margin: 2rem 0 3rem;
}
/* Seção Services */
.services h2.heading { /* Especificidade para o h2 da seção services */
margin-bottom: 5rem;
}
.services-container {
display: flex;
justify-content: center;
align-items: stretch; /* Alinha os itens para terem a mesma altura */
flex-wrap: wrap;
gap: 2.5rem; /* Gap ajustado */
}
.services-container .services-box {
flex: 1 1 30rem; /* Base flex para responsividade */
background: var(--second-bg-color);
padding: 3rem 2rem 4rem;
border-radius: 2rem;
text-align: center;
border: .2rem solid var(--bg-color);
transition: .5s ease;
display: flex; /* Para alinhar conteúdo interno */
flex-direction: column; /* Conteúdo em coluna */
justify-content: space-between; /* Distribui espaço, útil se os textos variarem */
}
.services-container .services-box:hover {
border-color: var(--main-color);
transform: scale(1.03) translateY(-5px); /* Efeito de hover sutil */
box-shadow: 0 0 1.5rem rgba(0, 239, 0, 0.2);
}
.services-box i {
font-size: 7rem;
color: var(--main-color);
}
.services-box h3 {
font-size: 2.6rem;
margin-top: 1rem; /* Espaçamento */
}
.services-box p {
font-size: 1.6rem;
margin: 1rem 0 3rem;
text-align: left; /* Mantido, mas considere centralizar se o design permitir */
flex-grow: 1; /* Permite que o parágrafo ocupe espaço disponível */
}
/* Seção Portfolio */
.portfolio {
background: var(--second-bg-color);
}
.portfolio h2.heading { /* Especificidade */
margin-bottom: 5rem;
}
.portfolio-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grid responsivo */
gap: 2.5rem; /* Gap ajustado */
}
.portfolio-container .portfolio-box {
position: relative;
border-radius: 2rem;
box-shadow: 0 0 1rem rgba(0,0,0, 0.3); /* Sombra mais sutil */
overflow: hidden;
display: flex; /* Para a imagem preencher */
}
.portfolio-box img {
width: 100%;
height: auto; /* Mantém a proporção da imagem */
transition: .5s ease;
}
.portfolio-box:hover img {
transform: scale(1.1);
}
.portfolio-box .portfolio-layer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0,0,0,.2), var(--main-color)); /* Gradiente sutil */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
padding: 2rem; /* Padding ajustado */
transform: translateY(100%);
transition: .5s ease;
}
.portfolio-box:hover .portfolio-layer {
transform: translateY(0);
}
.portfolio-layer h4 {
font-size: 2.4rem; /* Tamanho ajustado */
color: var(--text-color);
}
.portfolio-layer p {
font-size: 1.4rem; /* Tamanho ajustado */
margin: .5rem 0 1.5rem; /* Margens ajustadas */
color: var(--text-color);
}
.portfolio-layer a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 4.5rem; /* Tamanho ajustado */
height: 4.5rem; /* Tamanho ajustado */
background: var(--text-color);
border-radius: 50%;
}
.portfolio-layer a i {
font-size: 2rem;
color: var(--second-bg-color);
}
/* Seção Contact */
.contact h2.heading { /* Especificidade */
margin-bottom: 4rem; /* Margem ajustada */
}
.contact form {
max-width: 70rem; /* Largura máxima do formulário */
margin: 1rem auto;
text-align: center;
margin-bottom: 3rem;
}
.contact form .input-box {
display: flex;
justify-content: space-between;
flex-wrap: wrap; /* Permite que os inputs quebrem a linha */
}
.contact form .input-box input,
.contact form textarea {
width: 100%; /* Ocupa toda a largura por padrão (para mobile first) */
padding: 1.5rem;
font-size: 1.6rem;
color: var(--text-color);
background: var(--second-bg-color);
border-radius: .8rem;
margin: .7rem 0;
border: .1rem solid transparent; /* Borda sutil para foco */
transition: border-color 0.3s ease;
}
.contact form .input-box input:focus,
.contact form textarea:focus {
border-color: var(--main-color);
}
/* Em telas maiores, os inputs da mesma linha dividem o espaço */
.contact form .input-box input.half-width {
width: 49%;
}
.contact form textarea {
resize: vertical; /* Permite apenas redimensionamento vertical */
min-height: 150px; /* Altura mínima */
}
.contact form .btn {
margin-top: 2rem;
cursor: pointer;
}
/* 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;
text-align: center; /* Centraliza em telas menores */
}
.footer-iconTop a {
display: inline-flex;
justify-content: center;
align-items: center;
padding: .8rem;
background: var(--main-color);
border-radius: .8rem;
transition: .2s ease;
}
.footer-iconTop a:hover {
box-shadow: 0 0 1rem var(--main-color);
background: var(--text-color);
}
.footer-iconTop a:hover i {
color: var(--main-color);
}
.footer-iconTop a i {
font-size: 2.4rem;
color: var(--second-bg-color); /* Melhor contraste */
}
/* BREAKPOINTS RESPONSIVOS */
/* Telas médias (tablets, laptops pequenos) */
@media (max-width: 991px) {
html {
font-size: 55%; /* Ajuste global de fonte */
}
section {
padding: 10rem 5% 2rem; /* Padding lateral reduzido */
}
.header {
padding: 2rem 5%; /* Padding lateral reduzido */
}
.home {
gap: 1rem; /* Reduz o gap na home */
}
.home-img img {
width: 35vw;
}
.about {
gap: 2rem; /* Reduz o gap no about */
}
.about-img img {
width: 35vw;
}
.footer {
padding: 2rem 5%;
}
}
/* Telas pequenas (tablets em modo retrato, celulares grandes) */
@media (max-width: 768px) {
#menu-icon {
display: block; /* Mostra o ícone do menu */
}
.navbar {
position: absolute;
top: 100%; /* Abaixo do header */
left: 0;
width: 100%;
padding: 1rem 5%; /* Padding ajustado */
background: var(--bg-color);
border-top: .1rem solid rgba(0,0,0,.2);
box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
display: none; /* Escondido por padrão */
flex-direction: column; /* Itens em coluna */
}
.navbar.active {
display: flex; /* Mostra quando ativo (JS controlará isso) */
}
.navbar a {
display: block;
font-size: 2rem;
margin: 2rem 0; /* Margem vertical entre links */
text-align: center;
}
.home {
flex-direction: column; /* Conteúdo e imagem em coluna */
text-align: center; /* Centraliza texto */
}
.home-content h3 {
font-size: 2.8rem;
}
.home-content h1 {
font-size: 4.5rem; /* Tamanho de título reduzido */
}
.home-img img {
width: 60vw; /* Imagem ocupa mais largura */
margin-top: 4rem;
order: -1; /* Imagem aparece antes do texto na ordem visual */
}
.social-media {
text-align: center; /* Centraliza ícones sociais */
}
.social-media a {
margin: 2rem 0.75rem; /* Ajusta margem dos icones sociais */
}
.about {
flex-direction: column-reverse; /* Imagem abaixo do texto */
text-align: center;
}
.about-content h2 {
text-align: center; /* Centraliza heading */
}
.about-img img {
width: 60vw;
margin-top: 4rem;
}
.services h2.heading {
margin-bottom: 3rem;
}
.services-container .services-box {
flex-basis: 100%; /* Cada caixa de serviço ocupa a largura total */
}
.portfolio h2.heading {
margin-bottom: 3rem;
}
/* .portfolio-container já é responsivo com auto-fit, mas podemos forçar 1 coluna se necessário */
.contact form .input-box input.half-width {
width: 100%; /* Inputs do formulário ocupam 100% */
}
.footer-text p {
width: 100%; /* Garante que o texto do footer ocupe toda a largura antes de quebrar */
margin-bottom: 1.5rem;
}
.footer-iconTop {
width: 100%;
text-align: center; /* Centraliza o ícone de "topo" */
}
}
/* Telas muito pequenas (celulares) */
@media (max-width: 480px) {
html {
font-size: 50%; /* Reduz ainda mais a fonte base */
}
section {
padding: 8rem 3% 2rem;
}
.header {
padding: 1.5rem 3%;
}
.home-content h1 {
font-size: 4rem;
}
.home-content h3 {
font-size: 2.4rem;
}
.home-img img {
width: 70vw;
}
.about-img img {
width: 70vw;
}
.portfolio-container {
/* Força uma coluna em telas muito pequenas se o auto-fit não for suficiente */
grid-template-columns: 1fr;
}
.portfolio-layer h4 {
font-size: 2rem;
}
.portfolio-layer p {
font-size: 1.3rem;
}
.contact form {
padding: 0 1rem; /* Adiciona um pequeno padding lateral ao form */
}
}
@media (max-width: 360px) {
.home-img img {
width: 80vw; /* Imagem ainda maior para telas bem pequenas */
}
.about-img img {
width: 80vw;
}
.social-media a {
width: 3.5rem;
height: 3.5rem;
font-size: 1.8rem;
margin: 1.5rem 0.5rem;
}
}