/* ==========================================================================
   WINMER AUTOMATION & ENGINEERING - FLOATING PILL NAVBAR STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Corporate Color Tokens */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-dark-corporate: #0F172A;
  --bg-dark-card: #1E293B;
  
  --primary-navy: #0F172A;
  --primary-navy-light: #1E293B;
  
  --accent-red: #DC2626;
  --accent-red-hover: #B91C1C;
  --accent-red-light: #FEF2F2;
  --accent-red-glow: rgba(220, 38, 38, 0.2);
  
  --border-color: #E2E8F0;
  --border-focus: #CBD5E1;
  --border-red: rgba(220, 38, 38, 0.3);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  
  --success: #16A34A;
  --warning: #D97706;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout & Spacing */
  --container-width: 1280px;
  --topbar-height: 42px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  
  /* Transitions */
  --tr-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TOPBAR UTILITY HEADER
   ========================================================================== */
.topbar {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}
.topbar-item:hover {
  color: #FFFFFF;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-badge {
  padding: 0.2rem 0.65rem;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #FECACA;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   FLOATING MODERN PILL NAVIGATION HEADER
   ========================================================================== */
.header-sticky-container {
  position: sticky;
  top: 0.5rem;
  z-index: 1000;
  padding: 0 1.5rem;
}

.header {
  max-width: var(--container-width);
  margin: 0 auto;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: var(--tr-normal);
  padding: 0 1.25rem;
}

.header.scrolled {
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-hover) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}

.logo-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-sub-title {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  background: var(--bg-surface-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--tr-fast);
}

.nav-link svg {
  stroke: var(--text-muted);
  transition: var(--tr-fast);
}

.nav-link:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--accent-red);
}
.nav-link:hover svg {
  stroke: var(--accent-red);
}

.nav-link.active {
  background: var(--accent-red);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.nav-link.active svg {
  stroke: #FFFFFF;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--accent-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--tr-fast);
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.btn-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: #FFFFFF;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1.5px solid var(--primary-navy);
  cursor: pointer;
  transition: var(--tr-fast);
}
.btn-outline:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* HERO SLIDER ENGINE */
.hero-slider-container {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.hero-slide.active .hero-title {
  animation: heroTextSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.active .hero-description {
  animation: heroTextSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-slide.active .hero-actions {
  animation: heroTextSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes heroTextSlide {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--tr-fast);
  outline: none;
}

.slider-arrow:hover {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
  transform: scale(1.1);
  box-shadow: 0 6px 18px var(--accent-red-glow);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: var(--tr-fast);
}

.slider-dots .dot.active {
  width: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  box-shadow: 0 2px 8px var(--accent-red-glow);
}

.slider-progress-bar {
  width: 220px;
  height: 4px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin: -0.5rem auto 2rem auto;
  overflow: hidden;
}

.slider-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-red);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--accent-red-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-red-light);
  border: 1px solid var(--border-red);
  color: var(--accent-red);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.text-accent-red {
  color: var(--accent-red);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  font-family: var(--font-mono);
}
.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-media-box {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-media-caption {
  padding: 1rem 1.25rem;
  background: var(--primary-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* CORPORATE TELEMETRY TICKER STRIP */
.telemetry-ticker-bar {
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  animation: tickerScroll 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #E2E8F0;
}

.ticker-label {
  color: #EF4444;
  font-weight: 700;
}

/* TRUST STRIP */
.trust-strip { background: #FFFFFF; border-bottom: 1px solid var(--border-color); padding: 2.25rem 0; }
.trust-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: 1rem; }
.trust-icon { width: 44px; height: 44px; background: var(--bg-surface-subtle); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent-red); }
.trust-text strong { display: block; font-size: 0.95rem; color: var(--primary-navy); }
.trust-text span { font-size: 0.825rem; color: var(--text-muted); }

/* SECTION BASE STYLES */
.section { padding: 5.5rem 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3.5rem auto; }
.section-title { font-size: 2.25rem; font-weight: 800; color: var(--primary-navy); letter-spacing: -0.02em; margin: 0.6rem 0; }
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

/* CAPABILITIES CARDS WITH IMAGE HEADERS */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: stretch; }
.card-service { background: #FFFFFF; border: 1px solid var(--border-color); border-top: 3px solid transparent; border-radius: var(--radius-lg); overflow: hidden; transition: var(--tr-normal); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.card-service:hover { transform: translateY(-5px); border-color: var(--border-color); border-top-color: var(--accent-red); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1); }
.service-img-wrap { width: 100%; height: 210px; overflow: hidden; position: relative; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr-normal); }
.card-service:hover .service-img-wrap img { transform: scale(1.04); }
.service-card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.service-header-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.service-icon-box { width: 48px; height: 48px; background: var(--accent-red-light); border: 1px solid var(--border-red); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent-red); flex-shrink: 0; }
.service-h3 { font-size: 1.25rem; font-weight: 800; color: var(--primary-navy); line-height: 1.3; }
.service-body-p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6; }
.service-bullets { list-style: none; border-top: 1px solid var(--bg-surface-subtle); padding-top: 1.25rem; }
.service-bullets li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 500; }
.service-bullets li svg { color: var(--accent-red); flex-shrink: 0; }

/* INDUSTRIES MATRIX */
.industries-section { background: var(--bg-surface-subtle); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.filter-nav { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.filter-btn { padding: 0.55rem 1.25rem; background: #FFFFFF; border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: var(--tr-fast); }
.filter-btn:hover, .filter-btn.active { background: var(--primary-navy); border-color: var(--primary-navy); color: #FFFFFF; }
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
.card-industry { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--tr-normal); cursor: pointer; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card-industry:hover { border-color: var(--accent-red); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-industry.featured-oem { grid-column: 1 / -1; background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%); border: 1.5px solid var(--accent-red); display: flex; flex-direction: row; align-items: center; gap: 2rem; padding: 2rem 2.5rem; }
.card-industry.featured-oem .industry-icon-box { margin-bottom: 0; width: 60px; height: 60px; background: var(--accent-red); color: #FFFFFF; }
.industry-icon-box { width: 48px; height: 48px; background: var(--accent-red-light); border: 1px solid var(--border-red); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent-red); margin-bottom: 1.25rem; transition: var(--tr-fast); flex-shrink: 0; }
.card-industry:hover .industry-icon-box { background: var(--accent-red); color: #FFFFFF; border-color: var(--accent-red); }
.industry-title { font-size: 1.15rem; font-weight: 800; color: var(--primary-navy); margin-bottom: 0.5rem; }
.industry-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }

/* PHOTO GALLERY */
.gallery-section { background: #FFFFFF; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.gallery-card { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--tr-normal); display: flex; flex-direction: column; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-red); }
.gallery-img-box { width: 100%; height: 230px; overflow: hidden; position: relative; }
.gallery-img-box img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr-normal); }
.gallery-card:hover .gallery-img-box img { transform: scale(1.05); }
.gallery-caption { padding: 1.25rem; flex-grow: 1; }
.gallery-title { font-size: 1.05rem; font-weight: 800; color: var(--primary-navy); margin-bottom: 0.35rem; }
.gallery-sub { font-size: 0.825rem; color: var(--text-muted); }

/* SYSTEM ESTIMATOR */
.config-card-box { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.75rem; box-shadow: var(--shadow-md); }
.config-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: stretch; }
.form-group-block { margin-bottom: 1.5rem; }
.form-lbl { display: block; font-size: 0.9rem; font-weight: 700; color: var(--primary-navy); margin-bottom: 0.6rem; }
.radio-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.tile-option { position: relative; }
.tile-option input { position: absolute; opacity: 0; pointer-events: none; }
.tile-content-box { padding: 0.85rem; background: var(--bg-surface-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: var(--tr-fast); display: flex; flex-direction: column; }
.tile-option input:checked + .tile-content-box { border-color: var(--accent-red); background: var(--accent-red-light); }
.tile-heading { font-size: 0.9rem; font-weight: 700; color: var(--primary-navy); }
.tile-sub { font-size: 0.775rem; color: var(--text-muted); }
.select-control, .input-control { width: 100%; height: 46px; padding: 0 1rem; background: var(--bg-surface-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--primary-navy); font-size: 0.9rem; font-family: var(--font-sans); outline: none; transition: var(--tr-fast); }
textarea.input-control { height: auto; padding: 0.85rem 1rem; }
.select-control:focus, .input-control:focus { border-color: var(--accent-red); background: #FFFFFF; }
.summary-panel { background: var(--primary-navy); color: #FFFFFF; border-radius: var(--radius-md); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.summary-title { font-size: 1.15rem; font-weight: 800; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 0.85rem; margin-bottom: 1.25rem; color: #FFFFFF; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.85rem; }
.summary-row span:first-child { color: rgba(255, 255, 255, 0.7); }
.summary-row span:last-child { font-weight: 700; color: #FFFFFF; }

/* SCADA SIMULATOR */
.scada-box { background: #FFFFFF; border: 1.5px solid var(--primary-navy); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.scada-topbar { background: var(--primary-navy); color: #FFFFFF; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.825rem; }
.status-badge { padding: 0.2rem 0.65rem; background: var(--accent-red); color: #FFFFFF; border-radius: var(--radius-full); font-weight: 700; }
.scada-body { padding: 2rem; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: stretch; }
.scada-gauges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.gauge-box { background: var(--bg-surface-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.gauge-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.gauge-val-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: var(--accent-red); }
.scada-controls { background: var(--bg-surface-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.btn-start { background: var(--success); color: #FFF; border: none; padding: 0.75rem; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.btn-stop { background: var(--accent-red); color: #FFF; border: none; padding: 0.75rem; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.terminal-log { background: #0F172A; color: #4ADE80; font-family: var(--font-mono); font-size: 0.75rem; height: 130px; overflow-y: auto; padding: 0.75rem; border-radius: var(--radius-sm); }

/* CONTACT & FOOTER */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: stretch; }
.contact-card-box { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.contact-item-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.contact-item-icon { width: 44px; height: 44px; background: var(--accent-red-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent-red); flex-shrink: 0; }
.footer { background: var(--primary-navy); color: rgba(255, 255, 255, 0.8); padding: 4rem 0 2rem 0; font-size: 0.875rem; }
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }

/* MODAL & TOAST */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--tr-normal); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card { background: #FFFFFF; border: 2px solid var(--primary-navy); border-radius: var(--radius-lg); max-width: 620px; width: 90%; padding: 2.25rem; position: relative; box-shadow: var(--shadow-lg); }
.toast-box { position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; background: #FFFFFF; border: 2px solid var(--success); border-radius: var(--radius-md); color: var(--primary-navy); box-shadow: var(--shadow-lg); z-index: 3000; display: flex; align-items: center; gap: 0.75rem; transform: translateY(100px); opacity: 0; transition: var(--tr-normal); }
.toast-box.show { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   MASTER RESPONSIVE DESIGN SYSTEM (DESKTOP, LAPTOP, TABLET, MOBILE)
   ========================================================================== */

/* Large Desktop screens (1440px and above) */
@media (min-width: 1440px) {
  :root {
    --container-width: 1340px;
  }
}

/* Standard Laptop & Tablet Landscape (1025px - 1280px) */
@media (max-width: 1280px) {
  .hero-title { font-size: 2.75rem; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* Tablet Portrait & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { font-size: 2.45rem; text-align: center; }
  .hero-description { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media-box img { height: 360px; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  
  .card-industry.featured-oem { grid-column: 1 / -1; flex-direction: column; text-align: center; gap: 1.25rem; }
  .card-industry.featured-oem .industry-icon-box { margin: 0 auto; }
  
  .config-grid { grid-template-columns: 1fr; gap: 2rem; }
  .scada-body { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Mobile & Small Tablet screens (up to 768px) */
@media (max-width: 768px) {
  .topbar { height: auto; padding: 0.5rem 0; }
  .topbar-wrapper { justify-content: center; }
  .topbar-info { display: none; }
  .topbar-badges { justify-content: center; width: 100%; flex-wrap: wrap; gap: 0.5rem; }
  
  .header-sticky-container { padding: 0 0.75rem; top: 0.35rem; }
  .header { height: 64px; padding: 0 1rem; }
  .nav-wrapper { height: 64px; }
  .logo-symbol { width: 36px; height: 36px; font-size: 1.15rem; }
  .logo-main-title { font-size: 1.1rem; }
  .logo-sub-title { font-size: 0.6rem; letter-spacing: 0.08em; }
  
  /* Mobile Menu Drawer */
  .nav-links {
    position: fixed;
    top: calc(var(--header-height) + 0.75rem);
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    display: none;
    gap: 0.5rem;
    z-index: 1005;
  }
  .nav-links.active {
    display: flex;
    animation: mobileMenuFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes mobileMenuFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  .nav-link { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: 0.95rem; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-surface-subtle); }
  
  /* Hero Section Mobile */
  .hero-section { padding: 3rem 0 3.5rem 0; }
  .hero-title { font-size: 2.05rem; line-height: 1.25; text-align: left; }
  .hero-description { font-size: 0.975rem; text-align: left; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; width: 100%; gap: 0.85rem; }
  .hero-actions .btn-cta, .hero-actions .btn-outline { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; font-size: 0.95rem; }
  
  .hero-media-box img { height: 280px; }
  .hero-stats-banner { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; padding-top: 1.5rem; }
  .stat-val { font-size: 1.75rem; }
  
  /* Trust Strip Mobile */
  .trust-strip { padding: 1.75rem 0; }
  .trust-flex { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .trust-item { flex-direction: column; text-align: center; gap: 0.5rem; }
  
  /* Section Headers Mobile */
  .section { padding: 3.75rem 0; }
  .section-header { margin-bottom: 2.25rem; text-align: left; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.95rem; }
  
  /* Grids Mobile */
  .services-grid, .industries-grid, .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-service, .card-industry, .gallery-card { width: 100%; }
  .service-card-content { padding: 1.5rem; }
  .service-h3 { font-size: 1.15rem; }
  
  /* Estimator Mobile */
  .config-card-box { padding: 1.5rem; }
  .radio-tile-grid { grid-template-columns: 1fr; }
  .summary-panel { padding: 1.5rem; }
  
  /* SCADA Simulator Mobile */
  .scada-body { padding: 1.25rem; }
  .scada-gauges-grid { grid-template-columns: 1fr; gap: 1rem; }
  .scada-pipeline-box { padding: 1rem; }
  
  /* Contact Form Mobile */
  .contact-card-box { padding: 1.5rem; }
  .contact-grid { gap: 1.75rem; }
  
  /* Modals Mobile */
  .modal-card, .gallery-modal-card { width: 95%; max-height: 90vh; overflow-y: auto; padding: 1.5rem; }
  .gallery-modal-info { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .gallery-modal-info .btn-cta { width: 100%; justify-content: center; }
  
  /* Slider Controls Mobile */
  .slider-arrow { width: 38px; height: 38px; }
  .slider-progress-bar { width: 160px; }
}

/* Extra Small Phones (under 480px) */
@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .trust-flex { grid-template-columns: 1fr; text-align: center; }
  .trust-item { align-items: center; }
  .logo-sub-title { display: none; } /* Hide tiny sub-text on 320px screens for clean fit */
  .back-to-top-btn { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }
}

/* ==========================================================================
   ADVANCED SCROLL REVEAL & INTERACTIVE ANIMATIONS
   ========================================================================== */

/* Scroll Reveal Base System */
.reveal-element {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-element.reveal-left {
  transform: translateX(-40px);
}

.reveal-element.reveal-right {
  transform: translateX(40px);
}

.reveal-element.reveal-scale {
  transform: scale(0.92);
}

.reveal-element.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* 3D Tilt Card & Mouse Spotlight Glow */
.card-service, .card-industry, .gallery-card, .contact-card-box, .config-card-box, .scada-box {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.card-service::after, .card-industry::after, .gallery-card::after, .contact-card-box::after, .config-card-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(220, 38, 38, 0.08), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.card-service:hover::after, .card-industry:hover::after, .gallery-card:hover::after, .contact-card-box:hover::after, .config-card-box:hover::after {
  opacity: 1;
}

/* Hero Badge & Active Indicator Pulses */
.topbar-badge, .status-badge, .pill-badge {
  position: relative;
}

.live-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulseDot 1.8s infinite;
}

.live-pulse-dot.success {
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseDotSuccess 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes pulseDotSuccess {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Button Light Sweep Animation */
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.btn-cta:hover::before {
  transform: rotate(30deg) translateX(100%);
}

/* SCADA Gauge & Pipeline Animations */
.gauge-svg-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 0.5rem auto;
}

.gauge-svg-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg-path {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 8;
}

.gauge-val-path {
  fill: none;
  stroke: var(--accent-red);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.gauge-center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.scada-pipeline-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.scada-pipe-svg {
  width: 100%;
  height: 80px;
  display: block;
}

.pipe-base-line {
  stroke: #E2E8F0;
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
}

.pipe-active-flow {
  stroke: var(--accent-red);
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 12, 12;
  animation: pipeFlowDash 1.2s linear infinite;
  transition: stroke 0.4s ease;
}

.pipe-active-flow.stopped {
  animation-play-state: paused;
  stroke: #94A3B8;
}

@keyframes pipeFlowDash {
  to {
    stroke-dashoffset: -48;
  }
}

.pump-impeller-icon {
  transform-origin: center;
  animation: spinImpeller 1.5s linear infinite;
  transition: animation-play-state 0.3s ease;
}

.pump-impeller-icon.stopped {
  animation-play-state: paused;
}

@keyframes spinImpeller {
  100% { transform: rotate(360deg); }
}

/* Gallery Lightbox Modal */
.gallery-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 92%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  position: relative;
}

.modal-overlay.active .gallery-modal-card {
  transform: scale(1);
  opacity: 1;
}

.gallery-modal-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.gallery-modal-info {
  padding: 1.5rem 2rem;
  background: var(--primary-navy);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.gallery-modal-sub {
  font-size: 0.875rem;
  color: #FECACA;
}

/* Floating Back To Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.25s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--accent-red);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
}

/* Estimator Row Flash Animation */
.summary-row-flash span:last-child {
  animation: flashText 0.6s ease;
}

@keyframes flashText {
  0% { color: #FCA5A5; transform: scale(1.08); }
  50% { color: #EF4444; }
  100% { color: #FFFFFF; transform: scale(1); }
}

