/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow: visible !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  overflow: visible !important;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: 0.05em;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 500;
  margin-top: -2px;
}

.nav-logo,
.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10rem;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1e40af;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.5rem;
  margin-left: 0.5rem;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 100%;
  max-width: 1200px;
  width: fit-content;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 1rem;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  z-index: 1001;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  text-align: left;
  overflow: visible;
  pointer-events: auto;
  will-change: transform, opacity;
}

.nav-dropdown:hover .dropdown-content {
  display: grid;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content .dropdown-column h4 {
  color: #1e40af;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid #e5e7eb;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-content .dropdown-column a {
  color: #4b5563;
  text-decoration: none;
  padding: 0.25rem 0;
  display: block;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  border-radius: 4px;
  padding-left: 0.3rem;
  margin-left: -0.3rem;
}

.dropdown-content .dropdown-column a:hover {
  color: #1e40af;
  background-color: #f1f5f9;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background: white;
    padding: 0;
    display: block;
    opacity: 1;
    margin-top: 0;
  }

  .dropdown-column {
    padding: 1rem 1rem;
    border-bottom: 1px solid #eee;
  }

  .dropdown-column h4 {
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-size: 1rem;
  }

  .dropdown-column a {
    display: block;
    padding: 0.5rem 0;
    color: #4b5563;
    border-radius: 0;
    margin-left: 0;
    padding-left: 1rem;
  }

  .dropdown-column a:hover {
    background-color: #f1f5f9;
    color: #1e40af;
    transform: none;
  }
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hide the checkbox */
.nav-checkbox {
  display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    height: 70px;
  }

  /* Improved mobile menu positioning and scrolling */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 0 20px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  /* Show hamburger toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1003;
    position: relative;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Hamburger animation when active */
  #nav-toggle:checked ~ .navbar .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #nav-toggle:checked ~ .navbar .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked ~ .navbar .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Show mobile menu when checkbox is checked */
  #nav-toggle:checked ~ .navbar .nav-menu {
    display: flex;
    transform: translateX(0);
  }

  /* Enhanced mobile menu links with better touch targets */
  #nav-toggle:checked ~ .navbar .nav-menu .nav-link {
    display: block;
    padding: 18px 20px; /* Increased padding for better touch targets */
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
    color: #374151;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 48px; /* Minimum touch target size */
    display: flex;
    align-items: center;
  }

  #nav-toggle:checked ~ .navbar .nav-menu .nav-link:hover {
    background-color: #f8fafc;
    color: #1e40af;
    padding-left: 25px;
  }

  /* Mobile dropdown styling */
  #nav-toggle:checked ~ .navbar .nav-menu .nav-dropdown {
    width: 100%;
  }

  /* Improved mobile dropdown with better spacing and touch targets */
  #nav-toggle:checked ~ .navbar .nav-menu .dropdown-content {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    padding: 0;
    display: block;
    opacity: 1;
    margin-top: 0;
    border-radius: 0;
  }

  #nav-toggle:checked ~ .navbar .nav-menu .dropdown-column {
    padding: 15px 20px; /* Increased padding */
    border-bottom: 1px solid #e5e7eb;
  }

  #nav-toggle:checked ~ .navbar .nav-menu .dropdown-column:last-child {
    border-bottom: none;
  }

  #nav-toggle:checked ~ .navbar .nav-menu .dropdown-column h4 {
    margin-bottom: 12px; /* Increased margin */
    color: #1e40af;
    font-size: 15px; /* Slightly larger font */
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px; /* Increased padding */
  }

  /* Enhanced mobile dropdown links with better touch targets */
  #nav-toggle:checked ~ .navbar .nav-menu .dropdown-column a {
    display: block;
    padding: 12px 0; /* Increased padding for better touch targets */
    color: #6b7280;
    border-radius: 0;
    margin-left: 0;
    padding-left: 15px; /* Increased left padding */
    font-size: 14px;
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
  }

  #nav-toggle:checked ~ .navbar .nav-menu .dropdown-column a:hover {
    background-color: #ffffff;
    color: #1e40af;
    transform: none;
    padding-left: 20px; /* Increased hover padding */
  }

  /* Improved mobile language selector positioning */
  .nav-language-selector {
    display: flex;
    gap: 12px; /* Increased gap */
    align-items: center;
    padding: 20px; /* Increased padding */
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
    background: #f8fafc;
    justify-content: center; /* Center the language buttons */
  }

  .nav-lang-btn {
    padding: 12px 16px; /* Increased padding for better touch targets */
    font-size: 14px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    min-height: 44px; /* Minimum touch target size */
    min-width: 60px; /* Minimum width for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .nav-lang-btn:hover {
    background-color: #1e40af;
    color: white;
  }

  .nav-lang-btn.active {
    background-color: #1e40af;
    color: white;
  }

  .nav-flag {
    width: 20px;
    height: 14px;
  }

  /* Overlay to close menu */
  .overlay {
    display: none;
  }

  #nav-toggle:checked ~ .navbar .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }

  /* Hide desktop language selector on mobile */
  .language-selector {
    display: none;
  }

  /* Prevent body scroll when menu is open - improved implementation */
  #nav-toggle:checked {
    position: fixed;
    top: -9999px;
    left: -9999px;
  }

  /* Prevent body scroll when mobile menu is open */
  #nav-toggle:checked ~ body {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* Enhanced desktop navigation to ensure proper functionality */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* Ensure dropdown works properly on desktop */
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 100%;
    max-width: 1200px;
    width: fit-content;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    text-align: left;
    overflow: visible;
    pointer-events: auto;
    will-change: transform, opacity;
  }

  .nav-dropdown:hover .dropdown-content {
    display: grid;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 80px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1e40af;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 3;
}

.prev-btn,
.next-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: white;
  border-color: white;
}

.cta-button {
  display: inline-block;
  background: #1e40af;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: white;
  color: #1e40af;
}

/* Company Introduction */
.company-intro {
  padding: 6rem 0;
  background: #f8fafc;
  display: block;
  visibility: visible;
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  display: block;
  visibility: visible;
}

.intro-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.intro-content p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #3b82f6;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #3b82f6;
}

.footer-section p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Page Header Styles */
.page-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  color: white;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 1;
  filter: blur(8px);
  transform: scale(1.05);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.4rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .page-header p {
    font-size: 1.2rem;
  }

  .page-header-bg {
    filter: blur(6px);
  }
}

/* Enhanced responsive hero section for better mobile display */
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
    margin-top: 70px;
  }

  .slide-content {
    padding: 0 1.5rem; /* Added horizontal padding */
    text-align: center;
  }

  .slide-content h1 {
    font-size: 2.2rem; /* Adjusted for better readability */
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 1rem; /* Adjusted for better readability */
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 90%; /* Prevent text from touching edges */
    margin-left: auto;
    margin-right: auto;
  }

  .cta-button {
    padding: 12px 24px; /* Better touch target */
    font-size: 16px;
    min-height: 44px; /* Minimum touch target size */
  }

  .slider-controls {
    padding: 0 1rem;
  }

  .prev-btn,
  .next-btn {
    width: 44px; /* Better touch target */
    height: 44px; /* Better touch target */
    font-size: 1.5rem;
  }

  .slider-indicators {
    bottom: 20px; /* Better positioning */
  }

  .indicator {
    width: 12px; /* Larger touch targets */
    height: 12px;
    margin: 0 6px;
  }
}

/* Enhanced mobile responsiveness for smaller screens */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .page-header {
    padding: 5rem 0 3rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .page-header p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Section padding adjustments for very small screens */
  .about-section,
  .mvv-section,
  .values-section,
  .strengths-section,
  .contact-section,
  .service-areas,
  .industries-overview,
  .industries-section,
  .expertise-section,
  .products-overview-split,
  .product-categories-elevated,
  .why-choose-us-scroll {
    padding: 2.5rem 0;
  }

  /* Typography adjustments for very small screens */
  .about-content h2,
  .contact-form h2,
  .contact-info h2,
  .industries-overview h2,
  .split-text h2,
  .product-categories-elevated .section-title,
  .why-choose-us-scroll h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .mvv-card h3,
  .value-card h4,
  .strength-item h4,
  .contact-item h4,
  .area-card h4,
  .industry-card h3,
  .expertise-item h4,
  .category-content h3,
  .scroll-card h4 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  /* Card padding adjustments for very small screens */
  .mvv-card,
  .value-card,
  .strength-item,
  .contact-item,
  .area-card,
  .industry-card,
  .expertise-item,
  .category-content,
  .scroll-card {
    padding: 1.2rem;
  }

  /* Form elements for very small screens */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px;
  }

  .submit-btn {
    padding: 12px 16px;
    font-size: 16px;
  }

  /* CTA buttons for very small screens */
  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  /* Image adjustments for very small screens */
  .split-image img {
    max-height: 200px;
  }

  .category-image img {
    height: 150px;
  }
}

/* =================================== */
/* UNIQUE BACKGROUND IMAGES FOR EACH PAGE */
/* =================================== */

.page-header--about .page-header-bg {
  background-image: url("/public/page-header-about.jpg");
}

.page-header--products .page-header-bg {
  background-image: url("/public/page-header-products.jpg");
}

.page-header--industries .page-header-bg {
  background-image: url("/public/page-header-industries.jpg");
}

.page-header--contact .page-header-bg {
  background-image: url("/public/page-header-contact.jpg");
}

/* About Page Styles */
.about-section {
  padding: 2rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mission, Vision, Values */
.mvv-section {
  background: #f8fafc;
  padding: 4rem 0;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mvv-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mvv-card h3 {
  color: #1e40af;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mvv-card p {
  color: #6b7280;
  line-height: 1.6;
}

.mvv-card ul {
  list-style: none;
  padding: 0;
}

.mvv-card ul li {
  color: #6b7280;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.mvv-card ul li:last-child {
  border-bottom: none;
}

/* Values Section */
.values-section {
  padding: 4rem 0;
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.value-card h4 {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.value-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Strengths Section */
.strengths-section {
  background: #f8fafc;
  padding: 4rem 0;
}

.strengths-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3rem;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.strength-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.strength-item h4 {
  color: #1e40af;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.strength-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Form Styles */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.submit-btn {
  background: #1e40af;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.contact-item h4 {
  color: #1e40af;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #6b7280;
  margin-bottom: 0.25rem;
}

/* Service Areas */
.service-areas {
  background: #f8fafc;
  padding: 4rem 0;
}

.service-areas h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.area-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.area-card h4 {
  color: #1e40af;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.area-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Product Page Styles */
.product-header {
  padding: 4rem 0 4rem;
  background: white;
  margin-top: 40px;
}

.product-header-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
}

.product-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.6;
}

.product-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Product Details Styles */
.product-details {
  padding: 4rem 0;
  background: #f8fafc;
}

.product-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-description h2 {
  color: #1e40af;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.product-description h3 {
  color: #374151;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.product-description p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.instrument-categories,
.treatment-processes,
.system-configs,
.filter-types,
.cable-types,
.treatment-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-item,
.process-item,
.config-item,
.filter-type,
.cable-type,
.tech-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #1e40af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-item h4,
.process-item h4,
.config-item h4,
.filter-type h4,
.cable-type h4,
.tech-item h4 {
  color: #1e40af;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-list,
.application-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li,
.application-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #374151;
  line-height: 1.6;
}

.feature-list li::before,
.application-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.spec-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-item strong {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

.spec-item span {
  color: #1e40af;
  font-weight: 500;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cta-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.cta-box h3 {
  color: #1e40af;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-box p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: #1e40af;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cta-button.secondary {
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
}

.cta-button.secondary:hover {
  background: #1e40af;
  color: white;
}

.related-products {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.related-products h3 {
  color: #1e40af;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.related-products ul {
  list-style: none;
  padding: 0;
}

.related-products li {
  margin-bottom: 0.5rem;
}

.related-products a {
  color: #6b7280;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s ease;
}

.related-products a:hover {
  color: #1e40af;
}

/* Industries Page Styles */
.industries-overview {
  padding: 4rem 0;
  background-color: #f8fafc;
}

.industries-overview .intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.industries-overview h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.industries-overview p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.industries-overview .hero-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 3rem auto;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.industries-section {
  padding: 4rem 0;
  background: white;
}

.industries-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1400px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.industry-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.industry-card h3 {
  color: #1e40af;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.industry-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.industry-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.industry-card ul li {
  color: #374151;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
}

.industry-card ul li:last-child {
  border-bottom: none;
}

.industry-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.expertise-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.expertise-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-5px);
}

.expertise-item h4 {
  color: #1e40af;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.expertise-item p {
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 639px) {
  .industries-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .industry-card {
    padding: 1.5rem;
  }
}

/* Animations — REMOVED ENTIRELY */

/* Logo image styling for consistency across all pages */
.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Added responsive hero section for mobile */
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
    margin-top: 70px;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .slider-controls {
    padding: 0 1rem;
  }

  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

.services-grid .service-card.scroll-animate {
  opacity: 1;
  transform: none;
}

.company-intro {
  padding-top: 4rem;
}

/* ====================== */
/* PRODUCTS OVERVIEW SPLIT LAYOUT — UNIQUE TO PRODUCTS.HTML */
/* ====================== */

.products-overview-split {
  padding: 8rem 0;
  background-color: #ffffff;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.split-text p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.split-text .cta-button {
  display: inline-block;
  background: #1e40af;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.split-text .cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  max-height: 500px;
}

@media (max-width: 992px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-image img {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .split-text h2 {
    font-size: 2.2rem;
  }

  .split-text p {
    font-size: 1rem;
  }

  .split-image img {
    max-height: 300px;
  }
}

/* ====================== */
/* PRODUCT CATEGORIES ELEVATED — UNIQUE TO PRODUCTS.HTML */
/* ====================== */

.product-categories-elevated {
  padding: 8rem 0;
  background-color: #f8fafc;
}

.product-categories-elevated .section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-categories-elevated .section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.category-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: none;
}

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

.category-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-content h3 {
  color: #1e40af;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.category-content p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-link {
  display: inline-block;
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.category-link::after {
  content: "→";
  margin-left: 0.5rem;
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-link:hover {
  color: #1d4ed8;
}

.category-link:hover::after {
  opacity: 1;
  transform: translateX(10px);
}

@media (max-width: 992px) {
  .category-grid {
    gap: 2rem;
  }

  .category-card {
    padding: 1.8rem;
  }
}

@media (max-width: 768px) {
  .product-categories-elevated .section-title {
    font-size: 2.2rem;
  }

  .product-categories-elevated .section-subtitle {
    font-size: 1.1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .category-card {
    padding: 1.6rem;
  }

  .category-content h3 {
    font-size: 1.4rem;
  }

  .category-content p {
    font-size: 0.95rem;
  }

  .category-link {
    font-size: 0.95rem;
  }
}

/* 🔒 Force instant display — NO FADES anywhere on product categories */
.product-categories-elevated .category-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ====================== */
/* WHY CHOOSE US SCROLL LAYOUT — UNIQUE TO PRODUCTS.HTML */
/* ====================== */

.why-choose-us-scroll {
  padding: 6rem 0;
  background-color: #f8fafc;
}

.why-choose-us-scroll h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3rem;
}

.scroll-cards-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2rem;
}

.scroll-cards-container::-webkit-scrollbar {
  display: none;
}

.scroll-cards {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 1400px;
  min-width: fit-content;
}

.scroll-card {
  flex: 0 0 calc(25% - 1.5rem);
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scroll-card h4 {
  color: #1e40af;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.scroll-card p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.scroll-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
  .scroll-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .scroll-card {
    flex: 0 0 100%;
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .why-choose-us-scroll h2 {
    font-size: 2.2rem;
  }

  .scroll-cards-container {
    padding: 0 1rem;
  }
}

/* Language Selector — FINAL, 100% WORKING VERSION */
.nav-language-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  padding: 0 15px;
}

.nav-lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

.nav-lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-lang-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ✅ FLAG ICON — FORCES RENDERING ON ALL BROWSERS */
.nav-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: inline-block; /* Required */
  vertical-align: middle; /* Aligns with text */
  font-size: 0; /* Prevents text rendering inside */
  line-height: 0; /* Prevents line-height interference */
  background-size: 100% 100% !important; /* Forces gradient to fill */
  background-repeat: no-repeat;
  background-position: center;
  /* ✅ CRITICAL: Forces rendering in Safari/Edge */
  content: "";
  opacity: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ✅ US FLAG — 3-band (13 stripes simplified) — ACCURATE & RENDERING GUARANTEED */
.nav-flag-us {
  /* Blue canton (star field) */
  background: linear-gradient(to right, #3c3b6e 0%, #3c3b6e 40%, transparent 40%), /* Red and white stripes */
    repeating-linear-gradient(to bottom, #b22234 0%, #b22234 7.7%, #ffffff 7.7%, #ffffff 15.4%);
  background-size: 100% 100%;
}

/* ✅ SPANISH FLAG — 3-band */
.nav-flag-es {
  background: linear-gradient(to bottom, #aa151b 0%, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%, #aa151b 100%);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-language-selector {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
  }

  .nav-lang-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .nav-flag {
    width: 24px;
    height: 16px;
  }
}

/* Added language selector positioning for desktop */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .language-selector {
    display: none; /* Hide desktop language selector on mobile */
  }
}

/* Enhanced Mobile Responsiveness for Main Pages */
@media (max-width: 768px) {
  /* About page mobile fixes */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-content {
    order: 2; /* Move content after image on mobile */
  }

  .about-image {
    order: 1; /* Move image before content on mobile */
  }

  .about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: left; /* Keep text left-aligned for readability */
  }

  /* Mission, Vision, Values mobile fixes */
  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mvv-card {
    padding: 1.5rem;
    text-align: center;
  }

  .mvv-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .mvv-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .mvv-card ul li {
    padding: 0.75rem 0;
    font-size: 1rem;
    text-align: left;
  }

  /* Values section mobile fixes */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .value-card {
    padding: 1.5rem;
    text-align: center;
  }

  .value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .value-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Strengths section mobile fixes */
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .strength-item {
    padding: 1.5rem;
    text-align: center;
  }

  .strength-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .strength-item p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }
}

/* Contact page mobile fixes */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }

  .contact-form h2,
  .contact-info h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px; /* Increased padding for better touch targets */
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 6px;
    min-height: 44px; /* Minimum touch target size */
  }

  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }

  .submit-btn {
    padding: 14px 20px; /* Better touch target */
    font-size: 16px;
    min-height: 48px;
    width: 100%;
    border-radius: 6px;
  }

  .contact-item {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    text-align: center;
  }

  .contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .contact-item p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* Service areas mobile fixes */
@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .area-card {
    padding: 1.5rem;
    text-align: center;
  }

  .area-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .area-card p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }
}

/* Industries page mobile fixes */
@media (max-width: 768px) {
  .industries-overview {
    padding: 3rem 0;
  }

  .industries-overview h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .industries-overview p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .industries-overview .hero-image {
    margin: 2rem auto;
    border-radius: 8px;
  }

  .industries-section {
    padding: 3rem 0;
  }

  .industries-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .industry-card {
    padding: 1.5rem;
    text-align: center;
  }

  .industry-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .industry-card p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1rem;
  }

  .industry-card ul li {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    text-align: left;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .expertise-item {
    padding: 1.5rem;
    text-align: center;
  }

  .expertise-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .expertise-item p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Products page mobile fixes */
@media (max-width: 768px) {
  /* Product header mobile fixes */
  .product-header {
    padding: 2rem 0;
    margin-top: 70px; /* Account for mobile nav height */
  }

  .product-header-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .product-info {
    order: 2; /* Move text after image on mobile */
  }

  .product-image {
    order: 1; /* Move image before text on mobile */
  }

  .product-info h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .product-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left; /* Keep text left-aligned for readability */
    margin-bottom: 1.5rem;
  }

  .product-image img {
    height: 250px; /* Fixed height for mobile */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Product details mobile fixes */
  .product-details {
    padding: 3rem 0;
  }

  .product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-description {
    order: 1; /* Description first on mobile */
  }

  .product-sidebar {
    order: 2; /* Sidebar after description on mobile */
  }

  .product-description h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .product-description h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
  }

  .product-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: left;
  }

  /* Feature and application lists mobile fixes */
  .feature-list,
  .application-list {
    margin: 1.2rem 0;
    padding-left: 0;
  }

  .feature-list li,
  .application-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
  }

  .feature-list li::before,
  .application-list li::before {
    left: 0.5rem;
    font-size: 1.2rem;
  }

  /* Technical specifications mobile fixes */
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .spec-item {
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
  }

  .spec-item strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #1e40af;
  }

  .spec-item span {
    font-size: 1rem;
    font-weight: 500;
  }

  /* Product sidebar mobile fixes */
  .product-sidebar {
    gap: 1.5rem;
  }

  .cta-box {
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
  }

  .cta-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .cta-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 0.8rem auto;
    padding: 12px 20px;
    font-size: 16px;
    min-height: 48px;
    text-align: center;
    border-radius: 6px;
  }

  .cta-button:last-child {
    margin-bottom: 0;
  }

  .related-products {
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
  }

  .related-products h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .related-products ul {
    text-align: left;
  }

  .related-products li {
    margin-bottom: 0.8rem;
  }

  .related-products a {
    font-size: 1rem;
    padding: 0.8rem 0;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Enhanced mobile responsiveness for very small screens (product pages) */
@media (max-width: 480px) {
  .product-header {
    padding: 1.5rem 0;
  }

  .product-info h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .product-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .product-image img {
    height: 200px;
  }

  .product-details {
    padding: 2rem 0;
  }

  .product-description h2 {
    font-size: 1.6rem;
  }

  .product-description h3 {
    font-size: 1.3rem;
  }

  .product-description p {
    font-size: 0.95rem;
  }

  .feature-list li,
  .application-list li {
    font-size: 0.95rem;
    padding: 0.7rem 0;
    padding-left: 1.8rem;
  }

  .spec-item {
    padding: 1rem;
  }

  .spec-item strong {
    font-size: 0.95rem;
  }

  .spec-item span {
    font-size: 0.95rem;
  }

  .cta-box,
  .related-products {
    padding: 1.2rem;
  }

  .cta-box h3,
  .related-products h3 {
    font-size: 1.2rem;
  }

  .cta-box p {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 10px 16px;
    font-size: 15px;
  }
}

/* Product categories and treatment processes mobile fixes */
@media (max-width: 768px) {
  .instrument-categories,
  .treatment-processes,
  .system-configs,
  .filter-types,
  .cable-types,
  .treatment-tech {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
  }

  .category-item,
  .process-item,
  .config-item,
  .filter-type,
  .cable-type,
  .tech-item {
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
  }

  .category-item h4,
  .process-item h4,
  .config-item h4,
  .filter-type h4,
  .cable-type h4,
  .tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .category-item p,
  .process-item p,
  .config-item p,
  .filter-type p,
  .cable-type p,
  .tech-item p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }
}

/* Breadcrumb mobile fixes */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
  }

  .breadcrumb a {
    color: #1e40af;
    text-decoration: none;
    margin: 0 0.3rem;
  }

  .breadcrumb a:hover {
    text-decoration: underline;
  }
}

/* Product page specific layout improvements */
@media (max-width: 768px) {
  /* Ensure proper spacing and readability */
  .product-header + .product-header {
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }

  /* Multiple product sections on same page */
  .product-header:not(:first-of-type) {
    background: #f8fafc;
  }

  .product-header:not(:first-of-type) .product-info {
    order: 1; /* Alternate layout for variety */
  }

  .product-header:not(:first-of-type) .product-image {
    order: 2;
  }
}

/* Enhanced touch targets for product pages */
@media (max-width: 768px) {
  /* Ensure all product page links meet touch target requirements */
  .related-products a,
  .breadcrumb a,
  .product-description a {
    min-height: 44px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
  }

  /* Exception for inline text links */
  .product-description p a {
    display: inline;
    min-height: auto;
    padding: 0.2rem 0.4rem;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 3px;
  }
}
<!-- ✅ CUSTOM CSS FOR PRODUCT TOWER -->
    <style>
        /* ✅ PRODUCT TOWER — ELEVATED TECHNICAL SHOWCASE */
.product-tower {
    padding: 80px 0;
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}
.product-tower .container {
    max-width: 1200px;
    margin: 0 auto;
}
.tower-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.tower-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 60px;
    font-weight: 400;
}
.tower-item {
    display: flex;
    align-items: center;
    margin: 80px 0;
    gap: 60px;
    transition: transform 0.3s ease;
}
.tower-item:hover {
    transform: translateY(-5px);
}
/* Remove .reverse class for mobile */
.tower-item.reverse {
    flex-direction: row-reverse;
}
.tower-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.tower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.tower-item:hover .tower-image img {
    transform: scale(1.03);
}
.tower-content {
    flex: 1;
    max-width: 520px;
}
.tower-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}
.tower-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 24px;
}
.tower-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #666;
}
.tower-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-left: 3px solid #0073e6;
    border-radius: 0 6px 6px 0;
}
.tower-cta {
    display: inline-block;
    padding: 10px 24px;
    background: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}
.tower-cta:hover {
    background: #005bb5;
}

/* ✅ RESPONSIVE */
@media (max-width: 900px) {
    .tower-item {
        flex-direction: column !important; /* Stack vertically always */
    text-align: center;
    gap: 25px;
    margin: 50px 0; /* reduce spacing for smaller viewports */
  }
    .tower-item.reverse {
    flex-direction: column !important;
  }
    .tower-image {
    width: 100%;
    height: auto; /* Let image adjust naturally */
    max-height: 280px; /* Prevent very tall images */
    margin-bottom: 20px;
  }
.tower-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
     .tower-content {
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
  }
}
    .tower-title {
        font-size: 1.8rem;
    }
    .tower-subtitle {
        font-size: 1.1rem;
    }
}
/* ✅ Even better layout for extra small devices */
@media (max-width: 600px) {
  .tower-item {
    margin: 40px 0;
    gap: 20px;
  }

  .tower-content h3 {
    font-size: 1.4rem;
  }

  .tower-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

    </style>

