/* Start Variables */
:root {
    --main-color: #2196F3;
    --main-color-alt: #1787E0;
    --secondary-color: #2c4755;
    --section-background: #f6f6f6;
    --section-background-alt:#ececec;
    --section-padding: 60px;
    --main-duration: 0.3s;
    --main-padding-top: 100px;
    --main-padding-bottom: 100px;
  }
/* End Variables */
/* apply a natural box layout model to all elements, but allowing components to change */
html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  *, *::before, *::after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
    margin: 0;
    padding: 0;
  }
/**** END ****/
/* Global rules*/
body {
	font-family: 'Cairo', sans-serif;
	/* background: black;
	min-height: 100vh; */
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}
/* a:link, a:visited {
    color: inherit;
} */
.container {
    margin: 0 auto;
    padding: 0 1rem;
    /* width: 92%; */
    /* background: rgb(145, 144, 144); */
}

/* Small screens */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }

}
/* Medium screens */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
    .special-heading {
        font-size: 100px;
    }
    .special-heading + p {
        margin-top: -30px;
    }
}
/* large screens */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}
.mainTitle {
    position: relative;
    text-transform: uppercase;
    width: fit-content;
    margin: 0 auto 80px;
    padding: 10px 20px;
    border: 2px solid black;
    font-size: 30px;
    z-index: 1;
    transition: var(--main-duration);
}
.mainTitle:hover {
    color: white;
    border: 2px solid white ;
    transition-delay: 0.25s;
}
.mainTitle::before,
.mainTitle::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--main-color);
    top: 50%;
    transform: translateY(-50%);
}
.mainTitle:hover::before {
    z-index: -1;
    animation: left-move 0.25s linear forwards;
}
.mainTitle::before {
    left: -30px;
}
.mainTitle::after {
    right: -30px;
}
.mainTitle:hover::after {
    z-index: -1;
    animation: right-move 0.25s linear forwards;
}
@keyframes left-move {
    50% {
        left: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        left: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}
@keyframes right-move {
    50% {
        right: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        right: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}
/**** END Global Rules ****/
/*************** Header *******************/
header {
    background-color: white;
    position: relative;
    -moz-box-shadow: 0 0 10px #ddd;
    -webkit-box-shadow: 0 0 10px #ddd;
    box-shadow: 0 0 10px #ddd;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}
.logo {
    color: var(--main-color);
    font-size: 26px;
    font-weight: bold;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 767px) {
    .logo {
        width: 100%;
        height: 50px;
    }
}
nav > ul {
    display: flex;
}
@media (max-width: 767px) {
    nav {
        margin: auto;
    }
}

nav > ul > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    position: relative;
    color: black;
    padding: 0 30px;
    font-size: 18px;
    transition: var(--main-duration);
    overflow: hidden;
}
nav > ul > li:hover .mega-menu {
    opacity: 1;
    z-index: 100;
    top: calc(100% + 1px);
}
@media (max-width: 767px) {
    nav > ul > li > a {
        height: 40px;
        padding: 10px;
        font-size: 14px;
    }
}
nav > ul > li > a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--main-color);
    top: 0;
    left: -100%;  
    transition: var(--main-duration);
}
nav > ul > li > a:hover {
    color: var(--main-color);
    background-color: #fafafa;
}
nav > ul > li > a:hover::before {
    left: 0;
}
.mega-menu {
    display: flex;
    gap: 40px;
    position: absolute;
    top: calc(100% + 2em);
    left: 0;
    width: 100%;
    padding: 30px;
    background-color: white;
    border-bottom: 3px solid var(--main-color);
    z-index: -1;
    opacity: 0;
    transition: top var(--main-duration), opacity var(--main-duration);
}
.mega-menu .image img {
    max-width: 100%;
}
@media (max-width: 991px) {
    .mega-menu .image img {
        display: none;
    }
    .mega-menu {
        flex-direction: column;
        gap: 0;
        padding: 5px;
    }
    ul.links:first-of-type li:last-child {
        border-bottom: 1px solid #e9e6e6;
    }
}
.mega-menu .links {
    min-width: 250px;
    flex: 1;
}
.mega-menu .links li {
    position: relative;    
}
.mega-menu .links li:not(:last-child) {
    border-bottom: 1px solid #e9e6e6;
}
.mega-menu .links li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #fafafa;
    z-index: -1;
    transition: var(--main-duration);
}
.mega-menu .links li:hover::before {
    width: 100%;
}
.mega-menu .links li a {
    color: var(--main-color);
    display: block;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}
.mega-menu .links li a i {
    margin-right: 10px;
}
/**** END HEADER ******************/
/************** 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;
}

.landing .text h1 {
    font-size: 40px;
    /* letter-spacing: -2px; */
    margin: 0;
}
.landing .text p {
    font-size: 23px;
    line-height: 1.7;
    color: #666;
    margin-top: 5px;
    max-width: 500px;
}
.landing .image img {
    position: relative;
    width: 600px;
    animation: up-and-down 5s linear infinite;
}
@media (max-width: 991px) {
    .landing .image {
        display: none;
    }
    .landing .text {
        text-align: center;
    }
    .landing .text h1{
        font-size: 28px;
    }
    .landing .text p {
        margin: 10px auto;
        font-size: 18px;
    }
}
.landing .go-down i {
    color: var(--main-color);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--main-duration);
    animation: bouncing 1.5s infinite;
}
.landing .go-down i:hover {
    color: var(--main-color-alt);
}
@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);}
}
/**** END ****/
/************** Articles ***************/
.articles {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
}
.articles .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}
.articles .box {
    box-shadow: 0 20px 15px rgb(0 0 0 / 10%);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--main-duration), box-shadow var(--main-duration);
}
.articles .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}
.articles .box img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}
.articles .box .content {
    padding: 20px;
}
.articles .box .content h3 {
    margin: 0;
}
.articles .box .content p {
    margin: 10px 0 0;
    line-height: 1.5;
    color: #777;
}
.articles .box .info {
    padding: 20px;
    border-top: 1px solid #e6e6e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.articles .box .info a {
    color: var(--main-color);
    font-weight: bold;
}
.articles .box .info i {
    color: var(--main-color);
}
.articles .box:hover .info i {
    animation: moving-arrow 0.6s linear infinite;
}

@keyframes moving-arrow {
    100% {
        transform: translateX(10px);
    }
}
/************** End rticles ***************/
/************** Gallery *****************/
.gallery {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background-alt);
}
.gallery .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}
.gallery .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 .image {
    position: relative;
    overflow: hidden;
}
.gallery .image:hover::before {
    animation: flashing 0.7s;
}
.gallery .image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255 255 255 / 20%);
    height: 0px;
    width: 0px;
    opacity: 0;
    z-index: 2;
}
@keyframes flashing {
    0%, 40% {opacity: 1;}
    100% {
        opacity: 0;
        width: 200%;
        height: 200%;
    }
}
.gallery .image img {
    max-width: 100%;
    transition: var(--main-duration);
}
.gallery .image:hover img {
    transform: rotate(5deg) scale(1.1);

}
/**** END Gallery ****/
/******* Features **********/
.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;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.features .box .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-duration);
}
.features .box:hover .img-holder::after {
    border-width: 170px 500px 170px 0px;
    border-color: transparent transparent white transparent;
}
.features .box img {
    max-width: 100%;
}
.features .box h2 {
    position: relative;
    font-size: 40px;
    margin: auto;
    width: fit-content;
}
.features .box h2::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 15px;
    height: 5px;
    width: calc(100% - 30px);
}
.features .box p {
    font-size: 20px;
    line-height: 2;
    margin: 30px 0;
    padding: 25px;
    color: #777;
}
.features .box a {
    display: block;
    margin: 0 auto 30px;
    padding: 10px 30px;
    width: fit-content;
    font-size: 22px;
    font-weight: bold;
    border: 3px solid transparent;
    border-radius: 6px;
    transition: var(--main-duration);
}
.features .quality .img-holder::before {
    background-color: rgb(244 64 54 / 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 .time .img-holder::before {
    background-color: rgb(0 150 136 / 60%);
}
.features .time h2::after {
    background-color: #f44036;
}
.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 .passion .img-holder::before {
    background-color: rgb(3 169 244 / 60%);
}
.features .passion h2::after {
    background-color: #03a9f4;
}
.features .passion a {
    color: #03a9f4;
    border-color: #03a9f4;
    background: linear-gradient(to right, #03a9f4 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}
.features .box:hover a {
    background-position: left bottom;
    color: white;
}
/**** END Features ******/
/******** testimonials *********/
.testimonials {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background-alt);
}
.testimonials .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}
.testimonials .box {
    position: relative;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
    border-radius: 6px;
    margin-bottom: 20px;
}
.testimonials .box img {
    position: absolute;
    right: -10px;
    top: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid var(--section-background-alt);
}
.testimonials .box h3 {
    margin: 0 0 10px;
    color: var(--main-color);
}
.testimonials .box .title {
    color: #777;
    margin-bottom: 10px;
    display: block;
}
.testimonials .box .rate .filled {
    color: #ffc107;
}
.testimonials .box p {
    line-height: 1.5;
    color: #666;
    margin: 10px 0 0;
}
/**** END testimonials ****/
/******** Teams ************/
section.team {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: white;
}
section.team .container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
section.team .box-team {
    position: relative;
}
section.team .container .box-team::before,
section.team .container .box-team::after {
    content: "";
    background-color: #f3f3f3;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 10px;
    transition: var(--main-transition);
}
section.team .container .box-team::before {
    width: calc(100% - 60px);
    z-index: -2;
}
section.team .container .box-team::after {
    z-index: -1;
    background-color: #e4e4e4;
    width: 0;
}

section.team .box-team .data {
    display: flex;
    align-items: center;
    padding-top: 60px;
}
section.team .box-team .data img {
    width: calc(100% - 60px);
    transition: var(--main-transition);
    border-radius: 10px;
}
section.team .social {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
section.team .box-team .info-team {
    /* background-color: transparent; */
}
/**** END Teams****/
/**** END ****/
/**** END ****/
/**** END ****/
/**** END ****/
/**** END ****/
/**** END ****/