/* =============================================
   FORCE ENGINEERING - CUSTOM STYLESHEET
   Bootstrap 5.3 | Industrial Modern Theme
   ============================================= */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&family=Rajdhani:wght@500;600;700&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #0056D2;
  --primary-dark: #003A8C;
  --primary-light: #3A7FFF;
  --accent: #FF6B00;
  --accent-dark: #CC5500;
  --secondary: #1A2B4A;
  --text-dark: #0F1923;
  --text-mid: #3D5166;
  --text-light: #7A8FA6;
  --bg-light: #F4F7FC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #DDE4EF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --navbar-bg: rgba(255,255,255,0.97);
  --navbar-border: rgba(0,86,210,0.1);
  --footer-bg: #0F1923;
  --footer-text: #A8B8CC;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --radius: 10px;
  --radius-lg: 18px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
}

[data-theme="dark"] {
  --primary: #3A7FFF;
  --primary-dark: #0056D2;
  --primary-light: #6BA3FF;
  --accent: #FF7A1A;
  --secondary: #1E3A5F;
  --text-dark: #E8F0FE;
  --text-mid: #A8BDD4;
  --text-light: #6A84A0;
  --bg-light: #0F1923;
  --bg-white: #152232;
  --bg-card: #1C2F45;
  --border: #243A55;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --navbar-bg: rgba(15,25,35,0.97);
  --navbar-border: rgba(58,127,255,0.15);
  --footer-bg: #080F17;
  --footer-text: #6A84A0;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  line-height: 1.2;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; }

/* ---------- UTILITY ---------- */
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary); }
.bg-light-custom { background: var(--bg-light); }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,86,210,0.3);
}

.btn-accent-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-accent-custom:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.3);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 26px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 11px 26px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* ---------- NAVBAR ---------- */
#mainNavbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navbar-border);
  padding: 0;
  transition: var(--transition);
  z-index: 1050;
}

#mainNavbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand-logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.1;
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 500;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  padding: 28px 16px !important;
  transition: var(--transition);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  left: 16px; right: 16px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary); }

/* Theme Toggle */
.theme-toggle-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-light);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}
.theme-toggle-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- MEGA MENU ---------- */
.has-mega-menu { position: static !important; }

.mega-menu {
  position: fixed;
  top: 73px; /* fallback — JS overrides this dynamically */
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 36px 0;
  /* Hidden by default — JS adds .show */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 1049;
}

.mega-menu.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.mega-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col-title .mega-icon {
  width: 30px; height: 30px;
  background: rgba(0,86,210,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.mega-link:hover {
  color: var(--primary);
  padding-left: 6px;
}
.mega-link::before {
  content: '›';
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}
.mega-link:hover::before { transform: translateX(3px); }

.mega-services-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.mega-services-card:hover {
  border-color: var(--primary);
  background: rgba(0,86,210,0.04);
  transform: translateY(-2px);
}
.mega-services-card .service-icon {
  width: 44px; height: 44px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.mega-services-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}
.mega-services-card h6 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.mega-services-card p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ---------- HERO SLIDER ---------- */
#heroSlider {
  position: relative;
  overflow: hidden;
  height: 60vh;
  min-height: 380px;
  max-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.72) 0%, rgba(0,56,140,0.45) 50%, rgba(0,0,0,0.2) 100%);
}

.slide-img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* SVG background slides */
.slide-bg-aac {
  background: linear-gradient(135deg, #0F1923 0%, #0d2a4a 40%, #0056D2 100%);
}
.slide-bg-brick {
  background: linear-gradient(135deg, #1a0a00 0%, #4a2000 40%, #FF6B00 100%);
}
.slide-bg-clc {
  background: linear-gradient(135deg, #0a1a0a 0%, #0a3a1a 40%, #0D8040 100%);
}
.slide-bg-interlock {
  background: linear-gradient(135deg, #1a001a 0%, #3a0050 40%, #8B00CC 100%);
}
.slide-bg-autoclave {
  background: linear-gradient(135deg, #1a1000 0%, #3a2800 40%, #CC8800 100%);
}

.hero-slide-inner {
  position: relative;
  z-index: 3;
  padding-top: 0;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.4);
  color: #FF9A4D;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 12px;
}
.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* Slide product visual */
.hero-product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-product-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 18px 20px;
  width: 300px;
  color: #fff;
}
.hero-product-img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.hero-product-img svg {
  width: 100%;
  height: 100%;
}
.hero-product-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 8px;
}
.hero-product-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  line-height: 1.5;
}
.hero-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
}
.hero-spec-row:last-child { border: none; }
.hero-spec-row .spec-key { color: rgba(255,255,255,0.6); }
.hero-spec-row .spec-val { color: #fff; font-weight: 600; }

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent);
}

.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 44px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}
.scroll-hint-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.3);
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: var(--accent); }
.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  margin: 0 14px;
}

/* ---------- ABOUT STRIP ---------- */
.stats-strip {
  background: var(--primary);
  padding: 0;
}
.stats-strip .stat-item {
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stats-strip .stat-item:last-child { border: none; }
.stats-strip .stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stats-strip .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ---------- ABOUT SECTION ---------- */
.about-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.about-feature-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: rgba(0,86,210,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
}
.about-feature-icon.accent { background: rgba(255,107,0,0.1); color: var(--accent); }
.about-feature-text h6 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-dark);
}
.about-feature-text p { font-size: 14px; color: var(--text-mid); margin: 0; }

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image-wrap .experience-badge {
  position: absolute;
  bottom: 28px; left: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 22px;
}
.experience-badge .exp-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.experience-badge .exp-text { font-size: 13px; font-weight: 500; }

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card-img-inner {
  width: 100%; height: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--text-light);
  transition: var(--transition);
}
.product-card:hover .product-card-img-inner { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}
.product-card-body {
  padding: 22px;
}
.product-card-body h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.product-card-body p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.product-card-footer .specs-count {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- WHY CHOOSE US ---------- */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--border);
  transition: var(--transition);
}
.why-card:hover::before { background: var(--primary); height: 100%; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.why-card-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: rgba(0,86,210,0.07);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
}
.why-card-icon {
  width: 56px; height: 56px;
  background: rgba(0,86,210,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}
.why-card:hover .why-card-icon { background: var(--primary); color: #fff; }
.why-card h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.why-card p { font-size: 14px; color: var(--text-mid); margin: 0; }

/* ---------- PROCESS SECTION ---------- */
.process-steps {
  position: relative;
  display: flex;
  gap: 0;
}
.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 32px 20px;
}
.process-step::after {
  content: '→';
  position: absolute;
  top: 44px;
  right: -10px;
  font-size: 22px;
  color: var(--primary);
  z-index: 2;
}
.process-step:last-child::after { display: none; }
.process-step-num {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.process-step h6 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.process-step p { font-size: 13px; color: var(--text-mid); }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-quote {
  font-size: 56px;
  line-height: 1;
  color: rgba(0,86,210,0.12);
  font-family: Georgia, serif;
  position: absolute;
  top: 18px; right: 24px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author-info h6 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}
.testimonial-author-info span {
  font-size: 12px;
  color: var(--text-light);
}
.testimonial-stars { color: var(--accent); font-size: 14px; }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(0,86,210,0.12);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(255,107,0,0.07);
  border-radius: 50%;
}

/* ---------- SERVICES CARDS ---------- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card-header {
  padding: 32px 28px 24px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.service-card-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 18px;
  transition: var(--transition);
}
.service-card:hover .service-card-icon { background: var(--accent); transform: rotateY(15deg); }
.service-card-body { padding: 24px 28px; }
.service-card-body h5 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.service-card-body p { font-size: 14px; color: var(--text-mid); margin-bottom: 18px; }
.service-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.service-feature .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- PRODUCT LISTING PAGE ---------- */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.filter-sidebar h6 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.filter-check { margin-bottom: 8px; }
.filter-check input[type=checkbox] { accent-color: var(--primary); }
.filter-check label { font-size: 14px; color: var(--text-mid); cursor: pointer; }

/* ---------- PRODUCT DETAIL ---------- */
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--text-light);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.product-gallery-thumb {
  width: 80px; height: 64px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover { border-color: var(--primary); }

.spec-table { border-radius: var(--radius); overflow: hidden; }
.spec-table th {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-light);
  color: var(--text-mid);
  font-weight: 600;
  border: none;
  padding: 12px 16px;
}
.spec-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.spec-table tr:last-child td { border: none; }

.enquiry-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 90px;
}
.enquiry-form-card h5 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
}

/* ---------- FORM STYLES ---------- */
.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,210,0.1);
}
.form-control-custom::placeholder { color: var(--text-light); }
.form-label-custom {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin-bottom: 6px;
  display: block;
}

/* ---------- CONTACT PAGE ---------- */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-info-icon {
  width: 52px; height: 52px;
  min-width: 52px;
  background: rgba(0,86,210,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}
.contact-info-content h6 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.contact-info-content p { font-size: 14px; color: var(--text-mid); margin: 0; }

.map-placeholder {
  width: 100%;
  height: 420px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 52px;
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%; height: 100%; border: none; border-radius: var(--radius-lg);
}

/* ---------- BREADCRUMB ---------- */
.page-header {
  background: var(--secondary);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 14px;
}
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item { font-size: 14px; }
.breadcrumb-item a { color: rgba(255,255,255,0.6); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ---------- ABOUT PAGE ---------- */
.about-timeline {
  position: relative;
  padding-left: 36px;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-white);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 90px; height: 90px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 30px auto 18px;
}
.team-card h6 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.team-card span { font-size: 13px; color: var(--text-light); }
.team-card-body { padding: 0 22px 28px; }

/* ---------- FOOTER ---------- */
#mainFooter {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 72px 0 0;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.footer-desc {
  font-size: 14px;
  color: var(--footer-text);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 300px;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--footer-text);
  padding: 5px 0;
  transition: var(--transition);
}
.footer-link::before {
  content: '›';
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.footer-link:hover { color: #fff; padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--footer-text);
}
.footer-contact-item .fi {
  color: var(--accent);
  margin-top: 2px;
  font-size: 15px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 52px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ---------- BACK TO TOP ---------- */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 9999;
  box-shadow: var(--shadow-md);
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--accent); transform: translateY(-3px); }

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}
#preloader.hide { opacity: 0; pointer-events: none; }
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.preloader-bar {
  width: 200px; height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: preload 1.4s ease-in-out forwards;
}
@keyframes preload {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .navbar-nav .nav-link { padding: 14px 0 !important; border-bottom: 1px solid var(--border); }
  .navbar-nav .nav-link::after { display: none; }
  /* Force mega menus completely off on mobile regardless of .show */
  .mega-menu,
  .mega-menu.show {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  #heroSlider { height: 55vh; min-height: 320px; }
  .hero-product-card { display: none; }
  .section-pad { padding: 60px 0; }
  .stats-strip .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .process-steps { flex-direction: column; }
  .process-step::after { display: none; }
}

@media (max-width: 767px) {
  .top-bar { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 24px; }
  .footer-bottom { text-align: center; flex-direction: column; }
  .scroll-hint { display: none; }
}

/* ---------- DARK MODE OVERRIDES ---------- */
[data-theme="dark"] .form-control-custom {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-dark);
}
[data-theme="dark"] .spec-table th { background: var(--bg-light); color: var(--text-mid); }
[data-theme="dark"] .spec-table td { background: var(--bg-card); }
[data-theme="dark"] .navbar-toggler { border-color: var(--border); }
[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}
[data-theme="dark"] select.form-control-custom {
  background-color: var(--bg-card);
}
