/* @import url(); */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
    --third-color: #12d997;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    min-width: 100%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header .sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 2.6rem;
    transition: .3s;
}

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

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}



/*home*/
.home {
    display: flex;
    justify-content: center;
    align-items: center;

}

.home-content {
    margin-left: 10px;
}

.home-content h3 {
    margin-top: 10px;
    font-size: 3rem;
    font-weight: 700;
}

.typed-cursor {
    color: var(--third-color);
    opacity: 1;
}

.home-img {
    width: 50%;
    /* margin-right: 150px; */

}

.home-img img {
    margin-left: 85px;
    width: 487px;
    height: 487px;
    border: 2.5px solid var(--main-color);
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto;
    display: block;
}


.home-content p {
    font-size: 2.5rem;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 5px;
}

span {
    color: var(--main-color);
}

span2 {
    color: var(--third-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
}

.social-media a.facebook:hover {
    background-color: #3b5998;
    color: white;
    box-shadow: 0 0 .5rem #3b5998;
}

.social-media a.linkedin:hover {
    background-color: #0077b5;
    color: white;
    box-shadow: 0 0 .5rem #0077b5;
}

.social-media a.github:hover {
    background-color: white;
    color: black;
    box-shadow: 0 0 .5rem #0077b5;
}

.social-media a.twitter:hover {
    background-color: #1DA1F2;
    color: white;
    box-shadow: 0 0 .5rem #1DA1F2;
}


.social-media a.instagram:hover {
    background-color: #E1306C;
    color: white;
    box-shadow: 0 0 .5rem #E1306C;
}

.social-media a.whatsapp:hover {
    background-color: #25D366;
    color: white;
    box-shadow: 0 0 .5rem #25D366;
}


.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--second-bg-color);
    color: var(--main-color);
    /* box-shadow: none; */
}



/* about */

.about {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: var(--second-bg-color);

}

.about-img {
    width: 35vw;
}

.about-img img {
    margin-left: 85px;
    width: 530px;
    width: 400px;
    height: 530px;
    height: 400px;
    border: 2.5px solid var(--main-color);
    border-radius: 0%;
    object-fit: cover;
    margin: 20px auto;
    display: block;

}

.heading {
    margin-top: 35px;
    margin-bottom: 34px;
    padding: auto;
    text-align: center;
    font-size: 4.5rem;
    justify-content: center;
}

.about .about-content .heading {
    margin-top: 14px;
    margin-bottom: 34px;
    padding: auto;
    text-align: center;
    font-size: 4.5rem;
    justify-content: center;

}

/* .about-content .heading{
    margin-left: -650px;
    margin: auto auto;
} */

.about-content2 {
    display: flex;
}

.right-content {
    margin-left: 10px;
}

.right-content h2 {
    text-align: left;
    line-height: 1.2;
}

.right-content p {
    font-size: 2.5rem;
    margin: 2rem 0 3rem 0;
    letter-spacing: 0.8px;
    line-height: 37px;
    text-align: justify;
}

.right-content .box-container .box p {
    font-size: 2.5rem;
    margin: 2rem 0 3rem 0;
    letter-spacing: 2px;
    line-height: 20px;
}

.right-content .box-container {
    margin-top: 1%;
    display: flex;
    gap: 1.5rem;
}

.right-content .box-container .box {
    flex: 1 1 20rem;
}





/*skill*/
.container {
    position: relative;
    /* margin: 26px 15px; */
    margin-top: -12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.col {
    flex-basis: 46%;
}

.skill-box {
    /* width: 100%; */
    margin: 50px 0;
}

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

.skill-bar {
    height: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.09);
}

.skill-per {
    position: relative;
    display: block;
    height: 100%;
    /* width: 900000%; */
    border-radius: 6px;
    background: var(--main-color);
    animation: progress 1s ease-in-out forwards;
    opacity: 100%;

    animation-play-state: paused;
}

.skill-bar .html {
    width: 70%;
    /* animation-delay: 0.1s; */
}

.skill-bar .css {
    width: 60%;
    background-color: var(--third-color);
    /* animation-delay: 0.2s; */
}

.skill-bar .javascript {
    width: 35%;
    /* animation-delay: 0.3s; */
}

.skill-bar .oops {
    width: 75%;
    background-color: var(--third-color);
    /* animation-delay: 0.3s; */
}

.skill-bar .sql {
    width: 75%;
    background-color: var(--third-color);
    /* animation-delay: 0.3s; */
}

.skill-bar .c {
    width: 65%;
    background-color: var(--third-color);
    /* animation-delay: 0.4s; */
}

.skill-bar .cpp {
    width: 65%;
    /* animation-delay: 0.5s; */
}

.skill-bar .python {
    width: 80%;
    background-color: var(--third-color);
    /* animation-delay: 0.6s; */
}

.skill-bar .matlab {
    width: 35%;
    /* animation-delay: 0.6s; */
}

@keyframes progress {
    0% {
        width: 0;
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}





/* education */
.education {
    width: 100%;
    min-height: 100vh;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    /* background-color: var(--second-bg-color); */
}

.contents {
    margin: auto;
    padding: 0px 30px;
    border-left: 2px solid #bababa;
    /* align-items: center; */
    text-align: left;
    /* justify-content: center; */
}

.box2 {
    position: relative;
    padding: 20px;
    border: 1px solid #eaeaea;
    transition: all 0.4s;
    margin-bottom: 20px;
    background-color: var(--second-bg-color);
}

.box2::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    right: calc(100% + 22px);
    top: 0;
    background-color: var(--main-color);
    border: 2px solid white;

}

.box2 h4 {
    position: relative;
    color: var(--third-color);
    font-size: 21px;
}

.box2 h3 {
    font-size: 21px;
    padding: 10px 0px 6px;
    font-family: helvetica;
    color: var(--text-color);
    letter-spacing: 0.7px;
}

.right {
    text-align: right;
    color: var(--main-color);
    font-size: 25px;
    /* margin-left: 30rem; */
    /* justify-content: right; */
    /* align-items: right; */
    align-content: right;
}



/*certification*/
.certification {
    min-height: fit-content;
    text-align: center;
    /* background-color: var(--second-bg-color); */

}

.certification .column {
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
}

.certification .column img {
    height: 400px;
    width: 500px;
    margin-top: 4rem;
}

.certification .column img:hover {
    border: 3px solid var(--third-color);
    box-shadow: 0 0 1rem var(--third-color);
    cursor: pointer;
}


/*projects*/
.project {
    text-align: center;
}

.project .pro-content {
    display: flex;
    justify-content: space-around;
}

.project .pro-content iframe {
    height: 400px;
    width: 500px;
    margin-top: 4rem;
}

.project .pro-content .video h2 {
    margin-top: 2rem;
    font-size: 22px;
    color: var(--main-color);
}

.project .pro-content .video h2:hover {
    color: var(--third-color);
    text-decoration: underline;
    cursor: pointer;
}

.project .pro-content .video iframe:hover {
    border: 1px solid var(--third-color);
    box-shadow: 0 0 1.5px var(--third-color);
}



/* contacts */
.contact {
    min-width: 100%;
    margin-top: 39px;
}

.contact h2 {
    margin-bottom: 3rem;

}

.contact-content {
    margin-bottom: 40px;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3 rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}


/* breakpoint */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    /* .footer{
        padding: 2rem 3%
    } */

    .contact {
        min-height: auto;
    }
}

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

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img {
        width: 70vw;
        margin-top: 4rem;
    }

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

    .skill .col {
        flex-basis: 100%;
    }

    .skill-bar .c {
        background-color: var(--main-color);
    }

    .skill-bar .cpp {
        background-color: var(--third-color);
    }

    .skill-bar .python {
        background-color: var(--main-color);
    }

    .skill-bar .matlab {
        background-color: var(--third-color);
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }
}

@media only screen and (max-width: 768px) {

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-content {
        margin-left: 0;
    }

    .home-img {
        width: 80%;
    }

    .home-img img {
        margin: 20px auto;
        width: 100%;
        height: auto;
    }



    .about {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .about-img img {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-right: 0;
        border-radius: 50%;
    }

    .right-content {
        margin: 0;
    }

    .right-content h2 {
        text-align: center;
    }

    .right-content .box-container {
        flex-direction: column;
        gap: 1rem;
    }

    .right-content .box-container .box {
        flex: 1 1 auto;
    }

    .right-content .box-container .box p {
        font-size: 1.8rem;
        line-height: 1.5;
    }



    .certification .column {
        flex-wrap: wrap;
    }

    .certification .column img {
        height: 300px;
        width: 400px;
        margin-top: 2rem;
    }

    .project .pro-content {
        flex-direction: column;
        align-items: center;
    }

    .project .pro-content .video iframe {
        height: 250px;
        width: 90%;
        margin-top: 2rem;
    }

    .project .pro-content .video h2 {
        margin-top: 1rem;
        font-size: 18px;
    }
}