/* ===============================================
   ORGANIZED STYLESHEET - FIXED ANIMATIONS
   Table of Contents:
   1. CSS Reset & Base Styles
   2. Layout & Container
   3. Typography
   4. Header & Navigation
   5. Hero Section
   6. Services Section
   7. Process Steps
   8. Certificates Section
   9. About Page
   10. Production Page
   11. Footer
   12. Animations & Effects
   13. Media Queries
   =============================================== */

/* ===== 1. CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 2. LAYOUT & CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 3. TYPOGRAPHY ===== */
.section-title {
  text-align: center;
  color: #005DAA;
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  /* Animation styles */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-title.show {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
  /* Animation styles */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: 0.2s;
}

.section-subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 4. HEADER & NAVIGATION ===== */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 0 0;
  position: relative;
}

.header-container {
  display: flex;
  flex-direction: column;
  position: relative;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  min-height: 90px;
}

/* Logo Group */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 70px;
}

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-taglines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid #7AC143;
  padding-left: 15px;
  height: 100%;
}

.tagline-top,
.tagline-middle,
.tagline-bottom {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.tagline-top {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #7AC143;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.tagline-middle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #005DAA;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.tagline-bottom {
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: 700;
  color: #7AC143;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  font-size: 16px;
  color: #005DAA;
  text-decoration: none;
  position: relative;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.main-navigation a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background-color: #7AC143;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -2px;
  left: 0;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Accent Lines */
.accent-lines {
  display: none;
}

.green-line {
  height: 3px;
  background: linear-gradient(90deg, #7AC143 0%, rgba(122,193,67,0.3) 100%);
  width: 100%;
}

.blue-line {
  height: 3px;
  background: linear-gradient(90deg, #005DAA 0%, rgba(0,93,170,0.3) 100%);
  width: 100%;
}

/* ===== 5. HERO SECTION ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 500px;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 40%;
  left: 50%; 
  transform: translateX(-50%); 
  color: white;
  background: rgba(0, 93, 170, 0.5);
  padding: 20px;
  max-width: 500px;
  border-left: 4px solid #7AC143;
  text-align: center; 
}


.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: #005DAA;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 93, 170, 0.7);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-arrow:hover {
  background: rgba(0, 93, 170, 0.9);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

.hero-fallback {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 6. SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
  align-items: stretch; 
  z-index: 2;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: left;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #7AC143;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  min-height: 300px; 
  opacity: 1;
  transform: translateY(0);
}

.service-card:not(.show) {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card h3 {
  color: #005DAA;
  font-size: 1.4rem; 
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 60px; 
  display: flex;
  align-items: flex-start; 
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.service-card:not(.show) h3 {
  opacity: 0;
  transform: translateY(20px);
}

.service-card.show h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.service-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  min-height: 80px; 
  display: flex;
  align-items: flex-start; 
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.service-card:not(.show) p {
  opacity: 0;
  transform: translateY(15px);
}

.service-card.show p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
  min-height: 160px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-features li {
  padding: 12px 0; 
  position: relative;
  padding-left: 25px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  min-height: 40px; 
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.service-card:not(.show) .service-features li {
  opacity: 0;
  transform: translateY(10px);
}

.service-card.show .service-features li {
  opacity: 1;
  transform: translateY(0);
}

.service-card.show .service-features li:nth-child(1) { transition-delay: 0.4s; }
.service-card.show .service-features li:nth-child(2) { transition-delay: 0.5s; }
.service-card.show .service-features li:nth-child(3) { transition-delay: 0.6s; }
.service-card.show .service-features li:nth-child(4) { transition-delay: 0.7s; }

.service-features li:last-child {
  border-bottom: none;
}

.service-features li:before {
  content: '●';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); 
  color: #7AC143;
  font-size: 14px;
}


.service-card h3::after {
  display: none;
}

/* Add gradient top border */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7AC143 0%, #005DAA 100%);
  border-radius: 12px 12px 0 0;
}

/* Enhanced hover effects */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 93, 170, 0.15);
}

.service-card:hover::before {
  background: linear-gradient(90deg, #005DAA 0%, #7AC143 100%);
}

/* Services overview section */
.services-overview {
  padding: 80px 0;
  background: 
    linear-gradient(135deg, 
      rgba(0, 93, 170, 0.15) 0%, 
      rgba(122, 193, 67, 0.15) 100%),
    linear-gradient(to bottom, #f0f5fa 0%, #e0ebf5 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.services-overview::before,
.services-overview::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.services-overview::before {
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 93, 170, 0.2) 0%, transparent 70%);
}

.services-overview::after {
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(122, 193, 67, 0.2) 0%, transparent 70%);
}

/* Media Query Adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
    margin: 30px auto 0;
  }
  
  .service-card {
    padding: 30px 25px;
    min-height: 380px;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    min-height: 50px;
  }
  
  .service-card p {
    min-height: 70px;
  }
  
  .service-features {
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .service-card {
    min-height: 350px;
  }
  
  .service-card h3 {
    min-height: 45px;
  }
  
  .service-card p {
    min-height: 60px;
  }
  
  .service-features {
    min-height: 120px;
  }
}

/* ===== 7. PROCESS STEPS - FIXED ANIMATIONS ===== */
.process-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #7AC143, #005DAA);
  z-index: 1;
}

.process-step {
  display: flex;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  /* Animation styles - FIXED */
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.process-step.show {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  width: 60px;
  height: 60px;
  background: #005DAA;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-right: 30px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 93, 170, 0.3);
  transition: all 0.3s ease;
}

.step-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
  transition: all 0.3s ease;
}

.step-content h3 {
  color: #005DAA;
  margin-bottom: 10px;
  font-size: 1.4rem;
  /* Animation styles */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.process-step.show .step-content h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.step-content p {
  color: #555;
  line-height: 1.6;
  /* Animation styles */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.process-step.show .step-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  background: #7AC143;
}

.process-step:hover .step-content {
  box-shadow: 0 10px 30px rgba(0, 93, 170, 0.15);
}

/* ===== 8. CERTIFICATES SECTION ===== */
.certificates-section {
  background: #f5f7fa;
  padding: 80px 0;
  text-align: center;
}

.single-certificate-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.certificate-highlight {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,93,170,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  border: 1px solid rgba(0,93,170,0.1);
}

.certificate-highlight:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,93,170,0.15);
}

.certificate-image {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  transition: transform 0.8s ease;
}

.certificate-highlight:hover .certificate-image img {
  transform: scale(1.03);
}

.certificate-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,193,67,0.05) 0%, rgba(0,93,170,0.05) 100%);
}

.certificate-details {
  padding: 30px;
  position: relative;
}

.certificate-details h3 {
  color: #005DAA;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 700;
}

.certificate-details p {
  color: #555;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.certificate-year {
  display: inline-block;
  background: #7AC143;
  color: white;
  padding: 8px 25px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.certificate-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: #005DAA;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,93,170,0.3);
}

/* ===== 9. ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(rgba(0, 93, 170, 0.8), rgba(122, 193, 67, 0.8));
  color: white;
  padding: 100px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
}

.story-image img {
  display: block;
  width: 100%;
  height: auto;
}

.story-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

.values-section {
  background: #f9f9f9;
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon img {
  height: 60px;
  margin-bottom: 20px;
}

.position {
  color: #7AC143;
  font-weight: 500;
  margin: 10px 0;
}

.milestones {
  background: #eaf2f8;
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: #005DAA;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

/* Staggered Animation Delays */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }
.timeline-item:nth-child(7) { transition-delay: 0.7s; }
.timeline-item:nth-child(8) { transition-delay: 0.8s; }

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: left;
  padding-right: 60px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 60px;
}

.year {
  padding: 10px 20px;
  background: #7AC143;
  color: white;
  border-radius: 20px;
  font-weight: 500;
  display: inline-block;
  position: relative;
}

.event {
  padding: 20px;
  background: white;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 21px;
    right: auto;
  }
}

/* ===== 10. PRODUCTION PAGE ===== */
.production-hero {
  background: linear-gradient(rgba(0, 93, 170, 0.85), rgba(122, 193, 67, 0.85));
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.production-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.production-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.production-intro {
  padding: 60px 0;
  background: #f9f9f9;
}

.production-intro h2 {
  color: #005DAA;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Machine Grid */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.machine-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,93,170,0.15);
}

.machine-image {
  height: 250px;
  overflow: hidden;
}

.machine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.machine-card:hover .machine-image img {
  transform: scale(1.05);
}

.machine-details {
  padding: 25px;
}

.machine-details h3 {
  color: #005DAA;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.machine-specs {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.machine-specs li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
}

.machine-specs li:before {
  content: "•";
  color: #7AC143;
  font-size: 1.2em;
  position: absolute;
  left: 0;
}

/* Enhanced Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 93, 170, 0.8);
  color: white;
  border: none;
  font-size: 18px;
  padding: 12px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 93, 170, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dots .dot.active {
  background: #005DAA;
  border-color: #005DAA;
}

/* Info Section */
.carousel-info {
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

#machine-title {
  color: #005DAA;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

#machine-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-container {
    height: 300px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 250px;
  }
  
  .carousel-info {
    padding: 15px;
  }
  
  #machine-title {
    font-size: 1.1rem;
  }
  
  #machine-desc {
    font-size: 0.9rem;
  }
}


.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
    
.fade-in-up {
  transform: translateY(50px);
}
    
.fade-in-left {
  transform: translateX(-50px);
}
    
.fade-in-right {
  transform: translateX(50px);
}
    
.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
    
/* Delay classes for staggered animations */
.delay-1 {
  transition-delay: 0.3s;
}
    
.delay-2 {
  transition-delay: 0.5s;
}
    
.delay-3 {
  transition-delay: 0.8s;
}


/* Quality Section */
.quality-section {
  padding: 60px 0;
  background: white;
}

.quality-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.quality-step {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border-top: 4px solid #7AC143;
  transition: all 0.3s ease;
  text-align: center;
}

.quality-step:hover {
  background: #f0f7ff;
  box-shadow: 0 10px 25px rgba(0,93,170,0.1);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #005DAA;
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 15px;
  border: 1px solid #eee;
}

/* ===== 11. FOOTER ===== */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 2px 0;
  text-align: center;
  font-size: 0.8rem;
}

.site-footer a {
  color: #ccc;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #fff;
}

/* ===== 12. ANIMATIONS & EFFECTS - FIXED ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s forwards;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

/* Staggered Animation Delays - FIXED */
.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }
.process-step:nth-child(5) { transition-delay: 0.5s; }
.process-step:nth-child(6) { transition-delay: 0.6s; }

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.3s; }
.service-card:nth-child(3) { transition-delay: 0.5s; }

.service-card.show .service-features li:nth-child(1) { transition-delay: 0.4s; }
.service-card.show .service-features li:nth-child(2) { transition-delay: 0.5s; }
.service-card.show .service-features li:nth-child(3) { transition-delay: 0.6s; }
.service-card.show .service-features li:nth-child(4) { transition-delay: 0.7s; }

.machine-card, 
.quality-step {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== 13. MEDIA QUERIES ===== */

/* Large Screens */
@media (max-width: 992px) {
  .main-navigation ul {
    gap: 20px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Header */
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    min-height: auto;
  }

  .logo-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: auto;
    border-left: 2px solid #7AC143;
    padding-left: 10px;
    border-top: none;
    padding-top: 0;
    width: auto;
  }

  .logo {
    height: 40px;
  }

  .logo-taglines {
    flex-direction: column;
    justify-content: center;
    border-left: none;
    padding-left: 0;
    height: auto;
  }

  .tagline-top,
  .tagline-middle,
  .tagline-bottom {
    display: none;
  }

  .main-navigation {
    margin-left: auto;
  }

  .main-navigation ul {
    gap: 5px;
    margin-top: 0;
  }

  .main-navigation a {
    font-size: 12px;
    padding: 6px 10px;
    background-color: transparent;
    border-radius: 4px;
    color: #005DAA;
  }

  .main-navigation a:hover {
    background-color: #005DAA;
    color: white;
  }

  /* Hero Section */
  .hero-carousel {
    height: 300px;
  }
  
  .slide-caption {
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 93, 170, 0.7);
    padding: 20px;
    max-width: 500px;
    border-left: 4px solid #7AC143;
    text-align: center;
  }
  
  .slide-caption h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .slide-caption p {
    font-size: 0.8rem;
  }

  .center-caption {
    width: 90%;
    padding: 15px;
  }

  /* Services */
  .services-overview {
    padding: 60px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 30px auto 0;
  }
  
  .service-card {
    padding: 25px 20px;
  }

  /* Process Steps */
  .process-steps {
    padding: 20px 0;
  }
  
  .process-steps::before {
    left: 30px;
  }
  
  .process-step {
    flex-direction: column;
    margin-bottom: 20px;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .step-content {
    margin-left: 0;
    padding: 15px;
  }
  
  .step-content h3 {
    font-size: 1.1rem;
  }
  
  .step-content p {
    font-size: 0.9rem;
  }

  /* Typography */
  .section-title {
    font-size: 1.8rem;
  }

  /* Certificates */
  .certificate-image {
    height: 250px;
  }
  
  .certificate-details h3 {
    font-size: 1.5rem;
  }
  
  .certificate-badge {
    right: 20px;
    font-size: 0.8rem;
  }

  /* About Page */
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }

  /* Production Page */
  .machine-grid {
    grid-template-columns: 1fr;
  }
  
  .machine-image {
    height: 200px;
  }
  
  .quality-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  /* Header */
  .logo {
    height: 30px;
  }

  .main-navigation a {
    font-size: 10px;
    padding: 4px 6px;
  }

  .tagline-top {
    font-size: 12px;
    letter-spacing: 2px;
  }
  
  .tagline-bottom {
    font-size: 14px;
  }
  
  .main-navigation ul {
    gap: 8px;
  }

  /* Typography */
  .section-title {
    font-size: 1.6rem;
  }

  /* Services */
  .services-overview {
    padding: 50px 0;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-item h3 {
    font-size: 1rem;
  }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== 8. CERTIFICATES SECTION ===== */
.certificates-section {
  background: #f5f7fa;
  padding: 80px 0;
  text-align: center;
}

.single-certificate-container {
  max-width: 900px; 
  margin: 0 auto;
  padding: 20px;
  display: flex; 
  align-items: center;
  gap: 40px; 
}

.certificate-highlight {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,93,170,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  border: 1px solid rgba(0,93,170,0.1);
  display: flex; 
  width: 100%; 
}

.certificate-highlight:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,93,170,0.15);
}

.certificate-image {
  flex: 0 0 45%; 
  height: 350px; 
  overflow: hidden;
  position: relative;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  transition: transform 0.8s ease;
}

.certificate-highlight:hover .certificate-image img {
  transform: scale(1.03);
}

.certificate-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,193,67,0.05) 0%, rgba(0,93,170,0.05) 100%);
}

.certificate-details {
  flex: 1; 
  padding: 40px 30px;
  position: relative;
  text-align: left; 
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.certificate-details h3 {
  color: #005DAA;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 700;
}

.certificate-details p {
  color: #555;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.certificate-year {
  display: inline-block;
  background: #7AC143;
  color: white;
  padding: 8px 25px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.certificate-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: #005DAA;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,93,170,0.3);
}

/* Responsive adjustments for certificate section */
@media (max-width: 768px) {
  .single-certificate-container {
    flex-direction: column; 
    gap: 30px;
  }
  
  .certificate-highlight {
    flex-direction: column; 
  }
  
  .certificate-image {
    flex: none; 
    width: 100%;
    height: 250px; 
  }
  
  .certificate-details {
    text-align: center; 
    padding: 25px;
  }
  
  .certificate-badge {
    right: 50%;
    transform: translateX(50%); 
  }
}

    /* Production Showcase Section */
    .production-showcase-section {
      padding: 90px 0;
      background: white;
    }

    .production-carousel-card {
      background: white;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 15px 40px rgba(0,0,0,0.08);
      transition: all 0.4s ease;
      margin: 50px 0;
    }

    .production-carousel-card:hover {
      box-shadow: 0 25px 60px rgba(0,93,170,0.12);
      transform: translateY(-5px);
    }

    .carousel-container {
      position: relative;
      width: 100%;
      height: 250px;
      overflow: hidden;
      flex:1;
    }

    .carousel-slides {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .carousel-slide {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .carousel-slide.active {
      opacity: 1;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .carousel-container:hover .carousel-slide img {
      transform: scale(1.05);
    }

    /* Production Carousel Navigation */
    .production-carousel-prev,
    .production-carousel-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 93, 170, 0.8);
      color: white;
      border: none;
      font-size: 18px;
      padding: 12px;
      cursor: pointer;
      z-index: 10;
      transition: all 0.3s ease;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .production-carousel-prev:hover,
    .production-carousel-next:hover {
      background: rgba(0, 93, 170, 1);
      transform: translateY(-50%) scale(1.1);
    }

    .production-carousel-prev {
      left: 15px;
    }

    .production-carousel-next {
      right: 15px;
    }

    /* Production Carousel Dots */
    .production-carousel-dots {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }

    .production-carousel-dots .production-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.6);
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid rgba(255, 255, 255, 0.8);
    }

    .production-carousel-dots .production-dot:hover {
      background: rgba(255, 255, 255, 0.8);
    }

    .production-carousel-dots .production-dot.active {
      background: #005DAA;
      border-color: #005DAA;
    }

    /* Production Info Section */
    .production-carousel-info {
      flex: 1;
      padding: 20px;
      text-align: left;
    }

    #production-machine-title {
      color: #005DAA;
      font-size: 0.9rem;
      margin-bottom: 8px;
      font-weight: 600;
    }

    #production-machine-desc {
      color: #666;
      font-size: 1rem;
      line-height: 1.6;
    }

    .production-cta {
      text-align: center;
      margin-top: 40px;
    }

    /* Product Categories Section */
    .product-categories-section {
      padding: 90px 0;
      background: linear-gradient(135deg, #f8f9ff 0%, #f0f8f0 100%);
    }

    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 40px;
      margin-top: 50px;
    }
    .production-carousel-card.reversed-layout {
      display: flex;
      flex-direction: row-reverse; /* This reverses the order */
      gap: 40px;
      align-items: center;
    }

    .category-card {
      background: white;
      border-radius: 20px;
      padding: 40px 30px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
      /* Animation styles */
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .category-card.show {
      opacity: 1;
      transform: translateY(0);
    }

    .category-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, #7AC143, #005DAA);
      transition: left 0.6s ease;
    }

    .category-card:hover::before {
      left: 0;
    }

    .category-card:hover {
      transform: translateY(-15px) scale(1.02);
      box-shadow: 0 20px 50px rgba(0,93,170,0.15);
    }

    .category-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 25px;
      background: linear-gradient(135deg, #005DAA, #7AC143);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .category-icon img {
      width: 40px;
      height: 40px;
      filter: brightness(0) invert(1);
    }

    .category-card:hover .category-icon {
      transform: scale(1.1) rotate(5deg);
    }

    .category-card h3 {
      color: #005DAA;
      margin-bottom: 20px;
      font-size: 1.5rem;
      transition: color 0.3s ease;
    }

    .category-card:hover h3 {
      color: #7AC143;
    }

    .category-card p {
      color: #666;
      margin-bottom: 30px;
      font-size: 1rem;
      line-height: 1.6;
    }

    .category-link {
      color: #7AC143;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      position: relative;
      display: inline-block;
      padding: 8px 0;
    }

    .category-link::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: 0;
      left: 0;
      background: #005DAA;
      transition: width 0.3s ease;
    }

    .category-link:hover::after {
      width: 100%;
    }

    .category-link:hover {
      color: #005DAA;
    }

    .products-cta {
      text-align: center;
      margin-top: 50px;
    }

    /* Get In Touch Section */
    .get-in-touch-section {
      padding: 90px 0;
      background: linear-gradient(135deg, rgba(0, 93, 170, 0.95), rgba(122, 193, 67, 0.9));
      color: white;
      position: relative;
      overflow: hidden;
    }

    .get-in-touch-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0.3;
    }

    .contact-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      position: relative;
      z-index: 2;
    }

    .contact-info h2 {
      font-size: 2.2rem;
      margin-bottom: 25px;
      color: white;
    }

    .contact-info > p {
      font-size: 1.2rem;
      margin-bottom: 40px;
      line-height: 1.7;
      opacity: 0.95;
    }

    .contact-highlights {
      margin-bottom: 40px;
    }

    .contact-highlight {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 30px;
      padding: 20px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
    }

    .contact-highlight:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateX(10px);
    }

    .highlight-icon {
      font-size: 2rem;
      flex-shrink: 0;
    }

    .highlight-text h4 {
      margin-bottom: 8px;
      font-size: 1.2rem;
    }

    .highlight-text p {
      opacity: 0.9;
      font-size: 1rem;
      line-height: 1.5;
    }

    .contact-methods {
      display: flex;
      gap: 30px;
    }

    .contact-method {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .method-icon {
      font-size: 1.5rem;
    }

    .method-details h4 {
      margin-bottom: 5px;
      font-size: 1.1rem;
    }

    .method-details p {
      font-size: 1rem;
      opacity: 0.9;
    }

    .contact-action {
      display: flex;
      align-items: center;
    }

    .cta-card {
      background: rgba(255, 255, 255, 0.95);
      color: #333;
      padding: 40px;
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
    }

    .cta-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    }

    .cta-card h3 {
      color: #005DAA;
      font-size: 1.8rem;
      margin-bottom: 20px;
    }

    .cta-card p {
      color: #666;
      margin-bottom: 30px;
      line-height: 1.6;
    }

    .cta-buttons {
      display: flex;
      gap: 20px;
      justify-content: center;
    }

    /* CTA Buttons */
    .cta-button,
    .primary-cta-button,
    .secondary-cta-button {
      display: inline-block;
      padding: 15px 30px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }

    .cta-button,
    .primary-cta-button {
      background: #005DAA;
      color: white;
      border-color: #005DAA;
    }

    .cta-button:hover,
    .primary-cta-button:hover {
      background: #7AC143;
      border-color: #7AC143;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(122, 193, 67, 0.4);
    }

    .secondary-cta-button {
      background: transparent;
      color: #005DAA;
      border-color: #005DAA;
    }

    .secondary-cta-button:hover {
      background: #005DAA;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 93, 170, 0.4);
    }

    /* Responsive Design */
    @media (max-width: 992px) {
      .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
      }
      
      .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
      }

        .production-carousel-card.reversed-layout {
        flex-direction: column;
      }
      
      .production-carousel-info {
        text-align: center;
        order: 1; 
      }
      
      .carousel-container {
        order: 2; 
      }
    }

    @media (max-width: 768px) {
      .carousel-container {
        height: 300px;
      }
      
      .production-carousel-info {
        padding: 20px;
      }
      
      .categories-grid {
        grid-template-columns: 1fr;
        gap: 25px;
      }
      
      .contact-methods {
        flex-direction: column;
        gap: 20px;
      }
      
      .cta-buttons {
        flex-direction: column;
        gap: 15px;
      }
      
      .get-in-touch-section {
        padding: 60px 0;
      }
      
      .contact-info h2 {
        font-size: 1.8rem;
      }
    }

    @media (max-width: 480px) {
      .carousel-container {
        height: 250px;
      }
      
      .production-carousel-prev,
      .production-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
      }
      
      .category-card {
        padding: 30px 20px;
      }
      
      .cta-card {
        padding: 30px 20px;
      }
      
      .contact-highlight {
        padding: 15px;
      }
    }
