@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&family=Lato:wght@300&family=Roboto:wght@300');
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
body{
    background-color: black;
    overflow-x: hidden;
    overflow-y: scroll;
    list-style: none;
    scroll-behavior: smooth;
}
button{
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    color: white;
    background: none;
    padding: 10px 16px;
    border:  1px solid darkgray;
    border-radius: 10px;
    transition: all 0.3s;
}
button:hover{
    background-color: red !important;
}
header{
    display: flex;
    background-color: #39333338;  
    padding: 8px 12px;

}
header nav {
    display: flex;
    margin: 0 5px;
}

nav li {
    list-style: none;
    margin: 12px 30px;
}
nav li a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}
nav .li a::after{
    content: '';
    width: 0%;
    height: 3px;
    background: crimson;
    position: absolute;
    left: 0;
    bottom: -4px;
    transition: all 0.3s;
}
nav .li a:hover::after{
    width: 100%;
}
.active{
    position: relative;
}
.active::after{
    content: '';
    width: 100%;
    height: 3px;
    background: crimson;
    position: absolute;
    left: 0;
    bottom: 3px;
    transition: all 0.3s;
}

#navLeft{
    width: 42%;
}
#navLeft li a {
    font-size: 25px;
    color: red;
    font-weight: bold;
    font-family: cursive;
}
#navRight{
    width: 50%;
}
/* Nav ends */

#home {
    background-image: url(/images/bg.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position-y: 33%;
    background-position-x: 30%;
    display: flex;
    padding: 12px;
    margin-top: 1px;
    width: 100%;
}
.name{
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    width: 50%;
    margin: 5px;
}
.name p{
    color: grey;
    font-size: 22px;
}
.name h3{
    color: red;
    font-size: 42px;
    margin: 20px 0;
}
.name h3 span{
    color: white;
}
.name button {
    margin-top: 30%;
}

.profile {
    width: 55%;
    margin: 5px;
    height: 385px;
    text-align: center;
}

.profile img {
    width: 50%;
    height: 100%;
}
.profile img {
    width: 55%;
    height: 105%;
    object-fit: cover;
    object-position: 15px -53px;
}

h1{  
    text-align: center;
    color: darkgray;
    font-family: sans-serif;
    text-decoration: underline;
    margin-top: 6%;
    font-size: 40px;
    text-shadow: 0px 2px 0px #000000, 3px 3px 5px #fffdfd2e;
}
/* Home ends */

#about{
    display: flex;
    color: white;
    height: 35vh;
    padding: 1% 5%;
    margin-top: 2%;
    height: 100%;
}
.photo{
    width: 30%;
    margin: 5px 4%;
    border: 1px solid darkgray;
    border-radius: 8px;
    background: #302b2b54;
}

.photo img{
    width: 100%;
    height: 100%;
}
.details{
    width: 60%;
    margin: 5px;
    padding: 12px;
    /* border: 1px solid white; */
}
.details h3{
    color: darkgray;
    margin-bottom: 2%;
}
.details nav{
    display: flex;
}

#skills{
    height: 100%;
    width: 100%;
    display: block;
}
.details .info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 5px;
}

.details .line{
    height: 5px;
    width: 100%;
    background-color: gray;
    position: relative;
    border-radius: 8px;
}
.details .line::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #0000ffe0;
    border-radius: 10px;
}
.details .html::before{
    width: 80%;
}
.details .CSS::before{
    width: 60%;
}
.details .JS::before{
    width: 65%;
}
.details .ReactJS::before{
    width: 75%;
}
.details .Bootstrap::before{
    width: 75%;
}
.details .Cpp::before{
    width: 60%;
}

.details #education{
    display: none;
}

.details #education .info{
    flex-direction: column;
    align-items: flex-start;
    margin: 18px 0;
}
.details #education .info span{
    margin: 2px 0;
}
.details #education .info span:nth-child(1){
    color: crimson;
    font-size: 17px;
    font-weight: bold;
}
/* about ends */

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}
.box{
    border: 2px solid gray;
    height: 100%;
    width: 350px;
    margin: 3%;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
}

.box img{
    display: block;
    margin: auto;
    width: 50%;
}
.box i{
    display: block;
    text-align: center;
    font-size: 8rem;
    padding: 21px;
    color: crimson;
    transition: all 0.3s;
}
.container .box:nth-child(2) i{
    color: darkcyan;
}
.container .box:nth-child(2):hover i{
    color: white;
}
.box:hover i{
    color: white;
    font-size: 7rem;
}
.box h2{
    text-align: center;
}
.box p{
    color: darkgray;
    font-weight: bold;
    font-size: 18px;
    padding: 3%;
    text-align: center;
}
.container .box:nth-child(2) img{
    margin-top: 4%;
}

.box button{
    margin: 4% 36%;
}
/* services ends */

#projects .box{
    margin: 3% 1%;
    height: 470px;
}
.box:hover{
    background-color: #60585854;
    border: 2px solid darkred;
}

#projects .box img{
        display: block;
        text-align: center;
        width: 32%;
        padding: 21px;
        color: crimson;
        transition: all 0.3s;
}
#projects .box:nth-child(1) img{
    width: 65%;
}
#projects .box:nth-child(1) button{
    margin: 10% 30%;
}
#projects .box:nth-child(2) button{
    margin: 2% 30%;
}
#projects .box:nth-child(3) button{
    margin: 13% 30%;
}
#projects .box:nth-child(4) button{
    margin: 7% 30%;
}

 /* projects ends */ 

#contact{
    height: 100%;
    background-color: #39333338;    
}
h2{
    margin-top: 3%;
    padding: 15px 0;
    text-align: center;
    font-size: 30px;
    font-family: cursive;
    font-weight: bold;
    color: darkgray;
}
.conDetails{
    display: flex;
    margin: 0 12%;
    padding-bottom: 1%;
    margin-top: 4%;
    justify-content: space-between;
}
.icons{
    display: contents;
}
#contact .conDetails span{
    font-size: 20px;
    margin: 15px 0px;
    display: block;
    color: darkgray;
    font-weight: bold;
}
#contact .conDetails p{
    font-size: 20px;
    color: darkgray;
    font-weight: bold;
}
#contact .conDetails i{
    color: white;
    cursor: pointer;
    font-size: 4rem;
}
#contact .conDetails i:hover{
    color: crimson;
}
#contact .fa-sharp {
    color: red;
    font-size: 35px;
    position: relative;
    left: 50%;
    cursor: pointer;
    bottom: 20px;
}