@import url(bootstrap.css);
:root {
    --main-color: #5352ed;
    --sec-color: #70a1ff;
    --bg-body-tertiary: #70a1ff;
    --link-size: 64px;
    --trans-props: all 0.3s ease;
}

* {
    font-family: "Cairo";
}

body {
    margin: 0;
    padding: 0;
    background: rgb(0, 0, 0);
    overflow-x: hidden;
}

.home-a {
    top: 30%;
    position: absolute;
    width: 30%;
    right: 10%;
    color: white;
}

.btn-con {
    position: relative;
}

.btn {
    margin: auto;
}

.wrapper {
    width: 100%;
}

.wrapper,
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
}


/*** Containers and icons ***/

.social-icon {
    display: flex;
    position: relative;
    overflow: hidden;
    /* Trim branded overlays */
    width: var(--link-size);
    height: var(--link-size);
    margin: 8px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: var(--trans-props);
}

.social-icon i {
    margin: auto;
    /* Perfect centering thanks to parental flex */
    font-size: 24px;
    color: hsl(212, 16%, 48%);
    z-index: 1;
    /* Make sure icons will be on top */
    transition: var(--trans-props);
}


/*** Branded overlays from the bottom ***/

.social-icon:after {
    content: "";
    width: var(--link-size);
    height: var(--link-size);
    position: absolute;
    transform: translate(0, var(--link-size));
    border-radius: 50%;
    transition: var(--trans-props);
}

.social-icon.youtube:after {
    background-color: #FF0000;
}

.social-icon.facebook:after {
    background-color: #4267B2;
}

.social-icon.instagram:after {
    background-image: linear-gradient( to bottom left, #4f5bd5, #962fbf, #d62976, #fa7e1e, #feda75);
}


/*** Animations ***/

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.16);
}

.social-icon:hover i {
    transform: scale(1.1);
    color: #fff;
}

.social-icon:hover:after {
    transform: translate(0) scale(1.2);
}


/* Actual CodePen code */

#AboutArticle {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: var(--Surface);
    z-index: 1;
    padding: 20px;
    margin: 20px 0px;
    height: 25rem;
}

#About {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    overflow-x: hidden;
    height: 100%;
}

#img-div {
    position: relative;
    flex-basis: 40%;
    height: 100%;
    align-items: center;
    flex-direction: column;
    /*try to fit it to iphone*/
}

#About img {
    position: relative;
    border-radius: 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 1);
    transition: all .4s ease;
    height: 100%;
    flex-direction: column;
    /*try to fit it to iphone*/
}

#AboutMe {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    overflow: hidden;
    transition: .4s;
    text-align: center;
}

#AboutMe h1 {
    font-size: 3rem;
    font-weight: 700;
}

#AboutMe p {
    font-size: 1.5rem;
    text-align: center;
}

#AboutInfoText {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#AboutInfoText h1 {
    font-size: 1.5rem;
    font-weight: bolder;
}

#AboutInfoText h3 {
    font-size: 1.4rem;
    font-weight: bold;
}

#AboutInfoText h3 span {
    font-weight: normal;
    font-size: 1.2rem;
}

#AboutInfoText h3 span a {
    color: white;
    text-decoration: none;
}

#AboutInfo {
    display: none;
    position: relative;
    text-align: center;
    overflow: hidden;
    flex-basis: 60%;
    transition: all .6s ease;
}


/* ----------------------------START Hovering handle------------------------ */

@media (min-width:710px) {
    #AboutArticle:hover>#About #AboutMe {
        display: none;
    }
    #AboutArticle:hover>#About #AboutInfo {
        display: block;
    }
}


/* ----------------------------END Hovering handle------------------------ */

#InfoIcons .LinkIcons {
    color: var(--Secondary) !important;
    text-shadow: 0 -2px 10px rgba(0, 0, 0, 1);
}


/* Just page formatting */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
:root {
    --Background: #121212;
    --Surface: #222222;
    --Primary: #ff7597;
    --Secondary: #ff0266;
    --OnColor: #121212;
    --OnBackground: #fff;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--Background);
    padding: 0;
    margin: 0;
    color: #f0ffff;
}

p {
    text-align: justify;
}


/* about us section = Done */

::selection {
    background: skyblue;
    color: #fff;
}

.container {
    max-width: 1100px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    gap: 1.5rem;
}

.container .box {
    width: calc(45% - 10px);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    border-radius: 5px;
}

.box .quote i {
    margin-top: 10px;
    font-size: 45px;
    color: #17c0eb
}

.container .box .image {
    margin: 10px 0;
    height: 150px;
    width: 150px;
    background: #70a1ff;
    padding: 3px;
    border-radius: 50%;
}

.box .image img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.box ul {
    text-align: right;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: bold;
}

.box .name_job {
    color: #000000;
    font-size: 1.5rem;
    font-weight: bolder;
    margin-bottom: 1.3rem;
}


/*  service  */

.section-padding {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 50px;
}

.services-area {
    margin-bottom: -30px;
}

.serviecs-block .single-serviecs-block {
    margin: 30px 0;
}


/*block 1*/

.single-serviecs-block1 {
    padding: 30px 40px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: block;
    height: 638px;
}


/*block 2*/

.single-serviecs-block2 {
    padding: 30px 40px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: block;
    min-height: 100%;
}

.single-serviecs-block2 ul {
    direction: rtl;
    font-size: 1rem;
    text-align: right;
    font-weight: bold;
}

.single-serviecs-block2 ul ul {
    margin-top: 1.1rem;
}

.single-serviecs-block2 ul li {
    margin-bottom: 1.1rem;
}

.single-serviecs-block2 h3 {
    color: #333333;
    margin-top: 5rem;
    display: block;
    overflow: hidden;
    transition: 0.5s;
    font-weight: bolder;
    margin-bottom: 2rem;
}

.single-serviecs-block2 i {
    color: #fff;
    font-size: 50px;
    height: 140px;
    width: 140px;
    line-height: 170px;
    text-align: center;
    background: #70a1ff;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.6s;
}

.single-serviecs-block2 img {
    color: #fff;
    font-size: 10px;
    height: 140px;
    width: 140px;
    line-height: 170px;
    text-align: center;
    background: #70a1ff;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.6s;
}


/*end of block 2*/


/*footer*/

img {
    max-width: 100%;
    height: auto;
}

.contact-area {
    border-bottom: 1px solid #353C46;
    justify-content: center;
    width: 100%;
}

.contact-content p {
    font-size: 20px;
    margin: 30px auto 60px auto;
    position: relative;
    text-align: center;
    align-items: center;
}

.contact-content p::after {
    background: #353C46;
    bottom: -30px;
    content: "";
    height: 1px;
    left: 50%;
    position: relative;
    transform: translate(-50%);
    width: 80%;
}

.contact-content h6 {
    color: white;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
}

.contact-content img {
    width: 4rem;
}

section.contact-area {
    background: rgb(30, 30, 30);
    color: white;
    font-weight: bold;
}

.footer {
    width: 100%;
    margin: auto;
    align-content: center;
}

.sub-title {
    position: relative;
    width: -moz-fit-content;
    width: fit-content;
    margin: auto;
    text-align: center;
    margin-bottom: 30px;
}

.sub-title :after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    width: 100%;
    height: 4px;
    background-color: var(--sec-color);
}


/*@media*/

@media (max-width:1045px) {
    .container .box {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 710px) {
    .container .box {
        width: 100%;
    }
}

@media (max-width:710px) {
    body {
        width: 100%;
    }
}

@media (max-width:710px) {
    #AboutArticle:hover {
        display: block
    }
    #AboutMe p {
        font-size: 1rem;
        text-align: center;
    }
    #About {
        flex-direction: column;
        gap: 2rem;
    }
    #AboutMe h1 {
        font-size: 1.5rem;
    }
    #AboutArticle {
        height: fit-content;
    }
    #img-div {
        flex-direction: column;
        /*try to fit it to iphone*/
        align-items: flex-start;
    }
    #About img {
        flex-direction: column;
        /*try to fit it to iphone*/
        height: auto;
    }
}

@media (max-width:450px) {
    .single-serviecs-block1 {
        padding: 30px 40px;
        background-color: rgb(255, 255, 255);
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        text-align: center;
        overflow: hidden;
        display: block;
        height: auto;
    }
}

@media (max-width:450px) {
    .single-serviecs-block2 {
        padding: 30px 40px;
        background-color: rgb(255, 255, 255);
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        text-align: center;
        overflow: hidden;
        position: relative;
        display: block;
        height: auto;
    }
}