:root {
    --first-color: rgb(39, 180, 245);
    --white: #fff;
    --gray-text: #F2F2F295;
}

body{
    font-family: "Montserrat", sans-serif;
}

.skills-pos{
    display: flex;
}

.text-path{
    width: 1000px;
    margin: 0 0 0 auto;
}

.text-path h1{
    font-weight: 400;
    font-size: 40px;
    color: var(--white);
    margin: 0 0 50px 0;
}

.text-path p{
    color: var(--gray-text);
    font-size: 25px;
    line-height: 1.7;
}

.skills{
    text-align: center;
    margin: 150px 0 100px 0 ;
}

.skills h1{
    font-weight: 400;
    color: var(--white);
    font-size: 50px;
    margin-top: 50px;
}

.skills-road {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 80px auto 150px auto;
}

.skills-road .road {
    position: absolute;
    inset: 0;
}
.skills-road .road path {
    fill: none;
    stroke: #e3edf7;
    stroke-width: 26px;
    stroke-linecap: round;
}

.skills-road .skill {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.skill:hover{
    transform: scale(1.3);
}

.skills-road .skill img {
    width: 70px;
    height: 60px;
}

.skill {
    position: relative;
}

.skill .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);

    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.skill:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.skill-html { left: -20px;  bottom: -20px; }
.skill-css  { left: 350px;  bottom: 60px; }
.skill-js   { left: 200px; bottom: 200px; }
.skill-php  { left: 80px; top: -20px; }
.skill-bs   { left: 380px; top: -20px; }


@media (max-width: 1454px) {
  .skills-pos {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-path {
    width: 80%;
    margin: 0 auto 80px auto;
  }

  .text-path h1 {
    font-size: 30px;
  }

  .text-path p {
    font-size: 20px;
  }

  .skills-road {
    width: 400px;
    height: 400px;
  }

  .skills-road .skill {
    width: 80px;
    height: 80px;
  }

  .skills-road .skill img {
    width: 55px;
    height: 45px;
  }

  .skill-html { left: 00px;  bottom: -10px; }
  .skill-css  { left: 320px; bottom: 70px; }
  .skill-js   { left: 170px; bottom: 190px; }
  .skill-php  { left: 80px;  top: -5; }
  .skill-bs   { left: 330px; top: -20px; }
}

@media (max-width: 600px) {


  .text-path {
    width: 90%;
    text-align: center;
  }

  .text-path h1 {
    font-size: 24px;
  }

  .text-path p {
    font-size: 16px;
  }

  .skills-road {
    width: 280px;
    height: 280px;
  }

  .skills-road .skill {
    width: 60px;
    height: 60px;
  }

  .skills-road .skill img {
    width: 40px;
    height: 35px;
  }


  .skill-html { left: 0px;  bottom: -10px; }
  .skill-css  { left: 215px; bottom: 40px; }
  .skill-js   { left: 110px; bottom: 130px; }
  .skill-php  { left: 60px;  top: -10px; }
  .skill-bs   { left: 230px; top: -10px; }
}