*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    color: white !important;
}

.body{
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-rows: 4% 29% 28% 39%;
    grid-template-columns: 50% 50%;
    grid-template-areas: 
    "hd hd"
    "aboutMe design"
    "card1 card2"
    "ft ft";
    background-color: rgb(24, 10, 52);
    align-items: center;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";


}

.header{
    grid-area: hd;
}

.design{
    grid-area: design;
}

.footer{
    grid-area: ft;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;

}

.navbar{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.nav-item{
    padding: 8px 16px;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    height: fit-content;
    opacity: 0.8;
}

.nav-item:hover{
    opacity: 1;

}

.links{
    display: flex;
    margin: 20px;
}

a{
    text-decoration: none;
}

.logo{
    width: 70px;
    height: 70px;
    opacity: 0.9;
}

.logo:hover{
    opacity: 1;
}

article{
    display: flex;
    justify-content: center;
    margin: 30px;
}

.about-me{
    grid-area: aboutMe;
    margin: 40px 4px 0px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    align-content: center;
}

.Iam{
    margin-bottom: 50px;
}

.image1{
    max-width: 400px;

}

.cards{
    display: flex;
    width: 100%;
}

.cards-bg1{
    grid-area: card1;
    display: flex;
    justify-content: right;
    margin: 0px 30px; 
}

.cards-bg2{
    grid-area: card2;

    display: flex;
    justify-content: left;
    margin: 0px 30px;
}

.card{
    max-width: 375px;margin: 5px;
    text-align: center;
    color: black;
    border: 1.5px solid rgba(0,0,0,.125);
    border-radius: 4px;
    max-height: 400px;
    padding: 10px;
    background: linear-gradient(to bottom right, rgb(120 88 236), rgb(19 19 39));
}

.card-img{
    width: 200px;
    height: 202px;
    border-bottom: 2px solid black;
}

.card-title{
    margin: 10px 0 30px 0;
}

.card-text{
    margin: 30px 0 50px 0;
}

.button{
    padding: 6px 12px;
    background: linear-gradient(to right,rgb(233 30 99) ,rgb(233 30 189));
    border: 1px solid transparent;
    border-radius: 0.25rem;
    box-shadow: 1px 1px rgb(0, 0, 0);
    outline: none !important;
}

.button:active{
    box-shadow: -1px -1px rgb(0, 0, 0);
}

.button-bg{
    margin-bottom: 30px;
}

.contact{
    display: flex;
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.map{
    width: 90%;
    margin: 24px 0;
    
}

.contact-information{
    display: flex;
    flex-direction: column;
}

.contact-information .informations{
    text-align: center;
    margin-top: 24px;
}

.contact-information .address{
    text-align: center;
    margin: 24px 0;
    font-size: 17px;
}

.contact-icon{
    display: flex;
    justify-content: space-around;
}

.contact-icon a{
    opacity: 0.8;

}

.contact-icon a:hover{
    opacity: 1;
}

@media(max-width: 768px){
    .design{
        display: none;
    }

    .body{
        grid-template-areas: 
        "hd hd"
        "aboutMe aboutMe"
        "card1 card2"
        "ft ft";
        background-color: rgb(24, 10, 52);
        flex-wrap: wrap;

    }
}


@media(max-width: 600px){
    .body{
        grid-template-rows: 4% 29% 24% 24% 39%;
        grid-template-areas: 
        "hd hd"
        "aboutMe aboutMe"
        "card1 card1"
        "card2 card2"
        "ft ft";
        background-color: rgb(24, 10, 52);
    }

    .cards-bg1{
        display: flex;
        justify-content: center;
        margin: 0px 30px; 
    }

    .cards-bg2{
        display: flex;
        justify-content: center;
        margin: 0px 30px; 
    }

    .links{
        margin: 20px 15px;
    }
}

@media(max-width: 395px){
    .links{
        margin: 20px 0;
    }
}

@media(max-width: 365px){
    .nav-item{
        padding: 8px 8px;
    }
}

@media(max-width: 318px){
    .nav-item{
        padding: 8px 4px;
    }
    .about-me{
        padding-bottom: 30px;

    }
}

@media(max-width: 315px){
    .cards-bg2 .card{
        padding-bottom: 30px;

    }
}

@media(min-width: 300px){
    .contact-information p br{
        display: none;
    }
}

/*not important*/
@media(max-width: 293px){
    .nav-item{
        padding: 8px 2px;
    }
}

@media(max-width: 280px){
    .links{
        display: none;
    }
}

