* {
    padding: 0;
    margin: 0;
}

body {
    background: #050d1d;
    color: floralwhite;
    font-family: 'Poppins', sans-serif;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background: #03133b;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;

}

nav ul li a {
    text-decoration: none;
    color: antiquewhite;

}

nav ul li a:hover {
    color: rgb(170, 107, 228);
    font-size: 1.03rem;

}

.left {
    font-size: 2rem;
}

.firstsection {
    display: flex;
    justify-content: space-around;
    margin: 80px 0;
}

.firstsection>div {
    width: 33%;
}

.leftsection {
    font-size: 2rem;
    margin: 40px 0;
}

.rightsection img {
    height: 80%;
    width: 110%;
    filter: drop-shadow(20px 5px 3px rgb(170, 107, 228));
}

.red {
    color: rgb(170, 107, 228);
    font-size: 40px;
    font-weight: 600;
}

#element {
    color: rgb(170, 107, 228);
    font-size: 40px;
}

main hr {
    border: 0;
    height: 1.5px;
    background: rgb(170, 107, 228);
    margin: 40px 30px;
}
/* about css */

.container{
    padding: 20px 0;
    color: antiquewhite;
    display: flex;
    margin-top: 80px;
}

.image img{
    width: 270px;
    border: solid 3px rgb(170, 107, 228);
    border-radius: 15px;
    margin-left: 90px;   
    filter: drop-shadow(10px 10px 40px rgb(170, 107, 228));
}

.about{
    margin-left: 50px;
    font-weight: 600;
    font-size: 3rem;
    color: rgb(170, 107, 228);
}

.text{
    color: antiquewhite;
    margin: 40px 50px;
    font-size: 20px;
}

.sub-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-link{
    margin-right: 50px;
    margin-left: 50px;
    font-size: 30px;
    cursor: pointer;
    position: relative;
}

.tab-link::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-link.active-link::after{
    width: 50%;
}

.tab-contents ul li {
    margin: 10px 0px 0px 50px;
    list-style: none;
}

.tab-contents ul li span{
    color:rgb(170, 107, 228);
    font-size: 24px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* my interest css */

.interest-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin: 50px 50px 0 50px;
}

.interest-list div{
    background: #14080849;
    padding: 30px;
    font-size: 15px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.interest-list div i{
    font-size: 50px;
    margin-bottom: 30px;
    margin-left: 80px;
}

.interest-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}

.interest-list div a{
    text-decoration: none;
    color: antiquewhite;
    font-size: 15px;
    margin-top: 20px;
    display: inline-block;
}

.interest-list div:hover{
    /* background: #fa004ffd; */
    background: #4e1863;
    transform: translateY(-10px);
}

/* css for projects */

 
.project-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin: 50px 50px 50px 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6),rgb(170, 107, 288));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 15px;
    transition: height 0.5s;
}


.layer h3{
    margin-bottom:30px;
    margin-right: 90px;
}

.layer p{
    margin-right: 90px;
}

.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 90px;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px;
    width: 140px;
    border: solid 1px rgb(170, 107, 228);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: antiquewhite;
    transition: background 0.5s;
    cursor: pointer;
    margin-left: 580px;
    text-align: center;
}

.btn:hover{
background: rgb(170, 107, 228);
}

/* contact css */

.contact_page {
    position: relative;
    text-align: center;
    padding-top: 10px;
}

.contact-title{
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 3rem;
    color: rgb(170, 107, 228);
    margin-bottom: 30px;
}
.social ul{
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px;
}

.social ul li :hover{
    transform: scale(1.1);
}

.contact_name{
    margin-bottom: 50px;
}
.contact_name p{
    margin-top: 20px;
}

.contact_name i {
    font-size: 20px;
    margin-right: 10px;
}

/* copyright */

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #03133b;
    font-weight: 300;
}

/* mobile view */

@media screen and (max-width: 820px) {

    nav {
        flex-direction: column;
        height: 100px;
    }


    .firstsection {
        flex-direction: column-reverse;
    }

    .leftsection {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .rightsection {
        width: 80% !important; 
        margin-left: 13px;
    }
    body{
        min-width: fit-content;
    }

    .container{
        display: block;
    }
    
    .about{
        margin: 30px 0;
        text-align: center;
    }
    .text{
        font-size: 25px;
        margin: 30px 40px;
    }
    .image img{
    margin-left: 365px;
    }

    .layer h3{
        margin-bottom:20px;
        margin-right: 90px;
        font-size: 50px;
    }
    .layer p {
        font-size: 40px;
    }
    .btn {
margin-left: 365px;
    }
    nav ul li {
        list-style: none;
        margin: 10px 70px;
        font-size: 20px;
    }

    .project-list{
        display:flex;
        flex-direction: column;
    }

    .tab-contents ul li span {
        font-size: 30px;
    }

    .tab-contents ul li {
        font-size: 25px;
    }
    .left{
    font-size:40px;
}
