main {
  color: black;
}

#service-section-page {
  width: 100%;
}

.service-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
  
}

.services-up {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.services-up img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.service-second {
  position: relative;
  width: 100%;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-sizing: border-box;
}

.service-card {
  flex: 1 1 280px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 25px;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-cardImg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.service-cardImg img {
  border-radius: 15px;
  max-width: 150px;
  width: 100%;
  height: auto;
  padding: 1rem 0;
}

.service-title {
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
}

.arrow-indicator{
  display: none;
}

.service-list {
  margin-top: 1rem;
  padding: 0;
}

.service-list ul {
  list-style: none;
  padding-left: 1rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  .service-card img {
    max-width: 120px;
  }

  .service-title,
  .service-list ul {
    font-size: smaller;
  }

  .service-page-container{
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .service-second {
    padding: 4rem 5%;
  }

  .service-card {
    flex: 1 1 300px;
    max-width: 400px;
  }
}

@media(max-width: 480px){
  .service-cardImg img{
    width: 60px;
  }

  .service-list{
    display: none;
  }

  .service-card.mobile-active .service-list{
    display: block;
  }

  .service-title {
    cursor: pointer;
  }

    .service-title h3 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
  }

  .arrow-indicator {
    display: block;
    transition: transform 0.3s ease;
    font-size: 1rem;
    margin-left: 0.5rem;
  }

  .service-card.mobile-active .arrow-indicator {
    transform: rotate(180deg);
  }
}

.service-first {
  display: flex;
  flex-direction: column;
  max-width: 1500px;
}

.services-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0 3rem;
}

.services-text h3 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: hsl(120, 85%, 30%);
}

.services-text p {
  padding: 0 5%;
}

.services-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 5rem 2rem;
  gap: 2rem;
  max-width: 100%;
}

#services-left,
#services-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.img-text {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  font-size: inherit;
}

.mini-title h2 {
  font-size: 3rem;
  padding: 0 0 2rem 0;
  color: #10b610;
  
}

@keyframes wave {
  0%   { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25%  { transform: translateY(-5px) translateX(1px) rotate(0.3deg); }
  50%  { transform: translateY(6px) translateX(-1px) rotate(-0.3deg); }
  75%  { transform: translateY(-10px) translateX(2px) rotate(0.3deg); }
  100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

.img-tar img {
  animation-name: wave;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 2;
  animation-direction: alternate;
  transform-origin: center;
}

.img-tar:nth-of-type(1) img {
  animation-duration: 4.5s;
  animation-delay: 0s;
}
.img-tar:nth-of-type(2) img {
  animation-duration: 5.2s;
  animation-delay: 0.3s;
}
.img-tar:nth-of-type(3) img {
  animation-duration: 4.8s;
  animation-delay: 0.6s;
}
.img-tar:nth-of-type(4) img {
  animation-duration: 5.4s;
  animation-delay: 0.1s;
}
.img-tar:nth-of-type(5) img{
  animation-duration: 4s;
  animation-delay: 0.4s;
}


#services-left .img-text {
  padding-left: 5rem;
}

#services-right .img-text {
  padding-right: 5rem;
}

.img-text ul {
  padding-left: 1rem;
  line-height: 2.5rem;
}

.services-images img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.img-text a {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 220px;
  padding: 1rem;
  border: 2px solid #1E1E1E;
  border-radius: 25px;
  background-color: #1E1E1E;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.img-text a:hover {
  background-color: transparent;
  color: #1E1E1E;
}

.service-preText {
  background-color: #1E1E1E;
  text-align: center;
  color: white;
  padding-top: 2rem;
}

.service-preText p{
  font-size: 2rem;
  padding: 1rem;
}

.service-pre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem 1rem;
  background-color: #1E1E1E;
  justify-items: center;
}

.service-aft {
  max-width: 400px;
  width: 100%;
  min-height: 300px;
  background-color: white;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-aft:hover {
  background-color: #1E1E1E;
  color: white;
  .service-afttext h3{
    color: #10b610;
    transform: scale(1.1);
  }
  .service-aftico svg path{
    fill: #10b610;
  }
}

.service-aft:hover svg {
  transform: rotate(360deg);
  transition: transform 0.3s ease-out;
}

.service-aft:hover svg path {
  fill: white;
}

.service-aftico {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-afttext {
  padding: 1rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-afttext h3 {
  padding: 1.5rem 0 1rem;
  margin: 0;
  font-size: 1.4rem;
  color: inherit;
  transition: 0.3s ease-out;
}

.service-afttext p {
  margin: 0;
  font-size: 1rem;
  color: inherit;
}

.section-break{
  display: none;
}

@media (max-width: 500px) {
  .service-pre {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
  }

  .service-aft {
    min-height: auto;
    padding: 1rem;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    background-color: #1E1E1E;
    color: white;
    /*background-color: white;*/
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
  }

  .service-afttext {
    max-height: 0;
    opacity: 0;
    padding: 0;
  }
/*
  .service-aft.active {
    border-radius: 25px;
    width: 100%;
    height: auto;
    padding: 1rem;
  }

  .service-aft.active .service-afttext {
    max-height: 300px;
    opacity: 1;
    padding: 1rem;
  }*/

  .service-aftico {
    padding: 0;
  }

  .service-aft svg {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1024px) {
  .services-images {
    flex-direction: column;
    margin: 0 1rem;
  }

  #services-left .img-text,
  #services-right .img-text {
    padding: 2rem 1rem 0;
  }

  .services-text h3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .services-text h3 {
    font-size: 2rem;
  }

  .services-text p {
    padding: 0 2rem;
    font-size: 0.95rem;
  }

  .services-images img {
    max-height: 200px;
  }

  .img-text ul {
    line-height: 1.5rem;
  }

  .mini-title h2{
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .img-tar {
    display: flex;
    justify-content: center;
  }

  .services-zero p,
  .img-text,
  .service-preText p{
    font-size: smaller;
  }

  .mini-title{

  }

  .mini-title h2 {
    width: 100%;
    text-align: center; 
    line-height: 3rem;
    font-size: 1.5rem;
    padding-bottom: 1rem;
  }

  .img-text{
    align-items: center;
  }

  .img-text a {
    width: 150px;
    padding: 0.8rem;
  }

  .section-break{
    display:flex;
    margin: 2rem 0 2rem 0;
  }
}
