/* General card layout */
#about .card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
  .card.services{
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
/* Image styling */
#about .about-img {
  width: 40%;
  max-width: 400px;
}

#about .about-img img {
  width: 100%;
  height: auto;
}

/* Text blocks */
.about-text {
  flex: 1;
  min-width: 280px;

  /* flexbox add kiya taki vertical + horizontal control ho */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text.right {
  align-items: flex-end;
  text-align: right;
}

.about-text.left {
  align-items: flex-start;
  text-align: left;
  
}


/* Headings */
.sub-heading {
  color: gold;
  margin-bottom: 10px;
}

.main-heading {
  font-size: 36px;
  font-weight: bold;
  background: linear-gradient(to right, gold, white);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Tablet */
@media (max-width: 800px) {
  #about .card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  #about .about-img {
    width: 100%;
    max-width: 400px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .about-text,
  .about-text.right,
  .about-text.left {
    align-items: center !important;
    text-align: center !important;
  }

  .main-heading,
  .sub-heading,
  .about-text p {
    text-align: center !important;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }


  .card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}
/* Tablets: 601px to 770px */
@media (min-width: 601px) and (max-width: 770px) {
  .container {
    padding: 0 20px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  nav a {
    margin: 0 12px;
    font-size: 15px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .carousel-card {
    flex: 0 0 45%;
    margin: 0 10px;
  }
  
}

/* Mobile: 600px and below */
@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav a {
    margin: 5px 10px;
    font-size: 14px;
    display: inline-block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .carousel-card {
    flex: 0 0 90%;
    margin: 0 auto;
  }

  .contact-grid {
    display: block;
  }

  #contact-grid-btn {
    width: 100%;
    text-align: center;
  }

  .call-contact {
    padding: 20px;
    font-size: 15px;
    text-align: center;
  }
}
@media (max-width: 800px){
    #summary{
        text-align: center;
    }
      .about-text p , .about-text h2 ,.about-text h3{
    max-width: 90%;  /* text screen ke andar hi rahe */
    margin: 0 auto;
  }

}




