/*///////////////////////////////--Third-Section--///////////////////////////////////////////*/

#third {
    /*background-color: white;*/
    height: 150vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  
  #third .box {
    /*background-color: red;*/
    height: 33%;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 5%;
    margin-right: 5%;
  }
  
  #third .box .img {
    height: 80%;
    position: relative;
  }
  
  #third .box .images, .box-Img {
    height: 100%;
    border-radius: 50%;
    transition: all 0.5s;
  }
  
  #third .box .caption {
    backdrop-filter: blur(1px);
    border-radius: 2vw;
    padding: 2vw;
    z-index: -2;
  }
  
  .caption-1 {
    background-color: rgba(255, 0, 0, 0.429);
    border: 1px solid red;
    color: red;
  }
  .caption-2 {
    background-color: rgba(0, 140, 255, 0.429);
    border: 1px solid cyan;
    color: cyan;
  }
  .caption-3 {
    background-color: rgba(255, 106, 0, 0.429);
    border: 1px solid orange;
    color: orange;
  }
  
  
  
  #third .box .caption h3 {
    font-size: 8vh;
    
  }
  #third .box .caption p {
    font-size: 6vh;
    color: white;
  }
  
  .span-1, .span-3, .span-5 {
    display: block;
    background-color: rgb(222, 6, 6);
    border: 1px solid white;
    position: absolute;
    bottom: -5%;
    left: 0;
    border-radius: 20px;
    height: 10%;
    width: 10%;
    animation: move_2 5s linear infinite;
  }
  
  .span-2, .span-4, .span-6 {
    display: block;
    background-color: rgb(222, 6, 6);
    border: 1px solid white;
    position: absolute;
    top: -5%;
    right: 0;
    border-radius: 20px;
    height: 10%;
    width: 10%;
    animation: move_4 5s linear infinite;
  }
  
  .span-3, .span-4 {
    background-color: rgb(6, 60, 222);
    border: 1px solid white;
  }
  
  .span-5, .span-6 {
    background-color: rgb(255, 119, 0);
    border: 1px solid white;
  }
  
  @keyframes move {
    0% {
      transform: translateX(0%);
    }
  
    50% {
      transform: translateX(600%);
    }
  
    100% {
      transform: translateX(0%);
    }
  }
  
  @keyframes move_2 {
    0% {
      transform: translateX(0%);
    }
  
    50% {
      transform: translateX(900%);
    }
  
    100% {
      transform: translateX(0%);
    }
  }
  
  @keyframes move_3 {
    0% {
      transform: translateX(0%);
    }
  
    50% {
      transform: translateX(-600%);
    }
  
    100% {
      transform: translateX(0%);
    }
  }
  
  @keyframes move_4 {
    0% {
      transform: translateX(0%);
    }
  
    50% {
      transform: translateX(-900%);
    }
  
    100% {
      transform: translateX(0%);
    }
  }
  
  
  .img::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    height: 100%;
    width: 300%;
    background-color: #111111;
    border-radius: 10vw 2vw 2vw 10vw;
    z-index: -10;
    border: 2px dotted red;
  }
  
  .dotDesign {
    position: absolute;
    left: 0;
    background-color: #111111;
    border-radius: 10vw 2vw 2vw 10vw;
  }
  
  .dotDesign-1 {
    top: 1%;
    height: 98%;
    width: 299%;
    z-index: -9;
    border: 2px dotted green;
  }
  .dotDesign-2 {
    top: 3%;
    height: 94%;
    width: 297%;
    z-index: -8;
    border: 2px dotted cyan;
  }
  .dotDesign-3 {
    top: 5%;
    height: 90%;
    width: 295%;
    z-index: -7;
    border: 2px dotted red;
  }
  .dotDesign-4 {
    top: 7%;
    height: 86%;
    width: 293%;
    z-index: -6;
    border: 2px dotted green;
  }
  .dotDesign-5 {
    top: 9%;
    height: 82%;
    width: 291%;
    z-index: -6;
    border: 2px dotted cyan;
  }
  
  .box-Img {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: all .5s;
    z-index: 2;
  }
  
  .img:hover .images {
    opacity: 0;
    transition: all 0.5s;
  }   
  
  .img:hover .box-Img{
    opacity: 1;
    transform: scale(1.2);
    transition: all 0.5s;
  }    
  
  .colorDemo-1, .colorDemo-2, .colorDemo-3 {
    position: absolute;
    top: 9%;
    left: 1%;
    height: 82%;
    width: 100%;
    border-radius: 10vw 2vw 2vw 10vw;
    background-color: white;
    z-index: -1;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5vw 0 0;
    color: black;
    font-size: 2vw;
    transition: all 1.5s;
  }
  
  .img:hover .colorDemo-1 {
    background: linear-gradient(to right, red, white);
    opacity: 1;
    width: 291%;
    transition: all 1.5s;
  }
  
  .img:hover .colorDemo-2 {
    background: linear-gradient(to right, cyan, white);
    opacity: 1;
    width: 291%;
    transition: all 1.5s;
  }
  
  .img:hover .colorDemo-3 {
    background: linear-gradient(to right, orange, white);
    opacity: 1;
    width: 291%;
    transition: all 1.5s;
  }
  
  .img:hover ~ .caption {
    transform: translateX(100%);
    opacity: 0;
    transition: all 1s;
  }
  
  .Animated-Circle {
    position: absolute;
    background: linear-gradient(black 50%, white 50%);
    height: 100%;
    width: 100%;
    top: 0;
    left: 350%;
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-360%) scale(0.2) rotate(0);
    transition: all 1s;
  }
  
  .DemoImg {
    position: absolute;
    height: 95%;
    top: 2.5%;
    left: 352.5%;
    border-radius: 50%;
    transform: translateX(-360%) scale(0.2);
    opacity: 0;
    transition: all 1s;
  }
  
  .box-Img:hover ~ .DemoImg {
    transform: translateX(0%) scale(1.3);
    opacity: 1;
    transition: all 1s;
  }
  
  .box-Img:hover ~ .Animated-Circle {
    transition: all 1s;
    transform: translateX(0%) scale(1.3) rotate(720deg);
    opacity: 1;
  }
  
  @media (max-width : 1000px){
    #third {
      height: 100vw;
      width: 100vw;
    }
  
    #third .box .caption h3 {
      font-size: 5vw;
    }
  
    #third .box .caption p {
      font-size: 4vw;
    }
  
    #third .box .img {
      height: 60%;
    }
  
    .span-1, .span-3, .span-5 {
      bottom: -5%;
      left: 0;
      height: 2vw;
      width: 10vw;
      animation: move 3s linear infinite;
    }
  
    .span-2, .span-4, .span-6 {
      top: -5%;
      right: 0;
      height: 2vw;
      width: 10vw;
      animation: move_3 3s linear infinite;
    }
  }