/* start global rules */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
:root {
    --main-color : #2196f3;
    --main-color-alt: #1454e0;
    --main-transition:.3s;
    --border-color: #e9e6e6;
    --main-top-padding: 100px;
    --main-bottom-padding: 100px;
    --paragraph-color: #777;
    --section-background: #ececec ;
}

html {
    scroll-behavior: smooth;
}

body{
    font-family: "Cairo", sans-serif;
    font-optical-sizing: auto;
  
}
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;
}

@media (min-width:767px) {
    .container {
        width: 750px;
    }
}

@media (min-width:992px) {
    .container {
        width: 970px;
    }
}

@media (min-width:1200px) {
    .container {
        width: 1170px;
    }
}

.spikes {
  position: relative;
}
.spikes::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-image: linear-gradient(135deg, white 25%, transparent 25%),
    linear-gradient(225deg, white 25%, transparent 25%);
  background-size: 30px 30px;
}

.main-title {
    border: 2px solid black;
    padding: 10px 20px;
    font-size: 30px;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: var(--main-transition);
    margin: 0 auto 80px;
}
.main-title:hover {
    color: white;
    border: 2px solid white;
    transition-delay: .5s;
}

.main-title::before,
.main-title::after{
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--main-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.main-title::after {
   right: -30px;
}
.main-title::before {
   left: -30px;
}

.main-title:hover::before {
   z-index: -1;
   animation: left-move 0.5s linear forwards;
}

.main-title:hover::after {
    z-index: -1;
    animation: right-move 0.5s linear forwards;
 }
/* End global */


/* start header */
header {
    background-color: white;
    box-shadow: 0 0 10px #ddd;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

header .container .logo {
    color: var(--main-color);
    font-size: 26px;
    font-weight: bold;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width:767px) {
    header .container .logo {
        width: 100%;
        height: 40px;
    }
}

header .container .main-nav {
    display: flex;

}

@media (max-width:767px) {
    header .container nav {
        margin: auto;
    }
}

header .container .main-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    height: 72px;
    padding: 0 15px;
    position: relative;
    transition: var(--main-transition);
    overflow: hidden;

}
header .container .main-nav > li:hover .mega-menu {
    opacity: 1;
    z-index: 100;
    top: calc(100% + 1px);
}

@media (max-width:767px) {
    header .container .main-nav > li > a {
        padding: 10px;
        font-size: 12px;
        height: 40px;
    }
}
header .container .main-nav > li > a::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: -100%;
    background-color: var(--main-color);
    transition: var(--main-transition);
}

header .container .main-nav > li > a:hover{
    color: var(--main-color);
    background-color: #fafafa;
}


header .container .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: 100;
    display: flex;
    gap: 40px;
    top: calc(100% + 50px);
    transition: top var(--main-transition), opacity var(--main-transition);
    z-index: -1;
    opacity: 0;
}

@media (max-width:767px) {
    header .mega-menu {
        flex-direction: column;
        gap: 0;
        padding: 5px;
    }
}
header .mega-menu .image img {
    max-width: 100%;
} 

@media (max-width:991px) {
    header .mega-menu .image img {
        display: none;
    }
}

header .mega-menu .links {
    min-width: 250px;
    flex: 1;
}

header .mega-menu .links li {
    position: relative;
}

header .mega-menu .links li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

@media (max-width:767px) {
    header .mega-menu .links:first-of-type li:last-child {
        border-bottom: 1px solid var(--border-color);
    }
}

header .mega-menu .links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #fafafa;
    z-index: -1;
    transition: var(--main-transition);
}

header .mega-menu .links li:hover:before {
    width: 100%;
}

header .mega-menu .links li a {
    color: var(--main-color);
    padding: 15px;
    display: block;
    font-size: 18px;
    font-weight: bold;
}

header .mega-menu .links li a i {
    margin-right: 10px;
}
/* end header */



/* start landing */
.landing {
    position: relative;
}


.landing::before {
    content: '';
    position: absolute;
    left: 0;
    top: -40px;
    width: 100%;
    height: 100%;
    background-color: #ececec;
    z-index: -1;
    transform: skewY(-6deg);
    transform-origin: top left;
}

.landing .container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding-bottom: 120px;
    
}

.landing .text {
    flex: 1;
}

@media(max-width:991px) {
    .landing .text {
        text-align: center;
    }
}

.landing .text h1 {
    margin: 0;
    font-size: 40px;
    letter-spacing: -2px;
}

@media(max-width:991px) {
    .landing .text h1 {
        font-size: 28px;
    }
}


.landing .text p {
    font-size: 22px;
    line-height: 1.7;
    margin: 5px 0 0;
    color: #666;
    max-width: 500px;
}

@media(max-width:991px) {
    .landing .text p {
        font-size: 18px;
    }
}

@media(max-width:991px) {
    .landing .text p {
        margin: 10px auto;
    }
}

.landing .image img {
    width: 600px;
    animation-name: up-and-down;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    position: relative;
}

@media(max-width:991px) {
    .landing .image {
        display: none;
    }
}

.landing .go-down {
    color: var(--main-color);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--main-transition);
}

.landing .go-down i {
    animation: bouncing 1.5s infinite;
}


.landing .go-down:hover {
    color: var(--main-color-alt);
}
/* end landing */
/* start articals  */

.articles {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
}


.articles .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.articles .box {
    box-shadow: 0 2px 15px rgb(0 0 0 / 10%) ;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--main-transition), box-shadow var(--main-transition);
}


.articles .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

.articles .box img {
    max-width: 100%;
    width: 100%;
}

.articles .box .content {
    padding: 20px;
}

.articles .content h3 {
    margin: 0;
}

.articles .content p {
    margin: 10px 0 0 0;
    line-height: 1.5;
    color: var(--paragraph-color);
}

.articles .info {
    padding: 20px;
    border-top:  1px solid #e6e6e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.articles .info a {
    color: var(--main-color);
    font-weight: bold;
}

.articles .info i {
    color: var(--main-color);
}

.articles .box:hover .info i {
    animation: moving-arrow 0.6s linear infinite ;
}

/* end articals  */

/* start gallery */

.gallery {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-color: var(--section-background);
}


.gallery .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.gallery .container .box {
    padding: 15px;
    background-color: white;
    box-shadow: 0px 12px 20px 0px rgb(0 0 0 /13%), 0px 2px 4px 0px rgb(0 0 0 /12%);
}

.gallery .container .box .image {
    position: relative;
    overflow: hidden;
}

.gallery .container .box .image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
    width: 0;
    height: 0;
    opacity: 0;
    background-color: rgb( 255 255 255 / 20%);
    z-index: 2;
    
}

.gallery .container .box .image:hover::before {
    animation: flashing .7s;
}

.gallery .container .box .image:hover img {
    transform: rotate(5deg) scale(1.1);
}

.gallery .container .box .image img {
    max-width: 100%;
    transition: var(--main-transition);
}

/* end gallery */


/* start features */

.features {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-color: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px , 1fr));
    gap: 40px;
}

.features .container .box {
    text-align: center;
    border: 1px solid #ccc;
}

.features .container .img-holder {
    position: relative;
    overflow: hidden;
}

.features .container .img-holder::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 100%;
}


.features .container .img-holder::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    border-style: solid;
    border-width: 0px 0px 170px 500px;
    border-color: transparent transparent white transparent;
    transition: var(--main-transition);
}

.features .container .box:hover .img-holder::after {
    border-width: 170px 500px 170px 0px;
}


.features .container .img-holder img {
    max-width: 100%;
}

.features .container .box h2 {
    position: relative;
    font-size: 40px;
    width: fit-content;
    margin: auto;
}

.features .container .box h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 15px;
    height: 5px;
    width: calc(100% - 30px);
}

.features .container .box p {
    line-height: 2;
    font-size: 20px;
    margin: 30px 0;
    padding: 25px;
    color: #777;
}

.features .container .box a {
    display: block;
    border: 3px solid;
    text-decoration: none;
    width: fit-content;
    margin: 0 auto 30px;
    font-weight: bold;
    font-size: 22px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: var(--main-transition);
}

.features .quality .img-holder::before {
    background-color: rgb(244 61 52 / 60%);
}

.features .quality h2::after {
    background-color: #f44036;
}

.features .quality a { 
    color: #f44036;
    border-color:#f44036 ;
    background: linear-gradient(to right, #f44036 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.features .container .box:hover a {
    background-position: left bottom;
    color: white;
}


.features .time .img-holder::before {
    background-color:rgba(0, 150, 136, 0.6);
}

.features .time h2::after {
    background-color: rgba(0, 150, 136, 0.6);
}

.features .time a { 
    color: rgba(0, 150, 136, 0.6);
    border-color:rgba(0, 150, 136, 0.6); 
    background: linear-gradient(to right, rgba(0, 150, 136, 0.6) 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.features .passion .img-holder::before {
    background-color:rgba(3, 169, 244, 0.6);
}

.features .passion h2::after {
    background-color: rgba(3, 169, 244, 0.6);
}

.features .passion a { 
    color: rgba(3, 169, 244, 0.6);
    border-color:rgba(3, 169, 244, 0.6); 
    background: linear-gradient(to right, rgba(3, 169, 244, 0.6) 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

/* end features */

/* start testimonials */

.testimonials {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-color: var(--section-background);
}

.testimonials .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}


.testimonials .container .box {
    background-color: white;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
}
.testimonials .container .box h3 {
    margin: 0 0 10px;
    color: var(--main-color);
}

.testimonials .container .box .title {
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.testimonials .box img {
    position: absolute;
    border: 10px solid var(--section-background);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    right: -10px;
    top: -50px;
}

.testimonials .box p  {
    line-height: 1.5;
    color: #777;
    margin-top: 10px;
    margin-bottom: 0;
    
}

.testimonials .box .rate .filled {
    color: #ffc107;
}
/* end testimonials */

/* start team */

.team {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
}

.team .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.team .container .box {
    position: relative;
}

.team .container .box:hover::after {
    width: calc(100% - 60px);
}

.team .container .box::before,
.team .container .box::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 10px;
    transition: var(--main-transition);
}

.team .container .box::before {
    z-index: -2;
    width: calc(100% - 60px);
    background-color: #f3f3f3;
}

.team .container .box::after {
    z-index: -1;
    background-color: #e4e4e4;
    width: 0;
}

.team .box .data img {
    max-width: 100%;
    width: calc(100% - 60px);
    transition: var(--main-transition);
    border-radius: 10px;
    transition: var(--main-transition);
}

.team .container .box:hover .data img {
    filter:grayscale(100%) ;
}

.team .box .data {
    display: flex;
    align-items: center;
    padding-top: 60px;
}


.team .box .data .social {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.team .box .data .social a {
    width: 60px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.team .box .data .social a:hover i {
    color: var(--main-color);
}

.team .box .data .social i {
    color: #777;
    transition: var(--main-transition);
}
.team .box .info {
    padding-left: 80px;
}

.team .box .info h3 {
    margin-bottom: 0;
    color: var(--main-color);
    font-size: 22px;
    transition: var(--main-transition);
}

.team .box .info p {
    margin-top: 10px;
    margin-bottom: 25px;
}

.team .box:hover .info h3 {
    color: #777;
}

/* end team */

/* start services */

.services {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-color: var(--section-background);
}

.services .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.services .container .box {
    background-color: #ffffff;
    text-align: center;
    padding-top: 30px;
    box-shadow: 0 12px 20px  0 rgb(0 0 0 /13%), 0 2px 4px 0 rgb(0 0 0 /12%);
    counter-increment: services;
    transition: var(--main-transition);
    position: relative;
}

.services .container .box::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    transform: translate(-50%);
    height: 3px;
    background-color: var(--main-color);
    width: 0;
    transition: var(--main-transition);
}

.services .container .box:hover::before {
    width: 100%;
}

.services .container .box:hover {
    transform: translateY(-10px);
}

.services .container .box > i {
    color: #d5d5d5;
    margin: 40px auto 20px;
    display: block;
    text-align: center;
}

.services .container .box > h3 {
    color: var(--main-color);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 25px;
}

.services .container .box .info {
    padding: 15px;
    position: relative;
    background-color: #f9f9f9;
    text-align: right;

}

.services .container .box .info::before {
    content: '0' counter(services);
    position: absolute;
    left: 0;
    background-color: var(--main-color);
    color: white;
    top: 0;
    height: 100%;
    width: 100px;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    text-align: center;
}

.services .container .box .info::after {
    content: '';
    position: absolute;
    background-color: #d5d5d5;
    top: 0;
    left: 90px;
    width: 60px;
    height: calc(100% + 0.4px);
    transform: skewX(-30deg);

}

.services .container .box .info a {
    color: var(--main-color);
}

/* end services */

/* start skills */

.our-skills {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
}

.our-skills .container {
    display: flex;
    align-items: center;
}
@media (max-width:991px) {
    .our-skills .container img {
        display: none;
    }
}



.our-skills .container .skills {
    flex: 1;
}

.our-skills .skill {

}

.our-skills .skill h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.our-skills .skill span {
    font-size: 12px;
    border: 1px solid #ccc;
    padding: 3px 5px;
    border-radius: 4px;
    color: var(--main-color);
    position: relative;
}

.our-skills .skill span::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ccc transparent transparent;
}

.our-skills .skill .the-progress {
    height: 30px;
    background-color: #eee;
    position: relative;
}

.our-skills .skill .the-progress span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--main-color);
}

/* end skills */
/* start workspace */

.work-steps {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-color: var(--section-background);
}

.work-steps .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

@media (max-width:991px) {
    .work-steps .container {
        flex-direction: column;
    }

}

.work-steps .container .image {
    max-width: 100%;
    margin-right: 100px;
}

@media (max-width:991px) {
    .work-steps .container .image {
    margin: 0 0 50px;
}

}

.work-steps .container .info .box {
    background-color: #f5f5f5;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 2px solid white;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.work-steps .container .info .box::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ededed;
    width: 0;
    height: 0;
    transition: var(--main-transition);
    z-index: -1;
}

.work-steps .container .info .box:hover::before {
    width: 100%;
    height: 100%;
}



.work-steps .container .info .box img {
    width: 64px;
    margin-right: 30px;
}

.work-steps .container .info .box h3 {
    margin: 0;
    font-size: 22px;
}

.work-steps .container .info .box p {
    color: #777;
    line-height: 1.7;
    margin: 10px 0 0;
    font-size: 18px;
}
/* end workspace */
/* start events */

.events {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
}

.events .container {
    display: flex
;
    align-items: center;
    flex-wrap: wrap;
}

.events .container img {
    max-width: 450px;
}

@media (max-width:991px) {
    .events .container img {
        display: none;
    }
}

.events .info {
    flex: 1;
}

.events .time {
    display: flex;
    align-items: center;
    margin: 20px auto;
    gap: 10px;
    justify-content: center;
    width: fit-content;
    background-color: white;
}

.events .time .unit {
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    text-align: center;
    width: 75px;
    transition: var(--main-transition);
}

.events .time .unit span {
    display: block;
}

.events .time .unit:hover {
    border-color: var(--main-color);
}

.events .time .unit span:first-child {
    font-size: 35px;
    padding: 15px;
    color: var(--main-color);
    font-weight: bold;
}

.events .time .unit:hover span:last-child {
    border-color: var(--main-color);
}

.events .time .unit span:last-child {
    padding: 8px 10px;
    font-size: 12px;
    border-top: 1px solid #d4d4d4;
    transition: var(--main-transition);
}

.events .title {
    text-align: center;
    margin-top: 40px 0 0;
    font-size: 30px;
}

.events .description {
    text-align: center;
    line-height: 1.7;
    font-size: 16px;
    color: #777;
}
.events .subscribe {
    width: 100%;
    margin-top: 50px;
}

.events .subscribe form {
    width: 600px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: #f6f5f5;
    border-radius: 50px;
    display: flex;
    gap: 20px;
}
@media (max-width:767px) {
    .events .subscribe form {
        max-width: 100%;
        padding: 20px;
        flex-direction: column;
        border-radius: 0;
    }

}
.events .subscribe form input[type='email'] {
    padding: 20px;
    outline: none;
    border-radius: 50px;
    border: none;
    flex: 1;
    caret-color: var(--main-color);
}
@media (max-width:767px) {
    .events .subscribe form input[type='email'] {
        border-radius: 0;
    }
}

.events .subscribe form input[type='email']::placeholder {
    transition: opacity var(--main-transition);
}

.events .subscribe form input[type='email']:focus::placeholder {
    opacity: 0;
}
.events .subscribe form input[type='submit'] {
    color: white;
    background-color: var(--main-color);
    border-radius: 50px;
    padding: 20px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: var(--main-transition);
}

@media (max-width:767px) {
    .events .subscribe form input[type='submit'] {
        border-radius: 0;
    }
}

.events .subscribe form input[type='submit']:hover {
    filter: grayscale(80%);
}

.events .dots {
    background-image: url(../images/dots.png);
    height: 186px;
    width: 204px;
    background-repeat: no-repeat;
    position: absolute;
    z-index: -1;
   
}
@media (max-width:991px) {
    .events .dots {
        display: none;
    }
}
.events .dots-up {
    top: 200px;
    right: 0;
}
.events .dots-down {
    bottom: 200px;
    left: 0;
}
/* end events */

/* start pricing */

.pricing {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-color: var(--section-background);
}

.pricing .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px , 1fr));
    gap: 30px;
}

.pricing .box {
    position: relative;
    box-shadow: 0 12px 20px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 12%);
    transition: var(--main-transition);
    background: white;
    text-align: center;
    z-index: 1;
}

.pricing .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 50%;
    background-color: #f6f6f6;
    transition: var(--main-transition);
    z-index: -1;
}


.pricing .box::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 50%;
    background-color: #f6f6f6;
    transition: var(--main-transition);
    z-index: -1;
}

.pricing .box:hover::before,
.pricing .box:hover::after {
    width: 100%;
}
@media (min-width:1200px) {
    .pricing .box.popular {
        top: -20px;
    }
}

.pricing .box.popular .label {
    position: absolute;
    writing-mode: vertical-rl;
    background-color: var(--main-color);
    color: white;
    font-weight: bold;
    padding: 10px 10px 35px 10px;
    font-size: 18px;
    right: 20px;
    width: 40px;


}

@media (max-width:991px) {
    .pricing .box.popular {
        order: -1;
    }
}
.pricing .box.popular .label::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    border-style: solid;
    border-color: transparent transparent white transparent;
    border-width: 20px;
}

.pricing .box .title {
    font-weight: bold;
    margin: 30px 0;
    font-size: 25px;
    letter-spacing: -1px;
}

.pricing .box img {
    width: 80px;
    margin-bottom: 30px;
}

.pricing .box .price {
    margin-bottom: 20px;
}

.pricing .box .amount {
    display: block;
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--main-color);
}

.pricing .box .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 {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    margin-right: 10px;
    font-weight: 900;
    color: var(--main-color);
}

.pricing .box a {
    display: block;
    width: fit-content;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    margin: 30px auto 40px;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--main-transition);
}

.pricing .box a:hover {
    background-color: var(--main-color-alt);
    border-color: var(--main-color-alt);
    color: white;
}

.pricing .dots {
    background-image: url(../images/dots.png);
    height: 186px;
    width: 204px;
    background-repeat: no-repeat;
    position: absolute;
    
   
}

.pricing .dots-up {
    top: 200px;
    right: 0;
}
.pricing .dots-down {
    bottom: 200px;
    left: 0;
}
/* end pricing */

/* start videos */
.videos {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
}

.videos .holder {
    display: flex;
    justify-content: center;
    background-color: var(--section-background);
    border: 1px solid #ddd;
}
@media (max-width:991px) {
    .videos .holder {
        flex-direction: column;
    }
}

.videos .holder .list {
    min-width: 300px;
    background-color: white;
}

.videos .holder .list .name {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f4f4;
    font-weight: bold;
}


.videos .holder .list ul li {
    padding: 20px;
    border-top: 1px solid var(--section-background);
    cursor: pointer;
    transition: var(--main-transition);
}

.videos .holder .list ul li:hover {
    background-color: #fafafa;
    color: var(--main-color);
}

.videos .holder .list ul li span {
    display: block;
    margin-top:10px;
    color: #777;
}

.videos .holder .preview {
    background-color: #e2e2e2;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.videos .holder .preview img {
    max-width: 100%;
 }

.videos .holder .preview .info {
    padding: 20px;
    background-color: white;
    margin-top: 10px;
}

/* end videos */

/* start stats */

.stats {
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-bottom-padding);
    position: relative;
    background-image: url('../images/stats.jpg');
    background-size: cover;
    min-height: 300px;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 95%);
}

.stats h2 {
    font-weight: bold;
    font-size: 40px;
    width: fit-content;
    margin: 0 auto 50px;
    position: relative;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px , 1fr));
    gap: 30px;
    position: relative;
}

.stats .box {
    background-color: white;
    padding: 30px 15px;
    position: relative;
    text-align: center;
    opacity: .8;
    transition: var(--main-transition);

}
.stats .box:hover {
    opacity: 1;
}

.stats .box::before,
.stats .box::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--main-color);
    transition: calc(var(--main-transition) + .5s);
    height: 0;
}

.stats .box::before {
    left: 0;
    bottom:0 ;
}
.stats .box:hover::before {
    
    height: 100%;
}

.stats .box::after {
    right: 0;
    top:0 ;
}
.stats .box:hover::after {
    
    height: 100%;
}

.stats .box .number {
    display: block;
    font-size: 50px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}
.stats .box .text {
    color: var(--main-color);
    font-style: italic;
    font-size: 20px;
    font-weight: bold;
}
/* end stats */

/* start discount */

.discount {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}
@media (max-width:991px) {
    .discount {
        flex-direction: column;
        gap: 30px;
    }
}

.discount .content {
    text-align: center;
    padding: 0 20px;
}

.discount .content img {
    width: 300px;
    max-width: 100%;
}

.discount .content h2 {
    font-size: 40px;
    letter-spacing: -2px;
}

.discount .content p {
    line-height: 1.6;
    font-size: 18px;
    max-width: 500px;
}



.discount .image {
    background-image: url('../images/discount-background1.jpg');
    background-size: cover;
    color: white;
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: change-background 10s linear infinite;
}

.discount .image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgb(23 135 224 / 89%);
    z-index: -1;
}


.discount .form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 50%;
}

.discount .form .input {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    padding: 15px;
    border: none;
    outline: none;
    border-bottom: 1px solid #ccc;
    background-color: #f9f9f9;
    caret-color: var(--main-color);
}

.discount .form textarea.input {
    resize: none;
    height:200px;
}



.discount .form input[type='submit'] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--main-color);
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: var(--main-transition);

}

.discount .form input[type='submit']:hover {
    background-color: var(--main-color-alt);
}

/* end discount */

/* start footer */

.footer {
    padding: 70px 0 0;
    background-color: rgb(25, 25, 25);
   
}

@media (max-width:991px) {
    .footer {
        margin-top: 30px;
    }
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px , 1fr));
    gap: 40px;
}

@media (max-width:767px) {
    .footer .container {
        text-align: center;
    }
}


.footer .box h3 {
    color: white;
    font-size: 50px;
    margin: 0px 0px 20px;
}

.footer .box .social {
    display: flex;
}

@media (max-width:767px) {
    .footer .box .social {
        justify-content: center
    }
}

.footer .box .social li {
    margin-right: 10px;
}

.footer .box .social li a {
    background-color: rgb(49, 49, 49);
    color: rgb(185, 185, 185);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 20px;
    transition: var(--main-transition);
}

.footer .box .social .facebook:hover {
  background-color: #1877f2;
}
.footer .box .social .twitter:hover {
  background-color: #1da1f2;
}
.footer .box .social .youtube:hover {
  background-color: #ff0000;
}

.footer .box .text {
    line-height: 2;
    color: #b9b9b9 ;
}

.footer .box .links li {
    padding: 15px 0;
    transition: var(--main-transition);
}

.footer .box .links li:not(:last-child) {
    border-bottom: 1px solid #444;
}

.footer .box .links li:hover {
    padding-left: 10px;
    
}

.footer .box .links li:hover a {
    color: white;
}

.footer .box .links li a {
    color: #b9b9b9;
    transition: var(--main-transition);
}



.footer .box .links li a::before {
    content: '\F101';
    font-family: "Font Awesome 5 Free";
    margin-right: 10px;
    color: var(--main-color);
    font-weight: 900;
}

.footer .box .line {
    display: flex;
    align-items: center;
    color: #b9b9b9;
    margin-bottom: 30px;
}

@media (max-width:767px) {
    .footer .box .line {
        flex-direction: column;
    }
}
.footer .box .line i {
    font-size: 25px;
    color:  var(--main-color);
    margin-right: 10px;
}

@media (max-width:767px) {
    .footer .box .line i{
        margin-bottom: 15px;
    }
}

.footer .box .line .info {
   line-height: 1.7; 
   flex: 1;
}
.footer .box .line .info span {
    display: block;
}

.footer .footer-gallery img {
    width: 78px;
    border: 3px solid white;
    margin: 2px;
}

.footer .copyright {
    padding: 25px 0;
    text-align: center;
    color: white;
    margin: 50px 0 0;
    border-top: 1px solid #444;
}
/* end footer */



/* start animation */
@keyframes up-and-down {
    0%, 100% {
        top:0
    }

    50% {
        top:-50px
    }
}

@keyframes bouncing {
    0%, 10%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 60% {
       transform: translateY(-15px); 
    }
}
@keyframes left-move {
    50% {
        left: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        border-radius: 0;
        left: 0;
        width: 100%;
        height: 100%
    }
}

@keyframes right-move {
    50% {
        right: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        border-radius: 0;
        right: 0;
        width: 100%;
        height: 100%
    }
}
@keyframes moving-arrow {
    100% {
        transform: translateX(10px);
    }
    
}
@keyframes flashing {
    0% , 40% {
        opacity: 1;
        
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
    
}

@keyframes change-background {
    0%, 100% {
        background-image: url('../images/discount-background1.jpg');
    }
    
     50% {
        background-image: url('../images/discount-background2.jpg');
    }
}
/* end animation */