/* Start Global Settings */

:root {
    --primary-color: #104979;
    --secondary-color: #ffb039;
    --third-color: #03989e;
    --fourth-color: #0b2a49;
    --white: #ffffff;
    --black: #000000;
    --arabic-font: "Tajawal", sans-serif;
    --text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    --box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 25px;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 700;
    --font-extrabold: 800;
}

* {
    box-sizing: border-box;
}

html {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

*,
body {
    padding: 0;
    margin: 0;
    position: relative;
}

body {
    font-family: var(--arabic-font);
    font-style: normal;
    direction: rtl;
    overflow-x: hidden;
    background-color: var(--white);
}

body::-webkit-scrollbar,
.mainbg::-webkit-scrollbar {
    background-color: var(--white);
    width: 10px;
}

body::-webkit-scrollbar-thumb,
.mainbg::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

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

ul li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

p {
    margin-bottom: unset;
}

.row {
    margin: 0;
    width: 100%;
}

.solid-btn,
.outline-btn {
    padding: 10px;
    border-radius: var(--radius-md);
    -webkit-border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -ms-border-radius: var(--radius-md);
    -o-border-radius: var(--radius-md);
    box-shadow: var(--box-shadow);
    transition: background-color 0.5s, color 0.5s;
    -webkit-transition: background-color 0.5s, color 0.5s;
    -moz-transition: background-color 0.5s, color 0.5s;
    -ms-transition: background-color 0.5s, color 0.5s;
    -o-transition: background-color 0.5s, color 0.5s;

    &:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }
}

.solid-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.sub-heading {
    position: relative;
    padding-inline-start: 20px;

    &::before {
        content: "";
        position: absolute;
        width: 11px;
        height: 100%;
        border-radius: 10px;
        background-color: var(--secondary-color);
        top: 5px;
        right: 5px;
        z-index: -1;
        transition: all 0.5s;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -ms-transition: all 0.5s;
        -o-transition: all 0.5s;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
    }
}

.sub-heading:hover::before {
    transform: skewX(10deg);
    -webkit-transform: skewX(10deg);
    -moz-transform: skewX(10deg);
    -ms-transform: skewX(10deg);
    -o-transform: skewX(10deg);
    width: 100%;
}

/* End Global Settings */

/* Start Header Settings */
header {
    height: 70px;
    margin-top: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: transparent;
}

.header__logo img {
    height: 60px;
    object-fit: cover;
}

.navbar-nav {
    gap: 12px;
}

header .nav-item > .nav-link {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    font-size: 13px;

    &.active {
        font-weight: var(--font-bold);
        color: var(--fourth-color);
    }
}

.header__button {
    background-color: var(--secondary-color);
    font-size: 13px;
    font-weight: var(--font-bold);
    width: 146px;
    color: var(--primary-color);

    &:hover {
        background-color: var(--third-color);
    }
}

.fa-bars {
    color: var(--secondary-color);
}

.navbar-toggler {
    color: var(--primary-color);

    &:focus {
        box-shadow: none !important;
    }
}

@media (max-width: 390px) {
    .header__button {
        max-width: 110px;
        font-size: 11px;
        font-weight: var(--font-medium);
    }
}

@media (max-width: 576px) {
    .navbar-collapse {
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 100%;
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 10px;
        position: absolute;
        top: 100%;
        right: 0;
    }

    header .nav-item > .nav-link {
        color: var(--primary-color) !important;

        &.active {
            color: var(--secondary-color) !important;
        }
    }

    header {
        height: 70px;
    }

    .header__button {
        width: 100%;
        height: 36px;
        font-size: 12px;
    }

    .navbar-toggler {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        gap: 5px;
    }

    header .nav-item > .nav-link {
        font-size: 10px;
        padding: 5px 7px;
    }

    .header__button {
        width: 100px;
        height: 36px;
        font-size: 11px;
        margin: 10px 0;
    }
}

/* End Header Settings */

/* Start Hero Settings */

#Hero {
    min-height: 100dvh;
    background: url("../../images/hero.jpg") no-repeat center center;
    background-size: cover;
}

.hero__content {
    h1 {
        font-size: 45px;
        font-weight: var(--font-bold);
        line-height: 65px;
        color: var(--primary-color);

        span {
            color: var(--primary-color);
            position: relative;
            z-index: 2;
            width: fit-content;

            &::before {
                position: absolute;
                content: "";
                background-color: var(--secondary-color);
                top: 0;
                left: -15px;
                transform: skewX(10deg);
                -webkit-transform: skewX(10deg);
                -moz-transform: skewX(10deg);
                -ms-transform: skewX(10deg);
                -o-transform: skewX(10deg);
                border-radius: 20px;
                z-index: -1;
                width: 285px;
                height: 65px;
                -webkit-border-radius: 20px;
                -moz-border-radius: 20px;
                -ms-border-radius: 20px;
                -o-border-radius: 20px;
            }
        }
    }

    p {
        margin-top: 10px;
        width: 380px;
        font-size: 18px;
        font-weight: var(--font-light);
    }

    .hero__content_buttons {
        gap: 10px;
        padding: 0;

        button {
            margin: 0;
            width: 50%;
            height: 48px;
            font-size: 16px;
            font-weight: var(--font-medium);

            &:first-of-type {
                background-color: var(--primary-color);

                &:hover {
                    background-color: var(--fourth-color);
                }
            }
        }
    }
}

@media (max-width: 992px) {
    .hero__content {
        h1 {
            font-size: 40px;
            line-height: 55px;

            span {
                &::before {
                    width: 260px;
                }
            }
        }

        p {
            font-size: 15px;
            width: 300px;
        }

        .hero__content_buttons button {
            width: 50%;
            height: 44px;
            font-size: 14px;
            font-weight: var(--font-medium);
        }
    }
}

@media (max-width: 768px) {
    #Hero {
        overflow: hidden;
        background-position: 40% center;
    }

    .hero__content {
        margin-bottom: 20px;
        padding-top: 40px;

        h1 {
            font-size: 35px;
            font-weight: var(--font-bold);
            line-height: 45px;
            color: var(--primary-color);
            position: relative;

            span {
                &::before {
                    width: 230px;
                    height: 50px;
                }
            }
        }

        p {
            margin-top: 30px;
            width: 380px;
            font-size: 13px;
            font-weight: var(--font-light);
        }

        .hero__content_buttons {
            gap: 10px;

            button {
                margin: 0;
                width: 50%;
                height: 45px;
                font-size: 14px;
                font-weight: var(--font-medium);
            }
        }
    }
}

@media (max-width: 442px) {
    #Hero {
        background-position: center center;
    }

    .hero__content {
        margin-bottom: 20px;
        padding-top: 40px;

        h1 {
            font-size: 30px;

            span {
                &::before {
                    width: 198px;
                }
            }
        }

        p {
            margin-top: 30px;
            width: 100%;
            font-size: 13px;
            font-weight: var(--font-light);
        }

        .hero__content_buttons {
            gap: 10px;

            button {
                margin: 0;
                width: 50%;
                height: 45px;
                font-size: 14px;
                font-weight: var(--font-medium);
            }
        }
    }
}

@media (max-width: 291px) {
    .hero__content {
        h1 {
            font-size: 25px;

            span {
                &::before {
                    width: 168px;
                }
            }
        }

        .hero__content_buttons {
            button {
                margin: 0;
                width: 50%;
                height: 45px;
                font-size: 12px;
                font-weight: var(--font-medium);
            }
        }
    }
}

/* End Hero Settings */

/* Start About Section */

#About {
    min-height: 100vh;
    background-color: var(--white);
}

.about__image {
    max-width: 100%;
    overflow: hidden;

    img {
        width: 100%;
        height: 550px;
        mask: url("../../images/mask1.svg");
        -webkit-mask: url("../../images/mask1.svg");
        mask-size: cover;
        mask-size: 100%;
        -webkit-mask-size: 100%;

        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;

        mask-position: center;
        -webkit-mask-position: center;
    }
}

.about__heading {
    font-size: 35px;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: 20px;
    z-index: 1;
}

.about__description {
    font-size: 20px;
    font-weight: var(--font-medium);
    opacity: 0.8;
    color: var(--primary-color);
    width: 90%;
}

.about__list {
    li {
        font-size: 20px;
        font-weight: var(--font-bold);
        color: var(--secondary-color);

        span {
            width: 30px;
            aspect-ratio: 1/1;
            background-color: var(--fourth-color);
            border-radius: 50%;
            -webkit-border-radius: ;
            -moz-border-radius: ;
            -ms-border-radius: ;
            -o-border-radius: ;
            display: inline-flex;
            align-items: center;
            justify-content: center;

            svg {
                color: var(--white);
                font-size: 15px;
            }
        }

        p {
            font-weight: var(--font-regular);
            opacity: 0.8;
            color: var(--fourth-color);
            margin-top: 15px;
        }
    }
}

@media (max-width: 991.5px) {
    .about__content {
        width: 100%;
        margin-bottom: 20px;
    }

    .about__heading {
        font-size: 30px;
    }

    .about__description {
        font-size: 20px;
        width: 100%;
    }

    .about__list {
        li {
            font-size: 20px;

            p {
                margin-top: 10px;
            }
        }
    }
}

@media (max-width: 540px) {
    .about__image {
        img {
            width: 100%;
            height: 300px;
        }
    }

    .about__heading {
        font-size: 20px;
    }

    .about__description {
        font-size: 18px;
    }

    .about__list {
        li {
            font-size: 18px;
        }
    }
}

/* End About Section  */

/* Start Projects Section */

#Projects {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        transparent 0%,
        #35679136 50%,
        #104979 99%
    );
    z-index: 1;
}

.projects__heading {
    color: var(--primary-color);
    font-size: 40px;
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    width: fit-content;
}

.projects__description {
    font-size: 24px;
    color: var(--primary-color);
}

.project__card {
    border-radius: 25px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.project__card:hover {
    transform: translateY(-5px);
}

.project__card__img__container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project__card__img__container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project__card__location__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project__card__location__badge svg {
    color: var(--secondary-color) !important;
}

.project__card__content {
    padding: 20px;
}

.project__card__title {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project__card__subtitle {
    color: var(--primary-color);
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.info-btn {
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 20px;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    transition: background-color 0.3s;
    -webkit-border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -ms-border-radius: var(--radius-md);
    -o-border-radius: var(--radius-md);
}

.info-btn:hover {
    background-color: #fe9900;
}

@media (max-width: 768px) {
    .projects__heading {
        font-size: 30px;
    }

    .projects__description {
        font-size: 16px;
    }
}

@media (max-width: 511px) {
    .projects__heading {
        font-size: 25px;
    }
}

@media (max-width: 435px) {
    .projects__heading {
        font-size: 25px;
        /* margin-block: 10px; */
    }

    .projects__description {
        font-size: 13px;
    }

    .project__card__title {
        font-size: 1rem;
    }

    .info-btn {
        font-size: 0.8rem;
    }
}

@media (max-width: 330px) {
    .projects__heading {
        font-size: 20px;
    }
}

/* End Projects Section */

/* Start Services Section */
#Services {
    min-height: 100dvh;
    background: linear-gradient(
        0deg,
        transparent 0%,
        #35679136 50%,
        #104979 90%
    );
    z-index: 2;
}

.services__heading {
    color: var(--white);
    font-weight: var(--font-bold);
    font-size: 35px;
    width: fit-content;
}

.services__card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 400px;
    transform: perspective(400px) rotateX(-5deg) rotateY(5deg);
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow);
    -webkit-border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -ms-border-radius: var(--radius-md);
    -o-border-radius: var(--radius-md);
    margin-bottom: 80px;

    &:hover {
        transform: perspective(450px) rotateX(-5deg) rotateY(5deg);
        -webkit-transform: perspective(450px) rotateX(-5deg) rotateY(5deg);
        -moz-transform: perspective(450px) rotateX(-5deg) rotateY(5deg);
        -ms-transform: perspective(450px) rotateX(-5deg) rotateY(5deg);
        -o-transform: perspective(450px) rotateX(-5deg) rotateY(5deg);
    }
}

.services__card__img__container {
    position: relative;
    height: 200px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    width: 90%;
    top: 20px;
    left: -50%;
    transform: translateX(50%);
    -webkit-border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -ms-border-radius: var(--radius-md);
    -o-border-radius: var(--radius-md);
}

.services__card__img__container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services__card__content {
    padding: 25px;
    text-align: right;
}

.services__card__title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.services__card__subtitle {
    color: var(--primary-color);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 5px;
}

.more-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.5s;
    -webkit-transition: color 0.5s;
    -moz-transition: color 0.5s;
    -ms-transition: color 0.5s;
    -o-transition: color 0.5s;
}

.more-link:hover {
    color: var(--fourth-color);
    opacity: 0.8;
}

/* End Services Section */

/* Start News Section */
#News {
    min-height: 100vh;
    background: linear-gradient(
        0deg,
        transparent 0%,
        #ffb03952 20%,
        #ffb03958 50%,
        #ffb03952 80%,
        transparent 100%
    );
}

.news__description {
    color: var(--primary-color);
    width: 60%;

    @media (max-width: 991px) {
        width: 100%;
        font-size: 16px;
    }
}

.news__card__wrapper {
    margin-bottom: 20px;
}

.news__card {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    -webkit-border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -ms-border-radius: var(--radius-md);
    -o-border-radius: var(--radius-md);
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border-right: 4px solid var(--secondary-color);

    .news__image {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }
}

.news__title {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: var(--font-bold);
}

.news__card__bottom {
    position: relative;

    .news__description {
        color: var(--primary-color);
        font-size: 14px;
        font-weight: var(--font-light);
        width: 100%;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news__more {
        color: var(--secondary-color);
        font-size: 14px;
        font-weight: var(--font-regular);
        background-color: transparent;
        border: none;
        cursor: pointer;
        margin-top: 20px;
        position: absolute;
        bottom: -40px;
        left: 15px;

        svg {
            transform: rotate(-45deg);
            -webkit-transform: rotate(-45deg);
            -moz-transform: rotate(-45deg);
            -ms-transform: rotate(-45deg);
            -o-transform: rotate(-45deg);
            font-size: 14px;
        }
    }
}

@media (max-width: 343px) {
    .news__title {
        font-size: 14px;
    }
}

/* End News Section */

/* Start Banner Section */
#Banner {
    min-height: 450px;
    background: linear-gradient(
            180deg,
            var(--primary-color) 0%,
            var(--fourth-color) 100%
        ),
        url("../../images/banner.jpg");
    background-blend-mode: overlay;
    background-position: 100% center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner__content {
    position: relative;

    p {
        color: var(--white);
        font-size: 50px;
        font-weight: var(--font-extrabold);
        text-shadow: var(--text-shadow);
        z-index: 2;
        padding-inline-start: 0;

        &::before {
            width: 100%;
            right: 0px;
        }
    }
}

.banner__button {
    background-color: var(--white);
    color: var(--primary-color);
    padding-inline: 15px;
    font-weight: var(--font-medium);

    &:hover {
        background-color: var(--secondary-color);
        color: var(--white);
    }
}

@media (max-width: 450px) {
    #Banner {
        min-height: 300px;
    }

    .banner__content {
        p {
            font-size: 30px;
        }

        &::after {
            right: unset;
            left: 50%;
            transform: translateX(-50%);
            -webkit-transform: translateX(-50%);
            -moz-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
            -o-transform: translateX(-50%);
        }
    }
}

@media (max-width: 768px) {
    .banner__content {
        p {
            font-size: 40px;
        }
    }
}

@media (max-width: 500px) {
    .banner__content {
        p {
            font-size: 30px;
        }
    }
}

@media (max-width: 395px) {
    .banner__content {
        p {
            font-size: 20px;
        }
    }
}

/* End Banner Section */

/* Start Footer Section */

#Footer {
    background-color: var(--fourth-color);

    .footer__logo {
        filter: brightness(100);
        -webkit-filter: brightness(100);
        -moz-filter: brightness(1);
        -ms-filter: brightness(1);
        -o-filter: brightness(1);
    }
}

#Footer h6 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: var(--font-medium);
}

.links p,
.footer__subscription p {
    margin-block: 5px;
    font-size: 14px;
}

.links a {
    color: var(--white);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    font-weight: var(--font-regular);
    font-size: 14px;
}

.links a:hover,
.footer-links:hover {
    color: var(--secondary-color) !important;
    padding-left: 10px;
}

.footerBottom {
    color: var(--white);
    font-size: 11px;
}

.footerBottom span {
    color: var(--secondary-color);
}

.footer__subscription__form {
    border-radius: var(--radius-md);
    -webkit-border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -ms-border-radius: var(--radius-md);
    -o-border-radius: var(--radius-md);
    background-color: var(--white);
    font-size: 15px;
    position: relative;
    max-width: 300px;
    width: 100%;
    margin-inline: auto;

    input {
        background-color: transparent;
        padding: 10px 15px;
        border: none;
        caret-color: var(--primary-color);
        color: var(--primary-color);
        font-size: 13px;

        width: 100%;

        &::placeholder {
            color: #8a8a8a;
        }

        &:focus,
        &:focus-visible,
        &:active {
            outline: none;
        }
    }

    button {
        position: absolute;
        background-color: var(--primary-color);
        color: var(--white);
        width: 80px;
        height: 85%;
        border: none;
        border-radius: var(--radius-md);
        -webkit-border-radius: var(--radius-md);
        -moz-border-radius: var(--radius-md);
        -ms-border-radius: var(--radius-md);
        -o-border-radius: var(--radius-md);
        top: 50%;
        transform: translateY(-50%);
        left: 3px;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
    }
}

/* End Footer Section */
