/* start global rules */
:root {
    --main-color: #2196f3;
    --main-color-alt: #1787e0;
    --main-transition:0.4s;
    --main-padding-top:100px;
    --main-padding-bottom:100px;
    --color-section: #ececec ;
}
* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
  font-family: 'Cairo', sans-serif;
}
a {
    text-decoration: none;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}
/* small  */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}
/* medium  */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}
/* large  */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}
.main-title {
    font-size: 30px;
    font-weight: bold;
    position: relative;
    border: 2px solid black;
    margin: 0 auto 80px;
    padding: 10px 20px;
    width: fit-content;
    z-index: 1;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.main-title::before, 
.main-title::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--main-color);
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}
.main-title::before {
    left: -30px;
}
.main-title::after {
    right: -30px;
}
.main-title:hover::before {
    z-index: -1;
    animation: left-move 0.5s linear forwards;
    -webkit-animation: left-move 0.5s linear forwards;
}
.main-title:hover::after {
    z-index: -1;
    animation: right-move 0.5s linear forwards;
    -webkit-animation: right-move 0.5s linear forwards;
}
.main-title:hover {
    cursor: pointer;
    color: white;
    border: 2px solid white;
    transition-delay: 0.5s;
    
}

.dots {
    position: absolute;
    background-image: url(../img/dots.png);
    width: 210px;
    height: 160px;
    background-repeat: no-repeat;
}
@media (max-width:991px) { 
    .dots {
        width: 160px;
        height: 80px;
    }
}
.dots-up {
    right: 0;
    top: 100px;
}
.dots-down {
    left: 0;
    bottom: 100px;
}
/* end global rules  */

/* start header  */
.header {
    position: relative;
    background-color: white;
    box-shadow: 0 0 10px #ddd;
}
.header .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* in small screan li will wraping */
}
.header .logo {
    color: var(--main-color);
    font-size: 26px;
    font-weight: bold;
    /* height for make header have the same height if we resizing ul  */
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header .logo span {
    color: #9617e0;
}
@media (max-width:768px) {
    .header .logo {
        width: 100%;
        height: 40px;
    }
}
.header .main-nav {
    display: flex;
}
@media (max-width:767px) {
    .header .main-nav {
        margin: auto;
    }
}
.header .main-nav > li:hover .mega-menu {
    opacity: 1;
    z-index: 100;
    top: calc(100% + 2px);
} 
/* direct child "li" in main-nav and direct a in li  */
.header .main-nav > li > a{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    font-weight: bold;
    padding: 0 30px;
    color: black;
    overflow: hidden;
    /* look at before to remember */
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
@media (max-width:768px) {
    .header .main-nav > li > a {
        padding: 10px;
        font-size: 14px;
        height: 50px;
        margin-bottom: 5px;
    }
}
.header .main-nav > li > a::before {
    content: "";
    position: absolute;
    height: 4px;
    width: 100%;
    top: 0;
    background-color: var(--main-color);
    left: -100%;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.header .main-nav > li > a:hover {
    color: var(--main-color);
    background-color: #fafafa;
}
.header .main-nav > li > a:hover::before {
    left: 0;
}
.header .mega-menu {
    position: absolute;
    width: 100%;
    left: 0;
    padding: 30px;
    background-color: white;
    border-bottom: 3px solid var(--main-color);
    z-index: -1;
    opacity: 0;
    display: flex;
    gap: 40px;
    top: calc(100% + 50px);

/* now we selected two transitions property */
    transition: top var(--main-transition), opacity var(--main-transition);
    -webkit-transition: top var(--main-transition), opacity var(--main-transition);
    -moz-transition: top var(--main-transition), opacity var(--main-transition);
    -ms-transition: top var(--main-transition), opacity var(--main-transition);
    -o-transition: top var(--main-transition), opacity var(--main-transition);
}
@media (max-width:767px) {
    .header .mega-menu {
        flex-direction: column;
        gap: 0;
        padding: 5px;
    }
    .header .mega-menu .links li:nth-child(5) {
        border-bottom: 1px solid #e9e6e6;
    }
}
.header .mega-menu .image img {
    max-width: 100%;
    width: 370px;
    
}
@media (max-width:991px) {
    .header .mega-menu .image {
        display: none;
    }
}
.header .mega-menu .links {
    /* width: 700px; */
    min-width: 240px;
    flex: 1;
}
.header .mega-menu .links li {
    position: relative;
}
.header .mega-menu .links li:hover a {
    background-color: var(--main-color);
    color: white;
}
.header .mega-menu .links li:not(:last-child) {
    border-bottom: 1px solid #e9e6e6;
}
@media (max-width:767px) {
.header .mega-menu .links:first-of-type li:last-child {
        border-bottom: 1px solid #e9e6e6;
    }
}

.header .mega-menu .links li a {
    display: block;
    color: var(--main-color);
/* padding wont apply if we didn't use display-> block */
    padding: 15px;
    font-weight: bold
}
.header .mega-menu .links li a i {
    margin-right: 15px;
}
/* end header  */

/* start landing */
.landing {
    position: relative;
}
.landing::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-color: var(--color-section);
    transform: skewY(-6deg);
    transform-origin: top left;
    -webkit-transform: skewY(-6deg);
    -moz-transform: skewY(-6deg);
    -ms-transform: skewY(-6deg);
    -o-transform: skewY(-6deg);
}
.landing .container {
    display: flex;
    align-items: center;
    padding-bottom: 120px;
    min-height: calc(100vh - 72px);
}
.landing .container .text {
    flex: 1;
}
@media (max-width: 991px) {
    .landing .container .text {
        text-align: center;
    }
}
.landing .container .text h1 {
    font-size: 40px;
    margin: 0;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .landing .container .text h1 {
        font-size: 24px;
    }
}
.landing .container .text p {
    font-size: 24px;
    line-height: 1.7;
    margin: 5px 0;
    color: rgb(23, 20, 20);
    max-width: 500px;
}
@media (max-width: 991px) {
    .landing .container .text p {
        margin: 10px auto;
    }
}
@media (max-width: 768px) {
    .landing .container .text p {
        font-size: 18px;
        
}
}
.landing .container .image img {
    position: relative;
    width: 600px;
    max-width: 100%;
    animation: upDown 5s linear infinite;
    -webkit-animation: upDown 5s linear infinite;
    /* animation we use need position  */
}
@media (max-width: 991px) {
    .landing .image {
        display: none;
    }
}
.landing .go-down {
    color: var(--main-color);
    position: absolute;
    bottom: 30px;
    font-size: 26px;
    transition: var(--main-transition);
    left: 50%;
    transform: translate(-50%);
    -webkit-transform: translate(-50%);
    -moz-transform: translate(-50%);
    -ms-transform: translate(-50%);
    -o-transform: translate(-50%);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.landing .go-down:hover {
    color: var(--main-color-alt);
}
.landing .go-down i {
    animation: bouncing 1.5s infinite;
    -webkit-animation: bouncing 1.5s infinite;
}
/* end landing */


/* stat Articls */
.article {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
}
.article .container {
display: grid;
grid-template-columns: repeat(auto-fill ,minmax(250px,1fr) );
gap: 40px;
}
.article .box {
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 15px rgb(0 0 0  / 10%);
        background-color: white;
        transition: transform var(--main-transition) , box-shadow var(--main-transition);
        -webkit-transition: transform var(--main-transition) , box-shadow var(--main-transition);
        -moz-transition: transform var(--main-transition) , box-shadow var(--main-transition);
        -ms-transition: transform var(--main-transition) , box-shadow var(--main-transition);
        -o-transition: transform var(--main-transition) , box-shadow var(--main-transition);
}
.article .box:hover {
    box-shadow: 0 2px 15px rgb(0 0 0  / 20%);
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
}
.article  .box img {
max-width: 100%;
width: 100%;
}
.article  .box .content {
padding: 20px;
}
.article  .box .content h3 {
font-weight: bold;
margin: 0;
}
.article  .box .content p {
margin: 10 0 0;
color: #777;
line-height: 1.5;
}
.article  .box .info {
padding: 20px ;
border-top: 1px solid #e6e6e7;
display: flex;
justify-content: space-between;
align-items: center;
}
.article  .box .info a {
color: var(--main-color);
}
.article  .box .info i {
color: var(--main-color);
}
.article .box:hover .info i {
    animation: move-right var(--main-transition) linear infinite;
    -webkit-animation: move-right var(--main-transition) linear infinite;
}



/* end Articls */

/* start gallery */
.gallery {
    position: relative;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: var(--color-section);
}
.gallery .container {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
gap: 40px;
}
.gallery .box {
    padding: 15px;
    background-color: white;
    overflow: hidden;
}
.gallery .box .image {
    position: relative;
    overflow: hidden;
}
.gallery .box .image::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    background-color: #ffffff2e;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
    -webkit-transform: translate(-50% , -50%);
    -moz-transform: translate(-50% , -50%);
    -ms-transform: translate(-50% , -50%);
    -o-transform: translate(-50% , -50%);
}
.gallery .box:hover ::before {
    z-index: 1;
    animation: flash 0.7s;
    -webkit-animation: flash 0.7s;
}
.gallery .box .image img {
    max-width: 100%;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.gallery .box .image:hover img {
    transform: rotate(5deg) scale(1.1);
    -webkit-transform: rotate(5deg) scale(1.1);
    -moz-transform: rotate(5deg) scale(1.1);
    -ms-transform: rotate(5deg) scale(1.1);
    -o-transform: rotate(5deg) scale(1.1);
}

/* end gallery */

.features {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: white;
}
.features .container {
    display: grid;
    grid-template-columns:  repeat(auto-fill,minmax(300px,1fr));
    gap: 40px;
}
.features .box {
    border: 1px solid #ccc;
    text-align: center;
}
.features .box .img-holder {
    position: relative;
    overflow: hidden;
}
.features .box .img-holder::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 100%;
}
.features .quality .img-holder::before {
    background-color: #ff000057;
}
.features .time .img-holder::before {
    background-color: #00800057;
}
.features .passion .img-holder::before {
    background-color: #0000ff57;
}
.features .box .img-holder::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-style: solid;
    border-width: 0px 0px 175px 500px;
    border-color: transparent transparent white transparent;
}
.features .box:hover .img-holder::after {
    border-width: 175px 500px 175px 0;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}

.features .box img {
    max-width: 100%;
}
.features .box h2 {
    position: relative;
    font-size: 40px;
    width: fit-content;
    margin: auto;
}
.features .box p {
    padding: 25px;
    margin: 30px 0;
    font-size: 20px;
    color: #777;
    line-height: 2;
}
.features .box h2::after {
    content: "";
    position: absolute;
    height: 5px;
    width: calc(100% - 30px);
    bottom: -20px;
    left: 15px;
}
.features .quality h2::after {
    background-color: red;
}
.features .time h2::after {
    background-color: green;
}
.features .passion h2::after {
    background-color: blue;
}
.features .box a {
    border: 3px solid ;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 30px;
    margin: 10px auto 30px;
    display: block;
    width: fit-content;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.features .time a {
    color: #009688;
    border-color: #009688;
    background: linear-gradient(to right, #009688 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}
.features .quality a {
    color: red;
    border-color: red;
    background: linear-gradient(to right, red 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}
.features .passion a {
    color: blue;
    border-color: blue;
    background: linear-gradient(to right, blue 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}
.features .box:hover a {
    color: white;
    background-position: left top;
}
.features .quality a { 
    border: 3px solid red;
}
.features .time a {
    border: 3px solid green;
}
.features .passion a {
    border: 3px solid blue;
}

/* start testimonials  */

.testimonials {
    position: relative;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: #eee;
}
.testimonials .container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 55px 30px;
}
.testimonials .box {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
}
.testimonials .box:hover {
    background-color: #eee;
    cursor: pointer;
}
.testimonials .box:hover .yellow {
    color:#72ada7 
}
.testimonials .box img {
    position: absolute;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    right: -10px;
    top: -50px;
    border:  10px #eee solid;
}
.testimonials .box:hover img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}
.testimonials .box h3 {
    margin: 0 0 10px;
}
.testimonials .box .title {
    display: block; /* to recpect margin*/
    color: #777;
    margin-bottom: 10px;
}
.testimonials .rate .yellow {
    color: #ffc107;
}
.testimonials p {
    line-height: 1.7;
    color: #777;
    margin-top: 10px;
    margin-bottom: 0;
}

/* end testimonials   */

/* start team members  */

.team {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
}
.team .container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 40px;
}
.team .box {
    position: relative;
}
.team .box:hover img {
    filter: grayscale(100%);
  }
.team .box::before,
.team .box::after {
    content: "";
    background-color: #f3f3f3;
    position: absolute;
    height: 100%;
    border-radius: 10px;
    right: 0;
    top: 0;
    transition: var(--main-transition);
}
.team .box::before {

    z-index: -2;
    width: calc(100% - 60px);
}
.team .box::after {
    background-color: #e4e4e4;
    z-index: -1;
    width: 0;
}
.team .box:hover::after {
    width: calc(100% - 60px);
}
.team .box .data {
    display: flex;
    align-items: center;
    padding-top: 60px;
}
.team .box .data img {
    max-width: 100%;
    width: calc(100% - 60px );
    border-radius: 10px;
    transition: var(--main-transition);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}
.team .box .data .social {   
    display: flex;    
    flex-direction: column; 
    gap: 20px; 
    align-items: center;
    width: 60px;
}
.team .box .data .social a {
    width: 60px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.team .box .data .social i {
    color: #777;
    z-index: 2;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.team .box .data .social a:hover i {
    color: var(--main-color);
  }
.team .box .info {
    padding-left: 80px;
}
.team .box .info h3 {
    font-size: 22px;
    color: var(--main-color-alt);
}
.team .box .info p {
    margin-top: 10px;
    margin-bottom: 25px;
}

/* end team members  */

/* start services */

.services {
    position: relative;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: var(--color-section);
}
.services .container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap:40px
}
.services .box {
    background-color: white;
    position: relative;
    counter-increment: services;
    box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
    transition: var(--main-transition);
}
.services .box:hover {
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
}
.services .box::before {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    transform: translatex(-50%);
    left: 50%;
    background-color: var(
    --main-color);
    transition: var(
    --main-transition);
}
.services .box:hover::before {
    width: 100%;

}
.services .box i {
    display: block; /*to recpect text align */
    text-align: center;
    margin: 30px auto 20px;
    color: #d5d5d5;
}
.services .box h3 {
    text-align: center;
    margin: 20px 0 40px;
    font-size: 24px;
    color: var(--main-color);
}
.services .box .info {
    position: relative;
    background-color: #f9f9f9;
    padding: 15px;
    text-align: right;
}
.services .box .info::before {
    content: "0" counter(services);
    position: absolute;
    background-color: var(--main-color);
    color: white;
    left: 0;
    top: 0;
    height: 100%;
    width: 80px;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 15px;
}
.services .box .info::after {
    content: "";
    position: absolute;
    background-color: #d5d5d5;
    width: 40px;
    height: 100.4%;
    top: 0;
    left: 80px;
    transform: skew(-18deg, 0deg);
}
.services .box .info a {
    color: var(--main-color);
}
/* end services */

/* start skills */
.our-skills {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: white;
}
.our-skills .container {
    display: flex;
    align-items: center;
}
@media (max-width:991px) {
 .our-skills img {
    display: none;
}
}
.our-skills .skills {
    flex: 1;
}
.our-skills  .skill h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.our-skills  .skill h3 span {
    border: 1px solid #ccc;
    padding: 3px 5px;
    border-radius: 5px;
    color: var(--main-color);
}
.our-skills  .skill .progress {
    height: 30px;  
    background-color: #eee; 
    position: relative;
}
.our-skills  .skill .progress span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--main-color);
    transition: width 0.5s linear;
    -webkit-transition: width 0.5s linear;
    -moz-transition: width 0.5s linear;
    -ms-transition: width 0.5s linear;
    -o-transition: width 0.5s linear;
}
/* end skills */

/* start work-steps  */
.work-steps {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: #eee;
}
.work-steps .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
@media(max-width:991px) {
    .work-steps .container {
        flex-direction: column;
    }
}
.work-steps .image {
    max-width: 100%;
    width: 450px;
    height: 450px;
    margin-right: 100px;
}
@media(max-width:991px) {
    .work-steps .image {
        margin: 0 auto 20px;
    }
}
.work-steps .box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    position: relative;
    padding: 30px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 3px solid white;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.work-steps .box::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 0;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    background-color: #eee;
    transition: var(--main-transition);
    z-index: -1;
}
.work-steps .box:hover::before {
    width: 100%;
    height: 100%;
}
.work-steps .box img {
    width: 64px;
    margin-right: 20px;
}
.work-steps .box .text h3 {
    margin: 0;
    font-size: 22px;
}
.work-steps .box .text p {
    color: #777;
    font-size: 18px;
    margin: 10px 0 0;
    line-height: 1.7;
}


/* end work-steps  */

.events {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: white;
}

.events .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.events img {
    max-width: 450px;
}
@media (max-width:991px) {
    .events img {
        max-width: 350px;
    }
}
.events .info {
    flex: 1;
}
.events .info .time {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}
.events .info .time .unit {
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    width: 75px;
    text-align: center;
}
.events .info .time .unit:hover {
    border: 1px solid var(--main-color);
}
.events .info .time .unit span {
    display: block;
    transition: var(--main-transition);
}
.events .info .time .unit span:first-child {
    font-size: 40px;
    color: var(--main-color);
    border-bottom: 1px solid #d4d4d4;
    font-weight: bold;
    padding: 15px;
}
.events .info .time .unit span:last-child {
    padding: 8px 10px;
    color: #323030;
    font-size: 15px;
}
.events .subscribe {
    width: 100%;
}
.events .info .title {
    margin: 20px auto 0;
    text-align: center;
    font-size: 30px;
}
.events .info p {
    text-align: center;
    color: #777;
}
.events .subscribe {
    width: 100%;
    margin-top: 20px;
}
.events .subscribe form {
    display: flex; 
    justify-content: center;       
    align-items: center;
    background-color: #f6f5f5; 
    width: 600px; 
    margin: 20px auto;
    padding: 30px 40px;
    border-radius: 50px;
    gap: 20px;
}
@media (max-width:991px) {
    .events .subscribe form {
        width: calc(100% - 10px);
        flex-wrap: wrap;
        padding: 10px;
        border-radius: 0px;
    }
}
.events .subscribe form input[type="email"] {
    background-color: white;
    border: none;
    border-radius: 50px;
    padding: 20px;
    flex: 1;
    caret-color: var(--main-color);
}
.events .subscribe form input[type="email"]:focus {
    outline: none;
}
.events .subscribe form input[type="submit"] {
    background-color: var(--main-color-alt);
    color: white;
    padding: 20px;
    border-radius: 50px;
    border: none;
    font-size: 20px;
    font-weight: bold;
}
@media (max-width:991px) { 
    .events .subscribe form input[type="email"],
    .events .subscribe form input[type="submit"] {
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
    }
    .events .subscribe form input[type="submit"] {
        padding: 15px 20px;
    }
}
.events .subscribe form input[type="submit"]:hover {
    background-color: var(--main-color);
    cursor: pointer;
}

/* start pricing  */
.pricing {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: #eee;
    position: relative;
}
.pricing .container {
    display: grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap: 30px;
}
.pricing .box {
    position: relative;
    background-color: white;
    box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
    text-align: center;
    transition: var(--main-transition);
    z-index: 1;
}
.pricing .popular .lable {
    position: absolute;
    background-color: var(--main-color);
    color: white;
    padding: 10px 10px 35px 10px;
    writing-mode: vertical-rl;
    right: 20px;
    font-size: 18px;
    top: 0;
    font-weight: bold;
}
.pricing .popular .lable::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-color: transparent transparent white;
    border-style: solid;
    border-width: 20px;
}
.pricing .box::before,
.pricing .box::after {
    content: "";
    position: absolute;
    background-color: #f6f6f6;
    width: 0;
    height: 50%;
    z-index: -1;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}
.pricing .box::before {
    top: 0;
    left: 0;
}
.pricing .box::after {
    bottom: 0;
    right: 0;
}
.pricing .box:hover::before,
.pricing .box:hover::after {
    width: 100%;
}
.pricing .box .title {
    margin: 30px auto;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -1px;
}
.pricing .box img {
    max-width: 80px;
    margin-bottom: 30px;
}
.pricing .box .price {
    margin-bottom: 30px;
}
.pricing .box .price .amount {
    font-size: 60px;
    display: block;
    margin: 0 auto 10px;
    font-weight: bold;
    color: var(--main-color);
}
.pricing .box .price .time {
    color: #777;
}
.pricing .box  ul {
    text-align: left;
}
.pricing .box  ul li {
    padding: 20px;
    border-top: 1px solid #eee;
}
.pricing .box  ul li::before {
    font-family: "Font Awesome 5 Free";
    content: "\f00c";
    margin-right: 10px;
    font-weight: bold;
    color: var(--main-color);
}
.pricing .box a {
    display: block;
    padding: 15PX 20PX;
    border: 2px solid var(--main-color);
    margin: 30px auto 40px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--main-transition);
    width: fit-content;
}
.pricing .box a:hover {
    background-color: var(--main-color);
    color: white;
    transition: var(--main-transition);
    -webkit-transition: var(--main-transition);
    -moz-transition: var(--main-transition);
    -ms-transition: var(--main-transition);
    -o-transition: var(--main-transition);
}


/* end pricing  */


/* start video  */
.video {
    position: relative;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-color: white;
}
.video .holder {
    display: flex;
    justify-content: center;
    background-color: var(--color-section);
    border: 1px solid #ddd;
}
@media (max-width:991px) {
    .video .holder {
        flex-direction: column;
    }
}
.video .holder .list {
    min-width: 300px;
    background-color: white;
}
.video .holder .list .name {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    color: var(--main-color);
    font-weight: bold;
    background-color: var(--color-section);
}
.video .holder .list ul li {
    padding: 20px;
    border-top: 1px solid var(--color-section);
    cursor: pointer;
    transition: var(--main-transition);
}
.video .holder .list ul li:hover {
    background-color: #f6f5f5;
}
.video .holder .list ul li span {
    display: block;
    margin-top: 10px;
    color: #777;
}
.video .preview {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 10px;
}
.video .preview img {
    max-width: 100%;
}
.video .preview .info {
    background-color: white;
    padding: 20px;
    margin-top: 10px;
}

/* end video  */

/* start state  */
.state {
    position: relative;
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    background-image: url(../img/wallpaperflare-cropped.jpg);
    background-size: cover;
    min-height: 300px;
}
.state::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #eeeeeee3;
}
.state h2 {
    position: relative;
    text-align: center;
    font-weight: bold;
    font-size: 40px;
    width: fit-content;
    margin: 0 auto 50px;
}
.state .container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 20px;
}
.state .box {
    position: relative;
    text-align: center;
    background-color: white;
    padding: 30px 15px;
    opacity: 0.8;
    transition: var(--main-transition);
}
.state .box::before,
.state .box::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 0;
    background-color: var(--main-color);
    transition: 1s;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}
.state .box::before {
    top: 0;
    right: 0;
}
.state .box::after {
    bottom: 0;
    left: 0;
}
.state .box:hover::before,
.state .box:hover::after {
    height: 100%;
}
.state .box i {
    display: block;
    font-size: 40px;
}
.state .box .number {
    display: block;
    font-size: 50px;
    font-weight: bold;
    margin: 10px auto;
}
.state .box .text {
    font-size: 20px;
    font-style: italic;
    color: var(--main-color);
    font-weight: bold;
}
/* end state  */

/* start discount */
.discount {
   display: grid;
   grid-template-columns: repeat(auto-fill,minmax(50%,1fr));
   min-height: 100vh;
}
@media (max-width : 991px) {
    .discount {
        grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    }
}
.discount .image {
    position: relative;
    z-index: 1;
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-image: url(../img/wallpaperflare-cropped.jpg);
    background-size: cover;
    text-align: center;
    animation: change-img 10s linear infinite;
    -webkit-animation: change-img 10s linear infinite;
}

.discount .image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(23 135 224 / 94%);
    z-index: -1;
}
.discount .image h2 {
    font-size: 40px;
    letter-spacing: -2px;
}
.discount .image p {
    max-width: 500px;
    line-height: 1.7;
    font-size: 18px;
}
.discount h2 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: -2px;
    width: 380px;
    text-align: center;
}
.discount .image img {
    width: 300px;
    max-width: 100%;
}

.discount .form {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discount .form .input {
    display: block;
    width: 100%;
    background-color: #f9f9f9;
    border: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 20px 10px;
}
@media (max-width: 991px) {
    .discount .form .input {
        width: 90%;
        margin: 0 auto;
    }
}
.discount .form input:focus,
.discount .form textarea:focus {
    outline: none;
}
.discount .form textarea {
    border: none;
    resize: none;
}
.discount .form input[type="submit"] {
    color: white;
    background-color: var(--main-color-alt);
    margin: 0 auto;
    font-size: 30px;
    font-weight: bold;
    padding: 10px 30px;
}
.discount .form input[type="submit"]:hover {
    background-color: var(--main-color)
}
/* end discount */

/* start footer  */
.footer {
    background-color: black;
    padding: 70px 0 0;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap:40px;
}
.footer .box h3 {
    color: white;
    font-size: 50px;
    margin: 0 0 20px;
}
.footer .box .social {
    color: white;
    display: flex;
    gap: 10px;
}
.footer .box .social li {
    font-size: 25px;
    background-color: #343232;
    padding: 10px;
    width: 50px;
    text-align: center;
}
.footer .box .social .facebook:hover {
    background-color: #2196f3;
    cursor: pointer;
}
.footer .box .social .twitter:hover {
    background-color:#1787e0 ;
    cursor: pointer;
}
.footer .box .social .youtube:hover {
    background-color: red;
    cursor: pointer;
}
.footer .box p {
    color: #b9b9b9;
}
.footer .box .links li  {
    padding: 15px 0;
    transition: var(--main-transition);

}
.footer .box .links li a {
    color: #b9b9b9;
}
.footer .box .links li:hover{
    cursor: pointer;
    transform: translateX(10px);
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    -ms-transform: translateX(10px);
    -o-transform: translateX(10px);
}
.footer .box .links li:hover a {
    color: white;
}
.footer .box .links li::before {
    font-family: "font Awesome 5 free";
    content: "\f101";
    font-weight: 900;
    margin-right: 10px;
    color: var(--main-color);
}
.footer .box .links li:not(:last-child) {
    border-bottom: 1px solid #444;
}
.footer .box .line {

display: flex;

gap: 20px;

color: #b9b9b9;

padding: 20px;
}
.footer .box .line i {

color: var(--main-color-alt);

font-size: 22px;
}
.footer .box .line .info,
.footer .box .line .info a {

color: #b9b9b9;
}
.footer .gallary img {
    width: 78px;
    border: 3px solid white;
    margin: 2px;
}
.footer p {
text-align: center;
color: var(--main-color);
padding: 10px 0 20px;
font-size: 24px;
font-weight: bold;
}

/* end footer  */
/* start animation  */
@keyframes upDown {
    0% ,
    100% {
        top: 0;
    }
    50% {
        top: -50px;
    }
}
@keyframes bouncing {
    0%,
    10%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
}
    40%,
    60% {
        transform: translateY(-15px);
        -webkit-transform: translateY(-15px);
        -moz-transform: translateY(-15px);
        -ms-transform: translateY(-15px);
        -o-transform: translateY(-15px);
}
}
@keyframes left-move {
    50% {
        left: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        left: 0;
        width: 51%;
        height: 100%;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
}
}
@keyframes right-move {
    50% {
        right: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        right: 0;
        width: 51%;
        height: 100%;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
}
}
@keyframes move-right {
    100% {
        transform: translateX(10px);
        -webkit-transform: translateX(10px);
        -moz-transform: translateX(10px);
        -ms-transform: translateX(10px);
        -o-transform: translateX(10px);
}
}
@keyframes flash {
    0% , 40%{
       opacity: 1;
    }
    100% {
        opacity: 0;
        width: 200%;
        height: 200%;
    }
}
@keyframes change-img {
    0% {
        background-image: url(../img/wallpaperflare-cropped.jpg);
    }
    100% {
        background-image: url(../img/discount-background1.jpg);
    }
}
/* end animation  */
