*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: #080808d9;
    color: #fff;
    overflow-x: hidden;
    /* background: url(background2.webp);
    background-attachment: fixed;
    background-size: cover; */
    
}

/* ------------------- */
@keyframes appear {
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}
/* -------------------- */

/* ----------Navigation---------- */
#navigation{
    background-color: rgb(50, 147, 128);
    height: 80px;
    position: sticky;
    top: 0px;
    z-index: 100;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: 0.4s;
}
.logo{
    /* width: 150px; */
    cursor: pointer;
    width: 50px;
    height: 50px;
    font-size: 25px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(200, 30, 30);
    background-color: #252525;
    text-align: center;
    border-radius: 50%;
    padding-top: 5px;
    transition: 0.5s;
    
}
.logo>a{
    text-decoration: none;
    color: white;
}
.logo:hover{
    background-color: #d81630;
    color: white;
}
nav ul li{
    list-style: none;
    display: inline-block;
    margin: 10px 20px;
}
nav ul li a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    position: relative;
    
}
nav ul li a::after{
    content: '';
    background: #ff004f;
    width: 0%;
    height: 3px;
    position: absolute;
    left: 0px;
    bottom: -6px;
    transition: 0.4s;
}
nav ul li a:hover::after{
    width: 100%;
} 
/* ----------Header------------ */
#header{
    width: 100%;
    height: 100vh;
}
.container{
    padding: 10px 10%;
    
}
.heading{
    display: flex;
    align-items: center;
    padding-right: 0%;
    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0;
}
.text{
    font-size: 30px;
    flex: 1;
    margin-left: 150px;
    margin-top: 100px;
}
.text h1{
    font-size: 60px;
    margin-top: 20px;
}
.text h1 span{
    color: #e72260;
}

.img >img{
    height: 100vh;
    aspect-ratio: 9/16;
    justify-content: flex-end;
    mask-image: linear-gradient(to bottom,rgba(0, 0, 0, 1),rgba(0, 0, 0, 0.1));
    /* display: contents; */
    
}

/* --------------About------------ */
#about{
    padding: 40px 0px;
    color: #d8d3d3;
    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0% cover 40%;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.abt-colunm-1{
    flex-basis: 30%;
}
.abt-colunm-1 img{
    width: 98%;
    border-radius: 10px;
    transition: 0.5s;
}
.abt-colunm-1 img:hover{
    box-shadow: 2px -2px 15px skyblue;
}
.abt-colunm-2{
    flex-basis: 60%;
}
.abt{
    color: white;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}
.sub-title{
    color: #ffffff;
    font-size: 40px;
}
.tab-title{
    color: rgb(174, 241, 223);
    font-size: 20px;
    display: flex;
    margin: 10px 0px 40px;
}
.tab-link{
    margin-right: 50px;
    font-size: 20px;
    cursor: pointer;
    position: relative;
}
.tab-link::after{
    content: '';
    width: 0%;
    height: 3px;
    background: #e72260;
    position: absolute;
    left: 0px;
    bottom: -7px;
    transition: 0.4s;
}
.tab-link.active-link::after{
    width: 50%;
}
.tab-link:hover::after{
    width: 100%;
}
.tab-content ul{
    list-style: none;
    margin: 0px 10px;
}
.tab-content ul li{
    color: white;
    margin: 10px 0px;
    font-size: 18px;
}
.tab-content ul li span{
    color: #ff6189;
    font-size: 20px;
}
.tab-content{
    display: none;
}
.tab-content.tab-active{
    display: block;
}

/* --------Projects------- */

#projects{
    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0% cover 20%;
}

.projectImg{
    width: 300px;
    height: 450px;
}
.project-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    grid-gap: 50px;
    /* display: flex;
    max-height: 500px;
    min-width: 600px;
    gap: 20px;
    justify-content: space-evenly; */
    margin-top: 50px;
}
.project{
    border-radius: 10px;
    position: relative;
    overflow: hidden;

    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0% cover 40%;
}
.project img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: 0.4s;
}
.project:hover img{
    transform: scale(1.1);
}
.layer{
    color: rgb(255, 255, 255);
    width: 100%;
    height: 0%;
    border-radius: 10px;
    background: linear-gradient(rgba(0,0,0,0.6),#06cf99);
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0px 40px;
    transition: 0.5s;
}
.project:hover .layer{
    height: 100%;
}
.layer p{
    font-size: 18px;
}
.layer h3{
    color: #000000;
    text-decoration: underline dotted;
    font-size: 25px;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: #1f2056;
    text-decoration: none;
    background-color: white;
    padding-top: 10px;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
}
.hidden{
    display: none;
}
.btn{
    display: block;
    margin: 50px auto;
    align-items: center;
    text-decoration: none;
    color: #e4cf0c;
    width: fit-content;
    border: solid 2px #f6ff00;
    box-shadow: 0px 0px 2px ;
    border-radius: 10px;
    padding: 5px;
    transition: 0.4s;
}
.btn:hover{
    background-color: rgb(254, 229, 0);
    color: black;
}

/* -------contact------- */
#contact{
    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}

.contact-left{
    flex-basis: 35%;
    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}
.contact-right{
    flex-basis: 100%;
    animation: appear linear;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}

.contact-left p{
    margin: 10px 0px;
    font-size: 18px;
}
.contact-left p i{
    margin-right: 10px;
    color: rgba(77, 133, 237, 0.79);
    font-size: 20px;
}
.social-media{
    margin-top: 30px;
}
.social-media a{
    margin-right: 20px;
    font-size: 25px;
    text-decoration: none;
    color: white;
    display: inline-block;
    /* transform: 0.5s; */
    transition: transform 0.5s;
}
.social-media a:hover{
    color: rgb(234, 52, 100);
    transform: translateY(-4px);
}
.btn2{
    display: inline-block;
    margin: 30px auto;
    align-items: center;
    text-decoration: none;
    color: #00ff00;
    width: fit-content;
    border: solid 2px #4ae00a;
    box-shadow: 0px 0px 2px ;
    border-radius: 10px;
    padding: 10px;
    transition: 0.4s;
    background-color: transparent;
}
.btn2:hover{
    background-color: #6ad424;
    color: black;
}
.submit{
    width: 150px;
}
.contact-right form{
    width: 100%;
}
form input,form textarea{
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 18px;
    border: 0;
    background-color: #252525;
    outline: none;
    color: white;
}
.menuBar1::before,.menuBar2::before{
    display: none;
    transition: 0.4s;
}
#msg{
    font-size: 15px;
    margin-top: -20px;
    color: rgb(156, 211, 73);
}

/* -----CSS for Small Screen----- */
@media only screen and (max-width: 900px){
    body{
        overflow-x: hidden;
    }
    .text{
        margin-top: 10px;
        margin-left: 10px;
    }
    .img >img{
        height: 600px;
    }
}
@media only screen and (max-width: 620px){
    body{
        overflow-x: hidden;
    }
    .menuBar2::before{
        display: block;
    }
    .menuBar1::before{
        display: block;
        position: absolute;
        top: 40px;
        left: 30px;
        color: rgb(248, 4, 4);
        cursor: pointer;
    }
    nav h2{
        position: absolute;
        top: 20px;
        right: 30px;
        cursor: pointer;
    }
    #navigation{
        background-color: transparent;
        position: relative;
    }
    .logo{

        display: none;
    }
    #header{
        height: 90vh;
    }
    .text{
        margin-left: 10px;
        font-size: 16px;
        margin-top: 10px;
        /* text-align: center; */
    }
    .text h1{
        font-size: 25px;
        margin-top: 10px;
    }
    .text h1 span{
        color: #ed0e55;
    }
    .img >img{
        height: 600px;
    }
    nav ul{
        background-color: #000000fc;
        position: fixed;
        top:0px;
        left: -100%;
        width: 180px;
        height: 100vh;
        margin-top: 0px;
        padding: 40px;
        z-index: 2;
        transition: 0.5s;
    }
    nav ul li{
        display: block;
        margin: 20px;
    }
    nav ul .menuBar2{
        position: absolute;
        top: 20px;
        left: 60px;
        cursor: pointer;
    }
    .sub-title{
        font-size: 35px;
        margin-bottom: 10px;
    }
    .abt-colunm-1, .abt-colunm-2{
        flex-basis: 100%;
    }
    .abt-colunm-1{
        margin-bottom: 20px;
    }
    .abt-colunm-2{
        font-size: 16px;
    }
    .tab-link{
        font-size: 18px;
    }
    .projectImg{
        width: 300px;
        height: 400px;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
}
@media only screen and (max-width: 450px){
    body{
        overflow-x: hidden;
    }
    .img >img{
        margin-top: -400px;
        height: 570px;
    }
    .text{
        margin-top: 300px;
    }
    .heading{
        flex-direction: column;
    }
}