@import url('https://fonts.googleapis.com/css2?family=Poppins:ital@1&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

:root{
    --color-primary: #191d2b;
  --color-secondary: #27AE60;
  --color-white: #FFFFFF;
  --color-black: #000;
  --color-grey0: #f8f8f8;
  --color-grey-1: #dbe1e8;
  --color-grey-2: #b2becd;
  --color-grey-3: #6c7983;
  --color-grey-4: #454e56;
  --color-grey-5: #2a2e35;
  --color-grey-6: #12181b;
  --box-shadow-1: 0 3px 15px rgba(0,0,0,0.3);
}

.light-mode {
    --color-primary: #FFFFFF;
    --color-secondary: #F56692;
    --color-white: #454e56;
    --color-black: #000;
    --color-grey0: #f8f8f8;
    --color-grey-1: #6c7983;
    --color-grey-2: #6c7983;
    --color-grey-3: #6c7983;
    --color-grey-4: #454e56;
    --color-grey-5: #f8f8f8;
    --color-grey-6: #12181b;

    .far,.fas,.fab{
      color: #FFFFFF;
    }
    
  }

body{
    
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-primary);
    font-size: 1.1rem;
    color: var(--color-white);
    transition: all 0.4s ease-in-out;

}

a{
    display: inline-block;
    text-decoration: none;
    color: inherit;
    font-family: inherit;

}

header{
  height: 100vh;
  color: var(--color-white);
  overflow: hidden;
  
}
section{
    min-height: 100vh;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    padding: 3rem 18rem; /*top-bottom and left-right */
}

/* this for animation  */
.section{
  transform: translateY(-100%) scale(0);
  transition: all 0.4s ease-in-out;
  background-color: var(--color-primary);
}

.sec1{
  display: none;
  transform: translateY(0) scale(1);
}
.sec2{
  display: none;
  transform: translateY(0) scale(1);
  background-color: var(--color-primary);
  
}
.sec3{
  display: none;
  transform: translateY(0) scale(1);
  background-color: var(--color-primary);
}
.sec4{
  display: none;
  transform: translateY(0) scale(1);
  background-color: var(--color-primary);
}
.sec5{
  display: none;
  transform: translateY(0) scale(1);
  background-color: var(--color-primary);
}
@keyframes scaleAni {
  0%{
    transform: translateY(-100%) scaleY(0)
  }
  
  100%{
    transform: translateY(0) scaleY(1)
  }
  
}
#linkedin{
    color: var(--color-secondary)
}
.active{
  display: block;
  animation: scaleAni 0.5s ease-in-out;
  
}

/* controls */
.active-btn{
  background-color: var(--color-secondary) !important;
  transition: all.4s ease-in-out;
  i{
    color: var(--color-white) !important;
  }
}
.controls{
  position: fixed;
  z-index: 10;
  top: 50%;
  right: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  .control{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
    background-color: var(--color-grey-4);
    height: 55px;
    width: 55px;
    border-radius: 50%;
    margin: 0.7rem 0;
    box-shadow: var(--box-shadow-1);

    i{
      font-size: 1.2rem;
      color: var(--color-grey-2);
      /* pointer-events: none; */
    }
    
  }
  
}


/* theme btn */
.theme-btn{
  top: 5%;
  right: 3%;
  position: fixed;
  padding: 1rem;
  cursor: pointer;
  background-color: var(--color-grey-4);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: .7rem 0;
  box-shadow: 0 3px 15px rgba(0,0,0,.2);
  transition: .1s all ease-in-out;
  .fas{
    font-size: 1.2rem;
    color: var(--color-grey-2);
    pointer-events: none;
  }

  &:active{
    transform: translateY(-5px);
  }


}

/* header content */

.header-content{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  height: 100%;

  .left-header{
    display: flex;
    align-items: center;
    position: relative;

    .h-shape{
      transition: all 0.4s ease-in-out;
      width: 51%;
      height: 100%;
      background-color:var(--color-secondary) ;
      position: absolute;
      left: 0;
      top: 0;
      z-index: -1;
      clip-path: polygon(0 0,46% 0, 79% 100%,0% 100%);;
    }
    .image{
      border-radius: 14px;
      height: 90%;
      object-fit: cover;
      width: 68%;
      margin-left: 4rem;
      background-color: var(--color-black);
      transition: all .4s ease-in-out;
      filter: grayscale(100%);
      &:hover{
        filter: grayscale(0);
      }

    }
  }
  .header-content .left-header .image img{
    object-fit: cover;
  }
  .right-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 18rem;
      .name{
        font-size: 3rem;
          .span{
            color: var(--color-secondary);
          }
      }
      p{
        margin: 1.5rem 0;
        line-height:2rem ;
      }

  }
}

/* independent component */
.btn-con{
  display:flex;
  /* align-self: flex-start; */
}
.main-btn{
  border-radius: 30px;
  color: inherit;
  font-weight: 600;
  position: relative;
  border: 1px solid var(--color-secondary);
  display: flex;
  align-items: center;
  align-self: flex-start;
  overflow: hidden;
  .btn-text{
    padding: 0 2rem;
    
  }
  .btn-icon{
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 1rem;
  }
  &::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: ease-in-out all .4s  ;
    z-index: -1;
  }
  &:hover{
    &::before{
      width: 100%;
      height: 100%;
      background-color: var(--color-secondary);
      transform: translateX(0);
    }
  }
}


/* title of the about me  */

.main-title{
  text-align: center;
 
}

.main-title  h2{
  position: relative;
  text-transform: uppercase;
  font-size: 4rem;
  font-weight: 700;
  .bg-text{
    position: absolute;
    top: 50%;
    left: 50%;
   
    color: var(--color-grey-5);
    transition: all .4s ease-in-out;
    z-index: -1;
    transform: translate(-50%,-50%);
    font-weight: 800;
    font-size: 6rem;
    opacity: 0.5;
  }
}

.main-title  h2 span{
    color: var(--color-secondary);
}



/* about */

/* .about-container{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  padding-top: 3.5rem;
  padding-bottom: 5rem;

  .right-about{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 2rem;
    .about-item{
      border: 1px solid var(--color-grey-5);
      border-radius: 5px;
      transition: all .4s ease-in-out;
      box-shadow: 1px 2px 15px rgba(0,0,0,.1);
      &:hover{
        cursor: default;
        transform: translateY(-5px);
        border: 1px solid var(--color-secondary);
        box-shadow: 1px 2px 15px rgba(0,0,0,.32);
      }
      .abt-text{
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        .large-text{
          font-size: 3rem;
          font-weight: 700;
          color: var(--color-secondary);
        }
        .small-text{
          padding-left:3rem;
          position: relative;
          text-transform: uppercase;
          font-size: 1.2rem;
          color: var(--color-grey-1);
          letter-spacing: 2px;
          &::before{
            content: '';
            position: absolute;
            left: 0;
            top: 15px;
            width: 2rem;
            height: 2px;
            background-color: var(--color-grey-5);
          }


        }
      }
    }
  }
  .left-about{
    padding-right: 5rem;
    p{
      line-height: 2rem;
      padding: 1rem;

    }
    h4{
      font-size: 2rem;
      text-transform: uppercase;

    }
  }

} */

.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 3.5rem;
  padding-bottom: 5rem;

  .right-about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;

    .about-item {
      border: 1px solid var(--color-grey-5);
      border-radius: 5px;
      transition: all 0.4s ease-in-out;
      box-shadow: 1px 2px 15px rgba(0, 0, 0, 0.1);

      &:hover {
        cursor: default;
        transform: translateY(-5px);
        border: 1px solid var(--color-secondary);
        box-shadow: 1px 2px 15px rgba(0, 0, 0, 0.32);
      }

      .abt-text {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;

        .large-text {
          font-size: 3rem;
          font-weight: 700;
          color: var(--color-secondary);
        }

        .small-text {
          padding-left: 3rem;
          position: relative;
          text-transform: uppercase;
          font-size: 1.2rem;
          color: var(--color-grey-1);
          letter-spacing: 2px;

          &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 15px;
            width: 2rem;
            height: 2px;
            background-color: var(--color-grey-5);
          }
        }
      }
    }
  }

  .left-about {
    padding-right: 5rem;

   
  }
}

.left-about  p {
  line-height: 2rem;
  padding: 1rem;
}

.left-about h4 {
  font-size: 2rem;
  text-transform: uppercase;
}

.about-stats{
  padding-bottom: 4rem;

  .progress-bars{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
  
    .bar{
      display: flex;
      flex-direction: column;
      .title{
        text-transform: uppercase;
        font-weight: 500;
      }
      .con{
        display: flex;
        align-items: center;

        .prog-text{
          color: var(--color-grey-2);
        }
        .progress{
          width: 100%;
          height: 0.45rem;
          background-color: var(--color-grey-5);
          margin-left: 1rem;
          position: relative;
          border-radius: 10px;

          }
          .progress span{
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background-color: var(--color-secondary);
            transition: all 0.4s ease-in-out;
        
            border-radius: 10px;
           
          
          }
          
         .webdev{
            width: 70%;
          }
          .js{
            width: 60%;
          }
          .node{
            width: 50%;
          }
          .sql{
            width: 60%;
          }
          /* .php{
            width: 60%;
          } */
          /* .webdriver{
            width: 70%;
          } */

          .dsa{
            width: 60%;
          }
          .cpp{
            width: 70%;
          }
          /* .java{
            width: 60%;
          } */
          .py{
            width: 75%;
          }
          .html{
            width: 80%;
          }
          .css{
            width:80%;
          }
          

      }
    }
  }
}

.stat-title{
  text-transform: uppercase;
  text-align: center;
  padding: 3rem 0;
  position: relative;
&::before{
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 60%;
  height: 1px;
  background-color: var(--color-grey-3);
  transform: translateX(-50%);
}
}
/* timeline */
.timeline{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-gap: 2rem;
  padding-bottom: 3rem;
  .timeline-item{
    position: relative;
    padding-left: 3rem;
    border-left: 1px solid var(--color-grey-5);
    .tl-icon{
      position: absolute;
      left: -27px;
      background-color: var(--color-secondary);
      top: 0;
      height: 50px;
      width: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      .tl-icon i{
        font-size: 1.3rem;
      }
    }
    .tl-duration{
      padding: .2rem .6rem;
      background-color: var(--color-grey-5);
      border-radius: 15px;
      display: inline-block;
      font-size: 0.8rem;
      text-transform: uppercase;
      font-weight: 500;

    }
  }
}
.tl-duration h5{
  padding:1rem 0 ;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 600;
  

}

.tl-duration h5 span{
  color: var(--color-grey-2);
  font-weight: 500;
  font-size: 1.2rem;

}
p{
  color:var(--color-grey-2) ;
}

/* portfolios */

.port-text{
  padding: 2rem 0;
  text-align: center;
}

.portfolios{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-gap: 2rem;
  margin-top: 3rem;
  .port-item{
    position: relative;
    border-radius: 15px ;


    
  }
  .hover-item{
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0) translateY(-100%);
    
    transition: .4s all ease-in-out;
    
    .icons{
       
    .icon{
      background-color: var(--color-primary);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      display: flex; 
       justify-content: center;
    align-items: center;
    margin: 0 1rem;
    cursor: pointer;
    color: var(--color-white);
    transition: .4s all ease-in-out;
    &:hover{
    
      color: var(--color-primary);
      background-color: var(--color-white);

      
    }

    }

  }

}

}


.port-item:hover .hover-item{
  opacity: 1;
  transform: scale(1) translateY(0);
 
}


.port-item img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;


}

.icon i{
  font-size: 1.5rem;
  color: inherit;
  margin: 0 1rem;
  
 
}
.hover-item h3{
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}



/* blogs  */

.sec4 .blogs{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-gap: 2rem;
  margin-top: 3rem;
  .blog{
    position: relative;
    background-color: var(--color-grey-5);
    border-radius: 5px;
    box-shadow: 1px 1px 20px rgba(0,0,0,.1);
    transition: .4s all ease-in-out;
    &:hover{
      box-shadow: 1px 1px 20px rgba(0,0,0,.8);
      transform: translateY(-5px);
      transition: .4s all ease-in-out;
      .bimg{
        filter: grayscale(0);
        transform: scale(1.1);
        box-shadow: 0px 4px 20px rgba(0,0,0,.1); transition: 0.5s all ease-in-out;
        
      }

    }


  }
}
.blog img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  filter: grayscale(100);
  transition: .4s all ease-in-out;
}
.blog-text{
  margin-top: -7px;
  padding: 1.1rem;
  border-top: 8px solid var(--color-secondary);
}

.blog-text h4{
  font-size: 1.5rem;
  margin-bottom: .7rem;
  transition: .4s all ease-in-out;
  cursor: pointer;
  &:hover{
    color: var(--color-secondary);
  }
}


/* contacts */

.contact-content{
  display: flex;
  padding-top: 3.5rem;
  .left{
    flex: 2;
    .h4{
      margin-top: 1rem;
      font-size: 2rem;
      text-transform: uppercase;

    }

    .p{
      margin: 1rem 0;
      line-height: 2rem;

    }
    .contact-info{
      .contact-item{
        display: flex;
        align-items: center;
        justify-content: space-between;
        .p{
          margin: .3rem 0 !important;
          padding: 0 !important
        }
        .icon{
          display: grid;
          grid-template-columns: 40px 1fr;
          .i{
            display: flex;
            align-items: center;
            font-size:1.3rem ;
            margin-right: 5px;
          }
        }
      }
    }
    .contact-icon{
      display: flex;
      margin-top:1.3rem ;
      .a{
        display: flex;
        align-items: center;
        color: var(--color-white);
        background-color: var(--color-grey-5);
        cursor: pointer;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius:50% ;
        margin: 0 0.4rem;
        transition: .4s all ease-in-out;
        &:hover{
          background-color: var(--color-secondary);transition: .4s all ease-in-out;
          .fab{
            color: var(--color-primary);transition: .4s all ease-in-out;
          }
        }
        .fab{
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 1.3rem;
        }
      }

    }
  }

  .right{
    flex: 3;
    margin-left:3rem ;
    .input-control{
      margin: 1.5rem 0;

    }

    .i-c-2{
      display: flex;
      :last-child{
        margin-left:1.5rem ;
        
      }
    }
    .submit-btn{
      /* display: flex;
      justify-content: flex-start; */
      display: inline-block;
    }

  }
}

.input-control input, textarea{
  border-radius:30px ;
  font-weight: inherit;
  font-size: inherit;
  font-family: inherit;
  padding: 0.4rem 1.1rem;
  outline: none;
  border: none;
  background-color: var(--color-grey-5);
  width: 100%;
  color: var(--color-white);
  resize: none;

  
}


/* theme  */
@import './_media.css';

@media screen and (max-width:1000px) {
  .controls{
    width: 100% !important;
    background-color: var(--color-grey-4);
    height: 60px;
  }

  header{
      padding: 0;
  
      height: auto;
      /* min-height: 100vh  !important; */
  }
  .theme-btn{
    width: 50px;
    height: 50px;

    
  }
  .header-content{
    grid-template-columns: 1fr;
    padding-bottom: 6rem;


    .left-header{
      .h-shape{
        display: none;
      }
    }
    .right-header{
      grid-row: 1;
      padding: 0;
      
      margin:0 auto ;
      text-align: center;
      width: 90%;
      .name{
        font-size: 2.5rem !important;
        
      }
      .p{
        line-height: 2rem;
      }
    }
  } 
  
  .header-content .left-header .image{
    margin: 0 auto;
    width: 90%;
  }
  .controls{
      top: auto;
      bottom: 0;
      flex-direction: row;
      justify-content: center;
      left: 50%;
      transform: translateX(-50%);
      .control{
        margin: 1rem .3rem;
      }
  }

  .about-container{
    grid-template-columns: 1fr;
    .right-about{
      grid-template-columns: 1fr;
      padding-top:2.5rem ;
    }
    .left-about{
      padding-right: 0;
      .p{
        padding-left:0 ;
      }
    }
  }
  .about-stats{
    .progress-bars{
      grid-template-columns: 1fr;
    }
  }
  .blogs{
    grid-template-columns: 1fr;
    
    
  }
  .timeline{
    grid-template-columns: 1fr;
    padding-bottom: 6rem;
  }
  .section{
    padding: 2rem 2.5rem !important;
    min-height: 100vh;
  }



  .portfolios{
    grid-template-columns: 1fr;
    padding-bottom: 6rem;
  }
  .main-title h2{
    font-size: 2rem;
    .bg-text{
      font-size: 2.5rem ;
    }

  }

  .contact-content{
    flex-direction: column;
    margin-bottom: 6rem;
    .right{
      margin-left: 0;
      margin-top: 2.5rem;
      .i-c-2{
        flex-direction: column;
      }
      .i-c-2 :last-child{
        margin-left:0px ;
        margin-top: 1.5rem;
        padding-left: 0;
        
      }
    }
  }

}

@media screen and (max-width:450px) {
    .header-content{
      .right-header{
        padding: 1rem !important;
        .name{
          font-size: 1rem !important;
        }
        .p{
          font-size: 1rem  !important;
          padding-bottom: 2rem !important;
        }
      }
    }
    .left-about{
      justify-content: center !important;
      align-items: center;
      .btn-con{
        font-size: 1rem;
        width: 200px !important;
        margin-top: 1.5rem !important;
        margin: auto;
        .btn-text{
          margin: 0 !important;
          /* font-size: 1rem !important; */
        }
      }
    }
    .left-about h4{
      font-size: 1.5rem;
      text-align: center;
    }
    .left-about .p{
      font-size: 0.9rem;
      text-align: center;
      line-height: 1rem;
     
    }
    .contact-content .right .submit-btn{
     
      background-color: var(--color-secondary);
    
    }
    .contact-content .contact-info .p , .icon{
      font-size: 0.8rem !important;
    }
}




@media screen and (max-width:999px) {
    .header-content{
      .right-header{
        padding: 5rem;
        .name{
          
          /* font-size: 1rem !important; */
          margin-bottom: 3rem;
        }
        
      }
    }
    
}
@media screen and (max-width:661px)  {
    .header-content{
      .right-header{

        padding:3rem;
      
        .name{
          
          font-size: 2.5rem !important;
          margin-bottom: 2rem !important;
        }
        .p{
          font-size: 0.9rem  !important;

        }
        .btn-con{
          font-size: 1rem;
          margin: auto;
          .btn-text{
            margin: 0;
          }
        }
      }
    }
}

@media screen and (min-width:650px) and (max-width:1450px)  {
  .portfolios{
    grid-template-columns: 1fr 1fr;
  }
}
