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

/* Global */
* {
    box-sizing: border-box;
    margin: 0%;
    padding: 0%;
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
}

.max__width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

/* Styling similar elements */
section {
    padding: 100px 0;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

section .title::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 3px;
    background: black;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -2;
}

section .title::after {
    content: "";
    position: absolute;
    font-size: 20px;
    color: rgb(20, 93, 220);
    bottom: -8px;
    left: 50%;
    padding: 0 5px;
    background: white;
    transform: translateX(-50%);
    z-index: -1;
}

/* Styling same features */
.about, 
.skills, 
.contact, 
.footer{
    padding: 100px 0;
    font-family: 'Poppins', sans-serif;
}

.about .about__content,
.skills .skills__content,
.contact .contact__content
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Styling navigation bar  */
.nav {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 30px 0px;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav.sticky {
    padding: 15px 0px;
    background: rgb(209, 216, 9);
    transition: all 0.3s ease;
}

.nav .max__width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav .menu li {
    list-style: none;
    display: inline-block;
}

.nav .menu li a {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.nav .menu li a:hover {
    font-size: 30px;
    color: rgb(137, 20, 220);
}

.nav.sticky .menu li a:hover {
    font-size: 30px;
    color: white;
}

.nav .logo a{
    font-size: 35px;
    font-weight: 600;
    color: white;
}

.nav .logo a span {
    color: rgb(20, 220, 100);
    transition: all 0.3s ease;
}

.nav.sticky .logo a span {
    color: white;
}

/* Menu botton Styling */
.menu-btn {
    color: white;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

/* Styling home */
.home {
    display: flex;
    background: url(https://png.pngtree.com/thumb_back/fw800/back_our/20190620/ourmid/pngtree-iphonex-phone-geometry-black-banner-image_171749.jpg) center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    color: white;
    font-family: 'Ubuntu', sans-serif;
}

.home .max__width {
    width: 100%;
    display: flex;
}

.home .home__content .text-1 {
    font-size: 27px;
}

.home .home__content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home__content .text-3 {
    font-size: 40px;
    margin: 5px 0px;
}
.home .home__content .text-3 span {
    font-weight: 500;
    color: rgb(20, 60, 220);
}

.home .home__content a {
    display: inline-block;
    background: rgb(147, 20, 220);
    color: white;
    font-size: 25px;
    font-weight: 400;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid wheat;
    transition: all 0.3s ease;
}

.home .home__content a:hover {
    background: none;
    color: rgb(40, 220, 20);
}

/* Styling About section.  */
.about .title::after {
    content: "who am i";
}

.about .about__content .left {
    width: 45%;
}

.about .about__content .left img{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.about .about__content .right {
    width: 55%;
}

.about .about__content .right .text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about__content .right .text span {
    color: rgb(63, 20, 220);
}

.about .about__content .right p {
     text-align: justify;
}

.about .about__content .right a {
    display: inline-block;
    background: rgb(87, 20, 220);
    color: white;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid rgb(87, 20, 220);
    transition: all 0.3s ease;
}

.about .about__content .right a:hover {
    background: none;
    color: rgb(113, 20, 220);
}

/* Styling skills here.  */
.skills {
    background: black;
}

.skills .title {
    color: white;
}

.skills .title::before {
    background: white;
    z-index: 1;
}

.skills .title::after {
    content: "what i know";
    color: rgb(113, 20, 220);
    background: black;
    z-index: 2;
}

.skills .skills__content .col {
    width: calc(50% - 30px);
}

.skills .skills__content .left .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.skills .skills__content .left p {
    text-align: justify;
    color: white;
}

.skills .skills__content .left a {
    display: inline-block;
    background: rgb(80, 20, 220);
    color: white;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid rgb(103, 20, 220);
    transition: all 0.3s ease;
}

.skills .skills__content .left a:hover {
    background: none;
    color: rgb(120, 20, 220);
}

.skills .skills__content .right .bars {
    margin-bottom: 15px;
}

.skills .skills__content .right .bars .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    color: white;
}

.skills .skills__content .right .bars .info span {
    font-size: 18px;
    font-weight: 500;
}

.skills .skills__content .right .bars .line {
    position: relative;
    width: 100%;
    height: 5px;
    background: lightgrey;
}

.skills .skills__content .right .bars .line::before {
    position: absolute;
    content: "";
    height: 100%;
    left: 0;
    top: 0;
    background: rgb(87, 20, 220);
}

.skills .skills__content .right .bars .html::before {
    width: 80%;
}

.skills .skills__content .right .bars .css::before {
    width: 70%;
}

.skills .skills__content .right .bars .js::before {
    width: 50%;
}

.skills .skills__content .right .bars .python::before {
    width: 60%;
}

.skills .skills__content .right .bars .c::before {
    width: 70%;
}

.skills .skills__content .right .bars .cp::before {
    width: 10%;
}

/* Styling Contact */
.contact .title::after {
    content: "get in touch";
}

.contact .contact__content .col {
    width: calc(50% - 30px)
}

.contact .contact__content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact__content .left p {
    text-align: justify;
}

.contact .contact__content .left .icons {
    margin: 10px 0;
}

.contact .contact__content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact__content .row i {
    font-size: 25px;
    color: rgb(87, 20, 220);
}

.contact .contact__content .row .info {
    margin-left: 30px;
}

.contact .contact__content .info .head {
    font-weight: 500;
}

.contact .contact__content .info .sub__title {
    color: black;
}

.contact .contact__content .row .info .sub__title a {
    color: black;
}

.contact .contact__content .row .info .sub__title a:hover {
    font-size: 20px;
    font-weight: 600;
    color: rgb(87, 20, 220);
}

.contact .right form .fields {
    display: flex;
}

.contact .right form .field {
    height: 45px;
    width: 100%;
    margin-bottom: 10px;
}

.contact .right form .name {
    margin-right: 10px;
}

.contact .right form .textarea {
    height: 80px;
    width: 100%;
}

.contact .right form .field input,
.contact .right form .textarea textarea
{
    height: 100%;
    width: 100%;
    border: 1px solid lightgrey;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
}

.contact .right form .button {
    height: 47px;
    width: 170px;
}

.contact .right form .button button {
    display: block;
    width: 160px;
    height: 45px;
    border: 2px solid rgb(113, 20, 220);
    border-radius: 10px;
    outline: none;
    background: rgb(113, 20, 220);
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact .right form .button button:hover {
    color: rgb(87, 20, 220);
    background: none;
}

/* Styling footer section. */
footer {
    background: black;
    padding: 20px 23px;
    color: white;
    text-align: center;
}

footer span a {
    color: rgb(120, 20, 220);
    transition: all 0.3s ease;
}

footer span a:hover {
    text-decoration: underline;
    font-size: 25px;
}

.scroll__up__btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: rgb(87, 20, 220);
    right: 30px;
    text-align: center;
    line-height: 45px;
    color: white;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll__up__btn.show {
    opacity: 1;
    bottom: 30px;
    pointer-events: auto;
}

.scroll__up__btn:hover{
    filter: brightness(90%);
}

/* Responsive media query starts here.  */

@media screen and (max-width: 1141px) {
    .about .about__content .right .text {
        font-size: 20px;
    }
}

@media screen and (max-width: 1104px) {
    .about .about__content .left img {
        height: 350px;
        width: 350px;
    }
    
    .about .about__content .right .text {
        font-size: 17px;
    }

    .about .about__content .right .title {
        font-size: 10px;
    }
}

@media screen and (max-width: 991) {
    /* Global */
    .max__width {
        padding: 0 50px;
    }
}

@media screen and (max-width: 947px) {
    /* Global */
    .max__width {
        max-width: 930px;
    }

    /* Menu botton Styling */
    .menu-btn {
        display: block;
        z-index: 9999;
    }

    .menu-btn i.active::before {
        content: "\f00d";
    }
    
    /* Styling navigation bar  */
    .nav .menu {
        position: fixed;
        width: 100%;
        height: 100%;
        top: -100%;
        left: 0;
        transition: all 0.3s ease;
        background-color: rgba(0, 0, 0, 0.9);
        text-align: center;
        padding-top: 80px;
    }

    .nav .menu.active {
        top: 0;
    }

    .nav .menu li {
        display: block;
    }
    
    .nav .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    /* Styling Home.*/
    .home .home__content .text-2 {
        font-size: 70px;
    }

    .home .home__content .text-3 {
        font-size: 35px;
    }

    .home .home__content a {
        font-size: 23px;
        padding: 10px 30px;
    }

    /* Styling About. */
    .about .about__content .col {
        width: 100%;
    }

    .about .about__content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about__content .right {
        display: flex;
        flex-direction: column;
    }

    .about .about__content .right .text {
        font-size: 25px;
        text-align: center;
    }

    .about .about__content .right a {
        text-align: center;
    }
    /* Styling skills  */
    .skills .skills__content .col,
    .contact .contact__content .col
    {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media screen and (max-width: 690px) {
    /* Global */
    .max__width {
        padding: 0 23px;
    }
    /* Styling home  */
    .home .home__content .text-2 {
        font-size: 60px;
    }
    .home .home__content .text-3 {
        font-size: 32px;
    }
    
    .home .home__content a {
        font-size: 20px;
    }
}

@media screen and (max-width: 500px) {
    /* Styling home. */
    .home .home__content .text-2 {
        font-size: 50px;
    }
    .home .home__content .text-3 {
        font-size: 27px;
    }
    .about .about-content .right .text,
    .skills .skills-content .left .text{
        font-size: 19px;
    }
    /* Styling form. */
    .contact .right form .fields{
        flex-direction: column;
    }
    .contact .right form .name,
    .contact .right form .email{
        margin: 0;
    }
    /* Styling scroll button. */
    .scroll__up__btn{
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }
}

@media screen and (max-width: 425px) {
    /* Styling home. */
    .home .home__content .text-2 {
        font-size: 45px;
    }
    .home .home__content .text-3 {
        font-size: 25px;
    }
}

@media screen and (max-width: 376px) {
    /* Styling home. */
    .home .home__content .text-1 {
        font-size: 25px;
    }

    .home .home__content .text-2 {
        font-size: 40px;
    }

    .home .home__content .text-3 {
        font-size: 20px;
    }
}

@media screen and (max-width: 350px) {
    /* Styling home. */
    .home .home__content .text-1 {
        font-size: 20px;
    }

    .home .home__content .text-2 {
        font-size: 35px;
    }

    .home .home__content .text-3 {
        font-size: 15px;
    }

    .about .about__content .left img{
        width: 100%;
    }
}

/* 4k support */
@media screen and (min-width: 2000px) {
    /* Global */
    .max__width {
        max-width: 2500px;
    }
    
    /* Styling similar elements */
    section .title {
        font-size: 80px;
        margin-bottom: 120px;
        padding-bottom: 40px;
    }
    
    section .title::before {
        width: 360px;
        height: 6px;
    }
    
    section .title::after {
        font-size: 40px;
        bottom: -14px;
    }

    /* Styling navigation bar  */
    .nav {
        padding: 60px 0px;
    }

    .nav.sticky {
        padding: 30px 0px;
    }

    .nav .menu li a {
        font-size: 36px;
        margin-left: 50px;
    }

    .nav .menu li a:hover {
        font-size: 60px;
    }

    .nav.sticky .menu li a:hover {
        font-size: 60px;
    }

    .nav .logo a{
        font-size: 70px;
    }

    /* Styling home */
    .home .home__content .text-1 {
        font-size: 54px;
    }

    .home .home__content .text-2 {
        font-size: 150px;
        margin-left: -5px;
    }

    .home .home__content .text-3 {
        font-size: 80px;
        margin: 10px 0px;
    }

    .home .home__content a {
        font-size: 50px;
        padding: 24px 72px;
        margin-top: 40px;
        border-radius: 12px;
    }

    /* Styling About section. */
    .about .about__content .left img{
        width: 800px;
        height: 800px;
    }
    
    .about .about__content .right .text {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .about .about__content .right p {
        font-size: 32px;
    }
    
    .about .about__content .right a {
        font-size: 40px;
        padding: 20px 60px;
        margin-top: 40px;
        border-radius: 12px;
        border: 4px solid rgb(70, 20, 220);
    }

    /* Styling skills here.  */
    .skills .skills__content .left .text {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .skills .skills__content .left p {
        font-size: 32px;
    }

    .skills .skills__content .left a {
        font-size: 36px;
        padding: 16px 32px;
        margin-top: 40px;
        border-radius: 12px;
        border: 4px solid rgb(80, 20, 220);
    }

    .skills .skills__content .right .bars {
        margin-bottom: 30px;
    }

    .skills .skills__content .right .bars .info {
        margin-bottom: 10px;
    }

    .skills .skills__content .right .bars .info span {
        font-size: 36px;
    }

    .skills .skills__content .right .bars .line {
        height: 10px;
    }

    /* Styling Contact */
    .contact .contact__content .text {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .contact .contact__content {
        font-size: 32px;
    }

    .contact .contact__content .left .icons {
        margin: 20px 0;
    }

    .contact .contact__content .row {
        height: 130px;
    }

    .contact .contact__content .row i {
        font-size: 50px;
        color: rgb(53, 20, 220);
    }

    .contact .contact__content .row .info {
        margin-left: 30px;
    }

    .contact .contact__content .info .head {
        font-weight: 500;
    }

    .contact .right form .field {
        height: 90px;
        margin-bottom: 20px;
    }

    .contact .right form .name {
        margin-right: 20px;
    }

    .contact .right form .textarea {
        height: 160px;
    }

    .contact .right form .field input,
    .contact .right form .textarea textarea
    {
        border: 2px solid lightgrey;
        border-radius: 12px;
        padding: 0 30px;
        font-size: 34px;
    }

    .contact .right form .button {
        height: 94px;
        width: 240px;
    }

    .contact .right form .button button {
        width: 320px;
        height: 90px;
        border: 4px solid rgb(97, 20, 220);
        border-radius: 20px;
        font-size: 36px;
        font-weight: 500;
    }

    /* Styling footer section. */
    footer {
        padding: 40px 46px;
        font-size: 32px;
    }

    footer span a:hover {
        font-size: 100px;
    }

    .scroll__up__btn {
        height: 90px;
        width: 84px;
        right: 60px;
        line-height: 90px;
        font-size: 60px;
        border-radius: 12px;
    }

    .scroll__up__btn.show {
        bottom: 60px;
    }

}