.section2{
  /* margin-left: 11.2rem; */
  padding:65px 63px;
}

.colorablee-icon {
  width: 40px !important;
  height: 40px !important;
  background-color: #433550;
  color: #FFFFFF;
  /* padding: 5px !important; */
  /* margin-top: 10px; */
}

.colorable-icon {
  width: 40px !important;
  height: 40px !important;
  background-color: #433550;
  color: #FFFFFF;
  display: inline-block; /* Important for background and padding */
  padding: 5px 5px;
  /* margin-top: 10px; */

   /* Icon animation */
   opacity: 0;
   transform: scale(0.5) rotate(-10deg);
   transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.section2-container.animate .colorable-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.section2-container:hover .colorable-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(67, 53, 80, 0.4);
}


.section2-h1 {
  background: linear-gradient(135deg, #FF726D 5%,#FF4DA9 45%,#CD42D7 85%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  font-size: 4.5em;
  font-family:inconsolata, sans-serif;
  font-weight: 700;
  color:transparent;
  margin-bottom:30px;
   /* Animation for main heading - slides from left */
   opacity: 0;
   transform: translateX(-100px);
   transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section2-h1.animate {
  opacity: 1;
  transform: translateX(0);
}


.section2-container-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;
  margin-top: 2em;
  margin-bottom: 2em;
}
.section2-container {
  /* max-width: 330px; */
  display:flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;

  /* Initial state for scroll animation */
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section2-p {
  max-width: 280px;
  font-size: 0.8em;

}


@media (max-width: 768px) {
  .section2-container-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
 /* Animation classes applied by JavaScript */
 .section2-container.animate {
  opacity: 1;
  transform: translateY(0);
}

.section2-container:nth-child(1).animate {
transition-delay: 0.1s;
}

.section2-container:nth-child(2).animate {
transition-delay: 0.3s;
}

.section2-container:nth-child(3).animate {
transition-delay: 0.5s;
}

.section2-content {
  width: 300px;
  height:200px;
  margin-left: 1.5em;
  /* Content stays in place, no separate animation */
  opacity: 1;
  transform: translateX(0);
}

.section2-container:nth-child(1) .section2-content {
  transition-delay: 0.2s;
}

.section2-container:nth-child(2) .section2-content {
  transition-delay: 0.4s;
}

.section2-container:nth-child(3) .section2-content {
  transition-delay: 0.6s;
}

.section2-container:nth-child(1) .section2-h2 {
transition-delay: 0.4s;
}

.section2-container:nth-child(2) .section2-h2 {
transition-delay: 0.6s;
}

.section2-container:nth-child(3) .section2-h2 {
transition-delay: 0.8s;
}

.section2-h2 {
  color: #dad1e6;
  font-size: 2.2em;
  margin-bottom: 1em;
  /* font-family: inconsolata; */
}

.section2-p {
  color: #dad1e6;
  font-size: 1.8em;
  /* font-family: inconsolata; */
  line-height: 1.5;
  font-family:PPMori, sans-serif;
  max-width:250px;
  
}

.section2-container:nth-child(1) .section2-p {
  transition-delay: 0.5s;
}

.section2-container:nth-child(2) .section2-p {
  transition-delay: 0.7s;
}

.section2-container:nth-child(3) .section2-p {
  transition-delay: 0.9s;
}

/* Pulse animation for icons */
@keyframes pulse {
0%, 100% {
    transform: scale(1);
}
50% {
    transform: scale(1.05);
}
}

.section2-container.animate .colorable-icon {
animation: pulse 2s ease-in-out 1s infinite;
}


/* responsive break points */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .section2 {
    padding: 50px 40px;
  }
  
  .section2-h1 {
    font-size: 3.8em;
  }
  
  .section2-content {
    width: 280px;
    height: auto;
    margin-left: 1.2em;
  }
  
  .section2-h2 {
    font-size: 2em;
  }
  
  .section2-p {
    font-size: 1.6em;
    max-width: 230px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .section2 {
    padding: 40px 30px;
  }
  
  .section2-h1 {
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .section2-container-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .section2-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
  }
  
  .section2-content {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-top: 20px;
  }
  
  .section2-h2 {
    font-size: 1.8em;
    margin-bottom: 0.8em;
  }
  
  .section2-p {
    font-size: 1.5em;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .colorable-icon {
    width: 50px !important;
    height: 50px !important;
    padding: 8px 8px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .section2 {
    padding: 30px 20px;
  }
  
  .section2-h1 {
    font-size: 4em;
    margin-top: 50px;
    margin-bottom: 30px;
  }
  
  .section2-container-wrapper {
    gap: 30px;
  }
  
  .section2-container {
    max-width: 100%;
  }
  
  .section2-content {
    width: 100%;
  }
  
  .section2-h2 {
    font-size: 2.3rem;
    margin-bottom: 0.7em;
  }
  
  .section2-p {
    font-size: 1.8em;
    max-width: 280px;
    line-height: 1.4;
  }
  
  .colorable-icon {
    width: 45px !important;
    height: 45px !important;
    padding: 7px 7px;
  }
}

/* Extra small mobile phones */
@media (max-width: 360px) {
  .section2 {
    padding: 25px 15px;
  }
  
  .section2-h1 {
    font-size: 3em;
    margin-bottom: 25px;
  }
  
  .section2-h2 {
    font-size: 1.9em;
    text-align:left;
  }
  
  .section2-p {
    font-size: 1.9em;
    max-width: 250px;
    text-align:left;
  }
  
  .colorable-icon {
    width: 40px !important;
    height: 40px !important;
    padding: 6px 6px;
  }
}