* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* overflow: hidden; */
  height: 100%;
}




body {
  display: flex;
  font-family: "Poppins", sans-serif;
  background-color: #fff6fd;
  line-height: 1.6;
  min-height: 100vh;
  flex-direction: column;
  flex: 1;
}

main {
  flex: 1;
}

/* Header */
header {
  text-align: center;
  padding: 0 1rem;
}

.item1 h1 {
  color: #eb2dc8;
  font-size: 6rem;
  font-family: "Playfair Display", serif;
    height: 100px;
  width: 100%;
}

header p {
  color: #eb2dc8;
  font-size: 1rem;
  max-width: 700px;
  margin: auto;
}

/* Layout */
.space {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 1rem;
  gap: 2rem;
  margin: 0rem 3rem;
}

.h1{
  margin: 0;
  padding: 0;

}

/* About Card */
.aboutcard {
  background-color: #ffe5fa;
  color: #eb2dc8;
  font-size: 1.1rem;
  font-family: "Playfair Display", serif;
  padding: 10rem 1rem;
  border-radius: 200px 200px 0 0;
  max-width: 350px;
  text-align: center;
  border: 6px solid #eb2dc8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  top: -5rem;

}

.gap {
  height: 1rem;
}

/* Learning Outcomes */
.container {
  flex: 1;
  min-width: 300px;
  width: 1rem;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  /* background-color: brown; */
}

.containerlo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* gap: 1rem; */
  /* background-color: blue; */
  width: 100%;
  /* Changed to make it responsive */
}

.lo,
.lo1,
.lo5 {
  background-color: #d13672;
  color: white;
  padding: 3rem 0rem;
  /* border-radius: 10px; */
  border: 2px solid #b73d64;
  text-align: center;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 600;
  flex: 1 1 150px;
  /* Added flex property for responsiveness */
  max-width: 300px;
  /*Ensures proper scaling*/
  text-decoration: none;
}

.lo1 {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-left: 4px solid #b73d64;
}

.lo5 {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-right: 4px solid #b73d64;
}

/* Project Cards */
.projects {
  margin-top: 2rem;
}

.gridprojects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}



img {
  width: 200px;
  height: 80%;
  border-radius: 30px;
  /* background-color: #fff6c6;
    color: #ff8fea;
    width: 11.5rem;
    border-radius: 30px;
    padding: 5rem;
    text-align: center;
    font-size: 1.2rem;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem; */

}

.card:hover,
.aboutcard:hover,
.lo:hover,
.lo1:hover,
.lo5:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #ff8fea;
  color: white;
  font-family: "Poppins", serif;
}

footer p {
font-family: 'poppins';
}

/* Responsive */
@media (max-width: 900px) {
  h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .aboutcard {
    font-size: 1.5rem;
    padding: 10rem;
  }

  .lo,
  .lo1,
  .lo5 {
    padding: 2rem 1rem;
    font-size: 1rem;
    border-radius: 30px;
    flex: 1 1 100%;
    /* Ensures full width on smaller screens */
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .box {}

  .containerlo {
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
  }

  .gridprojects {
    flex-direction: column;
    /* Stack project cards vertically */
    align-items: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.8rem;
  }

  .aboutcard {
    font-size: 1.2rem;
    padding: 8rem;
  }

  .lo,
  .lo1,
  .lo5 {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 3rem;
    font-size: 1rem;
  }

  .togglemenu {
    display: none;
  }
}

/* Responsive behavior for the text-image block*/
.text-image-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.text-image-block.reverse {
  flex-direction: row-reverse;
}

.text-image-block img {
  width: 300px;
  max-width: 100%;
  border-radius: 20px;
  border: 3px solid #FF8FEA;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.text-image-block .text {
  flex: 1;
  font-family: "Poppins", sans-serif;
  color: black;
}

.text-image-block h2 {
  color: #EB2DC8;
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
}

.text-image-block p {
  font-size: 1rem;
  line-height: 1.6;
}