
.fields {
    /* border: 1px solid red; */
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .field {
    width: 80%;
    max-width: 1200px;
    margin: 50px 0;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .field h1 {
    font-size: 35px;
    text-align: center;
    text-wrap: nowrap;
  }
  
  .skills-field {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 20px;
    column-gap: 80px;
    width: 100%;
    max-width: 2400px;
  }
  
  .skill {
    position: relative;
    width: 450px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .skill .icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--skill-icon-border);
    background: linear-gradient(
      180deg,
      var(--skill-icon-first-color),
      var(--skill-icon-second-color)
    );
    border-radius: 20px;
  }
  
  .skill .icon img {
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid green; */
    width: 80px;
    /* filter: invert(90%); */
  }
  
  .skill-box {
    width: 100%;
    margin: 25px 0;
    /* border: 1px solid red; */
    margin-left: 20px;
  }
  
  .skill-box .title {
    display: block;
    font-size: 25px;
    font-weight: 600;
  }
  
  .skill-box .sub-title {
    font-size: 15px;
  }
  
  .skill-box .skill-bar {
    height: 10px;
    width: 100%;
    border-radius: 6px;
    margin-top: 6px;
    background: linear-gradient(
      to right,
      var(--skill-bar-first-color),
      var(--skill-bar-second-color)
    );
  }
  
  .skill-bar .skill-per {
    position: relative;
    display: block;
    height: 100%;
    width: 90%;
    border-radius: 6px;
    background: linear-gradient(
      to right,
      var(--skill-bar-filled-first-color),
      var(--skill-bar-filled-second-color)
    );
    animation: progress 0.4s ease-in-out forwards;
    opacity: 0;
  }
  
  @keyframes progress {
    0% {
      width: 0;
      opacity: 1;
    }
  
    100% {
      opacity: 1;
    }
  }
  
  .skill-per .tooltip {
    position: absolute;
    right: -14px;
    top: -32px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--tooltip-color);
    z-index: 1;
  }
  
  .tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    height: 10px;
    width: 10px;
    z-index: -1;
    background: var(--tooltip-color);
    transform: translateX(-50%) rotate(45deg);
  }
  .less-than-35per::before {
    bottom: 15px;
  }

  .tooltip-description {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    width: 100%;
    /* max-width: 220px; */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 10;
    /* white-space: pre-line; */
  }

  .skill:hover .tooltip-description {
    opacity: 1;
    display: block;
    top: -50px;
  }


  /* # Tablets Styles Size  200% */
@media only screen and (max-width: 768px) {
  .fields {
    margin-top: 50px;
  }
  
  .field {
    margin: 25px 0;
  }

  .fields .field h1 {
    font-size: 25px;
  }
}



  /* # Tablets Styles Size  200% */
@media only screen and (max-width: 600px) {
 
    .skills .fields {
        margin: 40px 10px;
        /* border: 1px solid red; */
      }
    
      .skills .fields h1 {
        font-size: 25px;
      }
    
      .skills .fields .field {
        margin: 20px 0;
      }
    
      .skills .fields .field .skill {
        width: 100%;
        height: max-content;
        /* border: 1px solid red; */
      }
    
      .skill .icon,
      .skill .icon img {
        width: 80px;
        height: 80px;
      }
    
      .skill-box .title {
        font-size: 20px;
      }
    
      .skill-box .sub-title {
        font-size: 15px;
      }
    
      .skill-box .skill-bar {
        height: 10px;
        width: 100%;
        border-radius: 6px;
        margin-top: 6px;
      }
    
      .skill-bar .skill-per {
        position: relative;
        display: block;
        height: 100%;
        width: 90%;
        border-radius: 6px;
    
        animation: progress 0.4s ease-in-out forwards;
        opacity: 0;
      }
    
      .skill-per .tooltip {
        position: absolute;
        right: -14px;
        top: -28px;
        font-size: 12px;
        font-weight: 500;
        color: #fff;
        padding: 2px 6px;
        border-radius: 3px;
    
        z-index: 1;
      }
    
      .tooltip::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -2px;
        height: 10px;
        width: 10px;
        z-index: -1;
    
        transform: translateX(-50%) rotate(45deg);
      }
      .less-than-35per::before {
        bottom: 12px;
      }
}

