
.section3{
  /* margin-left: 11.2rem; */
  /* padding:7px 100px; */
  max-width: 1100px;
}

.section3-container-wrapper {
  display:flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width:1100px

}


.section3-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;
  max-width:550px;
  letter-spacing: normal;
  word-spacing: 10px;

  /* Added: Animation styles */
  opacity: 0;
  transform: translateY(80px);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section3-h1.animate {
  opacity: 1;
  transform: translateY(0);
}

/* .section3-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;
  margin-top: 2em;
  margin-bottom: 2em;
}

.section3-content {
  background:#433550;
  max-width: 300px;
  padding: 1.5em;
} */

.section3-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.3em;
  margin-top: 2em;
  margin-bottom: 2em;
  max-width:650px;
}

.section3-content {
  background: #433550;
  padding: 1.5em;
  border-radius: 8px;
  transition: transform 0.3s ease;
  /* Added: Animation styles */
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section3-content.animate {
  opacity: 1;
  transform: translateY(0);
}

/* First two cards - side by side */
.section3-content:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  /* Added: Staggered delay */
  transition-delay: 0.2s;
}

.section3-content:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  /* Added: Staggered delay */
  transition-delay: 0.4s;
}

/* Third card - spans full width */
.section3-content:nth-child(3) {
  grid-column: 1 / -1;
  grid-row: 2;
  /* Added: Staggered delay */
  transition-delay: 0.6s;
}

.section3-content.animate .section3-container-h1 {
  opacity: 1;
  transform: translateY(0);
}

.section3-content:nth-child(1) .section3-container-h1 {
  transition-delay: 0.4s;
}

.section3-content:nth-child(2) .section3-container-h1 {
  transition-delay: 0.6s;
}

.section3-content:nth-child(3) .section3-container-h1 {
  transition-delay: 0.8s;
}

.section3-container-h1 {
  color: #dad1e6;
  font-size: 2.25em;
  font-family: PPMori, sans-serif;
   /* Added: Inner text animation */
   opacity: 0;
   transform: translateY(30px);
   transition: all 0.8s ease-out;
}


.section3-p {
  color: #dad1e6;
  font-size: 1.8em;
  /* font-family: inconsolata; */
  line-height: 1.5;

  /* Added: Inner text animation */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease-out;
}

.section3-content.animate .section3-p {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

.section3-m {
  /* margin-left: 1.5em; */
}

.section3-image {
  /* width: 100%; */
  width:500px;
  height:700px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  background-size: cover;
  background-repeat: no-repeat;
  margin-left:60px;
  /* Added: Hover effect */
  transition: all 0.3s ease;
}

/* Image container wrapper for animation */
.image-wrapper {
  /* Added: Image animation */
  opacity: 0;
  transform: scale(0.5);
  transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-wrapper.animate {
  opacity: 1;
  transform: scale(1);
}

//
@media screen and (max-width: 1024px) {
  .section3 {
      max-width: 100%;
      padding: 1.5rem;
  }

  .section3-container-wrapper {
      flex-direction: column;
      gap: 3rem;
  }

  .section3-h1 {
      font-size: 3.5em;
      text-align: center;
      max-width: 100%;
  }

  .section3-container {
      max-width: 100%;
  }

  .section3-image {
      width: 100%;
      max-width: 400px;
      height: 500px;
      margin-left: 0;
      margin: 0 auto;
  }

  .image-wrapper {
      display: flex;
      justify-content: center;
      width: 100%;
  }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .section3 {
      padding: 1rem;
  }

  .section3-container-wrapper {
      flex-direction: column;
      justify-content: center;
    align-items: center;
      width:80vw;
  }

  .section3-h1 {
      font-size: 2.5em;
      word-spacing: 5px;
  }

  .section3-container {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      gap: 1rem;
      margin-top: 1.5em;
      margin-bottom: 2rem;
  }

  .section3-content:nth-child(1) {
      grid-column: 1;
      grid-row: 1;
  }

  .section3-content:nth-child(2) {
      grid-column: 1;
      grid-row: 2;
  }

  .section3-content:nth-child(3) {
      grid-column: 1;
      grid-row: 3;
  }

  .section3-content {
      padding: 1.2em;
  }

  .section3-container-h1 {
      font-size: 1.8em;
  }

  .section3-p {
      font-size: 1.4em;
      line-height: 1.4;
  }

  .section3-image {
      height: 400px;
      max-width: 100%;
      margin-top: 1rem;
      margin-left: 0px;
  }

  .image-wrapper {
      order: 2;
  }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
  .section3 {
      padding: 0.8rem;
  }

  .section3-container-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:90vw;
    
}
  .section3-h1 {
  
      font-size: 3.5em;
      word-spacing: 3px;
  }

  .section3-container {
      gap: 0.8rem;
      margin-top: 1em;
      margin-bottom: 1.5rem;
  }

  .section3-content {
      padding: 1em;
  }

  .section3-container-h1 {
      font-size: 2em;
  }

  .section3-p {
      font-size: 1.6em;
  }

  .section3-image {
      /* height: 300px; */
      margin-left:0px;
  }

  .image-wrapper {
      order: 2;
  }
}

/* Landscape Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .section3-container-wrapper {
      flex-direction: column;
  }

  .section3-h1 {
      font-size: 2.2em;
  }

  .section3-image {
      height: 300px;
      max-width: 400px;
  }

  .image-wrapper {
      order: 2;
      margin-top: 1rem;
  }
}