/* start variables */
:root {
    --main-color: #2196F3;
    --main-color-alt: #1787E0;
    --main-transition: 0.3s;
    --section-padding: 15px;
    --section-background: #ececec;
}

/* ens variables */
/* start component */
.special-heading {
    margin: 40px auto;
    width: fit-content;
    border: 1px solid #555;
    padding: 10px;
    font-size: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: 1s;
    transition-duration: 1s;
    z-index: 3;
}

    .special-heading:hover {
        color: white;
        border-color: white;
    }

        .special-heading:hover::after {
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 0;
            z-index: -1;
        }

        .special-heading:hover::before {
            right: 0;
            width: 100%;
            height: 100%;
            border-radius: 0;
            z-index: -1;
        }

    .special-heading::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--main-color);
        transition: .6s;
    }

    .special-heading::before {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--main-color);
        transition: .6s;
    }
/* end component */
/* strat global rules */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: "Cairo", sans-serif;
}

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    display: block;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}
/* Small */
@media (min-width: 768px) {
    .container, content {
        width: 750px;
    }
}

/* Medium */
@media (min-width: 992px) {
    .container, content {
        width: 970px;
    }
}
/* Large */
@media (min-width: 1200px) {
    .container, content {
        width: 1170px;
    }
}
/* end global rules */





/* start header */
.header {
    background-color: white;
    padding-top: 15px;
    padding-bottom: 15px;
    box-shadow: 0 0 10px #ddd;
    position: relative;
    width: 100%;
}

    .header .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        padding-bottom: 15px;
        text-align: center;
        gap: 30px;
        position: relative;
    }

@media(max-width:767px) {
    .header .container {
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        justify-content: center;
    }

        .header .container ul {
            margin: 0 auto;
        }

            .header .container ul a {
            }
}

@media(min-width:1200px) {
    .header .container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

.header .container .logo {
    display: block;
    color: var(--main-color);
    height: 48px;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 93%;
}

.header .container .main-nav {
    display: grid;
    text-align: left;
    grid-template-columns: 20% 20% 20% 30%;
    gap: 10px;
    max-width: 93%;
}

    .header .container .main-nav > li > a {
        display: block;
        color: black;
        transition-duration: var(--main-transition);
        overflow: hidden;
        padding: 10px;
        position: relative;
    }

        .header .container .main-nav > li > a:hover {
            background-color: #eee;
            color: var(--main-color);
        }

        .header .container .main-nav > li > a::after {
            position: absolute;
            content: '';
            top: 0;
            left: -100%;
            height: 3px;
            border-radius: 6px;
            background-color: var(--main-color);
            width: 100%;
            transition-duration: var(--main-transition);
        }

        .header .container .main-nav > li > a:hover::after {
            left: 0;
        }

    .header .container .main-nav > li:last-child:hover .mega-menue {
        opacity: 1;
        z-index: 100;
        top: calc(100% + 1px);
    }

.header .container .mega-menue {
    position: absolute;
    background-color: white;
    left: 0;
    width: 100%;
    padding: 30px;
    top: calc(100% + 50px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    z-index: -1;
    opacity: 0;
    transition: var(--main-transition);
}

    .header .container .mega-menue:hover {
        opacity: 1;
        z-index: 100;
    }

@media (max-width:850px) {
    .header .container .mega-menue {
        flex-direction: column;
        gap: 0;
    }

        .header .container .mega-menue ul:first-of-type li {
            border-bottom: 1px solid #e9e6e6;
        }
}

.header .container .mega-menue .image img {
    width: 300px;
}

@media (max-width:991px) {
    .header .container .mega-menue .image {
        display: none;
    }
}

.header .container .mega-menue ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

    .header .container .mega-menue ul > li:not(:last-child) {
        border-bottom: 1px solid #e9e6e6;
    }

    .header .container .mega-menue ul > li > a {
        padding: 15px 0;
        text-wrap: nowrap;
        letter-spacing: 2px;
        font-weight: bold;
        font-size: 18px;
        color: var(--main-color);
    }

@media (max-width:850px) {
    .header .container .mega-menue ul > li > a {
        padding: 8px 0;
    }
}

.header .container .mega-menue ul > li {
    position: relative;
    transition: var(--main-transition);
}

    .header .container .mega-menue ul > li::before {
        position: absolute;
        content: '';
        left: 0;
        top: 0;
        width: 0%;
        height: 100%;
        background-color: #eee;
        z-index: -1;
        transition: var(--main-transition);
    }

    .header .container .mega-menue ul > li:hover:before {
        width: 100%;
    }

    .header .container .mega-menue ul > li i {
        margin-right: 10px;
    }

/* end header */

/* *********************************** */
/* Logo styling */
.logo img {
    max-width: 130px;
    height: auto;
    padding: 5px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

    /* Hover effect for logo */
    .logo img:hover {
        transform: scale(1.2);
    }
/* *********************************** */
/* start landing  */
.landing {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    height: calc(100vh - 109px);
    position: relative;
}

@media (max-width:767px) {
    .landing {
        height: calc(100vh - 166.39px);
    }
}

@media (min-width:767px) and (max-width:991px) {
    .landing {
        height: calc(100vh - 186.39px);
    }
}

.landing::after {
    position: absolute;
    content: "";
    left: 0;
    top: -10px;
    width: 100%;
    height: 100%;
    background-color: var(--section-background);
    z-index: -1;
    transform: skewY(-6deg);
    transform-origin: left top;
}

@media (max-width:850px) {
    .landing::after {
        top: 8px;
    }
}

.landing .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
    align-content: center;
    height: 100%;
}

@media (max-width:850px) {

    .landing .container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.landing .container div:first-child {
    display: grid;
    align-content: center;
    justify-content: right;
}

.landing .container div:last-child {
    display: grid;
    align-content: center;
    justify-content: left;
}

@media (max-width:992px) {

    .landing .container div:first-child {
        justify-content: center;
    }

    .landing .container div:last-child {
        justify-content: center;
    }
}

.landing .container div h2 {
    text-transform: capitalize;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.landing .container div p {
    line-height: 1.6;
    font-size: 16px;
    color: #444;
    max-width: 400px;
}

.landing .container img {
    width: 400px;
    max-width: 100%;
    transition: var(--main-transition);
    animation-name: up-and-down;
    animation-duration: .6s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@media (max-width:850px) {
    .landing .container {
        text-align: center;
    }

        .landing .container img {
            width: 200px;
        }

        .landing .container div p {
            max-width: 300px;
            line-height: 1.4;
            font-size: 13px;
        }

        .landing .container div h2 {
            font-size: 20px;
        }
}

@keyframes up-and-down {

    to {
        transform: translateY(-35px);
    }
}

.landing .container .icon {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-name: bouncing;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

    .landing .container .icon i {
        color: var(--main-color);
    }

        .landing .container .icon i:hover {
            color: var(--main-color-alt);
        }

@keyframes bouncing {
    0%, 10%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40%, 60% {
        transform: translateY(-20px);
    }
}
/* end landing  */


/* start Article  */
.Article {
    padding: var(--section-padding) 0;
}


    .Article .container .images {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
        gap: 20px;
    }

        .Article .container .images div {
            box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
            border-radius: 6px;
            overflow: hidden;
            transition: all var(--main-transition);
        }

            .Article .container .images div:hover {
                transform: translateY(-10px);
                box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
            }

        .Article .container .images img {
            max-width: 100%;
            width: 270px;
            height: 250px;
        }

@media (max-width:850px) {
    .Article .container .images img {
        width: 100%;
    }
}

.Article .container .images h4 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
}

.Article .container .images p {
    line-height: 1.8;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9e6e6;
    margin-left: 10px;
    max-width: 95%;
}

.Article .container .images a {
    margin: 20px 0 20px 10px;
    color: var(--main-color);
    text-transform: capitalize;
    font-weight: bold;
    position: relative;
    font-size: 16px;
}

.Article .container .images svg {
    position: absolute;
    right: 20px;
}

.Article .container .images div:hover svg {
    animation-name: move-arrow;
    animation-duration: .6s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes move-arrow {
    100% {
        transform: translateX(10px);
    }
}
/* end Article  */





/* start choose-us  */

.choose-us {
    padding: var(--section-padding) 0;
}


    .choose-us .container .images {
        margin: 100px 0 50px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
        gap: 20px;
    }

        .choose-us .container .images div {
            box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
            border-radius: 6px;
            overflow-y: hidden;
            transition: all var(--main-transition);
            text-align: center;
            position: relative;
            transition: .3s;
            transform-origin: left;
        }

            .choose-us .container .images div:hover {
                transform: translateY(-10px);
                box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
            }

            .choose-us .container .images div::after {
                content: '';
                position: absolute;
                width: 100%;
                height: 2px;
                left: 0;
                top: 0;
                transform-origin: left;
                transition: .4s;
                background-color: #007bff;
                transform: translateX(-100%);
            }

            .choose-us .container .images div:hover::after {
                transform: translateX(0);
            }

        .choose-us .container .images img {
            max-width: 100%;
            width: 70px;
            margin-top: 25px;
        }

        .choose-us .container .images h4 {
            margin: 10px 0;
            font-size: 20px;
            font-weight: bold;
            margin-left: 10px;
        }

        .choose-us .container .images p {
            line-height: 1.8;
            padding-bottom: 10px;
            margin-left: 10px;
            max-width: 95%;
        }

/* end choose-us  */





/* start company-section  */

.company-section {
    padding: var(--section-padding) 0;
    background-color: var( --section-background);
}

    .company-section .holder {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 30px;
    }

        .company-section .holder img {
            width: 500px;
        }

.text-content {
    flex: 1;
    padding-left: 20px;
}

    .text-content h2 {
        color: #222;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .text-content p {
        color: #555;
        line-height: 2;
        font-size: 17px;
    }

.speech {
    font-style: italic;
    font-weight: bold;
    margin-top: 10px;
    color: #007bff;
    font-size: 20px;
}

.image-container img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .company-section {
        flex-direction: column;
        align-items: center;
        overflow:hidden
    }

    .text-content h2 {
        font-size:22px;
        text-align:center;
        overflow:hidden
    }

    .text-content {
        padding-left: 0;
        padding-bottom: 20px;
    }

     .image-container{
        width:fit-content !important;
        margin:auto !important;
    }
    .image-container img {
        max-width: 350px;
    }

    .text-content p {
        font-size: 16px;
        max-width: 350px;
        margin: auto;
        overflow: hidden
    }
}
/* end company-section  */

/* Footer */
/* Footer Styling */

/*  start footer  */
.footer {
    padding: var(--section-padding) 0 30px;
    background-color: #191919;
}

    .footer .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }

@media (max-width:767px) {
    .footer .container {
        text-align: center;
    }
}

.footer .container .text:first-child h2 {
    color: white;
    font-weight: 800;
    font-size: 2.5rem;
    text-transform: capitalize;
}

.footer .container .text:first-child .icons {
    display: flex;
    margin: 20px 0;
    gap: 5px;
}

@media (max-width:767px) {
    .footer .container .text:first-child .icons {
        justify-content: center;
    }
}

.footer .container .text:first-child .icons a:first-child svg {
    background-color: #1877f2;
    padding: 10px;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}


.footer .container .text:first-child .icons a:nth-child(2) svg {
    background-color: #ff0000;
    padding: 10px;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}

.footer .container .text:first-child .icons a:nth-child(3) svg {
    background-color: black;
    padding: 10px;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}


.footer .container .text:first-child p {
    line-height: 1.6;
    color: #b5b0b0;
}

.footer .container .text:nth-child(2) li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.705);
    transition: .3s;
}

    .footer .container .text:nth-child(2) li:hover {
        margin-left: 20px;
        background-color: #007bff;
    }

.footer .container .text:nth-child(2) svg {
    margin-right: 10px;
    color: var(--main-color);
}

.footer .container .text:nth-child(2) a {
    color: #b5b0b0;
}

.footer .container .text:nth-child(3) > div {
    display: grid;
    grid-template-columns: 20% 75%;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
    color: white;
    padding-left: 20px;
}

.footer .container .text:nth-child(3) svg {
    color: var(--main-color);
}

.footer .container .text:nth-child(3) p {
    color: #b5b0b0;
}

.footer .container .text:last-child {
    display: flex;
    flex-direction: column;
    align-content: center;
}

@media (max-width:991px) {
}

.footer .container .text:last-child img {
    max-width: 100%;
    border: 3px solid white;
}
