/* start variables */

:root {
    --main-color: #003366;
    --main-color-alt: #ff6600;
    --main-transition: 0.3s;
    --section-background: #ececec;
    --section-padding: 100px;
}

/* end variables */

/* start global rules */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
}

.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;
    }
}       

/* end global rules */

/* start components */

.main-heading{
    text-align: center;
}

.main-heading h2{
    font-weight: normal;
    font-size: 40px;
    position: relative;
    margin-bottom: 70px;
    text-transform: uppercase;
}

.main-heading h2::before{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: #333;
    bottom: -30px;
    width: 120px;
}

.main-heading h2::after{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #333;
    bottom: -38px;
    background-color: white;
}

.main-heading p{
    width: 550px;
    margin: 0 auto 100px;
    max-width: 100%;
    line-height: 2;
    color: #777;
}

.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;
}

/* end components */

/* start header */

.header{
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-box-shadow: 0 0 10px #ddd;
    -moz-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;
}

.header .logo{
    color: var(--main-color);
    font-size: 26px;
    font-weight: bold;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .header .logo{
        width: 100%;
        height: 50px;
    }
}

.header .logo img{
    width: 45px;
    padding-right: 5px;
}

.header .main-nav{
    display: flex;
}

@media (max-width: 767px) {
    .header .main-nav{
        margin: auto;
    }
}

.header .main-nav > li > a{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    position: relative;
    color: black;
    padding: 0 30px;
    transition: var(--main-transition);
    overflow: hidden;
}

@media (max-width: 767px) {
    .header .main-nav > li > a{
        padding: 10px;
        font-size: 14px;
        height: 40px;
    }
}

.header .main-nav > li > a::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--main-color);
    top: 0;
    left: -100%;
    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;
}

/* end header */

/* start landing */

.landing{
    position: relative;
    min-height: 100vh;
    /* display: flex; */
    /* flex-wrap: wrap; */
    padding-bottom: 50px;
}



.landing .container{
    /* min-height: calc(100vh - 72px); */
    display: flex;
    align-items: center;
    padding-bottom: 120px;
    width: 100%;
    height: 100%;
    padding-left: 0;
    padding-right: 0;
}

.landing .image{
    background-image: url("../assets/landing/shuffle1.jpeg");
    background-size: cover;
    color: white;
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: change-background 11s linear infinite;
    width: 100%;
    height: 95vh;
}

.landing .image::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 95vh;
    background-color: rgb(0 51 102 / 70%);
    z-index: -1;
}

.landing .content{
    text-align: center;
    padding: 0 20px;
}

.landing .content img{
    padding-top: 30px;
    padding-bottom: 0;
    width: 400px;
    max-width: 100%;
    border-radius: 50%;
}


.landing .content p{
    line-height: 1.6;
    font-size: 18px;
    max-width: 500px;
    padding-bottom: 30px;
}

.landing .content a{
    display: block;
    border: 3px solid transparent;
    width: fit-content;
    margin: 0 auto 30px;
    font-weight: bold;
    font-size: 22px;
    padding: 10px 30px;
    border-radius: 8px;
    transition: var(--main-transition);

}

.landing a{
    color: var(--main-color);
    border-color: var(--main-color);
    background: linear-gradient(to right, var(--main-color) 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.landing .land:hover a{
    background-position: left bottom;
    color: white;
}

/* end landing */

/* start explore */

.explore{
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    background-color: white;
}

.explore .explore-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.explore .box{
    text-align: center;
    border: 1px solid #ccc;
    cursor: pointer;
}

.explore .box .img-holder{
    position: relative;
    overflow: hidden;
}

.explore .box .img-holder::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.explore .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-transition);
}

.explore .box .img-holder img{
    max-width: 100%;
}

.explore .box:hover .img-holder::after{
    border-width: 170px 500px 170px 0;
}

.explore .box h2{
    position: relative;
    font-size: 40px;
    margin: auto;
    width: fit-content;
}

.explore .box h2::after{
    content: "";
    position: absolute;
    bottom: -20px;
    left: 15px;
    height: 5px;
    width: calc(100% - 30px);
}

.explore .box p{
    line-height: 2;
    font-size: 20px;
    margin: 30px 0;
    padding: 25px;
    color: #777;
}

.explore .box a{
    display: block;
    border: 3px solid transparent;
    width: fit-content;
    margin: 0 auto 30px;
    font-weight: bold;
    font-size: 22px;
    padding: 10px 30px;
    border-radius: 6px;
    transition: var(--main-transition);
}

.explore .img-holder::before{
    background-color: rgb(0 51 102 / 55%);
}

.explore h2::after{
    background-color: var(--main-color);
}

.explore a{
    color: var(--main-color);
    border-color: var(--main-color);
    background: linear-gradient(to right, var(--main-color) 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.explore .box:hover a{
    background-position: left bottom;
    color: white;
}

/* end explore */

/* start quote */

.mission{
    padding-top: 50px;
    padding-bottom: 50px;
    background-image: url("../assets/mission.jpeg");
    background-size: cover;
    position: relative;
    text-align: center;
    color: white;
}

.mission::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 51 102 / 70%);
}

.mission .container{
    position: relative;
}

.mission q{
    font-size: 22px;
    margin-bottom: 20px;
    display: block;
}

.mission span{
    color: rgba(0, 0, 0, 0.749);
    font-style: italic;
}

/* end quote */

/* start services */

.services{
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    position: relative;
}

@media (min-width: 768px) {
    .services .services-container{
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(450px, 1fr));
        grid-column-gap: 75px;
        grid-row-gap: 60px;
    }
}

.services .srv-box{
    display: flex;

}

.services .srv-box i{
    margin-right: 50px;
    font-size: 40px;
    color: var(--main-color);
}

@media (max-width: 767px) {
    .services .srv-box{
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }
    .services .srv-box i{
        margin: 0 0 30px;
    }
}

.services .srv-box h3{
    margin-bottom: 30px;
    color: var(--main-color);
}

.services .srv-box p{
    line-height: 2;
    color: #777;
}

.services .srv-box p .arrow{
    color: var(--main-color);
    margin-right: 10px;
    font-size: 15px;
}

/* end services */

/* start gallery */

.gallery{
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    position: relative;
    background-color: var(--section-background);
}

.gallery .shuffle{
    display: flex;
    justify-content: center;

}

.gallery .shuffle li{
    padding: 10px;
}

.gallery .shuffle li.active{
    background-color: var(--main-color);
    color: white;
}


.gallery .imgs-container{
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
}

.gallery .imgs-container .box{
    overflow: hidden;
    position: relative;
}

.gallery .imgs-container .box:hover .caption{
    bottom: 0;
}

.gallery .imgs-container .box:hover img{
    transform: rotate(3deg) scale(1.1);
}

@media (min-width: 768px) {
    .gallery .imgs-container .box{
        flex-basis: 50%;
    }
}

@media (min-width: 1199px) {
    .gallery .imgs-container .box{
        flex-basis: 25%;
    }
}

.gallery .imgs-container .box img{
    max-width: 100%;
    transition: 0.3s;
}

.gallery .btn{
    display: block;
    border: 3px solid transparent;
    width: fit-content;
    margin: 0 auto 30px;
    font-weight: bold;
    font-size: 22px;
    padding: 10px 30px;
    border-radius: 8px;
    transition: var(--main-transition);
    color: var(--main-color);
    border-color: var(--main-color);
    background: linear-gradient(to right, var(--main-color) 50%, white 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 0;
}

.gallery .btn:hover{
    background-position: left bottom;
    color: white;
}

.hidden{
    display: none;
}

/* end gallery */

/* start about */

.about{
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    position: relative;
}

@media (min-width: 768px) {
    .about .about-container{
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(450px, 1fr));
        grid-column-gap: 75px;
        grid-row-gap: 60px;
    }
}

.about .abt-box{
    display: flex;

}

.about .abt-box i{
    margin-right: 50px;
    font-size: 40px;
    color: var(--main-color);
}

@media (max-width: 767px) {
    .about .abt-box{
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }
    .about .abt-box i{
        margin: 0 0 30px;
    }
}

.about .abt-box h3{
    margin-bottom: 30px;
    color: var(--main-color);
}

.about .abt-box p{
    line-height: 2;
    color: #777;
}



/* end about */

/* start contact */

.contact{
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    position: relative;
    background-color: var(--section-background);
}

.contact .mail{
    /* padding-top: 30px; */
    padding-bottom: 60px;
    text-align: center;
}

.contact .mail .link{
    display: block;
    color: var(--main-color);
    font-size: 35px;
    font-weight: 800;
    text-decoration: none;
}

@media(max-width: 767px){
    .contact .mail .link{
        font-size: 20px;
    }
}

/* end contact */

/* start footer */

.footer{
    background-color: #191919;
    padding: 70px 0 0;
}

@media (max-width: 767px) {
    .footer{
        text-align: center;
    }
}

.footer .container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.footer .box .img{
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .box .img img{
    width: 300px;
}

.footer .box h3{
    color: white;
    font-size: 50px;
    margin: 0 0 20px;
}

.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{
    font-family: "Font Awesome 5 Free";
    content: "\F101";
    font-weight: 900;
    margin-right: 10px;
    color: var(--main-color);
}

.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-right: 0;
        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;
}

.footer .top-to-bot{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    cursor: pointer;
    width: 32px;
    height: 64px;
    display: flex;
    flex-direction: column;
    opacity: 0.5;
}

.footer .top-to-bot i{
    color: white;
}

.footer .top-btn,
.footer .down-btn{
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    background-color: #343a40;
    border-color: #343a40;
    border-radius: 50% !important;
}

/* end footer */

/* start animation */

@keyframes change-background {
    0%, 100%{
        background-image: url("../assets/landing/shuffle1.jpeg");
    }
    18%{
        background-image: url("../assets/landing/shuffle2.jpeg");
    }
    36%{
        background-image: url("../assets/landing/shuffle3.jpeg");
    }
    54%{
        background-image: url("../assets/landing/shuffle4.jpeg");
    }
    72%{
        background-image: url("../assets/landing/shuffle5.jpeg");
    }
    90%{
        background-image: url("../assets/landing/shuffle6.jpg");
    }
}

/* end animation */