body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #e9f1f7, #f3f7fa);
  color: #333;
}
.intec {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.intec img {
  width: 100%;
  height: auto;
  display: block;
}
.overlay-text {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 0 20px;
}
.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 40%;
  bottom: 90%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
  z-index: 10;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.hero-text h1 {
  margin: 0;
  text-align: center;
}

.hero-text p {
  font-size: large;
  text-align: center;
}

section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section h2 {
  text-align: center;
  color: #0058b1;
  margin-bottom: 2rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #f9fcff;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 5px solid #0073e6;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0.5rem 0;
  color: #222;
}

.card p {
  color: #555;
  font-size: 0.95rem;
}

.details-hover {
  display: none;
  margin-top: 1rem;
  color: #333;
}

.details-hover h4 {
  color: #0073e6;
}

.details-hover h5 {
  margin-top: 1rem;
  color: #0058b1;
}

.details-hover ul {
  padding-left: 20px;
}

.details-hover ul li {
  margin-bottom: 0.5rem;
  font-size: large;
}

/* Only show this card on hover */
.card.show-details .details-hover {
  display: block;
}

/* Hide all cards unless hovered */
.card.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.services .grid,
.why .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: #f9fcff;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 5px solid #0073e6;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card .card-header{
  display: flex;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card i {
  font-size: 1.8rem;
  color: #0073e6;
  margin-bottom: 0.5rem;
}

.card i.fa-circle-chevron-right {
  font-size: 2.5rem;
  text-align: end;
  margin: 0;
}

.card i.fa-xmark {
  font-size: 2rem;
  margin: 0;
  color: #ff0000;
}

.card i.hidden {
  display: none;
}
.card h3 {
  margin: 0.5rem 0;
  color: #222;
  font-weight: 500;
}
.card p {
  color: #555;
  font-size: 0.95rem;
  flex-grow: 1;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}
.contact .btn-submit {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.contact .btn-submit:hover {
  background: #0058b1;
}
footer {
  background: #f0f0f0;
  text-align: center;
  padding: 1rem;
  color: #666;
  margin-top: 3rem;
}
.nav-toggle {
  display: none;
}
@media (max-width: 600px) {
  .services .grid,
  .why .grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
}
