/* google fonts  */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'poppins',sans-serif;
}

:root {
    --main-color: #033a80;
    --bg-color : #fff;
    --text-color: #0f0c27;
    --hover : hsl(260,100%,51%);

    --big-font: 3.2rem;
    --medium-font: 1.8rem;
    --p-font:0.941rem;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: 0.5s;
}
/* for darkMode  */
body.active {
    --text-color: #fff;
    --bg-color: black;
}
section {
    padding: 50px 10%;
}

/*  this property color when we select some text */
*::selection { 
    color: var(--bg-color);
    background: rgb(44, 201, 44);
}
/* --------- Navigation Bar-----------  */
header {
    position: fixed;
    width: 100%;
    display: flex;
    top: 0;
    right: 0;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 13px 10%;
    transition: 1s;
    box-shadow: -3px -3px 7px #ffffff73, 2px 2px 5px rgba(94, 104, 121, 0.288);
}

button {
    padding: 15px;
        border-radius: 0.5rem;
        width: 100%;
        border: none;
        outline: none;
        background: hsla(260, 100%, 44%, 0.1);
        margin-bottom: 1rem;
        color: var(--text-color);
}

.logo {
    font-size: 1.61rem;
    font-weight: 600px;
    color: var(--text-color);
}
.navbar {
    display: flex;
    transition: 1s ease;
}
.navbar a {
    font-size: 1rem;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
}
#menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: none;
    font-size: 20px;
    cursor: pointer;
}
.navbar a:hover {
    color: var(--hover);
}
#darkmode {
    font-size: 20px;
    cursor: pointer;
}
/* ======================== Home Section =========================  */

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    /* here 0.2 represent the space for first col , 1fr for second and 1fr for other col  */
    grid-template-columns: 0.2fr 1fr 1fr;  
    align-items: center;
    gap: 1rem;
}

.home-img {
    order: 3;
}

.home-img img {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
}
.quote {
    text-align: center;
}
.home-text span {
    font-size: var(--medium-font);
    font-weight: 500;
}
.home-text h1 {
    font-size: var(--big-font);
}
.home-text h2 {
    font-size: 1.1rem;
    font-weight: 400;
}
.home-text p {
    font-size: var(--p-font);
    font-weight: 400;
    margin: 0.7rem 0.1rem;
}
.social {
    display: flex;
    flex-direction: column;

}
.social a {
    margin-bottom: 1rem;
    font-size: 22px;
    color: var(--text-color);
}

/* hover  */
.social a:hover {
    color: var(--hover);
}

/* button  */
.btn {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 0.7rem 1.3rem;
    border-radius: 0.5rem;
}

.btn:hover{
    background: var(--hover);
}

/*--------------- Up Scroll -------------  */
.up-scroll {
    position: fixed;
    top: 90%;
    left: 5%;
    background: green;
    padding: 10px;
    border-radius: 0.5rem;
    cursor: pointer;
}
.up-scroll a {
    text-align: center;
    width: 10px;
    height: 10px;
    color: white;
    padding: 12px 7px 7px;
}
.up-scroll a i {
    font-size: 30px;
}











/* ====================== About Section ===========================  */

.heading {
    text-align: center;
}
.heading h2 {
    font-size: 30px;
}
.heading span {
    font-size: var(--p-font);
    color: rgb(2, 166, 70);
}
.about-container {
    display: grid;
    /* 2 defines the space and 1fr defines the fragments . here repeat() repeat the no of fraction */
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem;
    margin-top: 2rem;
}

.about-img img{
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
    width: 80%;
    border-radius: 0.5rem;
}

.about-text p {
    font-size: var(--p-font);
    font-weight: 400;
    text-align: justify;
}

.information {
    /* top left-right bottom  */
    margin: 1rem 0 1.4rem ;

}
.information .info-box{
    display: flex;
    align-items: center;
    margin-bottom: 1.4rem;
}

.information .info-box .bx {
    font-size: 22px;
}

.information .info-box span {
    margin-left: 1rem;
    
}

/* =============== Skills section ================  */

.skills-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.skills-img img {
    width: 80%;
    padding-left: 4rem;
    object-position: center;
}

.bar-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.bar-box h3,
.bar-box span {
    font-size: 1.1rem;
    font-weight: 500;
}

.light-bar{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: hsla(260, 100%, 40%, 0.4);
    border-radius: 0.5rem;
}

.percent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.5rem;
    background: var(--main-color);
    border-radius: 0.5rem;
    
}

.html-bar {
    width: 90%;
}
.css-bar {
    width: 80%;
}
.js-bar {
    width: 54%;
}
.react-bar {
    width: 14%;
}
.python-bar {
    width: 64%;
}
.node-bar {
    width: 54%;
}


/* ======================= Project Section ===============================  */
.explore {
    display: flex;
    justify-content: space-between;
    margin-right: 0.5rem;
    width: 200px;
    margin-top: 1rem;

}
.explore a {
    color: grey;
    font-weight: 600;
    
    font-size: var(--p-font);
    font-weight: 500;
}

.project-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,auto));
    justify-content: center;
    gap: 6rem;
    margin-top: 2rem;
}

.project-box {
    padding: 20px;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0.5rem;
    border-bottom: 2px solid var(--main-color);
    box-shadow: 0 2px 7px rgba(14 55 54 / 15%);
}

.project-box .bx {
    padding-top: 2rem;
    font-size: 54px;
    color: var(--main-color);
}

.project-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.7rem 0 0.4rem;
}
/* ==== Hover section ======  */
.project-box:hover {
    background: #02225a;

}
.project-box:hover h3 {
    color: #fff;
}
.project-box:hover .bx {
    color: #0ee409;
}
.project-box .explore a:hover {
    color: #fff;
}

/* =================== Portfolio Section =======================  */

.portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,auto));
    gap: 1.3rem;
    margin-top: 3rem;
}

.portfolio-img {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 2px 7px rgba(14 55 54 / 15%);
    cursor: pointer;

}
.portfolio-img img {
    width: 100%;
    display:block;
}

.portfolio-img img:hover{
    transform: scale(1.1);
    transition: 1s;
}


/* =============== contact section ========= */

.contact-form {
    display: grid;
    place-items: center;
    margin-top: 1rem;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    width: 650px;

}

form input,
form textarea {
    padding: 15px;
    border-radius: 0.5rem;
    width: 100%;
    border: none;
    outline: none;
    background: hsla(260, 100%, 44%, 0.1);
    margin-bottom: 1rem;
    color: var(--text-color);
}

form textarea {
    resize: none;
    height: 200px;
}
.contact-button {
    justify-content: center;
    width: 160px;
    background: #2768d9;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    letter-spacing: 1px;
    margin-left: 37%;
}
.contact-button:hover{
    background: var(--hover);
}

/* -----------footer section ---------- */

.footer {
    display: grid;
    padding: 20px;
    place-items: center;
    color: #000;
    background: #ebebeb; 
}


.footer h2 {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
}

.footer-social a i{
    color: rgb(10, 26, 200);
    font-size: 25px;
    margin-left: 10px;
    text-align: center;
    line-height: 40px;
    background-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.footer-social a i:hover {
    color: var(--hover);
    background: var(--bg-color);
}
/* Copyright section */ 

.copyright {
    padding: 20px;
    background: var(--main-color);
    text-align: center;
    color: #fff;
}

.copyright a {
    color: #22cf91 ;
}

/*---------------- send section---------- */
.send a{
    color: white;
    font-size: 16px;
}

/* ========= Contact-After Html */
.contact-section .fa {
    font-size: 80px ;
    margin-bottom: 20px;
    color: rgb(11, 184, 11);
}
.contact-container {
    margin: 15rem 20%;
    background: #033a80;
    color: #fff;
    box-shadow: 12px 12px 7px rgba(0, 0, 0, 0.6);
}
.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contact-section h1 {
    margin-bottom: 20px;
}

















/* -------------- media query Section -------- */
@media(max-width: 991px){
    header {
        padding: 18px 4%;
    }
    section {
        padding: 50px 4%;
    }
}
@media(max-width: 830px ){
    :root {
        --big-font: 2.4rem;
        --medium-font: 1.2rem;
    }
    header {
        padding: 11px 4%;
    }
    #menu-icon {
        display: initial;
        color: var(--text-color);
    }
    header .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        box-shadow: 0px 4px 4px rgb(0 0 0 / 10%);
        transition: 0.2 ease;
        text-align: center;
    }

    .navbar.active {
        top: 100%;
    }

    .navbar a {
        padding: 1.5rem;
        display: block;
        background: var(--bg-color);
    }

    #darkmode {
        position: absolute;
        top: 1.4rem;
        right: 2rem;
    }
    .home {
        grid-template-columns: 0.5fr 3fr;
    }
    .home-text{
        grid-column: 1/3;
        padding-left: 1.4rem;
    }
    .home-img {
        order: initial;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .about-img {
        display: flex;
        justify-content: center;
    }
    .skills-container{
        grid-template-columns: 1fr;

    }
    .skills-img img{
        padding-left: 0;
    }
    .skills-img {
        padding-top: 2rem;
        display: flex;
        justify-content: center;
    }
    .contact-form form{
        width: 300px;

    }
    .contact-button{
        margin-left: 25%;
    }
    .contact-container {
        max-width: 500px;
        text-align: center;
        font-size: 1rem;
    }
}

@media(max-width: 340px){
    :root {
        --big-font :1.7rem;
        --medium-font : 1.1rem;
    }
    .home-text span {
        font-size: 1rem;
    }
    .home-text h2 {
        font-size: 0.9rem;
        font-weight: 500;
    }
    .information .info-box span {
        font-size: 1rem;
    }
    .portfolio-content {
        grid-template-columns: repeat(auto-fit,minmax(200px,auto));
    }
    .contact-form form {
        width: 300px;
    }
    .contact-button {
        margin-left: 25%;   
    }
    .up-scroll {
        top: 60%;
        left: 5%;
        margin-bottom: 20px;
    }
}