* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: var(--gray);
    font-family: sans-serif;
}

::selection{
    background-color:coral;
    color: var(--bwhite);
}

:root{
    --red:#FF3366;
    --black:#121212e0;
    --gray:#beb8b8;
    --bwhite:#E8EAEB;
}

p{
    color: #8888;
}


::-webkit-scrollbar{
    background: transparent;
    width: 10px;
}

::-webkit-scrollbar-thumb{
    background:#2c2c2c;
    border-radius: 8px;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--black);
    
}

.main {
    width: 100%;
    position: absolute;
    background-image: url(https://images.unsplash.com/photo-1642850356603-ca6295576249?q=80&w=1854&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
   
}

nav {
    width: 100%;
    height: 70px;
    background-color:var(--black);
    backdrop-filter: blur(19px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0vw 10vw;
    position: fixed;
    z-index: 99;

}

nav a {
    font-size: 25px;
    font-weight: bold;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: 30px;
}

.logo h2 {
    font-family: sans-serif;
    font-size: 23px;
    color: white;
}

.logo h2 span{
    color: var(--red);
}

ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

ul a li {
    list-style: none;
    font-size: 18px;
    font-weight: lighter;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: rgb(76, 75, 75);
    position: relative;
   
}

ul a li::after{
    content: " ";
    position: absolute;
    width: 0%;
    height: 100%;
    left: 0;
    top: 0;
    border-bottom: 2px solid rgb(226, 26, 26);
     transition: all ease-in 0.2s;
}



ul a li:hover {
    transition: all ease-in 0.2s;
}

ul a li:hover:after{
    width: 100%;
}

#home{
    color: rgb(226, 26, 26);
}

.join button {
    background-color: var(--red);
    padding: 7px 17px;
    outline: none;
    border: none;
    border-radius: 25px;
    box-shadow: 0px 2px 7px rgba(206, 9, 58, 0.518);
}

.join button:hover {
    cursor: pointer;
    color: var(--bwhite);
    background-color: #d81e56;
    transition: all 0.2s;
}

.join a button {
    font-size: 17px;
    font-weight: 600;
    color: var(--bwhite);
}

.join a button i {
   color: var(--bwhite);;
}

.bar {
    display: none;
}

.page1 {
    width: 100%;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.666); */
    background-color:#121212e0;
    display: flex;
    padding-top: 70px;
}

.part1 {
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    padding-left: 12vw;
    flex-direction: column;
}

.part1 h1 {
    width: fit-content;
    font-size: 3.5vw;
    color: var(--bwhite);
    font-weight: 600;
    
}

.part1 h2 span {
    color:var(--red);
}

.part1 p {
    width: 60%;
    font-size: 17px;
    margin-top: 20px;
    color: #8888;

}

.explore button {
    border: none;
    background-color: var(--red);
    color: rgb(67, 28, 28);
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: 600;
    border: none;
    font-size: 17px;
    margin-top: 50px;
    overflow: hidden;
}


.explore #resume{
    background-color: var(--black);
    border: 1px solid rgb(241, 24, 103);
    margin-left: 10px;
}

.explore #resume span{
    color: var(--red);
}

.explore #resume i{
    color:rgb(241, 24, 103);
}

#resume:hover{
    cursor: pointer;
    box-shadow: 0 0 20px rgb(241, 24, 103);;
    transition: all ease-in 0.1s;
}
.explore button:hover {
    cursor: pointer;
    box-shadow: 0 0 20px rgba(228, 7, 7, 0.819);
    transition: all ease-in 0.1s;
}
 

.explore button i {
    color: var(--bwhite);
}


.social {
    height: 50px;
    display: flex;
    align-items: center;
    margin-top: 70px;
    display: flex;
    gap: 20px;
}

.social a i {
    color: var(--bwhite);
    font-size: 27px;
}


.social a:hover{
    transition: all 0.18s;
    padding-bottom: 10px;
    scale: 1.2;
    text-shadow: 0px 0px 20px rgb(222, 5, 67);
}

.social a #facebook:hover{
    color: #fb2554;
}

.social a #linkdin:hover{
     color: #fb2554;
}

.social a #github:hover{
     color: #fb2554;
}



.part2 {
    width:50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.part2 img {
    position: absolute;
    width: 400px;
    margin-top: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
}

.part2 #back {
    width: 470px;
    filter: drop-shadow(2px 2px 37px rgb(234, 54, 54));


}

.part2 #front {
    width: 420px;
    filter: contrast(1.2);
    margin-top: 57%;
}


.sidenav {
    display: none;
}



/*STARTING ABOUT SECTION CSS*/
.About{
    width: 100%;
    height: 100vh;
    background-color:var(--black);
    text-align: center;
    display: flex;
    flex-direction: column;
    

}

.About h1{
    color: #b1b0b0;
    margin-top: 100px;
}

.About h1 span{
    color: var(--red);
}

.About .profile{
   width: 100%;
   height: 100vh;
   display: flex;
   gap: 20px;
   margin-top: 30px;
   justify-content: center;
}

.profile-image{
    width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    overflow: hidden;
}

.profile .image{
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 50%;

}
.profile .image img{
    width: 300px;
}

.profile-image .contacts{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-image .contacts p, i{
    font-size: 20px;
    color: #504f4f;
}

.profile-image .contacts p:hover{
    transition: all 0.2s;
    margin-left: 10px;
    cursor: pointer;
}
.profile-image .contacts p:hover i{
    color:var(--bwhite);
    transition: all 0.2s;
    margin-left: 10px;
    cursor: pointer;
}

.profile-image .contacts .icons{
    width: 100%;
    text-align: left;
    display: flex;
    gap: 25px;
}

.profile-image .contacts .icons i{
    font-size: 25px;
    color: #777;
}



.profile-image .contacts .icons i:hover{
    cursor: pointer;
    transition: all 0.18s;
    color: #e6e6e6;
}

.discription{
    margin-top: 20px;
    height: 70%;
    width: calc(90vw - 400px);
    display: flex;
   flex-direction: column;
   justify-content: center;
   gap: 30px;

}

.About .profile .discription h1{
    display: none;
}
.profile .About-social-links{
    display: none;
}

.discription p{
    color: #8888;
    text-align: left;
    width: 50vw;
    font-size: 17px;
}

.programming-language{
    height: fit-content;
    display: flex;
    gap: 50px;
}
.programming-language img{
    width: 30px;
}

.programming-language .html,.css,.js{
    width: fit-content;
    display: flex;
    align-items: center;
}

.programming-language .html,.css,.js span{
    font-size: 20px;
}

.programming-language .program {
    display: flex;
    align-items: center;
    gap: 5px;
}

.programming-language .program span{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 
}

/*Starting of page2*/

.page2 {
    width: 100%;
    min-height: 100vh;
    background-color:var(--black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
 .page2>h1{
    margin-top: 40px;
    color: var(--bwhite);
 }
.page2 .projects {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;

}

.page2 .projects .project{
    width: 347px;
    height: 450px;
    background-color: #191919;
    border-radius: 15px;
    overflow: hidden;

}

.page2 .projects .project .project-image{
    width: 100%;
    height: 50%;
    overflow: hidden;
}

.page2 .projects .project img{
    width: 100%;
    height: 100%;
    object-fit: cover;
   filter: blur(0.5px);
}

.project-discription{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 10px;
}

.page2 .projects .project h2{
    color: var(--bwhite);
    font-weight: 600;
    margin-top: 20px;
}
.page2 .project .buttons{
    display: flex;
    gap:10px;
}
.page2 .project .buttons button{
  border: none;
  outline: none;
  background-color: #3E63DD;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:7px;
 padding: 5px 10px;
 border-radius: 7px;
 font-weight: bold;
 font-size: 15px;
 cursor: pointer;
}

.page2 .project .buttons button i{
    color: white;
    font-weight: 500;
}

.page2 .project .buttons #code{
    background-color: #27272f;
    border: 1px solid #888;
}

.page2 .projects .project:hover img{
    scale: 1.05;
    transition: all ease-in-out 0.2s;
}
.page2 .project .buttons #live:hover{
    background-color: #000ecd;
    transition:all ease-in 0.2s;
}
.page2 .project .buttons #code:hover{
    background-color: var(--black);
    border: 1px solid #888;
    transition:all ease-in 0.2s;
}


/*Starting of footer*/

footer{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: calc(100vh - 70px);
    background-color: var(--black);
}


footer h1{
    padding-top:50px;
    text-align: center;
}

footer h1 span{
    color: var(--red);
}

.contact-section{
    display: flex;
    width: 90vw;
}

footer .left{
    width: 50vw;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 150px;
    justify-content: space-between;
    gap: 20px;
}


footer .left h1 span{
    color: var(--red);
}

footer .personal-details{
    display: flex;
    flex-direction: column;
    gap:20px;
}

footer .personal-details i{
    color:#0b75ff;
}

footer .social-links{
    display: flex;
    gap:25px;
}

footer .social-links i{
font-size: 25px;
color: #b5c6da;
}

footer .social-links i:hover{
    color: #4e20e4;
    filter:drop-shadow(0px 0px 10px #4e20e4);
    transition: all 0.2s;
}

footer .right{
    width: 50vw;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: white;
}

footer form{
    width: 400px;
    height: fit-content;
    background-color:#262E35;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding:20px 30px;
    gap: 25px;
    border-radius: 15px;
}


footer form input{
    width: 340px;
    height: 40px;
    border: none;
    outline: none;
    border-radius: 5px;
    background-color: transparent;
    color: white;
    border: 1px solid #4956aa;
    padding:0px 10px;
    font-size: 15px;
 
}


footer form textarea{
    width: 340px;
    height: 100px;
     border: none;
    outline: none;
    border-radius: 5px;
    background-color: transparent;
    color: white;
    border: 1px solid #4956aa;
    padding:0px 10px;
    font-size: 15px;
}

footer form h3{
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}
footer form button{
    margin-top: 40px;
    background-color: #3E63DD;
    color: white;
    border:none;
    outline: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 15px;
}


footer form button:hover{
    cursor: pointer;
    background-color: #000ecd;
    transition: all 0.2s;
}

footer form button:active{
    background-color: #0e0b0b;
    transition: all 0.2s;
}
@media (max-width:1286px) {
    
    .part2 #back{
        width: 400px;
    }

    .part2 #front {
        filter: contrast(1.2);
        margin-top: 65%;
    }
    .part1 p {
        width: 70%;
        font-size: 16px;
    
    }

}
@media (max-width:1240px) {
    
    .part2 #back{
        width: 400px;
    }

    .part2 #front {
         width: 35vw;
        filter: contrast(1.2);
        margin-top: 68%;
    }
    .part1 p {
        width: 70%;
        font-size: 16px;
    
    }

}


@media (max-width:1070px) {

    .page1{
        height: 100vmax;
    }

    .page1 .part1{
        margin-top: -100px;
    }

    .part2 #front {
        width: 37vw;
        filter: contrast(1.2);
        margin-top: 80%;
    }

    .part2 #back{
        width: 32vw;
        top:40%;
    }


}

@media (max-width:960px) {

    .main {
       background-color: var(--black);
       padding-bottom: 20px;
    }

    .page1 {
        height: 100vh;
        flex-direction: column-reverse;
        gap:10px;
    }

    .page1 .part1 {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .page1 h1 {
        font-size: 35px;
        width: 100%;
        text-align: center;
    }

    .part1 p {
        width: 100%;
        font-size: 17px;
        text-align: center;
        padding: 0px 20px;
    }

    .join button {
        display: none;
    }

    nav ul {
        display: none;
    }

    .bar {
        display: block;
    }

    .bar i {
        font-size: 23px;
    }

    .explore button {
        float: left;
    }

    .part2 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .part2 #back {
        width: 500px;
        filter: drop-shadow(2px 2px 8px var(--black));
        display: none;
    }

    .part2 #front {
        width: 200px;
        filter: contrast(1.2);
        display: none;
    }

    .part2 .profile {
        width: 80vw;
        height: 40vh;
        background-image: url("image/image.png");
        background-size: 300px;
        background-position-x: center;
        background-repeat: no-repeat;
        border-radius: 50%;
        margin-top: 10px;
    }

    .page1 .part1 {
        width: 100%;
        padding-left: 0px;
        padding: 0px 10px;

    }

    .sidenav {
        display: block;
        width: 70vw;
        height: 100vh;
        position: fixed;
        background-color: #121212d8;
        top: 0;
        backdrop-filter: blur(10px);
        right: -100%;
        z-index: 100;
    }

    .sidenav ul {
        flex-direction: column;
        position: absolute;
        padding: 70px 50px;
        gap: 30px;
        align-items: flex-start;

    }

    ul a li {
        font-size: 20px;
        color: var(--bwhite);
       
    }

    .sidenav i {
        background-color: var(--black);
        color: var(--bwhite);
        padding: 5px;
        border-radius: 50%;
        position: absolute;
        top: 3%;
        right: 10%;
        font-size: 30px;
    }

    .About {
        min-height: 100vh;
        gap: 50px;
    }

#about-heading{
        display: none;
    }
    .About .profile{
        height: 100vh;
        flex-direction: column;
        align-items: center;
    }

    .About .profile{
      padding-top: 100px;
    }
    .About .profile .contacts{
        display: none;
    }

    .About .profile .discription{
        width: 100%;
        text-align: center;
        padding-top: 150px;
    }

    .About .profile .discription p{
        width: 100%;
        padding: 0px 20px;
        text-align: center;
    }
    .About .profile .discription .programming-language span{
        display: none;
    }

     .About .profile .discription .programming-language{
        display: flex;
        justify-content: center;
        gap: 20px;
     }

    .About .profile .discription h1{
        display: block;
        text-align: center;
        margin-top: -150px;
    }

    .profile .About-social-links{
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .profile .About-social-links i{
        font-size: 30px;
        color: var(--bwhite);
    }

    /*Project section*/
    .projects{
        min-height: 150vh;
        flex-direction: column;
    }

    #project-head{
        padding-top: 100px;
    }

    .projects .project{
        width: 80vw;
        min-height: 450px;
    }
   

    /*Contact form*/
     footer{
        min-height: 100vh;
        width: 100%;
        padding: 20px;
       
     }

     footer>h1{
        display: none;
     }

     .contact-section{
        width: 100%;
        height: fit-content;
        padding-top: 50px;
     }

     footer .contact-section{
        height: 100vh;
        flex-direction: column;
     }

     footer .left{
        width: 100%;
        padding: 30px 30px;
        min-height: fit-content;
    }

    footer .left h1{
        margin-top: -20px;
    }

    footer .right{
        width: 100%;
         height: fit-content;
       
    }

    footer .right form{
        width: 100%;
        height: fit-content;
       border-radius: 0px;
    }

    footer form input{
        width: 70vw;
        height: 40px;
     
    }
    footer form textarea{
        width: 70vw;
        height: 80px;
     
    }


    
}