:root {
  /* Biogenix Theme Color Palette */
  --primary-color: #1a3c61;
  /* Deep Clinical Navy */
  --secondary-color: #11b67a;
  /* Vibrant Teal/Green */
  --accent-color: #f39c12;
  /* Warning Orange */
  --dark-bg: #0d233a;
  /* Darker Navy */
  --light-bg: #f8fafc;
  --text-main: #334155;
  --text-light: #797979;
  /* Biogenix light grey */
  --white: #ffffff;

  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  /* Softer shadows like Biogenix */
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(17, 182, 122, 0.3);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Glassmorphism Helper Class */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(17, 182, 122, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(17, 182, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(17, 182, 122, 0);
  }
}

@keyframes floatAction {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes backgroundPan {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50px;
  /* Pill Shape */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 95px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 75px;
}

/* Logo Setup */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 65px;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.header.scrolled .nav-links>li>a {
  color: var(--primary-color);
}

.nav-links>li>a {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0;
  display: inline-block;
  transition: var(--transition);
}

.nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
  width: 100%;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--secondary-color);
  border-radius: 0 0 4px 4px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-main);
  text-transform: none;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  padding-left: 25px;
  /* Subtle indent animation */
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--secondary-color);
}

.hamburger {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-color);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  left: 0;
  border-radius: 2px;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Morph Hamburger to Close 'X' when active */
.mobile-toggle.active .hamburger {
  background-color: transparent;
}

.mobile-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--primary-color);
}

.mobile-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--primary-color);
}

/* Page Header (Hero style for internal pages) */
.page-header {
  margin-top: 0;
  padding: 155px 0 80px;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, rgba(26, 60, 97, 0.95) 0%, rgba(17, 182, 122, 0.85) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Animated background blob for headers */
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(30deg);
  animation: floatAction 15s ease-in-out infinite;
}

.page-header h1 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 80px 0 20px;
  border-top: 4px solid var(--secondary-color);
}

.footer-col .footer-logo {
  height: 65px;
  width: auto;
  max-width: 220px;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-block;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-col h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col p {
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  display: inline-block;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 14px;
}

/* Responsive Navigation */
@media (max-width: 991px) {
  .nav-container {
    height: 76px;
  }

  .header.scrolled .nav-container {
    height: 68px;
  }

  .logo img {
    height: 60px;
  }

  .header.scrolled .logo img {
    height: 52px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 16px 20px 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    gap: 4px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    display: flex;
    animation: mobileMenuSlide 0.3s ease forwards;
  }

  @keyframes mobileMenuSlide {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    background-color: #f1f5f9;
    color: var(--secondary-color);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
    border: none;
    padding: 6px 12px;
    margin: 4px 0 8px 12px;
    border-radius: 8px;
    display: block;
    background-color: #f8fafc;
    border-left: 3px solid var(--secondary-color);
  }

  .dropdown-menu a {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #edf2f7;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }
}

/* Cards Hover Enhancement */
.card-hover-effect {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card-hover-effect:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.card-hover-effect img {
  transition: transform 0.7s ease;
}

.card-hover-effect:hover img {
  transform: scale(1.05);
}

/* Biogenix Custom Utilities */
.sub-heading {
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

/* Homepage About Section Utilities */
.about-section {
  padding: 100px 0;
  background-color: var(--white);
  overflow: hidden;
}

.hex-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.hex-item {
  width: 300px;
  height: 340px;
  background-color: var(--light-bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.hex-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hex-item:hover img {
  transform: scale(1.1);
}

.hex-item.offset {
  margin-top: -80px;
  margin-left: 150px;
}

@media (max-width: 991px) {
  .hex-item.offset {
    margin-left: 0;
    margin-top: 20px;
  }
}

.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--secondary-color) 30%, #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--white);
}

.progress-value {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(17, 182, 122, 0.1);
  color: var(--secondary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.feature-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Superior Solutions Section */
.solutions-section {
  padding: 0;
  background-color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.solutions-content {
  flex: 1;
  min-width: 450px;
  padding: 100px 8%;
}

.solutions-image {
  flex: 1;
  min-width: 450px;
  background: url('../solutions-side.png') center/cover no-repeat;
  min-height: 600px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.benefit-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(17, 182, 122, 0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.benefit-card:hover::before {
  background: rgba(17, 182, 122, 0.1);
  transform: scale(1.2) rotate(15deg);
}

.benefit-icon {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 15px;
  display: block;
}

.benefit-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.benefit-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Quality Assurance Section */
.quality-section {
  padding: 100px 0;
  background: linear-gradient(rgba(13, 35, 58, 0.9), rgba(13, 35, 58, 0.9)), url('../quality-bg.png') center/cover fixed;
  color: var(--white);
  text-align: center;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.pillar-item {
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.pillar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

.pillar-icon {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 25px;
  display: block;
}

.pillar-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--white);
}

.pillar-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Global Responsive Layout System ──────────────────────── */

/* Global container & overflow protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Responsive Fluid Headings */
  h1 {
    font-size: clamp(26px, 6.5vw, 36px);
  }

  h2 {
    font-size: clamp(22px, 5.5vw, 30px) !important;
  }

  h3 {
    font-size: clamp(18px, 4.5vw, 22px) !important;
  }

  .btn {
    padding: 11px 24px;
    font-size: 13px;
  }
}

/* Homepage About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* About Us Page Grid */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid,
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-section {
    padding: 60px 0;
  }
}

/* Hexagon Image Grid on Mobile */
@media (max-width: 576px) {
  .hex-item {
    width: min(280px, 82vw);
    height: auto;
    aspect-ratio: 300 / 340;
  }

  .hex-item.offset {
    margin-left: 0;
    margin-top: 15px;
  }
}

/* Hero Slider Mobile Adaptation */
@media (max-width: 768px) {
  .hero-slider-section .swiper {
    height: 80vh !important;
    min-height: 520px;
  }

  .hero-slider-section h1 {
    font-size: clamp(26px, 7vw, 38px) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }

  .hero-slider-section p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
    padding: 0 4px;
  }

  .hero-slider-section .swiper-button-next,
  .hero-slider-section .swiper-button-prev {
    display: none !important;
  }
}

/* Solutions Section Responsive */
@media (max-width: 991px) {
  .solutions-content,
  .solutions-image {
    min-width: 100%;
    flex: none;
  }

  .solutions-content {
    padding: 60px 24px;
  }

  .solutions-image {
    min-height: 320px;
    order: -1;
  }
}

@media (max-width: 576px) {
  .solutions-content {
    padding: 45px 16px;
  }

  .solutions-image {
    min-height: 220px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
  }

  .benefit-card {
    padding: 20px 18px;
  }
}

/* Quality Assurance Section Responsive */
@media (max-width: 768px) {
  .quality-section {
    padding: 60px 0;
    background-attachment: scroll; /* Smooth rendering on iOS & Android */
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
  }

  .pillar-item {
    padding: 28px 20px;
    border-radius: 14px;
  }
}

/* Internal Page Headers */
@media (max-width: 768px) {
  .page-header {
    padding: 110px 0 45px;
  }

  .page-header h1 {
    font-size: clamp(26px, 6vw, 34px);
    margin-bottom: 10px;
  }
}

/* Responsive Table Wrapper for All Product Subpages */
.product-table-wrapper {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-table-wrapper table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

@media (max-width: 600px) {
  .product-table-wrapper {
    border-radius: 8px;
    margin-bottom: 25px;
  }

  .product-table-wrapper table {
    min-width: 440px;
    font-size: 13px;
  }

  .product-table-wrapper th,
  .product-table-wrapper td {
    padding: 10px 12px;
  }
}

/* Footer Responsive Polish */
@media (max-width: 576px) {
  .footer {
    padding: 50px 0 20px;
  }

  .footer-col h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .footer-col p {
    font-size: 14px;
  }

  .footer-col .footer-logo {
    max-width: 190px;
    height: 54px;
  }
}