/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  background-color: #f9f9f9; /* Light gray background */
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Section wrapper with white shadow box */
.section-box {
  background-color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1100px;
}



.top-strip {
  height: 30px;
  background-color: #3b1c5e;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.scrolling-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scrolling-taglines {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-loop 40s linear infinite;
  gap: 60px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Header Navigation */
.main-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  flex-wrap: wrap;
  position: sticky;
  z-index: 1000;
  top: 0;
}

.header-logo {
  max-height: 50px;
}

.lab-name h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #3b1c5e;
}

.lab-name .certs {
  font-size: 0.9rem;
  color: #555;
  margin: 2px 0 0;
}

.nav-links {
  gap: 12px;
  flex-wrap: wrap;
}

.nav-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3b1c5e;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: #f0f0f0;
}

.nav-btn.primary {
  background-color: #3b1c5e;
  color: white;
  font-weight: 600;
}

.nav-btn.primary:hover {
  background-color: #5a2a82;
}


/* Hero Section */
.hero {
  background: linear-gradient(to right, #3b1c5e, #5a2a82);
  padding: 60px 20px;
  color: white;
  text-align: center;
  position: relative;
}


.hero .overlay {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.logo {
  max-height: 60px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero .btn {
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
}

/* Carousel Section */
.carousel-section {
  margin-top: 40px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid white;
  margin: 0 6px;
  opacity: 1;
}

.carousel-indicators .active {
  background-color: white;
}

.carousel-item img {
  height: 300px;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 8px;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: 600;
}

.carousel-caption p {
  font-size: 1rem;
}

/* Accordion Section */
.accordion h2 {
  font-weight: 600;
}

.accordion-button {
  font-weight: 600;
  background-color: #eee;
}

.accordion-button:not(.collapsed) {
  background-color: #5a2a82;
  color: white;
}

.accordion-body {
  background-color: #fdfdfd;
  font-size: 0.95rem;
}

.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-left: 0;
  list-style: none;
  margin-bottom: 12px;
}

.service-details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.service-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b1c5e; /* Purple accent */
  font-size: 1.2em;
  line-height: 1;
}


/* Contact Section */
.contact {
  padding: 40px 20px;
  background-color: white;
}

.contact h2 {
  font-weight: 600;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background-color: #eee;
  padding: 15px;
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .logo {
    max-height: 50px;
  }

  .carousel-item img {
    height: 200px;
  }

  .accordion-button {
    font-size: 1rem;
  }

  .carousel-caption h5 {
    font-size: 1.2rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }
}

.certifications {
  padding: 40px 20px;
  background-color: #fff;
}

.certifications h2 {
  font-weight: 600;
  margin-bottom: 30px;
}

.certifications .row {
  gap: 20px;
}

.cert-logo {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease;
}

.cert-logo:hover {
  transform: scale(1.1);
}

.cert-label {
  font-weight: 500;
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: center;
}

.stats-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.stat-box {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  width: 180px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-icon {
  height: 40px;
  margin-bottom: 10px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #5a2a82;
  margin-bottom: 8px;
}

/* Solid Purple Button */
.btn-purple {
  background-color: #3b1c5e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
  text-decoration:none
}

.btn-purple:hover {
  background-color: #5a2a82;
}

/* Outline Purple Button */
.btn-outline-purple {
  background-color: transparent;
  color: #3b1c5e;
  border: 2px solid #3b1c5e;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-purple:hover {
  background-color: #3b1c5e;
  color: white;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white !important;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #3b1c5e;
  font-family: 'Poppins', sans-serif;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #3b1c5e;
}

.floating-label {
  position: relative;
  margin-bottom: 24px;
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 12px 12px 12px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  font-family: 'Poppins', sans-serif;
}

.floating-label label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #666;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
  background-color: white;
  padding: 0 4px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 8px;
  font-size: 0.8rem;
  color: #3b1c5e;
}

#thankYouMessage {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#thankYouMessage.show {
  display: block;
  opacity: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-grid img,
.gallery-more img {
  width: 100%;
  height: 180px; /* Fixed height */
  object-fit: cover; /* Crop to fill without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover,
.gallery-more:hover img {
  transform: scale(1.03);
}

.gallery-more {
  position: relative;
  cursor: pointer;
}

.more-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

/* Overlay styles */
.gallery-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95); /* darker and less transparent */
  backdrop-filter: blur(2px);      /* optional soft blur */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 9999;
  overflow-y: auto; /*✅ Enable scroll inside overlay */
}


.overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
}

.overlay-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.overlay-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}


@media (max-width: 600px) {
  .overlay-grid img {
    height: 140px;
  }
}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.close-lightbox {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  transform: translateY(-50%);
}

.nav-arrow.left {
  left: 30px;
}

.nav-arrow.right {
  right: 30px;
}


.close-gallery {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.logo-scroll {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.logo-track {
  display: flex;
  gap: 40px;
  animation: scrollLogos 40s linear infinite;
  align-items: center; /* keeps logos vertically aligned */
}

.logo-scroll:hover .logo-track {
  animation-play-state: paused;
}

.logo-track img {
  max-height: 60px;       /* limit logo height */
  max-width: 120px;       /* prevent logos from stretching too wide */
  object-fit: contain;    /* keep aspect ratio */
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-track img:hover {
  filter: grayscale(0%);
  transform: scale(1.05); /* subtle zoom on hover */
}

/* Optional: smoother scrolling */
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


