.services-section {
  background-color: #f8f9fa;
}

.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-weight: 600;
  margin-top: 10px;
}
.microhardness-section h2{
    text-align: center;
}

.card-text {
  font-size: 0.9rem;
  color: #555;
  margin: 10px 0 15px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: transform 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}
.card-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* icon-text spacing */
    flex: 1;
    margin: 0; /* remove any vertical spacing causing wrap */
    transition: transform 0.3s;
    white-space: nowrap; /* prevent buttons from wrapping */
}

.card-body .btn:hover {
    transform: translateY(-3px);
}

.btn i {
    font-size: 0.9rem; /* icon size */
    vertical-align: middle;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card .btn-group-fixed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;  /* This ensures buttons stick to the bottom of card */
  justify-content: flex-start; /* Align buttons to left; change center/right if needed */
  perspective: 800px; /* 3D perspective */
}

.btn.effect {
  transform-style: preserve-3d; /* 3D effect */
  backface-visibility: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn.effect:hover {
  transform: rotateX(5deg) rotateY(5deg) scale(1.1); /* 3D pop on hover */
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}


/* ===== PROFESSIONAL 3D WHATSAPP BUTTON ===== */

.btn-whatsapp-pro {
  background: linear-gradient(180deg, #2ee57a, #1fae5a);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* 3D INDUSTRIAL DEPTH */
  box-shadow:
    0 6px 0 #168f49,
    0 10px 18px rgba(0, 0, 0, 0.18);

  transition: all 0.25s ease;
}

/* ICON */
.btn-whatsapp-pro i {
  font-size: 1rem;
}

/* HOVER – subtle lift */
.btn-whatsapp-pro:hover {
  background: linear-gradient(180deg, #36f08b, #25d366);
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #168f49,
    0 14px 22px rgba(0, 0, 0, 0.22);
  color: #fff;
}

/* ACTIVE / CLICK PRESS */
.btn-whatsapp-pro:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #168f49,
    0 6px 10px rgba(0, 0, 0, 0.25);
}
.service-card .card-img-top {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}


.more-related-products {
  padding: 60px 0;
  background: #f8f9fa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* EXACT 5 PER ROW */
  gap: 20px;
}

.products-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.products-grid img:hover {
  transform: scale(1.07);
    box-shadow: 0 18px 45px rgba(13, 110, 253, 0.25);
}
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= LAB SECTION ================= */

.lab-section {
  background: #f8f9fa;
}

.lab-section h2 {
  font-weight: 700;
  color: #1f2933;
}

.lab-section h3 {
  font-weight: 600;
  color: #0d6efd;
}

.lab-section p {
  font-size: 15px;
  line-height: 1.7;
}

/* ===== MACHINE CARDS ===== */
.lab-section .card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.lab-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.lab-section .card img {
  height: 180px;
  object-fit:contain;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.lab-section .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lab-section .card-text {
  font-size: 14px;
  color: #555;
}

/* ===== DYNA BLUE TEXT ===== */
.lab-section h3 {
  margin-top: 40px;
}

/* ===== MICROSTRUCTURE & GRAPH ===== */
.lab-section img.img-fluid {
  max-height: 320px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
}

.lab-section .small {
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .lab-section .card img {
    height: 160px;
  }

  .lab-section img.img-fluid {
    max-height: 260px;
  }

  .lab-section h2,
  .lab-section h3 {
    text-align: center;
  }
}

/* ================= MICROHARDNESS GRAPH ================= */

.microhardness-section {
  background: #f4f6f8;
}

.microhardness-graph {
  max-width: 800px;
  width: 100%;
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.microhardness-text {
  max-width: 800px;
  text-align: center;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .microhardness-text {
    font-size: 14px;
    padding: 0 10px;
  }
}

