/* Fixed Background Container */
.fixed-background {
  position: fixed;

  width: 100%;
  height: 200%;
  background: linear-gradient(to right, #000 0%, #000 70%, #ff003b 100%),
              url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'><path d='M0,100 Q75,50 150,100 T300,100' stroke='%23C0C0C0' stroke-width='1' fill='none'/><path d='M0,200 Q75,150 150,200 T300,200' stroke='%23FF0000' stroke-width='1' fill='none'/></svg>");
  background-repeat: no-repeat,repeat-x;
  background-size: cover, auto;

  pointer-events: none;
}

/* Reset Defaults */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
  font-family: 'Roboto', sans-serif;
  color: #e0e0e0;
    position: relative;
scroll-padding-top: 150px;

}

/* Root Full Width */
#root {
  width: 100%;
}


  #root > * {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
  }

  #root > *:nth-child(1) {
    animation-delay: 0.3s;
  }

  #root > *:nth-child(2) {
    animation-delay: 0.6s;
  }

  #root > *:nth-child(3) {
    animation-delay: 0.9s;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


/* Navigation (Sticky Header) using Flex */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  height: 100px;
}
/* Hamburger Icon (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}
.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.factory-services-subnav {
  z-index: 9;
  position: relative;
}

.navbar li {
  margin: 0 15px;
  cursor: pointer;
  color: #ffffff;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s;
}
.navbar li:hover,
.navbar li.active {
  border-bottom: 2px solid #ffffff;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: black;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 101;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #444;
  }
  /* Hide desktop nav */
  .navbar ul {
    display: none;
  }
}

.justifyLeft {
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
}

.font20 {
  font-size: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  margin-top: -30px;
}
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
  border: none;
  z-index: 1;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 39%);
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  padding: 20px;
}
.hero-content h1 {
  font-size: 48px;
  margin: 0;
}
.hero-content h2 {
  font-size: 36px;
  margin: 10px 0;
}
.hero-content p {
  font-size: 20px;
  margin-top: 10px;
}

/* Wave Container for Hero */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 145px;
  overflow: hidden;
}
.wave-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Section Styling using Flex */
.section {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  position: relative;
}
.section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  margin-top: -10px;
  color: #ffffff;
}

.marginBottom20 {
  margin-bottom:20px;
}

.section p {
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Card Row for Home Page */
.card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
.card {
  background-color: black;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 400px;
  transition: transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  perspective: 1000px;
}
.card:hover {
  transform: translateY(-5px);
}
.large-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.card-content {
  padding: 20px;
  text-align: left;
}
.card-content h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: 24px;
}
.card-content p {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.6;
}

.btn {
  height:35px;
  cursor:pointer;
}

.card-content .btn {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ff0000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.card-content .btn:hover {
  background-color: #e60000;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 4px;
  width: 100%;
}
.contact-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.left-align {
  text-align: left;
  margin: 10px 0;
  padding-left: 20px;
}

/* Footer Styling using Flex */
.footer {
  background-color: #000;
  color: #ccc;
  padding: 20px 0;
  font-size: 14px;
  position: relative;
  z-index: 100;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}
.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
  margin: 10px 0;
}
.footer-left {
  text-align: left;
}
.footer-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-right: 15px;
}
.footer-nav li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav li a:hover {
  color: #fff;
}
.footer-center {
  text-align: center;
}
.footer-right {
  text-align: right;
}
.footer-social a {
  margin-left: 15px;
  color: #ccc;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 10px;
  color: #777;
}

/* Factory Services Styles */
.factory-services .service-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  width: 100%;
}
.service-content {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
}
.service-content.normal {
  flex-direction: row;
}
.service-content.reverse {
  flex-direction: row-reverse;
}
.service-image {
  flex: 0 0 200px;
  margin: 10px;
}
.service-image img {
  width: 100%;
  border-radius: 8px;
}
.service-text {
  flex: 1;
  margin: 10px;
}
.service-divider {
  border: 0;
  border-top: 1px solid #444;
  margin: 20px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  /* Root & Section Full Width */
  #root {
    width: 100%;
  }
  .section {
    padding-left: 40px;
    padding-right: 100px;
  }
  /* Navigation: Hamburger visible; hide desktop nav */
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: black;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 101;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #444;
  }
  .navbar ul {
    display: none;
  }
  /* Card Row: Stack Cards Vertically */
  .card-row {
    gap: 20px;
  }
  /* Footer: Stack Footer Columns Vertically */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    text-align: center;
  }
  /* Factory Services: Stack Service Content Vertically */
  .service-content {
    flex-direction: column;
  }
  .service-image {
    margin: 0 auto 10px;
  }
  .service-text {
    margin: 0 auto;
  }
}







/* Navigation Base Styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  display: block;
}

/* Main Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 15px;
  position: relative;
  cursor: pointer;
  color: #fff;
  padding: 5px 0;
  transition: border-bottom 0.3s;
}

.nav-item:hover,
.nav-item.active {
  border-bottom: 2px solid #fff;
}

/* Desktop: Show sub-nav on hover using the ID on Health & Beauty */
@media (min-width: 1025px) {
  #health-beauty .sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: black;
    display: none; /* hidden by default */
    flex-direction: column;
    list-style: none;
    padding: 10px 0;
    min-width: 250px;
    border: 1px solid #444;
    z-index: 105;
  }
  #health-beauty:hover .sub-nav {
    display: flex;
  }
}

/* Sub-navigation Items (both desktop and mobile) */
.sub-nav-item {
  padding: 8px 16px;
}
.sub-nav-item a {
  color: #ccc;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.sub-nav-item a:hover {
  color: #fff;
}

/* Hamburger Icon (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: black;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 101;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-item {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #444;
  }
  /* Mobile: Sub-nav appears if toggled open */
  .sub-nav {
    position: relative;
    top: auto;
    left: auto;
    border: none;
    padding: 0;
    display: none;
    flex-direction: column;
  }
  .sub-nav.open {
    display: flex;
  }
}


/* Desktop sub-nav on hover for Health & Beauty and Factory Services */
@media (min-width: 1025px) {
  #health-beauty .sub-nav,
  #factory-services .sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: black;
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 10px 0;
    min-width: 250px;
    border: 1px solid #444;
    z-index: 105;
  }
  #health-beauty:hover .sub-nav,
  #factory-services:hover .sub-nav {
    display: flex;
  }
}

.health-beauty-subnav {
  width: 100%;
  /*padding: 20px;*/
  overflow: auto;
}

/* Float the header image so text wraps around it (like a book layout) */
.header-image {
  /*float: left;*/
  /*width: 300px;*/
  /*margin: 0 20px 20px 0;*/
}

.header-image img {
  width: 100%;
  border-radius: 8px;
}

/* Text content wraps around the floated image */
.text-content {

  font-size: 18px;
  line-height: 1.6;
}

/* Clear floats */
.health-beauty-subnav::after {
  content: "";
  display: block;
  clear: both;
}

.health-beauty-subnav .text-content {

  font-size: 18px;
  line-height: 1.6;
  color: white;
  z-index:50;
  position: relative;
}

.section-design {
  font-size: 18px;
  line-height: 1.6;
  margin: 15px 0;
  color: #e0e0e0; /* Adjust if needed */
}

.health-beauty-subnav {
  scroll-margin-top: 150px;
}

.markets-we-serve {
  padding: 40px;

}

.markets-we-serve h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
}

.markets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.market-item {
  background-color: rgba(34, 34, 34, 0.7); /* 0.7 opacity means 30% transparent */
  border: 2px solid #333;
  border-radius: 8px;
  padding: 15px;
  width: 200px;
  text-align: center;
  transition: transform 1s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.market-item i {
  color: #fff;
  font-size: 50px;
  margin-bottom: 10px;
}

.market-item span {
  color: #fff;
  font-size: 16px;
  display: block;
}

.market-item:hover {
  animation: spin-box 1s ease-in-out;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

@keyframes spin-box {
  from {
    transform: rotateX(0deg) translateY(0);
  }
  to {
    transform: rotateX(360deg) translateY(-10px);
  }
}

/* Flex container for rows */
      .flex-container {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        margin: auto;
        padding-top: 20px;
      }
      /* Container for images */
      .img-container {
        flex: 0 0 300px;
        margin-right: 20px;
      }
      /* Container for text next to image */
      .text-container {
        border-left: 1px solid #ccc;
        padding-left: 20px;
        flex: 1;
      }
      /* Bold title text using Roboto */
      .title-text {
        font-family: 'Roboto', sans-serif;
        color: #e0e0e0;
        font-weight: bold;
        margin-top: -10px;
      }
      /* Box style for sections that need a border, padding, and dark background */
      .content-box {
        border: 2px solid #333;
        padding: 20px;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        margin: 40px auto;
        font-family: 'Roboto', sans-serif;
        color: #e0e0e0;
      }
      /* A variant with a smaller vertical margin */
      .content-box-small {
        border: 2px solid #333;
        padding: 20px;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        margin: 20px auto;
        font-family: 'Roboto', sans-serif;
        color: #e0e0e0;
      }
      /* Utility classes for margin-bottom spacing */
      .mb-10 {
        margin-bottom: 10px;
      }
      .mb-20 {
        margin-bottom: 20px;
      }
      /* Remove list style */
      .no-list {
        list-style: none;
        padding-left: 0;
      }
      /* For lists that require disc bullets and left margin */
      .disc-list {
        list-style-type: disc;
        margin-left: 20px;
      }
      /* Check icon styling */
      .check-icon {
        font-size: 30px;
        margin-right: 10px;
        color: #0f0;
      }
      /* Bold text utility */
      .bold {
        font-weight: bold;
      }
      /* Horizontal rule style */
      .hr-style {
        margin: 20px 0;
        border-color: #fff;
        width: 80%;
      }

.caring-section {
  background: url('assets/truck-background.jpg') center center no-repeat;
  background-size: cover;
  padding: 60px 30px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  position: relative;
}

.caring-section p {
  font-size: 25px;
  line-height: 1.7;
}

.overlay {
  background-color: rgba(96, 6, 21, 0.85);
  padding: 60px 30px;
  border-radius: 10px;
}

.section-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.chat-container {
  padding: 40px 20px;
  font-family: 'Roboto', sans-serif;
  /*background: rgba(0, 0, 0, 0.85);*/
  color: #ffffff;
  border-radius: 10px;
  position: relative;         /* Important: establishes z-index scope */
  z-index: 10;                /* Brings it above background layers */
}

.chat-bubble {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 20px;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chat-bubble.left {
  background-color: #333; /* darker for customer */
  text-align: left;
}

.chat-bubble.right {
  background-color: #960b22; /* red overlay for scientist/lab tech */
  text-align: left;
}

.chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.chat-bubble i {
  font-size: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.column {
  flex: 1 1 45%;
  min-width: 300px;
}

.highlight-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.floating-image {
  width: 200px;
  float: right; /* or left if you want variation per section */
  margin-left: 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-image-left {
  width: 300px;
  float: left;
  margin: 20px 50px 20px 0; /* top, right, bottom, left */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.services-sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  background: #5f0918;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 240px;
  display: none; /* <-- hidden by default */
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 999;
}

.services-sub-nav li {
  list-style: none;
}

.services-sub-nav li a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
}

.services-sub-nav li a:hover {
  background-color: rgb(122, 17, 34);
}

/* When "open" class is added, display it */
.services-sub-nav.open {
  display: flex;
}

.services-tab:hover .services-sub-nav {
  display: flex;
}






.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #500514;
  color: #fff;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-item {
  position: relative;
}

.nav-item a, .dropdown-toggle {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: block;
  font-weight: bold;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #5f0918;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 999;
  display: block;
  min-width: 220px;
  padding: 10px 0;
}

.dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu li a {
  color: #fff;
}

.dropdown-menu li:hover {
  background: rgb(122, 17, 34);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background-color: #500514;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}