/* ===============================
   FUSIONSTRUCT ENGINEERING STYLES
   Clean, modern, and fully responsive
   =============================== */

/* ---------- General ---------- */
body {
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

/* Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Text Box */
.hero .relative.z-10 {
  width: 50%;
  max-width: 800px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1f2937; /* full opaque gray */
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Hero typography */
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #f3f4f6;
  transition: all 0.3s ease;
}

.hero p {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #1e40af;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Section Title ---------- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  display: block;       /* ensure it takes full width */
  text-align: center;   /* center the text */
  color: #1e293b;
  text-transform: capitalize;
  margin: 0 auto;       /* center horizontally if needed */
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #1e40af;
  margin: 0.5rem auto 0;  /* center the underline */
  border-radius: 2px;
}


/* ---------- Service & Testimonial Cards ---------- */
.service-card,
.testimonial-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 1.5rem;
  text-align: center;
}

.service-card img,
.testimonial-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3,
.testimonial-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  color: #1e40af;
}

.service-card p,
.testimonial-card p {
  color: #4b5563;
  padding: 0 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.testimonial-card h4 {
  color: #111827;
  font-style: italic;
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */
footer {
  background-color: #1e3a8a;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: #e0e7ff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

/* ---------- Responsiveness ---------- */
@media (max-width: 1024px) {
  .hero .relative.z-10 {
    width: 70%;
    padding: 2.5rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .hero .relative.z-10 {
    width: 90%;
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .flex.flex-col.sm\:flex-row {
    flex-direction: column;
    gap: 1rem;
  }

  .service-card img,
  .testimonial-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1rem;
    width: 100%;
  }
}
