:root {
  --light-border: #d1d1d1;
  --light-text: #0c0c0c
}
.no-2 {
  margin-top: -15px;
}
.no-3 {
  margin-top: -15px;
  position: absolute;
  right:70px;
}
.no-4 {
  margin-top: -15px;
  position: absolute;
  right: 20px;
}
.no-two {
    margin-top: -15px;
}
.no-three {
    margin-top: -15px;
    right: 0;
    position: absolute;
}
.no-four {
    margin-top: -15px;
    right: 0;
    position: absolute;
}
.proj-wrap.p-wrap-right-2 .image-container {
    margin-top: 20px;
  }
  .proj-wrap.p-wrap-right-3 .image-container {
    margin-top: 20px;
  }
.p-wrap-left-2 .image-container {
    margin-top: 20px;
  }
  
.p-wrap-right-1 {
    align-items: baseline;
    display: flex;
    flex-direction: column;
    margin-top: -40px;
    margin-bottom: -50px;
  }
  .p-wrap-left-2 {
    margin-top: -40px;
    margin-bottom:-50px;
  }
 
  .p-wrap-right-3 {
    margin-top: -20px;
    margin-bottom:-50px;
    margin-right: -80px;
  }
.animated-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
  }

  #project7 {
    display: flex;
    margin-top:11rem
  }
#project1 {
    display: flex;
  }
  .p-wrap-right-2 {
    margin-top: -40px;
  margin-bottom: -50px;
  }

  .p-wrap-left-3 {
    margin-left: -75px;
  margin-bottom: -50px;
  }
  #project3 {
   margin-top:8rem;
  }

  #project2 {
    margin: 10rem 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  width: 95%;
  
  }
  #project4 {
    margin-top: 8rem;
    margin-left: 0;
    width:80%;
  }
  #project6 {
    margin-top: 6rem;
    margin-left: 0;
    width: 95%;
  }
  #project5 {
    display: flex;
    margin-top: 8rem;
  }
  .proj-wrap{
    z-index: 9999;
    flex-direction: column;
  }
  .project-left{
    padding: 30px 75px 30px 30px;
  }
  .project-right{
    padding: 30px 30px 20px 75px;
  }

.project-right:hover, .project-left:hover{
    cursor: pointer;
}

/* Outline animation using ::before */
.project-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: -9999;
    border-radius: 10px;
    /* Initial hidden state */
    opacity: 0;
}

/* Hover effect */
.project-right:hover::after {
    transform: translateY(-50%) rotate(270deg) !important;
}

.project-right:hover::before {
    opacity: 1;
    border-color:var(--light-border); /* Outline color */
    animation: drawOutline 0.4s ease-in-out forwards;
}


/* Outline animation using ::before */
.project-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
    /* Initial hidden state */
    opacity: 0;
}

/* Hover effect */
.project-left:hover::after {
    transform: translateY(-50%) rotate(270deg) !important;
}

.project-left:hover::before {
    opacity: 1;
    border-color:var(--light-border); /* Outline color */
    animation: drawOutlineLeft 0.4s ease-in-out forwards;
}
/* Keyframe animation for the drawing effect */
@keyframes drawOutline {
    0% {
        clip-path: polygon(0% 50%, 0% 50%, 0% 50%, 0% 50%);
    }
    25% {
        clip-path: polygon(0% 50%, 0% 0%, 100% 0%, 100% 0%);
    }
    50% {
        clip-path: polygon(0% 50%, 0% 0%, 100% 0%, 100% 100%);
    }
    75% {
        clip-path: polygon(0% 50%, 0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0% 50%, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50%);
    }
}
/* Keyframe animation for the drawing effect */
@keyframes drawOutlineLeft {
    0% {
        clip-path: polygon(100% 50%, 100% 50%, 100% 50%, 100% 50%);
    }
    25% {
        clip-path: polygon(100% 50%, 100% 0%, 0% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(100% 50%, 100% 0%, 0% 0%, 0% 100%);
    }
    75% {
        clip-path: polygon(100% 50%, 100% 0%, 0% 0%, 0% 100%, 100% 100%);
    }
    100% {
        clip-path: polygon(100% 50%, 100% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 50%);
    }
}

.description{

}
.p-wrap-left-1{
    margin-left: -75px;
    margin-bottom: -50px;
}

/* Highlight box outline animation */
.highlight-box {
    position: relative;
    border: 1px solid var(--light-border);
    border-radius: 10px;
    padding: 3rem;
    overflow: hidden;
}

/* Outline animation using ::before */
.highlight-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
    /* Initial hidden state */
    opacity: 0;
}

/* Animation class that gets added on scroll */
.highlight-box.animate-outline::before {
    opacity: 1;
    border-color: var(--light-border);
    animation: drawOutlineHighlight 0.6s ease-in-out forwards;
}

/* Keyframe animation for the drawing effect - starts from top-left */
@keyframes drawOutlineHighlight {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%);
    }
}