:root {
  --brand-red: #b03a2e;
  --brand-gray: #6c757d;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --white: #ffffff;
  --gradient-start: rgba(176, 58, 46, 0.15);
  --gradient-end: rgba(176, 58, 46, 0.02);
}

body {
  font-family: 'Noto Sans', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  color: var(--dark-gray);
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--brand-gray);
  margin-bottom: 2rem;
}

.divider1 {
  height: 3rem;
  background-color: #b03a2e;
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.divider2 {
  height: 3rem;
  background-color: #b03a2e;
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;

  /* Adjusted box-shadow for softer edges */
  box-shadow: inset 0 1em 1em -1em rgba(255, 255, 255, .8), 
              inset 0 -1em 1em -1em rgba(255, 255, 255, .8);
}

.modern-nav {
  background-color: var(--brand-red) !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modern-nav.scrolled {
  background-color: rgba(176, 58, 46, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.modern-nav .navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.modern-nav .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.modern-nav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.modern-nav .navbar-nav .nav-link:hover::after {
  width: 80%;
}

.hero-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(176, 58, 46, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.hero-highlight {
  color: var(--brand-red);
  position: relative;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--brand-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--brand-gray);
}

.feature-item i {
  color: var(--brand-red);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-hero-primary {
  background-color: var(--brand-red);
  color: white;
  border: 2px solid var(--brand-red);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-primary:hover {
  background-color: transparent;
  color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(176, 58, 46, 0.2);
}

.btn-hero-outline {
  background-color: transparent;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-outline:hover {
  background-color: var(--brand-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(176, 58, 46, 0.2);
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  background: white;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 120px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--brand-gray);
  margin-top: 0.5rem;
}

.intro-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--brand-red);
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.feature-highlight i {
  color: var(--brand-red);
  font-size: 1.2rem;
}


@media (min-width: 992px) {
  .rounded-lg-3 { border-radius: .3rem; }
}

.lab-module-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.lab-module-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.module-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.module-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  background-color: var(--light-gray);
}

.module-image.animated-reactors .image-container {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--light-gray);
  animation: slideShow 12s infinite;
}

.lab-module-card:hover .module-image img {
  transform: scale(1.1);
}

.module-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: rgba(176, 58, 46, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.module-content {
  padding: 2rem;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.module-description {
  color: var(--brand-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.module-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.module-features i {
  color: var(--brand-red);
  font-size: 1.1rem;
}

@keyframes slideShow {
  0%, 100% { background-image: url('ideal_reactors_01.png'); }
  25% { background-image: url('ideal_reactors_02.png'); }
  50% { background-image: url('ideal_reactors_03.png'); }
  75% { background-image: url('ideal_reactors_04.png'); }
}

.unified-design-content {
  padding: 2rem 0;
}

.design-features {
  margin-top: 2rem;
}

.design-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 10px;
  border-left: 4px solid var(--brand-red);
}

.design-feature .feature-icon {
  width: 50px;
  height: 50px;
  background: var(--brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.design-feature .feature-text h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.design-feature .feature-text p {
  margin: 0;
  color: var(--brand-gray);
}

.unified-design-image {
  text-align: center;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-top-color: var(--brand-red);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-red), rgba(176, 58, 46, 0.8));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.service-card h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.service-card p {
  color: var(--brand-gray);
  line-height: 1.6;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.contact-item {
  text-align: center;
  min-width: 200px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.contact-details h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.contact-details p,
.contact-details a {
  color: var(--brand-gray);
  margin: 0;
}

.contact-details a:hover {
  color: var(--brand-red);
}

.contact-cta .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.footer {
  background-color: var(--dark-gray) !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-stats {
    gap: 0.5rem;
  }
  
  .stat-card {
    min-width: 100px;
    padding: 1rem 0.5rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .intro-card {
    padding: 2rem 1.5rem;
  }
  
  .modern-nav .navbar-nav {
    text-align: center;
  }
  
  .design-feature {
    flex-direction: column;
    text-align: center;
  }
}