-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
997 lines (848 loc) · 19.1 KB
/
style.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
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
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
/* Common Styles */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
outline: none;
list-style-type: none;
font-family: 'Baloo Da 2',cursive;
}
html{
font-size: 62.5%;
scroll-behavior: smooth;
}
.section-heading{
font-family: "Oswald", sans-serif;
font-size: 10rem;
font-weight: 300;
color: #ddd;
margin-right: 4rem;
}
.section-heading-line{
width: 15rem;
height: 0.2rem;
background-color: #ddd;
}
/* End of common Styles */
/* Navbar */
.navbar{
width: 100%;
height: 8rem;
background-color: rgba(0,0,0,0.9);
position: fixed;
top: -8rem;
z-index: 10;
padding: 3rem;
transition: height 0.5s;
animation: animateNavbar 1s 0.5s forwards;
/* After completing the animation the changes will persist if we provide fillmode as forwards */
}
@keyframes animateNavbar {
0%{
top: -8rem;
}
100%{
top: 0;
}
}
.navbar.change{
height: 100vh;
}
.logo{
position: absolute;
top: 1.5rem;
left: 4rem;
/* Even though its parent has position as fixed, it will get position relative to it.*/
}
.logo a{
font-family: 'MADE Soulmaze',sans-serif;
font-size: 2.5rem;
color: #eee;
letter-spacing: 0.1rem;
}
.logo span{
font-family: 'MADE Soulmaze',sans-serif;
font-size: 2.5rem;
font-size: 3.5rem;
font-weight: bold;
color: #9e0e09;
}
.navlist{
position: absolute;
top: 25%;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
opacity: 0;
visibility: hidden;
transition: all 0.2s;
}
/* next i am going to display the navigation items, let's use this technique . In this case we need space
here because navlist class is child of change class applied to navbar*/
.change .navlist{
opacity: 1;
visibility: visible;
transition: all 0.7s 0.5s;
}
.navlist.change{
opacity: 1;
visibility: visible;
}
.navlist a{
font-family: 'MADE soulmaze',sans-serif;
font-size: 4rem;
letter-spacing: 0.3rem;
color: #fff;
margin: 2rem 0;
transition: color 0.4s;
}
.navlist a:hover{
color: #9e0e09;
}
/* End Of Navbar */
/* Menu */
.menu{
width: 4rem;
height: 4rem;
/* RN the menu icon is not visible ,because it ended up behind the navbar. So we will fix that using z-index property
,but as we know in order to do that, first we need to define position for the element. The menu icon should have
fixed position */
position: fixed;
z-index: 10;
/* It will be offset relative to parent element i.e body */
top: 2rem;
right: 4rem;
display: flex;
flex-direction: column;
justify-content: space-evenly;
/* align-items: center; */
/* Otherwise line 1 and 3 will not be aligned to left and right */
cursor: pointer;
}
.line{
width: 100%;
height: 0.2rem;
background-color: #eee;
display: flex;
transition: all 0.3s;
}
.line-1{
width: 50%;
}
.change .line-1{
transform: translate(100%,1rem) rotate(-35deg);
transform-origin: right;
}
.line-3{
width: 50%;
margin-left: auto;
}
.change .line-3{
transform: translateY(-1rem) rotate(35deg);
transform-origin: right;
}
/* End Of Menu */
/* Section-1 */
.section-1{
width: 100%;
height: 100vh;
background: url(images/ba-4.jpg) no-repeat;
background-position: center;
background-size: cover;
position: relative;
}
.banner{
width: 100%;
position: absolute;
/* Then in order to position it according to its parent element, i'm going to set position relative for
this section element. */
top: 20%;
left: 50%;
transform: translateX(-50%);
text-align: center;
}
/* So in order to create 3d environment, we have to use css property called perspective,it shows us how far is
element away from the user. */
.banner-heading{
margin-bottom: 4rem;
height: 20rem;
perspective: 50rem;
overflow: hidden;
}
.banner-heading span{
font-family: 'Oswald',sans-serif;
font-size: 12rem;
font-weight: 400;
text-transform: uppercase;
color: #fff;
text-shadow: 0.3rem 0.3rem 0.6rem rgba(0,0,0,0.5);
position: absolute;
width: 100%;
display: flex;
justify-content: center;
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 3rem;
}
.heading-1{
animation: animateHeading 12s 3s infinite;
}
.heading-2{
animation: animateHeading 12s 6s infinite;
}
.heading-3{
animation: animateHeading 12s 9s infinite;
}
.heading-4{
animation: animateHeading 12s 12s infinite;
}
/* All right, so the headings are hidden, but right now we have here a tiny issue, the scrollbar appeared, here down below*/
/* At the first step from zero percent to 3 percent, th headings will be hidden, the will have the exact same property that
that we assign to them by default, i mean those three properties, after that from 3% to 25% we will display back the heading
to its default position. In the default position, i mean the position when the heading is visible. */
@keyframes animateHeading{
0%{
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 3rem;
}
3%{
transform: translateZ(0);
opacity: 1;
letter-spacing: 1.5rem;
}
/* After that from 3% to 25%, the heading will be visible and then from 25% to 28%, during this it will hide again */
25%{
transform: translateZ(0);
opacity: 1;
letter-spacing: 1.5rem;
}
28%{
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 3rem;
}
100%{
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 3rem;
}
/* So we will add this cycle to all the headings, but with different delay times, so they will display and hide in
order. */
}
.banner-paragraph{
font-size: 4rem;
font-weight: 400;
text-transform: uppercase;
color: #fff;
background-color: rgba(0,0,0,0.6);
width:30%;
margin: 0 auto 4rem;
padding: 1rem 0;
box-shadow: 1rem 1rem 5rem rgba(0,0,0,0.5);
opacity: 0;
visibility: hidden;
animation: fadeAnimation 1s 1.5s forwards;
}
.banner-btn{
width: 30rem;
height: 6rem;
background: linear-gradient(to right,#9b0e0e,#7a1010);
font-size: 2rem;
text-transform: uppercase;
border-radius: 3rem;
border: 0.1rem solid #800505;
color: #fff;
box-shadow: 1rem 2rem 3rem rgba(0,0,0,0.5);
text-shadow: 0.6rem 0.3rem 0.2rem rgba(0,0,0,0.4);
cursor: pointer;
opacity: 0;
visibility: hidden;
animation: fadeAnimation 1s 2s forwards;
position: relative;
/* now in order to hide pseudo element we will use overflow hidden */
overflow: hidden;
}
.banner-btn::before{
content: "";
width: 100%;
height: 100%;
background: linear-gradient(to right,transparent,#fff,transparent);
position: absolute;
/* then in order to position it according to its parent elements, which is the button we have to define the position
of the botton as relative. */
top:0;
left:-100%;
transform: skewX(-30deg);
transition: left 0.5s;
}
.banner-btn:hover::before{
left:100%;
}
/* Actually we will use this animation for both elements i mean the paragraph and the button as well, so overall we have
2 different steps, the starting point 0 percent and and the ending point 100 %. */
@keyframes fadeAnimation {
0%{
opacity: 0;
visibility: visible;
}
100%{
opacity: 1;
visibility: visible;
}
}
/* End of Section-1 */
/* Section-2 */
.section-2{
width: 100%;
height: 100vh;
background-color: #222020;
display: flex;
flex-direction: row;
align-items: center;
padding: 0 10rem;
position: relative;
}
.video-wrapper{
width: 100rem;
height: 50rem;
position: absolute;
/* It will be removed as flex box items */
top: 5rem;
right: 15rem;
box-shadow: 3rem 3rem 3rem rgba(0,0,0,0.7);
/* In order to hide the controls below the video-wrapper */
overflow: hidden;
}
.video{
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.3;
transition: opacity 0.3s;
}
.controls{
width: 100%;
position: absolute;
bottom: 0;
background-color: rgba(0,0,0,0.7);
transform: translateY(calc(100% - 0.6rem));
transition: transform 0.4s;
}
.video-wrapper:hover .controls{
transform: translateY(0);
}
.buttons{
padding: 2rem 1rem;
}
.buttons button{
background: none;
border: none;
cursor: pointer;
}
.video-bar-wrapper{
width: 100%;
/* 100% of video wrapper */
height: 0.7rem;
background-color: #000;
position: absolute;
top: 0;
left: 0;
}
.video-bar{
height: 100%;
/* 100% of video-bar-wrapper */
width: 0;
background-color: #d30819;
transition: width 0.2s linear;
}
.buttons i{
font-size: 2.8rem;
color: #fff;
}
.section-2-paragraph{
width: 100rem;
position: absolute;
bottom: 8rem;
right: 15rem;
font-size: 2rem;
color: #ddd;
border-top: 0.3rem double #aaa;
border-bottom: 0.3rem double #aaa;
padding: 2rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: justify;
text-shadow: 1rem 1rem 2rem rgba(0,0,0,0.7);
line-height: 1.5;
}
.fa-quote-left{
align-self: flex-start;
font-size: 5rem;
margin-bottom: 2rem;
}
.fa-quote-right{
align-self: flex-end;
font-size: 5rem;
}
/* End of Section-2 */
/* Section-3 */
.section-3{
width: 100%;
height: 100vh;
background-color: #03070e;
display: flex;
flex-direction: row;
align-items: center ;
padding-left: 10rem;
}
.pricing-card-wrapper{
width: 100%;
/* Now it will take the entire left space */
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.pricing-card{
width: 28rem;
height: 45rem;
background-color: #181b1d;
border-radius: 1rem;
box-shadow: 2rem, 2rem 6rem rgba(0,0,0,0.7);
/* transform: rotateY(180deg); */
}
.pricing-card-front{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.pricing-card-heading{
font-size: 2rem;
font-weight: 300;
color: #fff;
width: 100%;
height: 5rem;
display: flex;
flex-direction: row;
align-items: center;
padding-left: 2rem;
}
.heading-free{
background: linear-gradient(to right, #087285,#0da5d3);
/* Now we have tiny issue, of border radius, lets fix that */
border-radius: 1rem 1rem 0 0;
}
.heading-basic{
background: linear-gradient(to right, #946809,#bdba0e);
/* Now we have tiny issue, of border radius, lets fix that */
border-radius: 1rem 1rem 0 0;
}
.heading-standard{
background: linear-gradient(to right, #a10c14,#e23b3b);
/* Now we have tiny issue, of border radius, lets fix that */
border-radius: 1rem 1rem 0 0;
}
.heading-premium{
background: linear-gradient(to right, #0b7e48,#3be286);
/* Now we have tiny issue, of border radius, lets fix that */
border-radius: 1rem 1rem 0 0;
}
.pricing-card-price{
font-family: "MADE Soulmaze",sans-serif;
font-size: 7rem;
font-weight: 300;
color: #fff;
}
.pricing-card-list li{
margin-bottom: 0.5rem;
}
.pricing-card-list i{
font-size: 1.8rem;
width: 3rem;
}
.pricing-card-list span{
font-size: 1.8rem;
font-weight: 300;
letter-spacing: 0.1rem;
}
.list-free li{
color: #0da5d3;
}
.list-basic li{
color: #bdba0e;
}
.list-standard li{
color: #e23b3b;
}
.list-premium li{
color: #3be286;
}
.pricing-card-btn{
width: 18rem;
height: 5rem;
margin-bottom: 3rem;
border-radius: 3rem;
border: none;
font-size: 1.6rem;
text-transform: uppercase;
color: #fff;
text-shadow: 0.3rem 0.3rem 0.6rem rgba(0,0,0,0.5);
}
.btn-free{
background-color: #0da5d3;
}
.btn-basic{
background-color: #bdba0e;
}
.btn-standard{
background-color: #d30819;
}
.btn-premium{
background-color: #3be286;
}
.pricing-card-back{
position: absolute;
top: 0;
left: 0;
/* By setting position to absolute, the elements stack over each other*/
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
transform: rotateY(180deg);
border-radius: 1rem;
opacity : 0;
visibility: hidden;
}
.back-free{
background: linear-gradient(to right, #087285,#0da5d3);
}
.back-basic{
background: linear-gradient(to right, #946809,#bdba0e);
}
.back-standard{
background: linear-gradient(to right, #a10c14,#e23b3b);
}
.back-premium{
background: linear-gradient(to right, #0b7e48,#3be286);
}
.pricing-card-back a{
font-size: 2.5rem;
color: #fff;
}
/* End of Section-3 */
/* Section-4 */
.section-4{
width: 100%;
height: 110vh;
background-color: #171718;
display: flex;
flex-direction: row;
align-items: center;
padding :0 10rem;
}
.contact-wrapper{
width: 80%;
display: flex;
flex-direction: column;
align-items: center;
}
.contact-details{
display: flex;
flex-direction: row;
margin-bottom: 8rem;
}
.contact-details div{
width: 25rem;
text-align: center;
margin: 4rem;
}
.contact-details i{
font-size: 5rem;
color: #7a1010;
}
.contact-details h3{
font-family: "MADE Soulmaze", sans-serif;
font-size: 2.5rem;
margin: 2rem 0;
color: #ccc;
}
.contact-details p{
font-size: 1.6rem;
color: #aaa;
}
.contact-wrapper h1{
font-size: 4rem;
color: #ccc;
text-transform: uppercase;
margin-bottom: 3rem;
}
.contact-form{
width: 70rem;
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form textarea{
padding: 1.5rem;
background-color: #444;
color: #eee;
border: none;
margin-bottom: 2rem;
font-family: "Oswald",sans-serif;
font-size: 1.8rem;
font-weight: 300;
letter-spacing: 0.1rem;
}
.contact-form textarea{
max-width: 100%;
max-height: 15rem;
min-height: 5.5rem;
}
.contact-form input[type = "submit"]{
background-color: #7a1010;
text-transform: uppercase;
cursor: pointer;
transition: background-color 0.3s;
}
.contact-form input[type = "submit"]:hover{
background-color: #5f0303;
}
/* End of Section-4 */
/* Footer */
.footer{
width: 100%;
height: 8rem;
background-color: #202122;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0 10rem;
}
.footer-nav a{
font-family: "MADE Soulmaze",sans-serif;
font-size: 2rem;
color: #ccc;
margin-right: 3rem;
letter-spacing: 0.1rem;
transition: color 0.3s;
}
.footer-nav a:hover{
color: #862323;
}
.footer p{
font-size: 2rem;
color: #ddd;
}
/* End of Footer */
/* Responsive */
@media (max-width: 1800px) {
.video-wrapper {
width: 90rem;
height: 45rem;
right: 10rem;
}
.section-2{
height: 120vh;
}
.section-2-paragraph {
width: 90rem;
right: 10rem;
}
.section-3 .section-heading-line {
margin-right: 3rem;
}
}
@media (max-width: 1750px) {
.pricing-card{
width: 25rem ;
height: 40rem;
}
}
@media (max-width: 1650px) {
html {
font-size: 57%;
}
.video-wrapper {
width: 85rem;
height: 40rem;
right: 5rem;
}
.section-2{
height: 120vh;
}
.section-2-paragraph {
width: 85rem;
right: 5rem;
bottom: 10rem;
}
}
@media (max-width: 1500px) {
.section-heading-line {
display: none;
}
}
@media (max-width: 1400px){
html{
font-size: 45%
}
.banner-heading span{
font-size: 10rem;
}
.banner-paragraph{
width: 45rem;
font-size: 3rem;
}
.section-2,
.section-3,
.section-4{
flex-direction: column;
}
.section-2{
height: 120vh;
}
.video-wrapper{
top: 20%;
left: 50%;
transform: translateX(-50%);
width: 90rem;
height: 50rem;
}
.section-2-paragraph {
left: 50%;
transform: translateX(-50%);
width: 90rem;
}
.section-3{
height: auto;
padding: 5rem 0 10rem 0;
}
.section-3 .section-heading{
margin-bottom: 7rem;
}
.section-4 {
height: auto;
padding: 5rem 0;
}
}
@media (max-width: 900px) {
html {
font-size: 40%;
}
.banner {
top: 25%;
}
.banner-heading {
height: 15rem;
}
.banner-heading span {
font-size: 8rem;
}
.section-2{
height: 100vh;
}
.footer {
padding: 0 5rem;
}
.footer-nav a {
font-size: 1.8rem;
}
}
@media (max-width: 700px) {
html {
font-size: 35%;
}
.section-1{
height: 80vh;
}
.section-2 {
height: 100vh;
}
.video-wrapper{
width: 80rem;
height: 45rem;
}
.section-2-paragraph {
width: 80rem;
bottom : 10rem;
}
.section-3 .pricing-card-wrapper{
flex-wrap: wrap;
}
.pricing-card{
margin: 3rem 3rem;
}
.contact-details div {
margin: 3rem 2rem;
}
.footer {
flex-direction: column;
justify-content: center;
}
.footer-nav {
margin: 1rem 2rem;
}
}
@media (max-width: 500px) {
html {
font-size: 30%;
}
.banner-heading span {
font-size: 4.5rem;
letter-spacing: 2rem;
}
@keyframes animateHeading {
0% {
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 2rem;
}
3% {
transform: translateZ(0);
opacity: 1;
letter-spacing: 1rem;
}
25% {
transform: translateZ(0);
opacity: 1;
letter-spacing: 1rem;
}
28% {
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 2rem;
}
100% {
transform: translateZ(8rem);
opacity: 0;
letter-spacing: 2rem;
}
}
.video-wrapper {
width: 60rem;
}
.section-2 {
height: 80vh;
}
.section-2-paragraph {
width: 60rem;
}
.contact-details div {
width: 18rem;
margin: 3rem 1rem;
}
.contact-form {
width: 60rem;
}
}
/* End of Responsiveness */