@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior:smooth;
    font-family: "DM Sans", sans-serif;
}

.wrapper{
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.container{
    height: 100%;
    margin: 0 auto;
    background-color: var(--primary);
}

header{
    background-color: var(--navcolor);
    color: white;
    display: flex;
    justify-content: center;
}

.navbar{
    width: 1200px;
    height: 4.5rem;
    padding: 0 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: larger;
    font-weight: 600;
    
}

.navbar a{
    color: white;
    /* height: auto; */
    text-decoration: none;
    padding-bottom: 0.2rem;
}

.navbar a:hover{
    /* transform: scale(1.1); */
    /* text-shadow: 0.2px 0.2px 2px wheat; */
    border-bottom: 1.5px solid white;
    /* transform: scale(1); */
    /* transform: translateY(-1px);     */
}

.nav-right{
    display: flex;
    gap:2rem;
}

.nav-menu{
    width: 2rem;
    height: 2rem;
    display: none; 
}

.drop-down{
    padding: 1rem 0.5rem;
    background-color: var(--navcolor);
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: larger;
    font-weight: 600;
    width:100%;
    display: none;
}

.active{
    display: flex;
}

.drop-down a{
    color: white;
    text-decoration: none;
    padding-bottom: 0.2rem;
}

.hero-section{
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    justify-content: space-between;
    align-items: center;
    gap: 0rem;   /* for description fitting */
    flex-direction: row;
    width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.hero-left{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    width: 70%;
}

/*  UpDated */
 .hero-section{
    width: 100%;
    flex-direction: column-reverse;
    justify-content: center;
    align-items:flex-start;
    align-items: center;
    margin: 2rem 1.5rem;
    gap: 3rem;
}

.hero-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}      
/* till here  */

.name-main{
    color: blue;
    font-size: larger;
}

.hero-head1{
    font-size: 40px;
    color: #343d68;
    font-weight: 500;
}

.hero-head2{ 
    line-height: 45px;
}

.hero-desc{
    font-family: "DM Sans", sans-serif;
    margin-top: 1rem;
    width: 70%;
    font-weight: 500;
    font-size : 17px ;
    color:rgb(255, 94, 0) ;
}

.role{
    /* color: #4e45d5; */
    color: red;
    font-weight: 800;
}

.btn a{
    text-decoration: none;
    all: unset;
}

.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    /* background-color: rgb(232, 74, 74); */
    background-color: rgb(255, 206, 10);
    color: aliceblue;
    box-shadow: 5px 5px 7px 0px #0000003f;
    padding: 1em 1.5em;
    cursor: pointer;
    transition: all 0.5s;
    font-weight: 500;
    border: solid 3px transparent;
    position: relative;
    z-index: 4;
}

.btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform-origin: left;
    transform: scaleX(0);
    transition: all 0.8s;
    background-color: #fff;
    z-index: -1;
}

.btn:hover::before{
    transform: scaleX(1);    
}

.btn:hover{
    color: black;
}


.hero-right{
    position: relative;
    /* background-color: #D93232; */
    /* background: linear-gradient(90deg, rgba(255, 255, 0, 0.97) 0%, rgba(255, 125, 87, 1) 100%); */
    /* background: linear-gradient(90deg, rgba(255, 255, 0, 1) 0%, rgba(255, 105, 60, 1) 0%); */
}

.my-image{
    width: 345px;
    height: 390px;
    object-fit: cover;    
    padding:2.5rem;
    filter:grayscale(0);
    animation: scaleImage 5s ease-in infinite;
    /* background: linear-gradient(90deg, rgba(255, 255, 0, 1) 0%, rgba(255, 105, 60, 1) 0%); */
        background-image: linear-gradient(90deg, rgba(255, 255, 0, 0.97) 0%, rgba(255, 125, 87, 1) 100%);
    /* border-radius: 10%; */
}

@keyframes scaleImage{
    50%{
        filter:grayscale(1);
        transform: scale(1.1);
        /* border: 2px solid black; */
        box-shadow: 3px 3px 10px black;
    }
}

.dec-1{
    position: absolute;
    bottom: 0;
    left: 0%;
    width: 35px;
    height: 30px;
    object-fit: cover;
    animation: decoration 5s linear infinite;
}

@keyframes decoration{
    50%{
       left: 5%;
       bottom: 5%;
    }
}


.heading-main{
    text-align: center;
    margin:0 auto;
    font-size:50px;
  font-style: bold;
  color: black;
  line-height: 50px;
  font-weight: 500;
}

.skill-sec-cover{
    /* background-color: var(--primary); */
    /* background-color: #0B7497 ; */
    /* background-color: #0B4F97 ; */
    background-color: white;
     margin: 2rem auto;
    padding: 3rem 4rem; 
    padding-bottom: 1rem;
}


.skill-sec{
    width: 1200px;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem auto;
    padding: 4rem 4rem;
    flex-wrap: wrap;
}

.skill-left{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding-left: 1.5rem;
}

.skill-left p{
    text-align: center;
    color: gray;
}

.icon-covering{
    width: 90px;
    height: 90px;
    background-color: #fef4f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon{
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.skill-right{
    position: relative;
    bottom: 0%;
    right: 0%;
    width: 40%;
}


#skills-box{
    position: absolute;
    bottom: 0%;
    right: 0;
    height: 10rem;
    padding-right: 2rem;
}

#icon_stack{
    position: absolute;
    bottom: 38%;
    right: 13%;
    width: 100px;
}

.box-icons{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: 1.5s;
    /* width: 100px; */
    object-fit: cover;
    opacity: 0;
}

.css{
    opacity: 1;
    width: 75px;
}

/* copied css icons + done fomatting */ 
#icon_stack:hover img:nth-child(6) {
    transform: translate(-0, -240px);
    opacity: .8;
}
#icon_stack:hover img:nth-child(5) {
    transform: translate(-0, -200px);
    opacity: .7;
}
#icon_stack:hover img:nth-child(4) {
    transform: translate(-0, -160px);
    opacity: .6;
}
#icon_stack:hover img:nth-child(3) {
    transform: translate(-0, -120px);
    opacity: .5;
}
#icon_stack:hover img:nth-child(2) {
    transform: translate(-0, -80px);
    opacity: .4;
}
#icon_stack:hover img:nth-child(1) {
    transform: translate(-0, -40px);
    opacity: 0.3;
}


#icon_stack:hover img:hover {
    opacity: 1;
}

/* coping ended */


.project-cover{
    background-color: var(--primary);
    margin: 0 auto;
 }
 
 .project-container{
     margin: auto;
     padding: 4rem 4rem;
 }
 
 .card-container{
     width:1200px;
     padding: 4rem 7rem;
     display: grid;
     /* grid-template-rows: 1; */
     grid-template-columns: repeat(3,1fr);
     gap: 3rem;
     justify-content: center;
     align-items: center;
     margin: 2rem auto;
 }
 
 .card{
     /* width: 400px; */
     /* background-color: aquamarine; */
     display: flex;
     flex-direction: column;
     padding: 1.5rem;
     flex-wrap: wrap;
     gap: 1rem;
     justify-content: center;
     align-items: center;
     background-color: white;
     border-radius: 15px;
     transition: 0.3s;
     position: relative;
 }
 
 .card img{
     /* width: 230px; */
     /* width: min-content; */

     height: 230px ;
     width: 100%;
     object-fit: cover;
 }

 .card:hover{
    transform: scale(1.02);
 }
 
 .card h5{
    /* text-align: center; */
     font-size: large;
     display: flex;
     justify-content: space-between;
     gap: 1rem;
 
 }
 
 .card p{

     color: gray;
 }
 
 .card-skills{
     display: flex;
     /* justify-content: center; */
     align-items: center;
     flex-wrap: wrap;
     gap: 1rem;
 }
 
 .card-skill-name{
     border-radius: 5px;
     background-color: #6b768833;
     padding: 2px 10px;
 }


.card:hover{
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    /* transform: scale(1.1); */
}

/* .card::before{
    content: "";
    position: absolute;
    top: 0%;
    bottom: 0;
    left: 0%;
    right: 0%;
    transform-origin: top;
    opacity: 0.3;
    background: #ffec3c;
    transform: scaleY(0);
    transition: all 0.3s;
    z-index: -1;

}

.card:hover::before{
    transform: scaleY(1);
} */


.contact-cover{
    background-color: #e7e7e7;
    /* margin: 2rem auto; */
    padding: 3rem 4rem; 

}

.contact-main{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
}

.form-container{
    width: 70%;
    margin: 2rem auto;
    max-width: 700px;

}

.form-inner-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-inner-container input{ 
    width:100%;
    height:42px;
    padding: 1rem;
    font-size:18px;
    border-radius: 10px;
    border: none;
    background-color: rgba(255, 251, 222, 0.959);
}

.form-inner-container textarea{ 
    /* width:100%; */
    padding: 1rem;
    font-size:18px;
    border-radius: 10px;
    border: none;
    background-color: rgba(255, 251, 222, 0.959);
}


.submit-btn{
    font-size: 1.4rem;
    margin: 1rem 0;
    margin-top: 2rem;
    border: none;
    background-color: rgba(44, 44, 212, 0.865);
    color: white;
    border-radius: 10px;
    width: 35%;
    padding: 0.5rem;
    text-align: center ;
    cursor: pointer;
    transition: all 0.2s ease-in 0.1s;
}

.submit-btn:hover{
    background-color: rgba(0, 0, 76, 0.865);
}


/* .error{
    border:2px solid red;
} */


footer{
    background-color: var(--navcolor);
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content{
    margin: 0 auto;
    padding: 2rem ;
    color: white;
}

.footer-icons{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 1rem;
}

.f-icon{
    color: white;
    transform: scale(1.7);
}

.footer-email{
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-size: large;
    padding-left: 15px;
}

.copyright{
    margin-top: 1rem;
    font-size: large;
    padding-left: 15px;
}

.fa-envelope{
    font-size: 15px;
    padding-top: 3px;
    padding-left: 1px;
}



:root{
    --navcolor:#072f5f ;
    --primary:#edf2f8;
}





@media(max-width:1080px){
    /* .hero-section{
        flex-direction: column;
        justify-content: center;
        align-items:flex-start;
        /* align-items: center; 
        margin: 5rem 5rem;
        gap: 10rem;
    } */


    .hero-section{
        width: 100%;
        flex-direction: column-reverse;
        justify-content: center;
        align-items:flex-start;
        align-items: center;
        margin: 5rem 1.5rem;
        gap: 3rem;
    }

    .hero-left{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
        width: 100%;
        margin: 0 auto;
    }    

    .hero-right{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;

    }

    .hero-left p {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .my-image{
        scale: 85%;
        align-self: center;
        margin:0 auto;
    }

    .skill-sec{
        width: 100%;
        display: flex;
        gap: 3rem;
        margin: 2rem auto;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        flex-direction: column;
        height: 100%;
    }

    .skill-left{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
    }


    .skill-right{
        margin: 1rem auto;
        height: 400px;
        position: relative;
        /* width: 100%; */
        /* top: 200px; */
        /* bottom: 0%; */
        /* right: 0%; */
        /* width: 40%; */
    }
    
        
    .project-container{
        margin: 0 auto;
        width: 100%;
    }
    
    .card-container{
        width: 100%;
        padding: 4rem 7rem;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        margin: 2rem auto;
        gap: 2rem;
    }
    
    .card{
        width: 400px;
        /* background-color: aquamarine; */
        margin: 1rem auto;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        align-items: center;
        background-color: white;
        border-radius: 15px;
        transition: 0.3s;
        position: relative;
    }

    .submit-btn{
        width: 50%;
    }
}






@media(max-width:700px){

     
    .navbar a{
        color: white;
        /* height: auto; */
        text-decoration: none;
        padding: 0.5rem;
    }
    
    .nav-right{
        display: none;
    }

    .nav-menu{
        width: 2rem;
        height: 2rem;
        display: block; 
    }


    .hero-head1{
        font-size: 1.5rem;
        color: #343d68;
        font-weight: 500;
    }
    
     .hero-section{
        width: 100%;
        flex-direction: column-reverse;
        justify-content: center;
        align-items:flex-start;
        align-items: center;
        margin: 5rem auto;
        gap: 3rem;
        background-color: var(--primary);
    }

    .hero-left{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
        width: 100%;
    }    

    .hero-left p{
        width: 90%;
    }

    .hero-right{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        padding: 0;

    }

    .hero-left p {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .btn{
        margin:0 auto ;
        margin-bottom:1rem
    }
    
    .my-image{
        /* width: 80%; */
        scale: 0.7;
        align-self: center;
        /* margin:2rem auto; */
        margin: 0;
        object-fit: cover;
    }

    .skill-sec{
        width: 100%;
        display: flex;
        gap: 1rem;
        margin: 2rem auto;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0.5rem;
    }

    .skill-left{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin: 0%;
        padding: 0%;
    }

    .icon-covering{
        width: 50px;
        height:50px;
        background-color: #fef4f5;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0.3rem;
    }
    
    .skill-icon{
        width: 40px;
        height: 40px;
        object-fit: cover;
    }


    .skill-right{
        margin: 1rem auto;
        height: 400px;
        position: relative;
    }

    #icon_stack{
        position: absolute;
        bottom: 38%;
        right: 40%;
        width: 100px;
    }

    .skill-left p{
        font-size: 0.8rem;
    }
    
    .project-container{
        margin: 0 auto;
        width: 100%;
    }
    
    .card-container{
        width: 100%;
        padding: 4rem 0;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        margin: 2rem auto;
        gap: 2rem;
    }
    
    .card{
        width: 100%;
    }

    .form-container{
        width: 100%;
        margin: 2rem auto;
        max-width: 700px;
    
    }

    .form-inner-container{
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .form-inner-container input{
        width: 100%;
    }

    .formfield{
        width: 100%;
    }

    .submit-btn{
        width: 100%;
    }

    footer{
        background-color: var(--navcolor);
        width: 100w;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .footer-content{
        margin: 0 auto;
        padding: 2rem 0 ;
        color: white;
    }

    .footer-icons{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-right: 2rem;
        gap: 2.5rem;
        margin: 1rem;
    }


}
