.about {
  padding: 0rem 2rem;
  margin: 5rem 7rem;
  background-color: #e8fff1;
  /* border: 1px solid #a4fca5; */
  /* box-shadow: 0 3px 8px rgba(103, 255, 118, 0.879); */
  color: #008909;
  font-weight: 500;
  position: relative;
}

.about h2 {
  text-align: right;
  position: absolute;
  font-size: 40px;
  width: 49%;
  right: 0;
  font-style: italic;
  font-weight: 800;
  color: #00b615;
  font-family: "Lucida Sans", sans-serif;
  margin-bottom: 3rem;
  padding-right: 2rem;
}

.about h2 span {
  display: block;
  font-size: 50px;
  font-weight: 800;
  color: rgb(0, 92, 20);
  letter-spacing: 5px;
  font-family: "Bonheur Royale", cursive;
}

/* Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
}

/* Base Card Style */
.card-style {
  background-color: #e6fee9;
  border: 2px solid #00872493;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 128, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: glow 2s ease-in-out infinite alternate;
}

.card-style:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 128, 0, 0.3);
}

.card-style img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.card-content {
  padding: 1rem;
}

.card-content h4 {
  font-size: 20px;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 15px;
  text-align: justify;
}

/* Zigzag alignment */
.card1,
.card3 {
  margin-right: 1rem;
}
.card2,
.card4 {
  margin-left: 1rem;
}
.card1 {
  height: fit-content;
  margin-top: 5rem;
}
.card2 {
  height: fit-content;
  margin-top: 15rem;
}
.card3 {
  height: fit-content;
  margin-top: -9rem;
}
.card4 {
  height: fit-content;
  margin-bottom: 5rem;
  /* margin-top: 1rem; */
}
.card4 img {
  height: 450px;
}
.impact-statement {
  position: absolute;
  width: 46%;
  bottom: 3rem;
}
.impact-text {
  font-weight: 800;
  font-style: italic;
}
.impact-text h3 {
  left: 2rem;
  font-weight: 900;
  font-size: 25px;
  text-align: left;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}
.impact-text p {
  left: 2rem;
  font-weight: 800;
  font-size: 18px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
.impact-text .signature-line {
  font-size: 23px;
  font-family: "Borel", cursive;
  font-weight: 500;
  text-align: justify;
  color: #016508;
}
.details {
  margin: 3rem 2rem;
  padding: 0px 2px;
  justify-items: center;
  position: relative;
}
.tool-tabs {
  gap: 15px;
}
.tool-tabs .camera-options {
  justify-items: center;
  gap: 15px;
}
.enter-instructions h2 {
  text-align: center;
  font-size: large;
  font-weight: 600;
  font-style: italic;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.enter-instructions span {
  background-color: #98faa2;
  border: 1px solid #007c08;
  color: #004a10;
  padding: 1rem;
  border-radius: 10px;
  margin: 1.5rem auto;
  font-size: 1.02rem;
  position: relative;
  height: fit-content;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 2.5px;
  display: flex;
  justify-self: center;
  width: fit-content;
}
.open-card {
  margin: 2.5rem 1.5rem;
}

.progress-bar {
  height: 15px;
  background: linear-gradient(to right, #3ff52e, #01ba1f);
  transition: width 0.3s ease;
  margin-bottom: 2rem;
  border-radius: 9px;
  padding: 5px;
  align-items: center;
  display: flex;
}

.upload-section {
  margin: 2rem 2rem;
  padding: 1rem 0rem;
}

/* Optional: Unique glow delays */
.card1 {
  animation-delay: 0s;
}
.card2 {
  animation-delay: 0.5s;
}
.card3 {
  animation-delay: 1s;
}
.card4 {
  animation-delay: 1.5s;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px #05ab18;
  }
  to {
    box-shadow: 0 0 20px #2aff61;
  }
}

@media screen and (max-width: 786px) {
  .action-btn.opened {
    width: 100%;
    font-size: 1rem;
    height: 45px;
  }
  .impacted-statement {
    bottom: 0rem;
  }
  .card-grid {
    gap: 0;
  }
  .about {
    max-width: 100%;
    min-width: fit-content;
    margin: 0rem 0rem;
    padding: 5px;
  }
  .about h2 {
    width: 50%;
    font-size: 25px;
    padding-right: 1.5rem;
  }
  .about h2 span {
    font-size: 27px;
    margin-top: 1rem;
    margin-left: 0.5rem;
  }
  .impact-text h3 {
    font-size: 16px;
  }
  .impact-text p {
    font-size: 13px;
  }
  .impact-text .signature-line {
    font-size: 16px;
    white-space: nowrap;
  }
  .info-block {
    min-width: 7.2rem;
    max-width: fit-content;
  }
  .pdf-button, .map-button {
    max-width: fit-content;
    min-width: 10rem;
  }
  .card {
    margin: 0.8rem;
    max-width: 10rem;
    min-width: fit-content;
    padding: 0.8rem 0.5rem;
  }
  .tools-section {
    margin-top: 10px;
    padding: 37px;
  }
  .upload-container {
    padding: 2rem 0rem;
  }
  .pdf-button, .map-button{
    max-width: fit-content;
    min-width: 15rem;
  }
  .caminfo {
    padding: 1rem;
  }
  .cameraGIF {
    width: 200px;
    height: 220px;
  }
}
