/* Manufacturing Hero Styles - Clean & Modern */
.manufacturing-hero {
  
  height: 100vh;
  min-height: 700px;
  
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), 
              url('../assets/Manu_hero.PNG') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  
}

.manufacturing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  z-index: 1;
  
}



.hero-content {
  max-width: 600px;
  text-align: left;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #f8f9fa;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  font-weight: 400;
  opacity: 0.95;
}

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

.cta-btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  background: rgba(0,102,204,0.9);
  border-color: rgba(0,102,204,0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,102,204,0.3);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Side Elements */
.hero-side-elements {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0.8;
}

.side-stat {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  transition: all 0.3s ease;
  animation: fadeInRight 1s ease-out;
}

.side-stat:nth-child(2) {
  animation-delay: 0.2s;
}

.side-stat:nth-child(3) {
  animation-delay: 0.4s;
}

.side-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-5px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-decorative {
  position: absolute;
  right: 2%;
  bottom: 10%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-decorative::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 102, 204, 0.4);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .hero-side-elements {
    right: 3%;
    gap: 1.5rem;
  }
  
  .side-stat {
    padding: 1.25rem;
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .manufacturing-hero {
    min-height: 600px;
    height: 100vh;
  }
  
  .hero-container {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .nav-buttons {
    gap: 0.75rem;
  }
  
  .cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-side-elements {
    display: none; /* Hide on mobile for cleaner look */
  }
  
  .hero-decorative {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-btn {
    text-align: center;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .manufacturing-hero {
    min-height: 500px;
  }
  
  .hero-container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

.section-heading {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

/* 1. MACHINING - Enhanced Layout with Subtle Improvements */
.machining-hero {
  padding: 6rem 2rem;
  background: linear-gradient(to right, #f8f9fa 0%, #e9eceffb 100%);
  position: relative;
  overflow: hidden;
}

.machining-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.machining-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.machining-main {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 5rem;
}

.machining-content {
  flex: 1.2;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Subtle accent elements */
.machining-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue, #0066cc), #4a90e2);
  border-radius: 0 0 4px 4px;
}

.machining-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2, var(--accent-blue, #0066cc));
  border-radius: 4px 4px 0 0;
}

.machining-content h2::after {
  content: "" !important;
  position: absolute !important;
  bottom: -10px !important;
  left: 0 !important;
  width: 80px !important;
  height: 4px !important;
  background: var(--accent-blue) !important;
  border-radius: 2px !important;
}

.machining-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #444;
  font-size: 1.05rem;
}

.machining-content p:last-child {
  margin-bottom: 0;
}

.machining-image-container {
  flex: 1;
  position: relative;
  padding: 10px;
}

.machining-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
  height: 420px;
  background: #f0f0f0;
}

/* Subtle border accent */
.machining-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid rgba(0, 102, 204, 0.1);
  border-radius: 25px;
  z-index: -1;
}

.machining-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.machining-image:hover img {
  transform: scale(1.03);
}

.machining-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.machining-feature {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.machining-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue, #0066cc), #4a90e2);
}

.machining-feature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-blue, #0066cc) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.machining-feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.machining-feature:hover::after {
  opacity: 0.03;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent-blue, #0066cc);
  transition: all 0.4s ease;
}

.machining-feature:hover .feature-icon {
  transform: scale(1.1);
  color: #004499;
}

.machine-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.machining-feature:hover .machine-title {
  color: var(--accent-blue, #0066cc);
}

.machining-feature p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments for MACHINING */
@media (max-width: 1024px) {
  .machining-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .machining-main {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .machining-main {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .machining-content {
    padding: 2rem;
  }
  
  .machining-image {
    height: 320px;
    width: 100%;
  }
  
  .machining-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .machining-hero {
    padding: 4rem 1.5rem;
  }
  
  .machining-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .machining-content h2 {
    font-size: 1.9rem;
  }
  
  .machining-content {
    padding: 1.75rem;
  }
  
  .machining-feature {
    padding: 1.5rem;
  }
}

/* 2. METAL FINISHING - Complete Redesign */
.finishing-section {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.finishing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 1;
}

.finishing-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Main Content Grid */
.finishing-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* Content Side */
.finishing-content {
  padding: 0;
  background: transparent;
}

.finishing-content-inner {
  max-width: none;
}

.finishing-content h2 {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.finishing-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.finishing-content .section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
}

/* Image Side - Fixed Container */
.finishing-image-wrapper {
  position: relative;
  padding: 20px;
}

.finishing-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background: #fff;
  padding: 15px;
}

.finishing-image-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 3px solid var(--accent-blue);
  border-radius: 20px;
  z-index: -1;
}

.finishing-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.finishing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
  /* Ensure crisp image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
}

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

/* Badge overlay */
.finishing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Finishing Process Boxes */
.finishing-processes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.finishing-process {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.finishing-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-blue), #4a90e2);
}

.finishing-process:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.process-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.finishing-process h3 {
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.finishing-process p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Features Grid */
.finishing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.finishing-feature {
  background: white;
  padding: 2.5rem;
  
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 100px;

}

.finishing-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-blue), #4a90e2);
}

.finishing-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.finishing-feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-blue), #4a90e2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.finishing-feature h3 {
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.finishing-feature p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.finishing-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.finishing-cta h3 {
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.finishing-cta p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-blue);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-btn:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Mobile Responsiveness for Process Boxes */
@media (max-width: 768px) {
  .finishing-processes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .finishing-process {
    padding: 2rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .finishing-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .finishing-content {
    order: 1; /* Content first on mobile */
  }
  
  .finishing-image-wrapper {
    order: 2; /* Image second on mobile */
    padding: 15px;
  }
  
  .finishing-image {
    height: 280px; /* Reduced height for mobile */
  }
  
  .finishing-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .finishing-section {
    padding: 4rem 1.5rem; /* Reduced top/bottom padding */
  }
  
  .finishing-main {
    gap: 1.5rem; /* Smaller gap between content and image */
  }
  
  .finishing-content {
    margin-bottom: 1rem;
  }
  
  .finishing-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .finishing-content .section-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .finishing-image-wrapper {
    padding: 10px;
  }
  
  .finishing-image {
    height: 240px; /* Further reduced for better balance */
  }
  
  .finishing-feature {
    padding: 2rem;
  }
  
  .finishing-cta {
    padding: 2rem;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .finishing-section {
    padding: 3rem 1rem; /* More compact padding */
  }
  
  .finishing-main {
    gap: 1rem;
  }
  
  .finishing-content h2 {
    font-size: 1.75rem;
  }
  
  .finishing-content .section-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .finishing-image-wrapper {
    padding: 8px;
  }
  
  .finishing-image {
    height: 200px; /* Compact size for small screens */
  }
  
  .finishing-badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .finishing-feature {
    padding: 1.5rem;
  }
  
  .finishing-feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}
/* 3. ASSEMBLY - Overlapping Elements with Cards */
.assembly-section {
  padding: 8rem 2rem;
  background: var(--white);
  position: relative;
}

.assembly-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.assembly-bg-image {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 50%;
  height: 500px;
  object-fit: cover;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1;
}

.assembly-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-left: auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.assembly-cards {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.assembly-card {
  flex: 1;
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

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

.assembly-card h3 {
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

/* 4. LEAN - Updated with Image and Enhanced Layout */
.lean-section {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--dark-blue) 0%, #1a3c6e 100%);
  color: var(--white);
  position: relative;
}

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

.lean-heading {
  color: var(--white);
  margin-bottom: 3rem;
  text-align: center;
}

.lean-heading::after {
  background: var(--white);
  left: 50%;
  transform: translateX(-50%);
}

/* New content wrapper for text and image */
.lean-content-wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: center;
}

.lean-text-content {
  flex: 1;
}

.lean-intro {
  color: var(--white);
  opacity: 0.9;
  line-height: 1.8;
  margin: 0;
}

/* Image container styling */
.lean-image-container {
  flex: 1;
  max-width: 500px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.lean-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.lean-image-container:hover .lean-image {
  transform: scale(1.03);
}

.lean-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

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

.lean-feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: center;
}

.lean-feature:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.lean-feature:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

/* Media queries for responsive design */
@media (min-width: 992px) {
  .lean-content-wrapper {
    flex-direction: row;
    align-items: center;
  }
  
  .lean-text-content {
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  .lean-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lean-heading {
    font-size: 2rem;
  }
  
  .lean-image-container {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .lean-features {
    grid-template-columns: 1fr;
  }
  
  .lean-section {
    padding: 5rem 1.5rem;
  }
}

/* Responsive adjustments for manufacturing sections */
@media (max-width: 1200px) {
  .machining-features {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 2rem;
    right: auto;
  }
  
  .machining-content {
    width: 100%;
  }
  
  .machining-container {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .finishing-container {
    flex-direction: column;
  }
  
  .finishing-divider {
    display: none;
  }
  
  .finishing-image, .finishing-content {
    height: 50%;
  }
  
  .finishing-features {
    flex-direction: column;
  }
  
  .assembly-bg-image {
    position: relative;
    width: 100%;
    height: 300px;
    transform: none;
    top: 0;
    border-radius: 12px;
    margin-bottom: 2rem;
  }
  
  .assembly-content {
    margin-left: 0;
  }
  
  .assembly-cards {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }
  
  .machining-features {
    grid-template-columns: 1fr;
  }
  
  .lean-features {
    grid-template-columns: 1fr;
  }
}
