@import url(https://fonts.googleapis.com/css2?family=Tajawal:wght@200&display=swap);

.d-flex {
    display: flex
}

.align-items-center {
    align-items: center
}

.justify-content-center {
    justify-content: center
}

.justify-content-space-between {
    justify-content: space-between;
}

.flex-direction-column {
    flex-direction: column;
}

.d-none {
    display: none
}

.d-block {
    display: block
}

.title {
    width: 100%;
    font-size: 2.5rem;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 30px
}

.title-line {
    width: 50px;
    height: 2px;
    background-color: var(--main-color);
    margin: auto
}

.section {
    padding-top: 35px;
    padding-bottom: 35px;
    flex-flow: wrap
}

.bg-section {
    background-color: #faf7f7
}

.sm-title {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: .9rem
}

video {
    -webkit-mask-image: -webkit-radial-gradient(white, #000);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden
}

:root {
    --main-font: 'Tajawal', sans-serif;
    --main-color: #143668;
    --text-color: #4e4e4e
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-weight: 700;
    font-family: var(--main-font)
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 10000;
    background-color: #fff;
    padding: 28px 7%;
    transition: all .5s ease
}

.logo img {
    margin: 0 1.5px;
    margin-bottom: 12px;
    width: 60px
}

.navbar a {
    color: #000;
    font-size: 1.2rem;
    padding: 5px 0;
    margin: 0 30px;
    transition: all .5s ease
}

.navbar a:hover {
    color: var(--main-color)
}

.navbar a.active {
    color: var(--main-color)
}

.language span {
    margin-right: 25px;
    margin-left: 10px;
    font-size: 1.1rem;
    transition: all .5s ease;
    cursor: pointer
}

.language span img {
    margin: 0 3.5px
}

.language span:hover {
    color: var(--main-color)
}

#menu-icon {
    font-size: 35px;
    cursor: pointer;
    z-index: 10001;
    display: none
}

section {
    padding: 0 12%
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    gap: 30px;
    overflow-x: hidden
}

.home-text {
    width: 50%
}

.home-text h1 {
    color: var(--main-color);
    font-size: 2.5rem;
    margin-bottom: 20px
}

.home-text p {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 20px
}

.home-text a {
    color: #fff;
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 20px;
    padding: 20px 65px;
    background-color: var(--main-color);
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px
}

.home-video video {
    width: 500px;
    height: auto
}

.about-text {
    width: 55%
}

.about-text h2 {
    color: var(--main-color);
    margin-bottom: 20px;
    font-size: 2rem
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2rem
}

.about-text a {
    color: #fff;
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: var(--main-color);
    border-radius: 10px
}

.about-img img {
    width: 420px
}

.services-item {
    width: 31%;
    margin: 10px;
    border: solid 1px var(--main-color);
    height: 350px;
    padding: 20px;
    padding-top: 25px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: all .5s ease
}

.services-item:hover {
    background-color: var(--main-color);
    color: #fff
}

.services-item:hover .services-icon {
    color: #fff
}

.services-item i {
    color: var(--main-color);
    font-size: 3rem;
    transition: all .5s ease
}

.services-item h2 {
    margin: 20px 0
}

.services-item p {
    line-height: 1.5rem;
    font-size: 1.1rem
}

.portfolio-item {
    width: 31%;
    margin: 10px;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19);
    border-radius: 15px;
    padding-bottom: .7rem;
    transition: .4s
}

.portfolio-item img {
    width: 100%;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px
}

.portfolio-item-text {
    margin: 5px 15px
}

.portfolio-item-text p {
    color: var(--main-color)
}

.portfolio-item-text i {
    font-size: 1.3rem;
    color: var(--text-color);
    cursor: pointer
}

.portfolio-item-text h2 {
    color: var(--text-color);
    margin-top: 7px
}

.portfolio-item-text a {
    color: var(--main-color)
}

.portfolio-item:hover {
    margin-top: -10px
}


.pricing-item {
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 22%;
    margin: 6px 10px;
    padding: 1.5rem 0.8rem;
    border-bottom-right-radius: 30px;
    border-top-left-radius: 30px;
    height: 35rem;
}

.pricing-item-title {
    text-align: center;
    margin-bottom: 1.8rem;
}

.pricing-item-title p {
    color: var(--main-color);
    font-size: 14px;
    margin-bottom: 0.2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.pricing-item-title h3 {
    font-weight: 500;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.pricing-item-title h3:last-child {
    text-decoration-line: line-through; 
    color: #929090;
}

.pricing-item-body {
    margin-top: 0.7rem;
}

.pricing-item-body p:first-child {
    color: var(--main-color);
    margin: 0 10px;
}

.pricing-item-body p:last-child {
    font-size: 1.1rem;
    font-weight: bold;
}

.pricing-item-button {
    width: 100%;
    margin: 1.1rem 0rem;
}

.pricing-item-button button {
    width: 100%;
    padding: 0.6rem 1rem;
    padding-top: 0.9rem;
    background-color: var(--main-color);
    color: #fff;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
}

.pricing-item-button a {
    width: 90%;
}

.section .pricing-item:nth-child(3) .pricing-item-button {
    margin-top: 3.5rem;
}

.section .pricing-item:nth-child(4) .pricing-item-button {
    margin-top: 4.2rem;
}

.section .pricing-item:nth-child(5) .pricing-item-button {
    margin-top: 5.3rem;
}

.testimonial-card {
    width: 350px;
    height: 250px;
    border-radius: 15px;
    margin: 5px;
    padding: 20px 30px;
    position: relative;
    border: 1px solid var(--main-color);
    transition: .5s;
    cursor: pointer;
    margin-top: 25px
}

.testimonial-card img {
    width: 90px;
    height: 87px;
    border: 2px solid #f2f2f2;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 20px
}

.testimonial-card p {
    margin-top: 40px;
    margin-bottom: 25px
}

.testimonial-card h2 {
    margin-bottom: 4px
}

.testimonial-card h4 {
    font-size: 1rem
}

.testimonial-card i {
    font-size: 3.8rem;
    color: #d3d2d2
}

.testimonial-card:hover {
    transform: scale(1.2);
    z-index: 100;
    background-color: var(--main-color);
    color: #fff
}

.contact {
    background: url(img/bg-contact.jpg);
    background-size: cover;
    padding: 0
}

.black-layer {
    width: 100%;
    background-color: #000;
    opacity: .9;
    min-height: 100vh;
    padding: 50px 100px;
    flex-direction: column;
    position: relative
}

.contact .contact-content {
    max-width: 800px;
    text-align: center
}

.contact .contact-content h2 {
    font-size: 36px;
    color: #fff
}

.contact .contact-content p {
    color: #fff
}

.container {
    width: 100%;
    margin-top: 30px
}

.container .contactInfo {
    width: 50%;
    flex-direction: column
}

.container .contactInfo .box {
    position: relative;
    padding: 20px 0
}

.container .contactInfo .box .icon {
    min-width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    font-size: 22px
}

.container .contactInfo .box .text {
    margin: 0 10px;
    font-size: 1rem;
    color: #fff;
    flex-direction: column
}

.container .contactInfo .box .text h3 {
    color: #fff;
}

.social a {
    margin: 0 4px;
    color: #fff;
    font-size: 2rem
}

.social a:first-child {
    margin: 0
}

.contactForm {
    width: 40%;
    padding: 40px;
    background-color: #fff
}

.contactForm h2 {
    font-size: 30px;
    color: var(--text-color)
}

.contactForm .inputBox {
    position: relative;
    width: 100%;
    margin-top: 10px
}

.contactForm .inputBox input,
.contactForm .inputBox textarea {
    width: 100%;
    padding: 5px 0;
    margin: 10px 0;
    resize: none
}

.contactForm .inputBox button {
    background-color: var(--main-color);
    color: #fff;
    width: 100px;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    opacity: 1
}

footer {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    text-align: center
}

footer a{
    color: #fff;
}

@media (max-width:1280px) {
    header {
        padding: 14px 2%;
        transition: .2s
    }

    .navbar a {
        padding: 5px 0;
        margin: 0 20px
    }
}

@media (max-width:1090px) {
    #menu-icon {
        display: block
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 270px;
        padding: 0 6px;
        background-color: var(--main-color);
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 10px;
        transition: all .7s ease
    }

    .navbar a {
        color: #fff;
        display: block;
        margin: 7px 0;
        padding: 5px 25px;
        transition: all .5s ease
    }

    .navbar a:hover {
        color: #fff
    }

    .navbar a.active {
        background-color: #fff;
        border-radius: 5px
    }

    .navbar a.active:hover {
        color: var(--main-color)
    }

    .navbar.open {
        right: 2%
    }
}

@media (max-width:1820px) {
    section {
        padding: 0 7%
    }
}

@media (max-width:1180px) {
    .home {
        height: auto
    }

    section {
        padding: 70px 7%
    }

    .about,
    .home {
        flex-wrap: wrap;
        gap: 2rem
    }

    .about-text,
    .home-text {
        order: 2;
        width: 100%
    }

    .about-img,
    .home-video {
        margin: 20px auto
    }

    .about-img img {
        width: 480px
    }

    .portfolio-item,
    .services-item {
        width: 47%
    }

    .testimonial-card {
        width: 100%;
        margin: 30px 0
    }

    .testimonial-card:hover {
        transform: scale(1.07)
    }

    .sm-title-testimonial {
        font-size: 1.1rem !important
    }

    .black-layer {
        padding: 40px 15px
    }

    .container {
        flex-direction: column
    }

    .container .contactInfo {
        margin-bottom: 40px
    }

    .contactForm,
    .container .contactInfo {
        width: 100%
    }

    .pricing-item {
        width: 40%;
    }
}

@media (max-width:790px) {
    section {
        padding: 60px 5%
    }

    .portfolio-item,
    .services-item {
        width: 100%;
        margin: 10px 0
    }

    .portfolio-item:hover {
        margin-top: 10px
    }

    .pricing-item {
        width: 80%;
        height: auto;
    }

    .section .pricing-item:nth-child(3) .pricing-item-button {
        margin: 1.1rem 0;
    }

    .section .pricing-item:nth-child(4) .pricing-item-button {
        margin: 1.1rem 0;
    }

    .section .pricing-item:nth-child(5) .pricing-item-button {
        margin: 1.1rem 0;
    }
}

@media (max-width:535px) {
    .home-video {
        margin: 10px auto
    }

    .home-video video {
        width: 330px
    }

    .about-text,
    .home-text {
        width: 100%
    }

    .about-text h2,
    .home-text h1 {
        font-size: 1.6rem
    }

    .about-text p,
    .home-text p {
        font-size: 1.1rem;
        line-height: 1.7rem
    }

    .about-text a,
    .home-text a {
        font-size: 1rem;
        padding: 15px 60px
    }

    .about-img img {
        width: 320px
    }

    .sm-title {
        font-size: .79rem
    }

    .portfolio-item-text h2 {
        font-size: 1.25rem
    }

    .pricing-item {
        width: 96%;
    }
}