/* ==========================================================================
   #PRODUCT IMAGE FULL WIDTH
   ========================================================================== */
.product-image-full {
  width: 100%;
  margin: 0 0 2rem 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-full img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.product-image-full img:hover {
  transform: scale(1.02);
  cursor: zoom-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-image-full {
    margin: 0 -1rem 1.5rem;
    border-radius: 0;
  }
  
  .product-image-full img {
    max-height: 60vh;
    object-fit: contain;
  }
}

/* ==========================================================================
   #PRODUCT SPECIFICATIONS
   ========================================================================== */
.product-specifications {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.product-specifications h3 {
  color: #183363;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 600;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  min-width: 500px;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.specs-table thead th {
  background-color: #183363;
  color: white;
  font-weight: 500;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.specs-table tbody tr:nth-child(even) {
  background-color: #f5f7fa;
}

.specs-table tbody tr:hover {
  background-color: rgba(24, 51, 99, 0.05);
}

.specs-table td {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-specifications {
    padding: 1rem;
    margin: 1.5rem -1rem;
    border-radius: 0;
  }
  
  .specs-table {
    min-width: 100%;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   #CONTACT CARD
   ========================================================================== */
.contact-card {
  background: #1e3aeb;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 100%;
  font-family: Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  margin: 2rem 0;
}

.contact-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item i {
  font-size: 1.3rem;
  margin-right: 1rem;
  background: rgba(255,255,255,0.2);
  padding: 12px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item div {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-item i {
    padding: 10px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* ==========================================================================
   #BASE STYLES
   ========================================================================== */
/* Base styles, variables, and global resets */
:root {
  --primary: #2563eb; /* Blue for buttons and accents */
  --primary-600: #1d4ed8;
  --dark: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html {
  font-size: 16px;
  height: 100%;
  transform: scale(0.9);
  transform-origin: top center;
  width: 112%; /* Counteract the scale */
  margin: 0 -6%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  min-height: 100%;
  width: 100%;
  color: var(--dark);
  background-color: var(--bg);
}

/* Sticky footer layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   #BUTTONS
   ========================================================================== */
/* Button styles including primary, outline, and hover states */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 48px; /* Minimum touch target size for mobile */
  min-width: 120px; /* Minimum width for better touch */
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
  touch-action: manipulation; /* Improve touch response */
}

.btn-primary {
  background-color: #183363;
  color: white;
  border: 2px solid #183363;
  padding: 12px 30px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 50px;
}

.btn-primary:hover {
  color: #183363;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(24, 51, 99, 0.3);
}

.btn-primary:hover::before {
  width: 100%;
  right: 0;
  left: auto;
}

.btn-outline {
  background: transparent;
  border: 2px solid #183363;
  color: #183363;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #183363;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 50px;
}

.btn-outline:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(24, 51, 99, 0.3);
}

.btn-outline:hover::before {
  width: 100%;
  right: 0;
  left: auto;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   #HEADER
   ========================================================================== */
/* Header styles including navigation and mobile menu */

/* Light header (per design) */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo img { height: 44px; width: auto; }

.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-nav a { color: #334155; font-weight: 600; padding: 10px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--dark); }
.main-nav a.active { color: var(--dark); border-color: var(--primary); }

.mobile-menu-toggle { display: none; border: none; background: transparent; color: var(--dark); font-size: 22px; }

@media (max-width: 860px) {
  .main-nav { position: absolute; inset: 64px 0 auto 0; background: rgba(15,23,42,.98); display: none; padding: 16px 0; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 12px; align-items: center; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   #HERO SECTION
   ========================================================================== */
/* Hero section styles including background animation and typography */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 50, 100, 0.7) 0%, rgba(25, 100, 150, 0.5) 50%, rgba(50, 150, 200, 0.3) 100%);
  z-index: 2;
  mix-blend-mode: multiply;
}
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: slideShow 24s infinite;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-slide:nth-child(6) { animation-delay: 20s; }

@keyframes slideShow {
  0% { opacity: 0; transform: scale(1.05); }
  8% { opacity: 1; transform: scale(1); }
  25% { opacity: 1; transform: scale(1); }
  33% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: white;
  background: rgba(10, 30, 60, 0.3);
  padding: 100px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: url('img/product1.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.4;
  z-index: 0;
  transform: scale(0.7);
  transform-origin: center;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  width: 90%;
  margin: 0 auto;
  padding: 0 20px;
  transform: scale(0.9);
  transform-origin: left center;
  transition: transform 0.3s ease-out;
}

@media (min-width: 1200px) {
  .hero-content {
    transform: scale(1);
  }
}

.headline-accent {
  color: #e63946; /* red accent like the sample */
  display: block;
  margin-bottom: 10px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 00;
  line-height: 1.25;
  margin-bottom: 15px;
  max-width: 800px;
}

.tagline {
  color: #f1f5f9;
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 25px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}


/* Button in product cards */
.product-card .btn {
  margin: 0 16px 16px;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* ==========================================================================
   #PAGE HERO
   ========================================================================== */
/* Page hero section styles for inner pages */
.page-hero { padding: 100px 0 36px; background-color: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 0 0 8px; }
.page-hero p { color: var(--muted); margin: 0; }
.products { padding: 100px 0; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.product-card img { height: 180px; object-fit: cover; width: 100%; }
.product-card h3 { margin: 16px; }
.product-card p { color: var(--muted); margin: 0 16px 16px; }
.product-card .btn { margin: 0 16px 16px; align-self: flex-start; }

/* Product Detail Page Styles */
.product-detail-section {
  padding: 60px 0;
}

/* Product detail layout: stack for clearer reading and larger imagery */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr; /* stacked on all screens */
  gap: 28px;
  margin-top: 30px;
  align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .product-detail-container { gap: 22px; }
  .product-image-container { max-height: none; }
}

@media (max-width: 768px) {
  .product-detail-container { gap: 18px; }
  .product-image-container { min-height: 0; max-height: none; padding: 10px; }
}

/* Product Image Container */
.product-image-container {
  position: relative;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 20px;
  cursor: pointer;
}

.main-product-image {
  width: 100%;
  height: auto;
  max-height: 75vh; /* make photo big */
  object-fit: contain; /* keep full tractor visible */
  transition: transform 0.3s ease;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.close-modal {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-modal:hover {
  color: #fff;
  background: rgba(0,0,0,0.8);
}

.close-modal:focus {
  color: #bbb;
  text-decoration: none;
}


/* Product Gallery */
.product-gallery {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.product-gallery h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark);
  font-size: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  padding: 10px;
  height: 250px;
}

.gallery-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .product-image-container {
    height: 400px;
  }
  
  .product-description ul.feature-list {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 80%;
  }
  
  .close-modal {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }
}

.product-info h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-description {
  margin-bottom: 30px;
  line-height: 1.7;
}

.product-description h3 {
  margin: 25px 0 15px;
  font-size: 1.3rem;
  color: var(--dark);
}

.product-description ul.feature-list {
  padding-left: 20px;
  margin: 15px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  list-style-type: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.feature-list li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.product-description li {
  margin-bottom: 8px;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}

.product-contact {
  background: var(--surface);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method:hover {
  color: var(--primary);
}

.contact-method i {
  width: 20px;
  text-align: center;
}

.related-products {
  padding: 40px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.related-products h2 {
  text-align: center;
  margin-bottom: 30px;
}

.contact-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .product-detail-container {
    grid-template-columns: 1fr;
  }
  
  .product-image-container {
    height: 400px;
    margin-bottom: 30px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .product-image-container {
    height: 300px;
  }
  
  .product-info h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .product-image-container {
    height: 250px;
  }
  
  .product-info h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) { 
  .products-grid { 
    grid-template-columns: 1fr; 
  }
  
  .gallery-grid {
    gap: 15px;
  }
  
  .product-gallery h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
}

/* ==========================================================================
   #ABOUT SECTION
   ========================================================================== */
/* About page styles including grid layout and feature list */
.about-details { 
  padding: 100px 0;
  background: #f9fafc;
}

.about-grid { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr; 
  gap: 60px; 
  align-items: flex-start;
}

.about-text h2 { 
  font-size: 2.5em; 
  margin-bottom: 20px; 
  color: #183363;
  position: relative;
  padding-bottom: 15px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.about-text p.lead {
  font-size: 1.2em;
  color: #2d3748;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.6;
}

.about-text p {
  color: #4a5568;
  line-height: 1.8; 
  margin-bottom: 25px;
  font-size: 1.05em;
}

.about-features {
  margin: 40px 0;
}

/* Features Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.feature {
  background: white;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.feature i {
  font-size: 2.2rem;
  color: #183363;
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 51, 99, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

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

.feature:hover i {
  background: #183363;
  color: white;
  transform: scale(1.1);
}

.feature h3 {
  color: #183363;
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
}

.feature p {
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
  
  .feature {
    padding: 25px 20px;
  }
  
  .feature i {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }
  
  .feature h3 {
    font-size: 1.3rem;
  }
  
  .feature p {
    font-size: 0.95rem;
  }
}

.about-features .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-features .feature i {
  font-size: 24px;
  color: var(--primary);
  min-width: 40px;
  margin-top: 5px;
}

.about-features .feature h3 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 1.2em;
}

.about-features .feature p {
  display: flex;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.commitment-icon {
  background: var(--primary);
  color: white;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.commitment-icon i {
  font-size: 2.5rem;
}

.commitment-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  flex: 1;
}

.mission-statement h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.6em;
  position: relative;
  padding-bottom: 10px;
}

.mission-statement h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.mission-statement p {
  color: #4a5568;
  margin: 0;
  font-size: 1.05em;
  line-height: 1.8;
  max-width: 800px;
}

.about-media {
  position: relative;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 100vw;
  }
  
  
  .commitment-icon i {
    font-size: 2rem;
  }
}
  
  .commitment-content {
    flex: 1;
  }
  
  .hero {
    min-height: 70vh;
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 40, 80, 0.8) 0%, rgba(25, 80, 120, 0.6) 100%);
  }
  
  
  .about-text h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .about-text p {
    text-align: center;
  }
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   #STATS SECTION
   ========================================================================== */
/* Statistics counter styles */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { text-align: center; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.stat-card h3 { font-size: 36px; margin: 0 0 6px; color: var(--primary); }
.stat-card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   #CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Contact Form Styles */
.contact-form-container {
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.contact-form h2 {
  color: #183363;
  margin-bottom: 20px;
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.contact-form h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #183363;
  border-radius: 2px;
}

.contact-intro {
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #495057;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #183363;
  box-shadow: 0 0 0 0.2rem rgba(24, 51, 99, 0.1);
  background-color: #fff;
}

/* Contact Info Column */
.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-container {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-details {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(24, 51, 99, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #183363;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  margin: 0 0 5px 0;
  color: #183363;
  font-size: 1.1rem;
}

.contact-text p {
  margin: 0;
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
}

.business-hours {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}

.business-hours h4 {
  color: #183363;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.business-hours p {
  margin: 5px 0;
  color: #6c757d;
  font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-form-container,
  .contact-details {
    padding: 25px;
  }
  
  .contact-item {
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   #FOOTER
   ========================================================================== */
/* Footer styles including newsletter and social links */
.footer { 
  background: rgb(24, 51, 99); 
  color: white;
  margin-top: 100px; 
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
}
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; padding: 28px 0; }
.footer-logo img { height: 40px; margin-bottom: 8px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { 
  color: #e2e8f0; 
  transition: color 0.2s;
}
.footer-links a:hover { 
  color: white; 
  text-decoration: underline;
}
.footer-bottom { 
  border-top: 1px solid rgba(255, 255, 255, 0.1); 
  padding: 20px 0; 
  text-align: center; 
  color: #94a3b8;
  margin-top: 60px;
  font-size: 0.95em;
  position: relative;
}
@media (max-width: 860px) { .footer-content { grid-template-columns: 1fr; } }

/* Back to top */
.back-to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center; color: var(--white); background: var(--primary); box-shadow: 0 10px 25px rgba(37, 99, 235, .25); z-index: 1000; }
.back-to-top i { pointer-events: none; }


/* Back to top */
.back-to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center; color: var(--white); background: var(--primary); box-shadow: 0 10px 25px rgba(37, 99, 235, .25); z-index: 1000; }
.back-to-top i { pointer-events: none; }

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, bottom 0.3s ease, background-color 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0);
  will-change: transform, bottom;
}

/* Position adjustment for hero section */
.hero .whatsapp-float {
  position: absolute;
  bottom: -80px; /* Position below the hero section */
  right: 20px;
  z-index: 1000;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  .hero .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
  }
}


.whatsapp-float i {
  font-size: 24px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.whatsapp-float span {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Our Machines Section */
.our-machines .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.our-machines .section-header p { max-width: 500px; color: var(--muted); }
.machines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.machine-card { 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.machine-card img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover;
  transition: transform 0.3s ease;
}

.machine-card:hover img {
  transform: scale(1.02);
}

.machine-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.machine-card h3 { 
  margin: 0 0 15px 0;
  color: var(--dark);
  font-size: 1.25rem;
}

.machine-card .btn-outline {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-color: #183363;
  color: #183363;
  transition: all 0.3s ease;
}

.machine-card .btn-outline:hover {
  background-color: #183363;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 51, 99, 0.2);
}
@media (max-width: 860px) { .machines-grid { grid-template-columns: 1fr; } }

/* Services Section */
.services {
  padding: 80px 0;
  background-color: #f8fafc;
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #183363;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.services h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #183363;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 3rem;
  color: #183363;
  margin-bottom: 20px;
  background: rgba(24, 51, 99, 0.1);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover i {
  background: #183363;
  color: white;
  transform: rotateY(180deg);
}

.service-card h3 {
  color: #183363;
  margin: 20px 0 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header {
    position: relative;
    z-index: 1000;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #183363;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  
  .main-nav li {
    margin: 15px 0;
  }
  
  .main-nav a {
    color: white !important;
    font-size: 1.5rem;
    padding: 10px 20px;
    display: block;
    text-align: center;
  }
  
  .main-nav a:hover,
  .main-nav a.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    color: #183363;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }
  
  .mobile-menu-toggle.active {
    color: white;
    position: fixed;
    right: 20px;
    top: 20px;
  }
  
  .services {
    padding: 60px 0;
  }
  
  .services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-card {
    padding: 30px 20px;
  }
}

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-visible, .reveal.show { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   #UTILITIES
   ========================================================================== */
/* Helper classes and utility styles */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   #DROPDOWN MENU STYLES
   ========================================================================== */
/* Main Navigation */
.main-nav {
  position: relative;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
  margin: 0 15px;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
  color: #183363;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown > a {
  padding-right: 20px;
}

.dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px; /* Increased width for better readability */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  padding: 8px 0; /* Adjusted padding */
  margin: 5px 0 0 0;
  display: flex;
  flex-direction: column; /* Ensure single column layout */
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
  color: #333;
  transition: all 0.2s ease;
  font-size: 14px; /* Ensure consistent font size */
  line-height: 1.5; /* Better line height for readability */
}

.dropdown-menu a:hover {
  background-color: #f0f4f8; /* Slightly darker on hover for better feedback */
  color: #183363;
  padding-left: 25px;
  border-left: 3px solid #183363; /* Add left border on hover */
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  padding: 10px;
}

/* ==========================================================================
   #PAGINATION STYLES
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pagination-btn {
  padding: 10px 24px;
  background-color: #183363;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #0f2444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 51, 99, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #6c757d;
}

.page-info {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
  padding: 0 15px;
  white-space: nowrap;
}

/* Mobile Styles */
@media (max-width: 991px) {
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 15px;
  }
  
  .pagination-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 80px;
    flex: 1;
    max-width: 140px;
  }
  
  .page-info {
    flex: 0 0 100%;
    text-align: center;
    order: -1;
    margin-bottom: 10px;
    padding: 0;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .pagination {
    gap: 8px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: auto;
  }
  
  .page-info {
    font-size: 13px;
  }
}

/* ==========================================================================
   #MOBILE BUTTON STYLES
   ========================================================================== */
@media (max-width: 991px) {
  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle:focus {
    outline: 2px solid #183363;
    outline-offset: 2px;
  }
  
  .mobile-menu-toggle i {
    font-size: 1.5rem;
    color: #183363;
    transition: all 0.3s ease;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    padding: 80px 0 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav > ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  
  .main-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
  }
  
  .main-nav > ul > li:last-child {
    border-bottom: none;
  }
  
  .main-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .main-nav a:hover,
  .main-nav a:focus {
    background: rgba(24, 51, 99, 0.05);
    color: #183363;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    background: #1e40af; /* Blue background */
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0;
    margin: 0;
    border-left: 4px solid #1d4ed8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .dropdown-menu.show {
    display: block;
    max-height: 1000px; /* Increased to ensure all items are visible */
    padding: 0;
  }
  
  .dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu a {
    color: white !important;
    padding: 12px 30px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
  }
  
  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }
  
  .dropdown > a {
    position: relative;
    padding-right: 45px;
  }
  
  .dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }
  
  .dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Overlay when menu is open */
  .main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
  }
  
  .main-nav.active::before {
    opacity: 1;
    visibility: visible;
  }
  
  /* Make buttons full width on mobile */
  .btn {
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    padding: 14px 20px;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
  }
  
  /* Adjust button spacing in product cards */
  .product-card .btn {
    margin: 10px 0 0;
    width: 100%;
  }
  
  /* Full-width CTA buttons */
  .cta-section .btn,
  .hero-buttons .btn {
    width: 100%;
    margin: 10px 0;
  }
  
  /* Stack buttons vertically when they're next to each other */
  .btn + .btn {
    margin-left: 0;
    margin-top: 10px;
  }
  
  /* Ensure buttons have enough touch target size */
  .btn,
  .btn-primary {
    min-height: 56px;
  }
}
