@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
  --f-color: #27AE60;
  --f-color-alt:#27AE60;/* -4% */
  --titles-color: hsl(207, 12%, 95%);
  --text-colors: hsl(207, 12%, 75%);
  --text-colors-light: hsl(207, 8%, 75%);
  --text-colors-lighten: hsl(207, 8%, 92%);
  --body-color: #191d2b;
  --container-color: hsl(207, 24%, 12%);

  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --large-size: .938rem;
  --medium-size: .813rem;
  --small-size: .75rem;
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--large-size);
    background-color: var(--body-color);
    color: var(--text-colors);
  }
  
  h1, h2, h3 {
    color: var(--titles-color);
    font-weight: 600;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }


  /*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 968px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
  
  .grid {
    display: grid;
    gap: 1.5rem;
  }

  /*=============== PROFILE ===============*/
.profile{
    position: relative;
    padding-top: 3.5rem;
  }
  
  .profile-container{
    row-gap: 2rem;
  }
  
  .profile-head{
    display: grid;
    text-align: center;
  }
  .profile-border{
    border: 3.5px solid var(--f-color);
    justify-self: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: .75rem;
  }
  .profile-pic{
    width: 100px;
    height: 95px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  
  .profile-name{
    font-size: var(--h2-font-size); 
  }
  
  .profile-role{
    font-size: var(--small-size);
    font-weight: 500;
    color: var(--text-colors);
    margin-bottom: 1rem;
  }
  .profile-info-group{
    text-align: center;
  }
  
  .profile-info-description{
    font-size:  var(--small-size);
    font-weight: 500;
  }

  .profile-social-media{
    display: flex;
    justify-content: center;
    column-gap: .75rem;
  }
  
  .profile-social-media-link{
    font-size: 1.25rem;
    color: var(--titles-color);
    transition: .3s;
  }
  .profile-social-media-link:hover{
    color: var(--f-color);
  }
  
  .profile-button,
  .profile-button-msg{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .profile-button{
    column-gap: 1rem;
  }
  
  .profile-button-msg{
    column-gap: .25rem;
  }

  /*=============== BUTTONS ===============*/

.button{
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    background-color: var(--f-color);
    color: #fff;
    padding: 1.15rem 1.5rem;
    border-radius: .5rem;
    transition: .3s;
    
  }
  .button i{
    font-size: 1.25rem;
  }
  .button:hover{
    background-color: var(--f-color-alt);
    box-shadow:  0 4px 24px var(--f-color);
  }
  
  .button-small{
    padding: .75rem;
    box-shadow: none;
  }
  .button-gray-color{
    background-color: var(--container-color);
    color: var(--titles-color);
  }
  
  .button-gray-color:hover{
    background-color: hsl(207,24%,16%);
  }

  /*=============== FILTERS TABS ===============*/
.filter-content{
    margin: 2rem 0 2.5rem;
    background-color: hsl(207 24% 15% / 1);
    padding: .375rem;
    border-radius: .75rem;
    display: flex;
    justify-content: space-between;
    column-gap: .5rem;
  }
  .filter-button{
    width: 100%;
    border: none;
    outline: none;
    padding: 1rem;
    color: var(--titles-color);
    font-size: var(--medium-size);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border-radius: .75rem;
    cursor: pointer;
    background-color: transparent;
    transition: .3s;
  }
  
  .filter-button:hover{
    background-color: var(--body-color);
  }

  /*=============== SKILLS ===============*/
.skills-content{
    row-gap: 1.5rem;
  }
  
  .skill-title{
    font-size: var(--h3-font-size);
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .skill-box{
    display: flex;
    justify-content: center;
    column-gap: 3rem;
  }
  .skill-group{
    display: grid;
    align-content: flex-start;
    row-gap: 1rem;
  }
  .skill-data{
    display: flex;
    column-gap: .5rem;
  }
  
  .skill-data i{
    font-size: 1rem;
    color: var(--f-color);
  }
  .skill-name{
    font-weight: 500;
    line-height: 27px;
  }

  /*=============== PROJECTS ===============*/
.project-box{
    position: relative;
    border-radius: 1rem;
    overflow:hidden;
  }
  
  .project-box img{
    width: 100%;
    height: 100%;
  }
  
  .project-modal{
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: -100%;
    left: 0;
    background: linear-gradient(180deg,hsla(207,24%,40%,.3)0%,hsla(207,24%,40%,.3)95%);
    display: grid;
    align-items: flex-end;
    padding: 1.5rem 1.25rem;
    transition: .3s;
  }
  
  .project-subtitle,
  .project-title{
    color: #fff;
  }
  
  .project-subtitle{
    font-size: var(--small-size);
  }
  
  .project-title{
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
  }
  .project-button{
    padding: .5rem;
  }
  
  .project-box:hover .project-modal{
    bottom: 0;
  }
  
  /* Hide and show projects & skills */
.filters [data-content]{
    display: none;
  }
  
  .filters__active[data-content]{
    display: grid;
  }
  
  /* Activate button filter */
  .filter-tab-active{
    background-color: var(--body-color);
  }
  
  /*=============== FOOTER ===============*/
  .contact-sub-title
  {
      color: var(--title-color);
      text-align: center;
      font-size: 15px;
      margin: 2.5rem 0 2rem;
      display: block;
  }
  
  /*=============== BREAKPOINTS ===============*/
  @media screen and (min-width: 968px) {
    :root {
      --h2-font-size: 1.5rem;
      --h3-font-size: 1.25rem;
      --large-size: 1rem;
      --medium-size: .875rem;
      --small-size: .813rem;
    }
  }
  /* For small devices */
  @media screen and (max-width: 320px){
    .container{
      margin-left: 1rem;
      margin-right: 1rem;
    }
  
    .profile-info{
      column-gap: 1.5rem;
    }
  
    .profile-button{
      flex-direction: column;
      row-gap: 1rem;
    }
  
    .skill-box{
      column-gap: 1rem;
    }
    
  }
  
  /* For medium devices */
  @media screen and (min-width: 576px){
    .projects-content{
      grid-template-columns: 332px;
      justify-content: center;
    }
  
    .filter-content{
      width: 332px;
      margin: 3rem auto;
    }
  }
  
  @media screen and (min-width: 776px){
    .projects-content,
    .skills-content{
      grid-template-columns: repeat(2,332px);
    }
  
    .skills-content{
      column-gap: 3rem;
      justify-content: center;
    }
  
  }
  
  /* For large devices */
  @media screen and (min-width: 992px){
    .container{
      margin-left: auto;
      margin-right: auto;
    }
  
    .profile{
      padding-top: 4rem;
    }
  
    .profile-border{
      width: 135px;
      height: 135px;
      margin-bottom: 1rem;
    }
  
    .profile-pic{
      width: 120px;
      height: 118px;
    }
  
    .profile-role{
      margin-bottom: 1.5rem;
    }
  
    .profile-info-description{
      font-size: var(--medium-size);
    }
  
    .profile-button{
      column-gap: 2rem;
    }
  
    .projects-content{
      gap: 2rem 3rem;
    }
  
    .contact-sub-title{
      margin: 4.5rem 0 2.5rem;
    }
  }