@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html{
    scroll-behavior: smooth;
}
section{
    padding: 100px 0;
}
.max-width{
    margin: auto;
    max-width: 1300px;
    padding: 0 80px;
   
}
.about, .projects, .skills, .contact{
    font-family: 'Poppins', sans-serif;
}
.about .about-content,
.projects .p-content,
.skills .skills-content,
.contact .contact-form
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
section .title{
    position: relative;
    text-align: center;
    font-size: 40px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}
section .title::before{
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
}
section .title::after{
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: rgb(250, 167, 214);
    padding: 0 5px;
    background: #111;
    transform: translateX(-50%);
}

/* navbar styling */
.navbar{
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}
.navbar.sticky{
    padding: 15px 0;
    background:  rgb(109, 163, 92);
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span{
  color: white;
}
.navbar.sticky .logo a span{
  color: #fff;
}
.navbar .menu li{
    list-style: none;
    display: inline-block;
}
.navbar .menu li a{
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
    position: relative;
}
.navbar .menu li a:hover{
    color:  rgb(247, 252, 247);
}
.navbar .menu li a:after{
  content: "";
  position: absolute;
  background-color: rgb(255, 255, 255);
  height:3px;
  width :0;
  left:0;
  bottom:-10px;
  transition: 0.3s;

}
.navbar .menu li a:hover:after{
width:100%;
color: #fff;
}
.navbar.sticky .menu li a:hover{
    color: #fff;
}

/* menu btn styling */
.menu-btn{
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}
.scroll-up-btn{
    position: fixed;
    height: 45px;
    width: 42px;
    background: rgb(98, 123, 211);
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    border-bottom-width: 2px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show{
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}
.scroll-up-btn:hover{
    filter: brightness(80%);
}


/* home section styling */
.home{
    display: flex;
    background: url('portfolio.background.jpg') no-repeat center;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}
.home .max-width{
  width: 100%;
  display: flex;
}
.home .max-width .row{
  margin-right: 0;
}
.home .home-content .text{
  font-family:URW Chancery L, cursive;
    font-size: 27px;
}
.home .home-content .text2{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
    font-family:URW Chancery L, cursive;
  color: #fff;

}
.home .home-content .text3{
    font-size: 30px;
    margin: 5px 0;
  font-family: Snell Roundhand, cursive;
}
.home .home-content .text3 span{
    color:  rgb(219, 163, 130);
    font-weight: 500;
}


/* about section styling */
.about{
  background: #111;
}

.about .title::after{
    content: "who i am";
}
 .about-content .column{
        width: 90%;

    }
    .about .about-content .left,
    .about .about-content .right{
      display: inline-block;
        vertical-align: top;
    }

.about .about-content .left{
    width: 45%;
}
.about .about-content .left img{
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 131px;
}
.about .about-content .right{
    width: 35%;
}
.about .about-content .right .text{
    font-size: 25px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
     font-style: URW Chancery L, cursive
}


.about .about-content .right p{
    text-align: justify;
    color: #fff;
   
}
.about .about-content .right a{
    display: inline-block;
    background:  rgb(130,219,142);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid  rgb(130, 219, 142);
    transition: all 0.3s ease;
}
.about .about-content .right a:hover{
    color:  rgb(130, 219, 133);
    background: none;
}




/*project styling*/

.projects{
    color:#fff;
    background: #111;
}
.projects .title::before
{
    background: #fff;
}
.projects .title::after
{
    background: #111;
    content: "what i made";
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px 0;
  }
  
 .container .card {
    position: relative;
    min-width: 320px;
    height: 300px;
    box-shadow: 
      5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px;
    transition: 0.5s;
  }
  .container .card .box {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #2a2b2f;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: 0.5s;
  }
  
  .container .card .box:hover {
    transform: translateY(-50px);
  }
  .container .card .box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
  }
  
   .container .card .box .content {
    padding: 20px;
    text-align: center;
  }
  
  
   .container .card .box .content h3 {
    font-size: 1.5rem;
    color: #fff;
    z-index: 1;
    transition: 0.5s;
    margin-bottom: 15px;
  }
  
   .container .card .box .content p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: 0.5s;
  }
  
   .container .card .box .content a {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background:  rgb(130, 219, 142);;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    border: 2px solid  rgb(130, 219, 142);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
  }
.container .card .box .content a:hover {
    color:  rgb(130, 219, 155);
    background: none;
  }
  



/* skill section */
.skills{
  padding: 100px 0;
  background: #111;
}
.skills .title::after{
    content: "what i know";
}
.skills .skills-content .column{
    width: calc(50% - 30px);
   display: inline-block;
}
 
.skills .skills-content .left .text{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
     font-style: URW Chancery L, cursive
}
.skills .skills-content .left p{
    text-align: justify;
    color:#fff;
}

.skills .skills-content .right .bars{
    margin-bottom: 15px;
}
.skills .skills-content .right .info{
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}
.skills .skills-content .right span{
    font-weight: 500;
    font-size: 18px;
    color: #fff;
}
.skills .skills-content .right .line{
    height: 5px;
    width: 100%;
    background: lightgrey;
    position: relative;
}
.skills .skills-content .right .line::before{
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background:  rgb(109, 223, 130);
}
.skills-content .right .html::before{
    width: 90%;
}
.skills-content .right .css::before{
    width: 80%;
}
.skills-content .right .dsa::before{
    width: 70%;
}
.skills-content .right .cpp::before{
    width: 70%;
}
/*Contact styling*/


.contact{
  background:#111;
  background-size : cover;
  padding: 100px 0px;
  
  
}

.contact h2::before
{
    background: #fff;
}

.contact-form{
  max-width: 600px;
  margin: auto;
  padding: 0 10px;
  overflow: hidden;
}

.contact-form-fill{
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0 ;
  background: #111;
  padding: 20px 40px ;
  outline: none; 
  color:#ddd;
  transition: 0.5s;

}
.contact-form-fill:hover{
  box-shadow: 0 0 10px 4px #9bc684;
}



.textarea.contact-form-fill{
  resize:none;
  height: 120px;

}
.contact-form-btn{
  border: 0;
  background:#6dbe7d;
  padding: 12px 50px;
  color: #fff;
  border-radius: 20px;
  transition: 0.5s;
  font-size: 20px;
  float: right;
}
.contact-form-btn:hover{
  background-color:  rgb(79, 154, 79);
  color : white;
  cursor : pointer;
}


/*scrollbar*/
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background:  rgb(130, 219, 157);
}








/*media query*/
@media (max-width: 1100px) {
    .about .about-content .left img{
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 990px) {
    .max-width{
        padding: 0 50px;
    }
}
@media (max-width: 945px){
    .menu-btn{
        display: block;
        z-index: 999;
    }
    .menu-btn i.active:before{
        content: "\f00d";
    }
    .navbar .menu{
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }
    .navbar .menu.active{
        left: 0;
    }
    .navbar .menu li{
        display: block;
    }
    .navbar .menu li a{
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }
    .home .home-content .text2{
        font-size: 80px;
    }
    .home .home-content .text3{
        font-size: 40px;
    }
    
    .max-width{
        max-width: 930px;
    }
    .about .about-content .column{
        width: 100%;
    }
    .about .about-content .left{
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }
    .about .about-content .right{
        flex: 100%;
    }
    .projects .p-content .card{
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .skills .skills-content .column
    {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 690px) {
    .max-width{
        padding: 0 25px;
    }
    .home .home-content .text2{
        font-size: 60px;
    }
    .home .home-content .text3{
        font-size: 30px;
    }
    .home .home-content a{
        font-size: 20px;
    }
    .projects .p-content .card{
        width: 100%;
    }
}

@media (max-width: 500px) {
    .home .home-content .text2{
        font-size: 50px;
    }
    .home .home-content .text3{
        font-size: 30px;
    }
    .about .about-content .right .text,
    .skills .skills-content .left .text{
        font-size: 20px;
    }
    
   
    .scroll-up-btn{
        right: 15px;
        bottom: 15px;
        height: 40px;
        width: 35px;
        font-size: 25px;
        line-height: 40px;
    }
}
