@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}
::selection{
    color: #fff;
    background-color: var(--main-color);
}
::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-track{
    background-color: var(--seconde-color);
}

::-webkit-scrollbar-thumb{
    background-color : var(--title-color);
    border-radius: 10px;
}
:root{
    /* --main-color: #ff7b00ea; */
    --main-color: #1A5276 ;
    --seconde-color: #ff7e0c3ea;
    --title-color: #222;
    --subtitle-color: #8d8d8d;
}

body{
    font-family: 'Poppins', sans-serif;
    /* min-height: 100vh; */
    height: hidden;
    overflow-x: hidden;
    position: relative;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}

.img-fluid{
    max-width: 100%;
    height: auto;
}

.section{
    padding: 90px 0 0;
}

.container{
    max-width: 1200px; 
    margin: auto;
    padding: 0 50px;
}
.btn{
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    color: #fff;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 10px;
    transition: .4s;
}
.btn:hover{
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.btn i{
    font-size: 20px;
    margin-left: 10px;
}

.section_title {
    text-align: center;
    font-size: 36px;
    font-weight: 600px;
    text-transform: capitalize;
    line-height: .8;
    color: #222;
    position: relative;
    margin-bottom: 100px;
    padding-bottom: 20px;
}

.section_title::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--main-color);
}

.section_title::after{ 
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--main-color);

}

.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
}




/*========================header section=====================*/

header{
    position: fixed;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    background-color: #8dc9ee;
}
header.active{
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* .logo{
    width: 110px;
    height: auto;
    display: flex;
    align-items: center;
} */

.logo img{
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.menu{
    white-space: nowrap;
    transition: .5s;
    z-index: 999;
    position: relative;
}
.menu_item{
    display: inline-block;
}

.menu_link{
    padding: 5px 15px;
    position: relative;
    transition: .4s;
    color: #333;
    font-weight: 500;
}

.menu_link::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transform: scale(0);
    transition: .4s;
}
.menu_link:hover{
    color: var(--main-color);
}
.active-link{
    color: var(--main-color);
}

.menu_link.active-link::before, 
.menu_link:hover::before{
    transform: scale(1);
}

.close_icon{
    font-size: 25px;
    position: absolute;
    top: 30px;
    right: 250px;
    z-index: 1000;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}
.toggle_icon{
    font-size: 32px;
    display: none;
    cursor: pointer;
    margin-right: 10px;
}


/* ------------------responsive------------------- */

@media screen and (max-width: 768px) {
    .container{
        padding: 0 30px;
    }
    .menu{
        position: absolute;
        right: 0;
        top: 0;
        background-color: #eee;
        height: 100vh;
        width: 300px;
        padding-top: 100px;
        text-align: center;
        transform: translateX(110%);
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.15);
    }
    .menu.active{
        transform: translateX(0);
    }
    .menu_item{
        display: block;
        margin: 20px 0; 
    }
    .menu_link{
        color: #000000;
    }
    .toggle_icon{
        display: block;
        font-size: 22px;
        margin-right: -15px;
    } 
    .close_icon{
        display: block;
    }
} 

/* --------------hero-section--------------------- */

.hero{
    padding-top: 114px;
    position: relative;
    display: block;
}

.hero_container{
    align-items: center;
}

.hero_container h4{
    font-size: 28px;
    font-weight: 600px;
    color: var(--main-color);
    /* text-transform: uppercase; */
}
.hero_container h1{
    font-size: 40px;
    font-weight: 600px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    margin-bottom: 10px;
    color: var(--main-color)
}
.hero_container p{
    margin: 10px 0 40px;
    color: #333;
    font-size: 18px;
}
.hero_container .btn{
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
}
.hero_social{
    display: flex;
    column-gap: 20px;
}
.hero_social a{
    font-size: 22px;
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #333;
    transform: .3s;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.hero_social a:hover{
    color: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}

.hero_content .dim{
    font-style: italic;
}

.hero_img{
    text-align: center;
}

@media screen and (max-width: 768px) {
    .hero_content p4{
        font-size: 16px;

    }

    .hero_content h1{
        font-size: 32px;
    }

    .hero_content p{
        font-size: 15px;
    }
    .logo img{
        height: 2rem;
        width: 2rem;
        border-radius: 50%;
        object-fit: cover;
        overflow: hidden;
    }
    
}

@media screen and (max-width: 576px) {
    .hero_container{
        grid-template-columns: 1fr;
        row-gap: 2rem;
        justify-content: center;
    }
    .hero_content{
        order: 2;
        text-align: center;
    }
    .hero_social{
        justify-content: center;
    }
    .hero_img{
        text-align: center;
    }
}

/* ====================a prorpso==================== */
.about_container{
    column-gap: 0;
    align-items: center;
}
.about_content p{
    color: #333;  
    margin: 20px 0 15px;
}
.about_info{
    display: flex;
    column-gap: 20px;
    margin-top: 40px;
}
.about_info > div{
    text-align: center;
    background-color: var(--seconde-color);
    border: 2px dashed var(--main-color);
    border-radius: 10px;
    padding: 10px 15px;
    width: 40%;
}
.about_info > div .number{
    color: var(--main-color);
    font-size: 32px;
    font-weight: 700px;
}

.about_info > div .text{
    font-size: 15px;
    font-weight: 600px;
}

@media screen and(max-width: 992px) {
    .about_container{
        grid-template-columns: 3fr 2fr;
    }
}

@media screen and (max-width: 768px) {
    .about_container{
        grid-template-columns: 1fr;
        justify-content: center;
        text-align: center;
    }
    .about_info{
        justify-content: center;
    }
    .about_info > div .text{
        font-size: 14px;
    }
}

/* ------------------------=======resume-section------------------------ */

.cards{
    margin: auto;
    width: 90%;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;

}
.cards .card1, .card2{
    display: flex;
    align-items: center;
    box-shadow: 2px 5px 8px rgba(0, 0, 0, 0.5);
    border-radius:10px;
    padding: 5px;
    gap: 20px;
    animation: 3ms;
}

.card1:hover, .card2:hover{
    background-color: #101e27;
    color: white;
}
.cards .card1 h3, .card2 h3{
    margin-bottom: 10px;
    font-size: 20px;
}

/* footer */
.footer{
    margin: auto;
    width: 90%;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background-color: #eeeeee;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media screen and (min-width: 992px) {
    .cards .card1, .card2{
        flex-direction: column;
    }
}

@media screen and (min-width: 768px) {
    .cards .card1, .card2{
        flex-direction: column;
        margin: auto;
    }
    .cards .card1, .card2{
        border-radius: 10px;
        padding: 10px;
    }
}