main{
  margin: 65px 0;
  line-height: 1.6;
  box-sizing: border-box;
}

.blog-title {
  color: var(--Neutral-07, #0A2640);
  text-align: center;
  font-size: clamp(25px, 8vw, 55px);
  font-style: normal;
  font-weight: 700;
  margin: 0;
  padding-top: 80px;
}

.quote {
  color: var(--Neutral-06, #495460);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  display: flex;
  justify-content: center;
  margin: 0 30px;
}

.quote p {
  margin: 10px 0;
}

.portfolio-container {
  display: flex;
  gap: 20px;
  padding: 0 10%;
  margin-top: 30px;
  margin-bottom: 100px;
}
.portfolio-container a{
  width: 50%;
}
.portfolio, .portfolio-right {
  flex: 1;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  height: 300px;
  display: flex;
  overflow: hidden;
  animation: none; /* Disable default animation */
  color: #495460; /* Default text color */
}

.portfolio {
  animation: bounce-in-left 1s ease forwards;
}

.portfolio-right {
  animation: bounce-in-right 1s ease forwards;
}

.left {
  text-align: left;
  width: 60%;
}

.portfolio-right {
  justify-content: end;
}

.right {
  text-align: right;
  width: 60%;
}

.portfolio img, .portfolio-right img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
}

.portfolio-container h2 {
  font-size: 1.5em;
  font-weight: 400;
  margin-bottom: 10px;
  color: #0A2640;
  transition: color 0.5s ease;
}

.portfolio-container p {
  color: #495460;
  font-weight: 300;
  font-size: 14px;
  transition: color 0.5s ease;
}

.imgweb, .imgvideo {
  position: absolute;
}

.imgweb {
  top: 0;
  right: -140px;
}

.imgvideo {
  top: 0;
  left: -140px;
}

.icon-right, .icon-left {
  position: absolute;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: #0A2640;
}

.icon-right {
  top: 130px;
  left: 140px;
}

.icon-left {
  top: 130px;
  right: 140px;
}

.portfolio:hover .icon-left {
  animation: shake 0.8s ease forwards;
}

.portfolio-right:hover .icon-right {
  animation: shake 0.8s ease forwards;
}

.back {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
  transform-origin: top left;
  transition: transform 0.8s ease, background-color 0.8s ease;
}

.portfolio:hover .back {
  animation: backleft 0.4s ease forwards;
  transform-origin: top right;
}

.portfolio-right:hover .back {
  animation: backleft 0.4s ease forwards;
  transform-origin: top left;
}
.portfolio-container h2{
  color: #0A2640;
}
 .portfolio-container p {
  color: #495460;
  transition: color 0.5s ease;
}

.portfolio:hover  h2,
.portfolio:hover  p {
  color: #fff;
}

.portfolio-right:hover  h2,
.portfolio-right:hover p {
  color: #fff;
}

@media (max-width: 992px) {
  .portfolio-container {
    justify-content: center;
  }

  .portfolio, .portfolio-right {
    flex: 1 1 100%;
    height: auto;
    max-width: 300px;
    flex-direction: column-reverse;
    border-radius: 16px;
  }
  .portfolio-container a{
    max-width: 300px;
  }
  .left, .right {
    text-align: center;
    width: 100%;
  }

  .imgweb, .imgvideo {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    right: 0;
    left: 0;
  }

  .portfolio img, .portfolio-right img {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
  }
  .icon-right, .icon-left {
    display: none;
  }
}

@media (max-width: 992px) {
  .portfolio-container {
    padding: 10px;
    flex-wrap: wrap;
    justify-content: center
  }

  .portfolio, .portfolio-right {
    width: 100%;
    box-sizing: border-box;
  }

  .portfolio-container a{
   width: 100%;
  }
}

@keyframes shake {
  0% {
    transform: rotate(15deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(0);
  }
}

@keyframes bounce-in-left {
  0% {
    transform: translateX(-100%) translateY(0);
    opacity: 0;
  }
  30% {
    transform: translateX(-100%) translateY(-50px);
    opacity: 1;
  }
  60% {
    transform: translateX(-100%) translateY(0);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bounce-in-right {
  0% {
    transform: translateX(100%) translateY(0);
    opacity: 0;
  }
  30% {
    transform: translateX(100%) translateY(-50px);
    opacity: 1;
  }
  60% {
    transform: translateX(100%) translateY(0);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes backleft {
  0% {
    transform: scale(0);
    background-color: #0A2640;
    border-radius:50%;
  }
  100% {
    transform: scale(1);
    background-color: #0A2640;
  }
}
