/* ========================================
   VIRAJ INDUSTRIES - Main Stylesheet
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-red: #E11B22;
  --deep-black: #1A1A1A;
  --steel-gray: #555555;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --dark-charcoal: #2B2B2B;
  --metallic-silver: #C0C0C0;
  --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2B2B2B 100%);
  --gradient-red: linear-gradient(135deg, #E11B22 0%, #b5151b 100%);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 5px 25px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) var(--deep-black);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-red);
  border: 3px solid var(--deep-black);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

::-webkit-scrollbar-corner {
  background: var(--deep-black);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--steel-gray);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

/* Bootstrap/Tailwind compatibility
   Tailwind's .container and .collapse utilities can override Bootstrap's
   layout/navbar behavior because both frameworks are loaded on these pages. */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container, .container-sm { max-width: 540px; }
}
@media (min-width: 768px) {
  .container, .container-sm, .container-md { max-width: 720px; }
}
@media (min-width: 992px) {
  .container, .container-sm, .container-md, .container-lg { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { max-width: 1320px; }
}
.navbar-collapse.collapse { visibility: visible; }

/* Better tap targets for mobile */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button, .btn, .nav-link, .navbar-toggler { min-height: 44px; }
.product-card .learn-more { min-height: auto; }

.viraj-toast-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 9999;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.viraj-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  color: var(--white);
  background: var(--deep-black);
  border-left: 4px solid var(--primary-red);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: translateX(18px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: auto;
}

.viraj-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.viraj-toast.success { border-left-color: #22c55e; }
.viraj-toast.error { border-left-color: var(--primary-red); }

.viraj-toast-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--white);
  background: var(--gradient-red);
  border-radius: 50%;
}

.viraj-toast.success .viraj-toast-icon { background: #22c55e; }

.viraj-toast-title {
  margin: 0 0 2px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.viraj-toast-message {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .viraj-toast-stack {
    top: 76px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--deep-black);
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* Section images - ensure proper fill */
section img.img-fluid { width: 100%; height: auto; object-fit: cover; min-height: 300px; border-radius: 12px; }

/* Preloader */
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--deep-black); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader.loaded { opacity: 0; pointer-events: none; }
.loader {
  width: 154px;
  height: 154px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/loader.png') center / 108px auto no-repeat;
}
.loader::before,
.loader::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.loader::before {
  inset: 7px;
  background: conic-gradient(from 28deg,
    rgba(255,255,255,0.9) 0deg 74deg,
    transparent 76deg 180deg,
    rgba(255,255,255,0.82) 182deg 256deg,
    transparent 258deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 1.15s linear infinite;
}
.loader::after {
  inset: 42px;
  box-shadow: 0 0 28px rgba(225,27,34,0.18);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
.navbar-main {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  padding: 15px 0; transition: var(--transition);
  background: transparent;
}
.navbar-main.scrolled {
  background: var(--deep-black); padding: 8px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-main .navbar-brand { font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.4rem; color: var(--white) !important;
  white-space: nowrap; flex-shrink: 0; padding: 0; margin-right: auto;
  display: flex; align-items: center; }
.navbar-main .navbar-brand img { height: 45px; width: auto; }
.navbar-main .navbar-brand span { color: var(--primary-red); }
.navbar-main .nav-link { color: rgba(255,255,255,0.9) !important;
  font-weight: 500; font-size: 0.9rem; padding: 8px 16px !important;
  position: relative; transition: var(--transition); }
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary-red) !important; }
.navbar-main .nav-link::after { content: ''; position: absolute;
  bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--primary-red); transition: var(--transition);
  transform: translateX(-50%); }
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { width: 70%; }
.navbar-main .service-dropdown { position: relative; }
.navbar-main .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navbar-main .nav-link.dropdown-toggle::after,
.navbar-main .nav-link.dropdown-toggle:hover::after,
.navbar-main .nav-link.dropdown-toggle.active::after {
  position: static;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  content: "";
  background: transparent;
  border-top: 0.35em solid;
  border-right: 0.32em solid transparent;
  border-bottom: 0;
  border-left: 0.32em solid transparent;
  transform: none;
}
.navbar-main .service-dropdown-menu {
  min-width: 260px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px;
  margin-top: 10px;
  background: rgba(17,17,17,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.navbar-main .service-dropdown-menu::-webkit-scrollbar {
  display: none;
}
.navbar-main .service-dropdown-menu .dropdown-item {
  color: rgba(255,255,255,0.86);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 500;
}
.navbar-main .service-dropdown-menu .dropdown-item:hover,
.navbar-main .service-dropdown-menu .dropdown-item:focus,
.navbar-main .service-dropdown-menu .dropdown-item.active {
  color: var(--white);
  background: var(--primary-red);
}
.navbar-main .service-dropdown-menu .dropdown-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 7px 0;
}
.navbar-toggler { border: none; color: var(--white); font-size: 1.4rem;
  padding: 8px 12px; outline: none; background: rgba(255,255,255,0.1);
  border-radius: 6px; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto; }
.navbar-toggler:focus { box-shadow: none; outline: none; background: rgba(255,255,255,0.15); }

@media (min-width: 992px) {
  .navbar-main .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .navbar-main .navbar-collapse {
    display: flex !important;
    visibility: visible !important;
    flex-basis: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
  }
  .navbar-main .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
  }
  .navbar-main .navbar-toggler {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .navbar-main .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .navbar-main .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }
  .navbar-main .navbar-collapse.collapse.show,
  .navbar-main .navbar-collapse.collapsing {
    display: block !important;
    visibility: visible !important;
  }
  .navbar-main .service-dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    min-width: 0;
    max-height: 320px;
    margin: 0 0 10px;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
    transform: none !important;
  }
  .navbar-main .service-dropdown-menu .dropdown-item {
    text-align: center;
    font-size: 0.84rem;
    padding: 9px 10px;
  }
}

/* Hero Section */
.hero-section { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-slide { position: relative; height: 100vh; height: 100svh;
  background-size: cover; background-position: center;
  display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(43, 43, 43, 0.148) 100%); }
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-content h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 1rem; text-transform: uppercase; }
.hero-content h1 span { color: var(--primary-red); }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem;
  max-width: 600px; }
.hero-content .badge-text { display: inline-block; background: var(--primary-red);
  padding: 5px 15px; border-radius: 3px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 1rem; letter-spacing: 1px; }

/* Buttons */
.btn-primary-custom { background: var(--gradient-red); color: var(--white);
  border: none; padding: 12px 30px; border-radius: 5px; font-weight: 600;
  font-size: 0.95rem; transition: var(--transition); display: inline-flex;
  align-items: center; gap: 8px; }
.btn-primary-custom:hover { transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225,27,34,0.4); color: var(--white); }
.btn-outline-custom { border: 2px solid var(--white); color: var(--white);
  padding: 10px 28px; border-radius: 5px; font-weight: 600;
  font-size: 0.95rem; transition: var(--transition); display: inline-flex;
  align-items: center; gap: 8px; background: transparent; }
.btn-outline-custom:hover { background: var(--white); color: var(--deep-black); }
.btn-dark-custom { background: var(--gradient-dark); color: var(--white);
  border: none; padding: 12px 30px; border-radius: 5px; font-weight: 600;
  transition: var(--transition); }
.btn-dark-custom:hover { transform: translateY(-2px);
  box-shadow: var(--shadow-lg); color: var(--white); }

/* Section Styles */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px;
  position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px;
  left: 50%; transform: translateX(-50%); width: 60px; height: 3px;
  background: var(--primary-red); }
.section-title p { color: var(--steel-gray); margin-top: 20px; font-size: 1.05rem; }
.section-title .subtitle { color: var(--primary-red); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
  margin-bottom: 5px; display: block; }
.bg-light-custom { background: var(--light-gray); }
.bg-dark-custom { background: var(--gradient-dark); }

/* Stats Cards */
.stat-card { text-align: center; padding: 30px 20px; background: var(--white);
  border-radius: 10px; box-shadow: var(--shadow-sm); transition: var(--transition);
  border-bottom: 3px solid transparent; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md);
  border-bottom-color: var(--primary-red); }
.stat-card .stat-icon { width: 60px; height: 60px; background: rgba(225,27,34,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px; color: var(--primary-red); font-size: 1.5rem; }
.stat-card h3 { font-size: 2.2rem; font-weight: 800; color: var(--deep-black); }
.stat-card p { color: var(--steel-gray); font-size: 0.9rem; margin: 0; }

/* Product Cards */
.product-card { background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  height: 100%; position: relative; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card .card-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 16 / 9; height: auto; background: var(--white); }
.product-card .card-img-wrapper img { width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s ease; display: block; }
.product-card:hover .card-img-wrapper img { transform: none; }
.product-card .card-img-overlay-icon { position: absolute; top: 15px; right: 15px;
  width: 40px; height: 40px; background: var(--primary-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-size: 1rem; opacity: 0; transition: var(--transition); }
.product-card:hover .card-img-overlay-icon { opacity: 1; }
.product-card .card-body { padding: 25px; }
.product-card .card-body h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.product-card .card-body p { font-size: 0.9rem; color: var(--steel-gray); margin-bottom: 15px; }
.product-card .learn-more { color: var(--primary-red); font-weight: 600;
  font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.product-card .learn-more:hover { gap: 10px; }

.product-card .btn-sm {
  min-height: 40px;
}

.product-gallery-modal {
  z-index: 10060;
  overflow: hidden !important;
}

.product-gallery-modal + .modal-backdrop,
.modal-backdrop {
  z-index: 10050;
}

html.product-gallery-open,
body.product-gallery-open,
body.modal-open {
  overflow: hidden !important;
}

.product-gallery-modal .modal-dialog {
  width: min(1320px, calc(100vw - 48px));
  max-width: none;
  height: auto;
  max-height: calc(100dvh - 124px);
  margin: 96px auto 28px;
  overflow: hidden;
}

.product-gallery-modal .modal-dialog-centered {
  align-items: flex-start;
  min-height: 0;
}

.product-gallery-modal .modal-content {
  display: flex;
  height: auto;
  max-height: calc(100dvh - 124px);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.product-gallery-modal .modal-header {
  flex: 0 0 auto;
  background: var(--gradient-dark);
  border: 0;
  padding: 18px 24px;
}

.product-gallery-modal .modal-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
}

.product-gallery-modal .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

.product-gallery-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 198px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) #f1f1f1;
}

.product-gallery-modal .modal-body::-webkit-scrollbar {
  width: 10px;
}

.product-gallery-modal .modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.product-gallery-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 999px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.product-gallery-item {
  display: grid;
  grid-template-rows: auto 56px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--deep-black);
}

.product-gallery-item img {
  width: 100%;
  aspect-ratio: 1495 / 1052;
  height: auto;
  object-fit: contain;
  background: #f3f3f3;
  transition: var(--transition);
  display: block;
}

.product-gallery-item span {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--deep-black);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
}

.product-gallery-item:hover {
  color: var(--primary-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-gallery-item:hover img {
  transform: scale(1.04);
}

.service-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  background: #f3f3f3;
  box-shadow: var(--shadow-sm);
}

.service-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f3f3;
  transition: var(--transition);
}

.service-image-card:hover img {
  transform: scale(1.04);
}

/* Process Timeline */
.process-timeline { position: relative; padding: 40px 0; }
.process-step { text-align: center; position: relative; padding: 20px 15px; }
.process-step .step-number { width: 60px; height: 60px; background: var(--gradient-red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 1.2rem; margin: 0 auto 15px;
  position: relative; z-index: 2; box-shadow: 0 4px 15px rgba(225,27,34,0.3); }
.process-step h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 5px; line-height: 1.4; }
.process-step p { font-size: 0.8rem; color: var(--steel-gray); }
.process-step .step-icon { font-size: 2rem; color: var(--primary-red); margin-bottom: 10px; }

/* Row connector line between steps */
.row.justify-content-center .col-lg { position: relative; }
.row.justify-content-center .col-lg:not(:last-child) .process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-red), rgba(225,27,34,0.2));
  z-index: 1;
}
@media (max-width: 991px) {
  .row.justify-content-center .col-lg:not(:last-child) .process-step::after { display: none; }
}

/* Process Cards - 12 Step */
.process-row { position: relative; }
.process-card {
  text-align: center; padding: 28px 12px 22px;
  background: var(--white); border-radius: 0;
  position: relative; height: 100%;
  border-right: 1px solid #eee; border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.process-card:hover { background: #fff8f8; border-bottom-color: var(--primary-red); }
.process-card-dark {
  background: var(--light-gray);
}
.process-card-dark:hover { background: #f0f0f0; border-bottom-color: var(--primary-red); }
.process-row:first-of-type .process-card:first-child { border-radius: 12px 0 0 0; border-left: 1px solid #eee; border-top: 1px solid #eee; }
.process-row:first-of-type .process-card { border-top: 1px solid #eee; }
.process-row:last-of-type .process-card { border-bottom: 1px solid #eee; }
.process-row:last-of-type .process-card:last-child { border-radius: 0 0 12px 0; }
.process-card-end { border-right: none; border-radius: 0 12px 0 0; }
.process-card-last { border-right: 1px solid #eee; border-radius: 0 0 12px 0; }
.process-card-icon {
  width: 56px; height: 56px;
  background: rgba(225,27,34,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--primary-red); font-size: 1.4rem;
  transition: var(--transition);
}
.process-card:hover .process-card-icon { background: var(--primary-red); color: var(--white); }
.process-card-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem; font-weight: 900;
  color: var(--primary-red); line-height: 1;
  margin-bottom: 8px; opacity: 0.2;
  position: absolute; top: 10px; right: 12px;
}
.process-card h6 {
  font-size: 0.78rem; font-weight: 700;
  color: var(--deep-black); line-height: 1.4;
  margin: 0;
}
/* Row connector */
.process-row-connector {
  justify-content: flex-end; padding-right: 0;
  height: 0; position: relative; overflow: visible;
}
.process-connector-arrow {
  width: calc(100% / 6);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-red); font-size: 1.2rem;
  position: relative; height: 30px; margin-top: -1px;
}
/* Mobile: simple card style */
@media (max-width: 991px) {
  .process-card { border-radius: 10px; border: 1px solid #eee; margin: 6px; height: auto; }
  .process-card-end, .process-card-last { border-radius: 10px; border: 1px solid #eee; }
  .process-row:first-of-type .process-card:first-child { border-radius: 10px; }
  .process-card-num { font-size: 1.2rem; }
  .process-row { gap: 0; }
}
@media (max-width: 575px) {
  .process-card { padding: 18px 8px 14px; margin: 4px; }
  .process-card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .process-card h6 { font-size: 0.7rem; }
  .process-card-num { font-size: 1rem; top: 6px; right: 8px; }
}

/* Why Choose Us */
.feature-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 30px; text-align: center; transition: var(--transition);
  height: 100%; }
.feature-card:hover { background: rgba(225,27,34,0.1);
  border-color: var(--primary-red); transform: translateY(-5px); }
.feature-card .feature-icon { width: 70px; height: 70px;
  background: rgba(225,27,34,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--primary-red); font-size: 1.8rem;
  transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--primary-red); color: var(--white); }
.feature-card h5 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }

/* Quality Section */
.quality-badge { display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); padding: 12px 20px; border-radius: 8px;
  box-shadow: var(--shadow-sm); margin: 5px; font-weight: 500;
  font-size: 0.9rem; transition: var(--transition); }
.quality-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quality-badge i { color: var(--primary-red); font-size: 1.2rem; }
.hse-image-card {
  height: 430px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f3f3;
  box-shadow: var(--shadow-md);
}
.hse-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.hse-image-card:hover img {
  transform: scale(1.04);
}
.progress-custom { height: 8px; border-radius: 10px; background: #e9ecef; margin-bottom: 20px; }
.progress-custom .progress-bar { background: var(--gradient-red); border-radius: 10px; }

/* Facilities Gallery */
.facility-card { position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; width: 100%; margin-bottom: 20px; }
.facility-card img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease; display: block; }
.facility-card:hover img { transform: scale(1.15); }
.facility-card .facility-overlay { position: absolute; bottom: 0; left: 0;
  width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(26,26,26,0.9));
  color: var(--white); transform: translateY(20px); opacity: 0;
  transition: var(--transition); }
.facility-card:hover .facility-overlay { transform: translateY(0); opacity: 1; }
.facility-card .facility-overlay h5 { font-size: 1rem; margin: 0; }

/* Industries Grid */
.industry-card { text-align: center; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow-sm); transition: var(--transition);
  height: 100%; overflow: hidden; }
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.industry-card .industry-img { aspect-ratio: 16 / 9; overflow: hidden;
  background: #f3f3f3; }
.industry-card .industry-img img { width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.5s ease; }
.industry-card:hover .industry-img img { transform: scale(1.06); }
.industry-card h5 { font-size: 0.95rem; font-weight: 700; line-height: 1.25;
  min-height: 2.4em; padding: 18px 16px; margin: 0;
  display: flex; align-items: center; justify-content: center; }

/* Inquiry Form - Glassmorphism */
.inquiry-section { position: relative; background: var(--gradient-dark);
  overflow: hidden; }
.inquiry-section::before { content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%; background: radial-gradient(circle, rgba(225,27,34,0.1) 0%, transparent 50%);
  animation: pulse-bg 10s ease-in-out infinite; }
@keyframes pulse-bg { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.glass-form { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 40px; position: relative; z-index: 2; }
.glass-form .form-control { background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); color: var(--white);
  padding: 12px 18px; border-radius: 8px; font-size: 0.9rem; }
.glass-form .form-control:focus { border-color: var(--primary-red);
  box-shadow: 0 0 15px rgba(225,27,34,0.2); background: rgba(255,255,255,0.1); }
.glass-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.glass-form label { color: rgba(255,255,255,0.8); font-size: 0.85rem;
  font-weight: 500; margin-bottom: 5px; }

/* Footer */
.footer { background: var(--deep-black); color: rgba(255,255,255,0.7);
  padding: 60px 0 0; }
.footer h5 { color: var(--white); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h5::after { content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2px; background: var(--primary-red); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer ul li a:hover { color: var(--primary-red); padding-left: 5px; }
.footer .footer-contact li { display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 15px; font-size: 0.9rem; }
.footer .footer-contact li i { color: var(--primary-red); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; margin-top: 40px; }
.footer-bottom p { margin: 0; font-size: 0.85rem; }
.footer .social-icons a { display: inline-flex; align-items: center;
  justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white); margin-right: 8px;
  transition: var(--transition); }
.footer .social-icons a:hover { background: var(--primary-red); transform: translateY(-3px); }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 9998;
  width: 55px; height: 55px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition); animation: whatsapp-pulse 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); color: var(--white);
  box-shadow: 0 6px 25px rgba(37,211,102,0.6); }
@keyframes whatsapp-pulse { 0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); } }

/* Scroll to Top */
.scroll-top { position: fixed; bottom: 30px; left: 30px; z-index: 9998;
  width: 45px; height: 45px; min-width: 45px; min-height: 45px; background: var(--gradient-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem; opacity: 0; visibility: hidden;
  line-height: 1; padding: 0; flex: 0 0 45px; aspect-ratio: 1 / 1;
  transition: var(--transition); cursor: pointer; border: none; }
.scroll-top.active { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(225,27,34,0.4); }

/* Page Header */
.page-header { background: var(--gradient-dark); padding: 140px 0 80px;
  position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5; }
.page-header h1 { color: var(--white); font-size: 2.5rem; font-weight: 800;
  position: relative; z-index: 2; }
.page-header .breadcrumb { position: relative; z-index: 2; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: var(--primary-red); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* About Section */
.about-img-wrapper { position: relative; border-radius: 12px; overflow: hidden; }
.about-img-wrapper img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; min-height: 350px; }
.about-img-wrapper .experience-badge { position: absolute; bottom: 20px; right: 20px;
  background: var(--gradient-red); color: var(--white); padding: 15px 25px;
  border-radius: 10px; text-align: center; }
.about-img-wrapper .experience-badge h3 { font-size: 2rem; margin: 0; color: var(--white); }
.about-img-wrapper .experience-badge p { margin: 0; font-size: 0.8rem; }

/* Service Cards */
.service-card { background: var(--white); border-radius: 12px; padding: 35px 25px;
  text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
  height: 100%; border-top: 3px solid transparent; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg);
  border-top-color: var(--primary-red); }
.service-card .service-icon { width: 80px; height: 80px;
  background: rgba(225,27,34,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--primary-red); font-size: 2rem;
  transition: var(--transition); }
.service-card:hover .service-icon { background: var(--primary-red); color: var(--white); }
.service-card h5 { font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--steel-gray); }

/* Machine Cards */
.machine-card { background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.machine-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.machine-card .machine-img { aspect-ratio: 16 / 9; height: auto; overflow: hidden; }
.machine-card .machine-img img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease; display: block; }
.machine-card:hover .machine-img img { transform: scale(1.1); }
.machine-card .machine-body { padding: 20px; }
.machine-card .machine-body h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.machine-card .machine-specs { list-style: none; padding: 0; margin: 0; }
.machine-card .machine-specs li { font-size: 0.85rem; color: var(--steel-gray);
  padding: 4px 0; border-bottom: 1px solid #f0f0f0; display: flex;
  align-items: center; gap: 8px; }
.machine-card .machine-specs li i { color: var(--primary-red); font-size: 0.7rem; }

/* Contact Page */
.contact-info-card { background: var(--white); border-radius: 12px; padding: 30px;
  box-shadow: var(--shadow-sm); text-align: center; height: 100%;
  transition: var(--transition); }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-info-card .contact-icon { width: 60px; height: 60px;
  background: rgba(225,27,34,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px; color: var(--primary-red); font-size: 1.5rem; }
.contact-info-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { font-size: 0.9rem; color: var(--steel-gray); margin: 0; }
.contact-map-card {
  height: 350px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: var(--light-gray);
}
.contact-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Filter Buttons */
.filter-btns { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 40px; }
.filter-btns .filter-btn { padding: 8px 22px; border-radius: 25px;
  border: 2px solid #e0e0e0; background: transparent; font-weight: 500;
  font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.filter-btns .filter-btn:hover,
.filter-btns .filter-btn.active { background: var(--primary-red);
  border-color: var(--primary-red); color: var(--white); }

/* Timeline */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0;
  width: 2px; height: 100%; background: var(--primary-red); transform: translateX(-50%); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item .timeline-content { width: 45%; padding: 25px; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow-sm); position: relative; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; }
.timeline-item .timeline-dot { position: absolute; left: 50%; top: 30px;
  width: 20px; height: 20px; background: var(--primary-red); border-radius: 50%;
  transform: translateX(-50%); border: 4px solid var(--white);
  box-shadow: var(--shadow-sm); z-index: 2; }

/* Newsletter */
.newsletter-form { display: flex; gap: 10px; max-width: 400px; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  padding: 10px 18px; border-radius: 5px; font-size: 0.9rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { background: var(--primary-red); border: none;
  color: var(--white); padding: 10px 20px; border-radius: 5px;
  font-weight: 600; transition: var(--transition); }
.newsletter-form button:hover { background: #b5151b; }

/* Counter Animation */
.counter-section { background: var(--gradient-dark); padding: 60px 0; }
.counter-item { text-align: center; color: var(--white); }
.counter-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--primary-red); }
.counter-item p { font-size: 0.9rem; opacity: 0.8; }

/* ========================================
   RESPONSIVE DESIGN - All Devices
   ======================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .hero-content h1 { font-size: 4rem; }
  .section-title h2 { font-size: 2.8rem; }
  .container { max-width: 1320px; }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
  .hero-content h1 { font-size: 3.2rem; }
}

/* Laptop / Small Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-content h1 { font-size: 2.8rem; }
  .section-title h2 { font-size: 2.2rem; }
  .navbar-main .nav-link { padding: 8px 10px !important; font-size: 0.85rem; }
  .product-card .card-img-wrapper { height: 190px; }
  .feature-card { padding: 25px 18px; }
  .service-card { padding: 28px 20px; }
}

/* Tablet Landscape / iPad Pro (992px - 1024px) */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.6rem; }
  .hero-content p { font-size: 1.05rem; }
  .counter-item h3 { font-size: 2.2rem; }
}

/* Tablet Portrait / iPad (768px - 991px) */
@media (max-width: 991px) {
  /* Navbar Mobile */
  .navbar-main { padding: 10px 0; }
  .navbar-main.scrolled { padding: 8px 0; }
  .navbar-main .navbar-brand { font-size: 1.2rem; max-width: calc(100% - 65px); }
  .navbar-main .navbar-brand img { height: 40px; }
  .navbar-collapse {
    background: var(--deep-black);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    flex-basis: 100%;
    width: 100%;
  }
  .navbar-nav { gap: 0 !important; width: 100%; }
  .navbar-nav .nav-item { border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; text-align: center; }
  .navbar-nav .nav-item:last-child { border-bottom: none; }
  .navbar-main .nav-link { padding: 12px 15px !important; font-size: 0.95rem; display: block; text-align: center; }
  .navbar-main .nav-link::after { display: none; }
  .navbar-nav .nav-item .btn { margin: 10px 0; width: 100%; justify-content: center; display: flex; }

  /* Hero */
  .hero-section { height: 100vh; min-height: 600px; }
  .hero-slide { height: 100vh; min-height: 600px; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content p { font-size: 1rem; max-width: 100%; }
  .hero-content .badge-text { font-size: 0.75rem; padding: 4px 12px; }

  /* Sections */
  .section-padding { padding: 60px 0; }
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 2rem; }
  .section-title p { font-size: 0.95rem; }

  /* Stats */
  .stat-card h3 { font-size: 1.8rem; }
  .counter-item h3 { font-size: 2rem; }

  /* Product Cards */
  .product-card .card-img-wrapper { height: 200px; }
  .product-card .card-body { padding: 20px; }

  /* Timeline */
  .timeline::before { left: 20px; }
  .timeline-item .timeline-content { width: calc(100% - 60px); margin-left: 60px !important; }
  .timeline-item .timeline-dot { left: 20px; }
  .timeline-item:nth-child(odd) .timeline-content { margin-left: 60px !important; }

  /* Feature Cards */
  .feature-card { padding: 25px 20px; }
  .feature-card .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }

  /* Facility */
  .facility-card { aspect-ratio: 16 / 9; }
  .facility-card .facility-overlay { transform: translateY(0); opacity: 1; }

  /* Glass Form */
  .glass-form { padding: 30px; border-radius: 15px; }

  /* Page Header */
  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 2rem; }

  /* Footer */
  .footer { padding: 50px 0 0; }

  /* CTA */
  .cta-section { padding: 50px 0; }
  .cta-section h2 { font-size: 1.7rem; }

  /* Swiper Arrows */
  .hero-section .swiper-button-next,
  .hero-section .swiper-button-prev { display: none; }
}

/* Large Phone / Small Tablet (576px - 767px) */
@media (max-width: 767px) {
  /* Hero */
  .hero-section { height: 100vh; min-height: 550px; }
  .hero-slide { height: 100vh; min-height: 550px; }
  .hero-content { padding: 0 10px; }
  .hero-content h1 { font-size: 1.9rem; line-height: 1.3; margin-bottom: 0.8rem; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }
  .hero-content .badge-text { font-size: 0.7rem; padding: 4px 10px; letter-spacing: 0.5px; }

  /* Buttons */
  .btn-primary-custom { padding: 10px 22px; font-size: 0.85rem; }
  .btn-outline-custom { padding: 9px 20px; font-size: 0.85rem; }
  .btn-dark-custom { padding: 10px 22px; font-size: 0.85rem; }

  /* Sections */
  .section-padding { padding: 50px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 1.7rem; }
  .section-title p { font-size: 0.9rem; margin-top: 15px; }
  .section-title .subtitle { font-size: 0.75rem; letter-spacing: 1.5px; }

  /* About */
  .about-img-wrapper { margin-bottom: 20px; }
  .about-img-wrapper img { min-height: 250px; }
  .about-img-wrapper .experience-badge { padding: 10px 18px; bottom: 15px; right: 15px; }
  .about-img-wrapper .experience-badge h3 { font-size: 1.5rem; }
  .about-img-wrapper .experience-badge p { font-size: 0.7rem; }
  section img.img-fluid { min-height: 220px; }

  /* Stats */
  .counter-section { padding: 40px 0; }
  .counter-item h3 { font-size: 1.8rem; }
  .counter-item p { font-size: 0.8rem; }
  .stat-card { padding: 20px 15px; }
  .stat-card h3 { font-size: 1.8rem; }
  .stat-card .stat-icon { width: 50px; height: 50px; font-size: 1.2rem; }

  /* Product Cards */
  .product-card .card-img-wrapper { height: 180px; }
  .product-card .card-body { padding: 18px; }
  .product-card .card-body h5 { font-size: 1rem; }
  .product-card .card-body p { font-size: 0.85rem; }

  /* Process Steps */
  .process-step { padding: 15px 10px; }
  .process-step .step-number { width: 50px; height: 50px; font-size: 1rem; }
  .process-step .step-icon { font-size: 1.5rem; }
  .process-step h5 { font-size: 0.8rem; }

  /* Feature Cards */
  .feature-card { padding: 22px 15px; }
  .feature-card .feature-icon { width: 55px; height: 55px; font-size: 1.4rem; margin-bottom: 15px; }
  .feature-card h5 { font-size: 0.9rem; }
  .feature-card p { font-size: 0.8rem; }

  /* Quality */
  .quality-badge { padding: 8px 14px; font-size: 0.8rem; margin: 3px; }
  .quality-badge i { font-size: 1rem; }
  .hse-image-card { height: 320px; }

  /* Facility */
  .facility-card { aspect-ratio: 16 / 9; margin-bottom: 15px; }
  .facility-card .facility-overlay { transform: translateY(0); opacity: 1; padding: 15px; }

  /* Industry Cards */
  .industry-card { border-radius: 10px; }
  .industry-card h5 { font-size: 0.85rem; padding: 15px 12px; }

  /* Glass Form */
  .glass-form { padding: 22px; border-radius: 12px; }
  .glass-form .form-control { padding: 10px 14px; font-size: 0.85rem; }
  .glass-form label { font-size: 0.8rem; }

  /* Service Cards */
  .service-card { padding: 25px 18px; }
  .service-card .service-icon { width: 65px; height: 65px; font-size: 1.6rem; }

  /* Machine Cards */
  .machine-card .machine-img { aspect-ratio: 16 / 9; height: auto; }
  .machine-card .machine-body { padding: 15px; }
  .machine-card .machine-specs li { font-size: 0.8rem; }

  /* Contact */
  .contact-info-card { padding: 22px 15px; }
  .contact-info-card .contact-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .contact-info-card h5 { font-size: 0.9rem; }
  .contact-info-card p { font-size: 0.8rem; }
  .contact-map-card { height: 300px; }

  /* Timeline */
  .timeline-item .timeline-content { padding: 18px; }
  .timeline-item .timeline-content h5 { font-size: 1rem; }
  .timeline-item .timeline-content p { font-size: 0.85rem; }

  /* Filter */
  .filter-btns { gap: 6px; }
  .filter-btns .filter-btn { padding: 6px 14px; font-size: 0.75rem; }

  /* Page Header */
  .page-header { padding: 110px 0 50px; }
  .page-header h1 { font-size: 1.8rem; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer h5 { font-size: 1rem; margin-bottom: 15px; }
  .footer ul li a { font-size: 0.85rem; }
  .footer .footer-contact li { font-size: 0.85rem; }
  .footer-bottom { padding: 15px 0; margin-top: 30px; }
  .footer-bottom p { font-size: 0.75rem; }

  /* CTA */
  .cta-section { padding: 40px 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 0.9rem; }

  /* WhatsApp & Scroll Top */
  .whatsapp-float { width: 48px; height: 48px; font-size: 1.5rem; bottom: 20px; right: 20px; }
  .scroll-top { width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex-basis: 40px; font-size: 1rem; bottom: 20px; left: 20px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-form input { width: 100%; }
}

/* Mobile Phone (max-width: 575px) - iPhone, Android */
@media (max-width: 575px) {
  body { font-size: 14px; }

  /* Navbar */
  .navbar-main { padding: 8px 0; }
  .navbar-main .navbar-brand { font-size: 1.05rem; max-width: calc(100% - 60px); }
  .navbar-main .navbar-brand img { height: 35px; }
  .navbar-toggler { font-size: 1.2rem; padding: 6px 10px; min-height: 40px; min-width: 40px; }
  .navbar-collapse { padding: 15px; margin-top: 10px; }
  .navbar-main .nav-link { padding: 10px 12px !important; font-size: 0.9rem; }

  /* Hero */
  .hero-section { height: 100svh; min-height: 500px; }
  .hero-slide { height: 100svh; min-height: 500px; padding-top: 70px; }
  .hero-content h1 { font-size: 1.5rem; line-height: 1.35; margin-bottom: 0.6rem; }
  .hero-content p { font-size: 0.85rem; margin-bottom: 1.2rem; line-height: 1.5; }
  .hero-content .badge-text { font-size: 0.65rem; padding: 3px 8px; margin-bottom: 0.6rem; }
  .hero-content .d-flex { gap: 10px !important; }
  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom { padding: 9px 16px; font-size: 0.8rem; }

  /* Swiper */
  .hero-section .swiper-pagination { bottom: 15px !important; }
  .hero-section .swiper-pagination-bullet { width: 8px; height: 8px; }
  .hero-section .swiper-pagination-bullet-active { width: 22px; }

  /* Sections */
  .section-padding { padding: 40px 0; }
  .section-title { margin-bottom: 25px; }
  .section-title h2 { font-size: 1.4rem; }
  .section-title h2::after { width: 40px; height: 2px; bottom: -8px; }
  .section-title p { font-size: 0.82rem; margin-top: 12px; }
  .section-title .subtitle { font-size: 0.7rem; letter-spacing: 1px; }

  /* About */
  .about-img-wrapper .experience-badge { padding: 8px 14px; bottom: 10px; right: 10px; }
  .about-img-wrapper .experience-badge h3 { font-size: 1.3rem; }
  .about-img-wrapper .experience-badge p { font-size: 0.65rem; }

  /* Stats */
  .counter-section { padding: 30px 0; }
  .counter-item h3 { font-size: 1.5rem; }
  .counter-item p { font-size: 0.75rem; }
  .stat-card { padding: 15px 10px; }
  .stat-card h3 { font-size: 1.5rem; }
  .stat-card p { font-size: 0.78rem; }
  .stat-card .stat-icon { width: 45px; height: 45px; font-size: 1.1rem; margin-bottom: 10px; }

  /* Product Cards */
  .product-card .card-img-wrapper { height: 160px; }
  .product-card .card-body { padding: 15px; }
  .product-card .card-body h5 { font-size: 0.95rem; margin-bottom: 6px; }
  .product-card .card-body p { font-size: 0.8rem; margin-bottom: 10px; }
  .product-card .learn-more { font-size: 0.8rem; }
  .product-card .card-body .d-flex { gap: 8px !important; }
  .product-card .card-body .btn-sm { flex: 1 1 130px; justify-content: center; }
  .product-gallery-modal .modal-dialog {
    width: calc(100vw - 24px);
    height: auto;
    max-height: min(72svh, calc(100dvh - 190px));
    margin: 100px auto 72px;
  }
  .product-gallery-modal .modal-content { max-height: min(72svh, calc(100dvh - 190px)); }
  .product-gallery-modal .modal-header { padding: 12px 16px; }
  .product-gallery-modal .modal-title { font-size: 1rem; }
  .product-gallery-modal .modal-body {
    max-height: min(calc(72svh - 54px), calc(100dvh - 246px));
    padding: 14px;
  }
  .product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-gallery-item img { height: auto; }
  .product-gallery-item span { font-size: 0.76rem; padding: 8px 9px; }
  .service-image-card { height: auto; }

  /* Process Steps */
  .process-step { padding: 10px 5px; }
  .process-step .step-number { width: 40px; height: 40px; font-size: 0.85rem; margin-bottom: 8px; }
  .process-step .step-icon { font-size: 1.2rem; margin-bottom: 5px; }
  .process-step h5 { font-size: 0.7rem; }

  /* Feature Cards */
  .feature-card { padding: 18px 12px; }
  .feature-card .feature-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 12px; }
  .feature-card h5 { font-size: 0.82rem; margin-bottom: 6px; }
  .feature-card p { font-size: 0.75rem; }

  /* Quality */
  .quality-badge { padding: 6px 10px; font-size: 0.72rem; gap: 6px; }
  .quality-badge i { font-size: 0.85rem; }
  .hse-image-card { height: 240px; border-radius: 10px; }
  .progress-custom { height: 6px; margin-bottom: 15px; }

  /* Facility */
  .facility-card { aspect-ratio: 16 / 9; border-radius: 8px; }
  .facility-card .facility-overlay { padding: 12px; }
  .facility-card .facility-overlay h5 { font-size: 0.85rem; }

  /* Industry Cards */
  .industry-card { border-radius: 8px; }
  .industry-card h5 { font-size: 0.8rem; padding: 12px 10px; }

  /* Glass Form */
  .glass-form { padding: 18px; border-radius: 10px; }
  .glass-form .form-control { padding: 9px 12px; font-size: 0.82rem; border-radius: 6px; }
  .glass-form label { font-size: 0.75rem; }

  /* Service Cards */
  .service-card { padding: 20px 15px; border-radius: 10px; }
  .service-card .service-icon { width: 55px; height: 55px; font-size: 1.4rem; margin-bottom: 15px; }
  .service-card h5 { font-size: 0.95rem; margin-bottom: 8px; }
  .service-card p { font-size: 0.82rem; }

  /* Machine Cards */
  .machine-card .machine-img { aspect-ratio: 16 / 9; height: auto; }
  .machine-card .machine-body { padding: 12px; }
  .machine-card .machine-body h5 { font-size: 0.9rem; }
  .machine-card .machine-specs li { font-size: 0.75rem; padding: 3px 0; }

  /* Contact */
  .contact-info-card { padding: 18px 12px; border-radius: 10px; }
  .contact-info-card .contact-icon { width: 45px; height: 45px; font-size: 1.1rem; margin-bottom: 10px; }
  .contact-info-card h5 { font-size: 0.85rem; }
  .contact-info-card p { font-size: 0.78rem; }
  .contact-map-card { height: 260px; border-radius: 10px; }

  /* Timeline */
  .timeline::before { left: 15px; }
  .timeline-item .timeline-content { width: calc(100% - 50px); margin-left: 50px !important; padding: 15px; }
  .timeline-item .timeline-dot { left: 15px; width: 16px; height: 16px; }
  .timeline-item:nth-child(odd) .timeline-content { margin-left: 50px !important; }
  .timeline-item .timeline-content h5 { font-size: 0.9rem; }
  .timeline-item .timeline-content p { font-size: 0.8rem; }

  /* Filter */
  .filter-btns { gap: 5px; margin-bottom: 25px; }
  .filter-btns .filter-btn { padding: 5px 12px; font-size: 0.7rem; border-radius: 20px; }

  /* Page Header */
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header .breadcrumb { font-size: 0.8rem; }

  /* Footer */
  .footer { padding: 35px 0 0; }
  .footer h5 { font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 8px; }
  .footer ul li { margin-bottom: 8px; }
  .footer ul li a { font-size: 0.82rem; }
  .footer .footer-contact li { font-size: 0.82rem; gap: 8px; margin-bottom: 12px; }
  .footer .social-icons a { width: 34px; height: 34px; margin-right: 6px; }
  .footer-bottom { padding: 12px 0; margin-top: 25px; }
  .footer-bottom p { font-size: 0.7rem; }

  /* CTA */
  .cta-section { padding: 35px 0; }
  .cta-section h2 { font-size: 1.3rem; }
  .cta-section p { font-size: 0.82rem; }

  /* WhatsApp & Scroll Top */
  .whatsapp-float { width: 45px; height: 45px; font-size: 1.4rem; bottom: 15px; right: 15px; }
  .scroll-top { width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex-basis: 40px; font-size: 0.95rem; bottom: 18px; left: 18px; }

  /* Buttons */
  .btn-primary-custom { padding: 9px 18px; font-size: 0.8rem; gap: 6px; }
  .btn-outline-custom { padding: 8px 16px; font-size: 0.8rem; gap: 6px; }
  .btn-dark-custom { padding: 9px 18px; font-size: 0.8rem; }
}

/* Extra Small Phone (max-width: 375px) - iPhone SE, small Android */
@media (max-width: 375px) {
  .navbar-main .navbar-brand { font-size: 0.95rem; }
  .navbar-main .navbar-brand img { height: 30px; }
  .navbar-toggler { font-size: 1.1rem; padding: 5px 8px; min-height: 36px; min-width: 36px; }
  .hero-content h1 { font-size: 1.3rem; }
  .hero-content p { font-size: 0.8rem; }
  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom { padding: 8px 12px; font-size: 0.75rem; }
  .section-title h2 { font-size: 1.25rem; }
  .section-title p { font-size: 0.78rem; }
  .counter-item h3 { font-size: 1.3rem; }
  .stat-card h3 { font-size: 1.3rem; }
  .feature-card h5 { font-size: 0.78rem; }
  .product-card .card-img-wrapper { height: 140px; }
  .product-gallery-modal .modal-dialog {
    width: calc(100vw - 24px);
    height: auto;
    max-height: min(70svh, calc(100dvh - 180px));
    margin: 92px auto 70px;
  }
  .product-gallery-modal .modal-content { max-height: min(70svh, calc(100dvh - 180px)); }
  .product-gallery-modal .modal-header { padding: 12px 14px; }
  .product-gallery-modal .modal-title { font-size: 0.95rem; }
  .product-gallery-modal .btn-close { transform: scale(0.85); }
  .product-gallery-modal .modal-body {
    max-height: min(calc(70svh - 52px), calc(100dvh - 232px));
    padding: 12px;
  }
  .product-gallery-grid { grid-template-columns: 1fr; }
  .product-gallery-item img { height: auto; }
  .service-image-card { height: auto; }
  .glass-form { padding: 15px; }
  .page-header h1 { font-size: 1.3rem; }
  .cta-section h2 { font-size: 1.15rem; }
  .footer h5 { font-size: 0.9rem; }
}

/* Landscape Mode for Phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { height: 100vh; min-height: 350px; }
  .hero-slide { height: 100vh; min-height: 350px; padding-top: 60px; }
  .hero-content h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .hero-content p { font-size: 0.8rem; margin-bottom: 1rem; }
  .hero-content .badge-text { margin-bottom: 0.4rem; }
  .page-header { padding: 80px 0 30px; }
  .product-gallery-modal .modal-dialog {
    max-height: calc(100dvh - 86px);
    margin: 58px auto 28px;
  }
  .product-gallery-modal .modal-content { max-height: calc(100dvh - 86px); }
  .product-gallery-modal .modal-body { max-height: calc(100dvh - 138px); }
  .product-gallery-item img { height: auto; }
}

/* iPad specific (portrait) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-content h1 { font-size: 2.2rem; }
  .product-card .card-img-wrapper { height: 180px; }
  .facility-card { aspect-ratio: 16 / 9; }
  .glass-form { padding: 28px; }
}

/* iPad Pro (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-content h1 { font-size: 3rem; }
  .section-title h2 { font-size: 2.3rem; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover { transform: none; }
  .product-card .card-img-overlay-icon { opacity: 1; }
  .facility-card .facility-overlay { transform: translateY(0); opacity: 1; }
  .feature-card:hover { transform: none; }
  .industry-card:hover { transform: none; }
  .service-card:hover { transform: none; }
  .stat-card:hover { transform: none; }
  .machine-card:hover { transform: none; }
  .contact-info-card:hover { transform: none; }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-slide { background-size: cover; }
}

/* Print styles */
@media print {
  .navbar-main, .whatsapp-float, .scroll-top, #preloader { display: none !important; }
  .hero-section { height: auto; page-break-after: always; }
  .section-padding { padding: 30px 0; }
}

/* Swiper Custom */
.hero-section .swiper-pagination-bullet { width: 12px; height: 12px;
  background: rgba(255,255,255,0.5); opacity: 1; }
.hero-section .swiper-pagination-bullet-active { background: var(--primary-red);
  width: 30px; border-radius: 6px; }
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev { color: var(--white); }
.hero-section .swiper-button-next::after,
.hero-section .swiper-button-prev::after { font-size: 1.5rem; }

/* CTA Section */
.cta-section { background: var(--gradient-red); padding: 60px 0;
  position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px; background: rgba(255,255,255,0.05);
  border-radius: 50%; }
.cta-section h2 { color: var(--white); font-size: 2rem; }
.cta-section p { color: rgba(255,255,255,0.9); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); } }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease forwards; }

/* Red Glow Effect */
.red-glow { box-shadow: 0 0 20px rgba(225,27,34,0.3); }
.red-glow:hover { box-shadow: 0 0 40px rgba(225,27,34,0.5); }

/* Glassmorphism Card */
.glass-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; padding: 30px; }

/* Process Table */
.process-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.process-table thead tr { background: var(--gradient-dark); color: var(--white); }
.process-table thead th { padding: 14px 18px; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; border: none; }
.process-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: var(--transition); }
.process-table tbody tr:last-child { border-bottom: none; }
.process-table tbody tr:hover { background: #fff8f8; }
.process-table tbody td { padding: 14px 18px; vertical-align: top; color: var(--steel-gray); line-height: 1.6; border: none; }
.process-table tbody td:first-child { font-size: 1rem; font-weight: 800; width: 60px; text-align: center; vertical-align: middle; }
.process-table tbody td:nth-child(2) { width: 200px; color: var(--deep-black); font-weight: 600; font-size: 0.88rem; }
.process-table tbody td strong { color: var(--deep-black); }
@media (max-width: 767px) {
  .process-table thead th, .process-table tbody td { padding: 10px 12px; font-size: 0.8rem; }
  .process-table tbody td:nth-child(2) { width: 120px; }
}

/* ========================================
   SERVICE DETAIL PAGE STYLES
   ======================================== */
.service-detail-hero { background: var(--gradient-dark); padding: 140px 0 60px; position: relative; overflow: hidden; }
.service-detail-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') opacity: 0.5; }
.service-detail-hero .hero-icon { width: 80px; height: 80px; background: rgba(225,27,34,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary-red); margin-bottom: 20px; border: 2px solid rgba(225,27,34,0.3); }
.service-detail-hero h1 { color: var(--white); font-size: 2.5rem; font-weight: 800; }
.service-detail-hero p.lead { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.service-detail-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.service-detail-hero .breadcrumb-item.active { color: var(--primary-red); }
.service-detail-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* Overview Section */
.service-overview { background: var(--white); }
.service-overview p { font-size: 0.95rem; line-height: 1.8; color: var(--steel-gray); margin-bottom: 1rem; }

/* Spec Cards */
.spec-card { background: var(--light-gray); border-radius: 10px; padding: 20px; height: 100%; border-left: 4px solid var(--primary-red); }
.spec-card h6 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-red); margin-bottom: 12px; }
.spec-card ul { list-style: none; padding: 0; margin: 0; }
.spec-card ul li { font-size: 0.88rem; color: var(--steel-gray); padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: flex-start; gap: 8px; }
.spec-card ul li:last-child { border-bottom: none; }
.spec-card ul li::before { content: ''; width: 6px; height: 6px; background: var(--primary-red); border-radius: 50%; flex-shrink: 0; margin-top: 7px; }

/* Applications Tags */
.app-tag { display: inline-block; background: rgba(225,27,34,0.08); color: var(--deep-black); border: 1px solid rgba(225,27,34,0.2); border-radius: 20px; padding: 5px 15px; font-size: 0.82rem; font-weight: 500; margin: 4px; transition: var(--transition); }
.app-tag:hover { background: var(--primary-red); color: var(--white); border-color: var(--primary-red); }

/* Service Nav Pills */
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.service-nav a { padding: 8px 18px; border-radius: 25px; border: 1px solid #ddd; font-size: 0.82rem; font-weight: 500; color: var(--steel-gray); transition: var(--transition); text-decoration: none; }
.service-nav a:hover, .service-nav a.active { background: var(--primary-red); border-color: var(--primary-red); color: var(--white); }

/* Related Services */
.related-service-card { display: flex; align-items: center; gap: 15px; background: var(--white); border-radius: 10px; padding: 18px; box-shadow: var(--shadow-sm); transition: var(--transition); text-decoration: none; border-left: 3px solid transparent; }
.related-service-card:hover { transform: translateX(5px); border-left-color: var(--primary-red); box-shadow: var(--shadow-md); }
.related-service-card .rs-icon { width: 45px; height: 45px; background: rgba(225,27,34,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-red); font-size: 1.1rem; flex-shrink: 0; }
.related-service-card .rs-text h6 { font-size: 0.9rem; font-weight: 700; color: var(--deep-black); margin: 0 0 3px; }
.related-service-card .rs-text span { font-size: 0.75rem; color: var(--steel-gray); }

@media (max-width: 767px) {
  .service-detail-hero { padding: 110px 0 50px; }
  .service-detail-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 575px) {
  .service-detail-hero h1 { font-size: 1.5rem; }
  .service-detail-hero p.lead { font-size: 0.95rem; }
}

/* ========================================
   SERVICE DETAIL PAGE STYLES
   ======================================== */
.service-detail-hero { background: var(--gradient-dark); padding: 140px 0 60px; position: relative; overflow: hidden; }
.service-detail-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); opacity: 0.5; }
.service-detail-hero h1 { color: var(--white); font-size: 2.5rem; font-weight: 800; position: relative; z-index: 2; }
.service-detail-hero .service-hero-icon { width: 80px; height: 80px; background: rgba(225,27,34,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--primary-red); font-size: 2rem; margin-bottom: 20px; position: relative; z-index: 2; border: 2px solid rgba(225,27,34,0.3); }
.service-detail-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.service-detail-hero .breadcrumb-item.active { color: var(--primary-red); }
.service-detail-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* Overview Section */
.overview-card { background: var(--white); border-radius: 12px; padding: 35px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary-red); }
.overview-card p { color: var(--steel-gray); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }
.overview-card p:last-child { margin-bottom: 0; }

/* Spec Cards */
.spec-card { background: var(--white); border-radius: 12px; padding: 25px;
  box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition);
  border-top: 3px solid var(--primary-red); }
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.spec-card h5 { font-size: 1rem; font-weight: 700; color: var(--deep-black); margin-bottom: 15px;
  display: flex; align-items: center; gap: 10px; }
.spec-card h5 i { color: var(--primary-red); }
.spec-card ul { list-style: none; padding: 0; margin: 0; }
.spec-card ul li { font-size: 0.88rem; color: var(--steel-gray); padding: 6px 0;
  border-bottom: 1px solid #f5f5f5; display: flex; align-items: flex-start; gap: 8px; }
.spec-card ul li:last-child { border-bottom: none; }
.spec-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--primary-red); font-size: 0.7rem; margin-top: 3px; flex-shrink: 0; }

/* Applications Grid */
.app-item { background: var(--white); border-radius: 10px; padding: 18px 20px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px;
  transition: var(--transition); }
.app-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.app-item i { color: var(--primary-red); font-size: 1.2rem; flex-shrink: 0; }
.app-item span { font-size: 0.9rem; font-weight: 500; color: var(--deep-black); }

/* Capacity Table */
.capacity-table { width: 100%; }
.capacity-table tr { border-bottom: 1px solid #f0f0f0; }
.capacity-table tr:last-child { border-bottom: none; }
.capacity-table td { padding: 10px 15px; font-size: 0.9rem; vertical-align: top; }
.capacity-table td:first-child { font-weight: 600; color: var(--deep-black); width: 40%; }
.capacity-table td:last-child { color: var(--steel-gray); }

/* Service Nav Sidebar */
.service-nav-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.service-nav-card .nav-header { background: var(--gradient-dark); padding: 18px 20px; color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; }
.service-nav-card ul { list-style: none; padding: 0; margin: 0; }
.service-nav-card ul li a { display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  font-size: 0.88rem; font-weight: 500; color: var(--steel-gray); border-bottom: 1px solid #f5f5f5;
  transition: var(--transition); }
.service-nav-card ul li a:hover, .service-nav-card ul li a.active { background: rgba(225,27,34,0.05);
  color: var(--primary-red); padding-left: 25px; }
.service-nav-card ul li:last-child a { border-bottom: none; }
.service-nav-card ul li a i { font-size: 0.75rem; color: var(--primary-red); }

/* CTA Box */
.cta-box { background: var(--gradient-red); border-radius: 12px; padding: 30px; text-align: center; }
.cta-box h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 0.85rem; margin-bottom: 20px; }
.cta-box .btn { background: var(--white); color: var(--primary-red); font-weight: 700; border: none; padding: 10px 25px; border-radius: 6px; }
.cta-box .btn:hover { background: var(--deep-black); color: var(--white); }

@media (max-width: 767px) {
  .service-detail-hero h1 { font-size: 1.8rem; }
  .service-detail-hero { padding: 110px 0 50px; }
  .overview-card { padding: 22px; }
  .spec-card { padding: 20px; }
}

/* Final responsive layout fixes */
.hero-content {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.product-card .card-img-wrapper,
.facility-card,
.machine-card .machine-img {
  background: #f3f3f3;
}

@media (max-width: 767px) {
  .hero-section {
    height: clamp(235px, 58vw, 445px);
    min-height: 0;
  }

  .hero-slide {
    height: clamp(235px, 58vw, 445px);
    min-height: 0;
    align-items: center;
    background-color: #111;
    background-repeat: no-repeat;
    background-size: 100% auto !important;
    background-position: center top;
    padding-top: 56px;
    padding-bottom: 34px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(17,17,17,0.12) 0%, rgba(17,17,17,0.36) 30%, rgba(17,17,17,0.90) 72%, rgba(17,17,17,0.98) 100%),
      linear-gradient(90deg, rgba(17,17,17,0.58) 0%, rgba(17,17,17,0.18) 100%);
  }

  .hero-content {
    width: 100%;
    max-width: min(92vw, 560px);
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .hero-content h1 {
    font-size: clamp(0.95rem, 4.8vw, 0.7rem);
    line-height: 1.08;
    margin-bottom: clamp(0.25rem, 1vw, 0.45rem);
    text-shadow: 0 5px 24px rgba(0,0,0,0.45);
  }

  .hero-content p {
    max-width: min(100%, 340px);
    font-size: clamp(0.5rem, 1.85vw, 0.48rem);
    line-height: 1.3;
    margin-bottom: clamp(0.35rem, 1.35vw, 0.6rem);
    text-shadow: 0 3px 16px rgba(0,0,0,0.42);
  }

  .hero-content .badge-text {
    font-size: clamp(0.36rem, 1.4vw, 0.28rem);
    padding: 2px 6px;
    margin-bottom: clamp(0.28rem, 1vw, 0.45rem);
  }

  .hero-content .d-flex {
    align-items: center;
  }

  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom {
    min-height: 20px;
    padding: 5px 10px;
    font-size: clamp(0.48rem, 1.65vw, 0.62rem);
    justify-content: center;
  }

  .product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f3f3f3;
  }

  .facility-card img,
  .machine-card .machine-img img,
  .about-img-wrapper img,
  section img.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f3f3f3;
  }

  .hero-section .swiper-pagination {
    bottom: 14px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
  }

  .hero-section .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
    margin: 0 !important;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    opacity: 1;
  }

  .hero-section .swiper-pagination-bullet-active {
    width: 38px;
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 14px rgba(225,27,34,0.35);
  }
}

@media (max-width: 575px) {
  .hero-section {
    height: clamp(210px, 58vw, 330px);
  }

  .hero-slide {
    height: clamp(210px, 58vw, 330px);
    min-height: 0;
    background-size: 100% auto !important;
    background-position: center top;
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 8px;
  }

  .hero-content h1 {
    font-size: clamp(0.82rem, 4.8vw, 0.18rem);
  }

  .hero-content p {
    max-width: 225px;
    font-size: clamp(0.44rem, 2.05vw, 0.36rem);
  }

  .hero-content .badge-text {
    font-size: clamp(0.32rem, 1.5vw, 0.2rem);
    padding: 2px 5px;
  }

  .hero-content .d-flex {
    align-items: stretch;
    flex-direction: column;
    gap: 5px !important;
    max-width: 150px;
  }

  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom {
    width: 100%;
    min-height: 18px;
    padding: 4px 8px;
  }

  .hero-section .swiper-pagination {
    bottom: 12px !important;
  }
}

/* Keep product listing images fully visible and consistent on every device. */
.product-card .card-img-wrapper {
  aspect-ratio: 16 / 9;
  height: auto !important;
  background: var(--white);
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: var(--white);
  transform: none !important;
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-slide {
    align-items: center;
    background-size: cover !important;
    background-position: center;
    padding-top: 70px;
    padding-bottom: 42px;
  }

  .hero-content {
    max-width: 640px;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 5.8vw, 1.45rem);
    line-height: 1.08;
    margin-bottom: 0.55rem;
  }

  .hero-content p {
    max-width: 520px;
    font-size: 0.62rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .hero-content .badge-text {
    font-size: 0.42rem;
    padding: 3px 9px;
    margin-bottom: 0.5rem;
  }

  .hero-content .btn-primary-custom,
  .hero-content .btn-outline-custom {
    min-height: 32px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .hero-section .swiper-pagination {
    bottom: 18px !important;
  }
}
