/* ==========================================
   DESIGN SYSTEM & MODERN CORE STYLING
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Emerald Tech / Eco Premium */
  --primary-hue: 152;
  --primary-sat: 60%;
  --primary-light: 45%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) - 8%));
  --primary-glow: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.35);

  --accent-hue: 38;
  --accent: hsl(var(--accent-hue), 90%, 55%); /* Warm Gold */
  
  /* Theme-specific variables (Default: Dark Mode) */
  --bg: hsl(220, 28%, 7%);
  --bg-gradient: radial-gradient(circle at 50% 0%, hsl(220, 24%, 12%) 0%, hsl(220, 28%, 7%) 80%);
  --surface: rgba(23, 30, 43, 0.65);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-main: hsl(210, 20%, 95%);
  --text-muted: hsl(215, 15%, 70%);
  --text-inverse: hsl(220, 28%, 7%);
  --shadow: rgba(0, 0, 0, 0.5);
  --glass-blur: 16px;
  --card-hover-bg: rgba(30, 41, 59, 0.8);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg: hsl(210, 20%, 96%);
  --bg-gradient: linear-gradient(135deg, hsl(210, 20%, 96%) 0%, hsl(210, 20%, 90%) 100%);
  --surface: rgba(255, 255, 255, 0.75);
  --surface-border: rgba(0, 0, 0, 0.08);
  --text-main: hsl(220, 25%, 15%);
  --text-muted: hsl(215, 15%, 45%);
  --text-inverse: hsl(210, 20%, 96%);
  --shadow: rgba(15, 23, 42, 0.08);
  --card-hover-bg: rgba(255, 255, 255, 0.95);
}

/* Global Reset & Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* ==========================================
   REUSABLE UTILITIES & LAYOUT SHAPES
   ========================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 32px 0 var(--shadow);
  border-radius: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  transition: background 0.3s ease, height 0.3s ease;
}

.navbar.scrolled {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--surface-border);
  height: 70px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 46px;
  display: block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.nav-logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.footer-logo-img {
  height: 38px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

@media (min-width: 1300px) {
  .nav-menu {
    gap: 1.6rem;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 1300px) {
  .nav-link {
    font-size: 0.95rem;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* Language Toggle Custom */
.lang-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  width: 44px;
}

/* Hamburger mobile menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

/* ==========================================
   HERO BANNER SECTION
   ========================================== */

.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-slow 12s infinite alternate ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-media-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-media-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.hero-media-wrapper:hover img {
  transform: scale(1.03);
}

/* ==========================================
   ABOUT & SMART FACTORY
   ========================================== */

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.factory-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.factory-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.factory-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.factory-media img {
  width: 100%;
  display: block;
}

/* ==========================================
   PRODUCT CATEGORIES GALLERY (GRID)
   ========================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover-bg);
  border-color: rgba(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.product-image-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: hsl(220, 20%, 15%);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--surface-border);
  padding-top: 1rem;
}

.spec-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   PRICING CALCULATOR & TABLE
   ========================================== */

.price-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .price-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* Calculator Card */
.calculator-card {
  padding: 2.5rem;
}

.calculator-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-select, .form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
}

.calc-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.calc-total {
  font-size: 1.6rem;
  color: var(--primary);
}

/* Pricing Table Panel */
.table-panel {
  padding: 2rem;
  overflow-x: auto;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.pricing-table th, .pricing-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--surface-border);
}

.pricing-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.pricing-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.highlight-row {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================
   MEDIA / VIDEO GALLERY CENTER
   ========================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.media-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.media-card-portrait {
  aspect-ratio: 9/16;
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-thumb {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  transition: background 0.3s ease;
}

.media-card:hover .media-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-left: 3px; /* visual center for triangle */
}

.media-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.media-title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

.media-duration {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  display: block;
}

/* ==========================================
   INQUIRY / CONTACT FORM
   ========================================== */

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .inquiry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-glow);
  border: 1px solid rgba(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.contact-text p, .contact-text a {
  font-size: 1.05rem;
  color: var(--text-main);
  text-decoration: none;
}

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

.inquiry-form {
  padding: 2.5rem;
}

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

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ==========================================
   VIDEO PLAYER MODAL
   ========================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out; /* Click anywhere on backdrop to close */
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  cursor: default; /* Keep standard cursor over video */
}

.modal-content video {
  width: 100%;
  display: block;
}

.video-frame-header {
  background: hsl(220, 24%, 12%);
  border-bottom: 1px solid var(--surface-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
}

.video-frame-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close {
  background: #ef4444; /* macOS close red */
}

.dot-minimize {
  background: #f59e0b; /* macOS minimize yellow */
}

.dot-maximize {
  background: #10b981; /* macOS maximize green */
}

.video-frame-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2010;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: hsl(220, 28%, 5%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--primary) 50%, transparent) 1;
  padding: 80px 0 40px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
    gap: 4rem;
  }
}

.footer-brand p.footer-desc {
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1rem;
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.footer-links h4, .footer-contact h4 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-menu a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-location {
  margin-bottom: 20px;
}

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

.location-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.na-badge {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.factory-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.facility-badge {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.contact-location p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.contact-location p strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-location p a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-location p a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

@media (min-width: 576px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p.tagline {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */

@keyframes float-slow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Language Visibility Toggles */
[data-lang="zh"] .lang-en {
  display: none !important;
}
[data-lang="en"] .lang-zh {
  display: none !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .factory-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1150px) {
  .navbar {
    height: 70px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .menu-toggle {
    display: flex;
  }
}

/* ==========================================
   SUBPAGE & INTERACTIVE COMPONENTS STYLING
   ========================================== */

.page-header {
  padding: 140px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.5;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Tabs System */
.tabs-container {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: rgba(255,255,255,0.02);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

/* Timeline Components */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: var(--surface-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 70px;
}

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

.timeline-badge {
  position: absolute;
  left: 12px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 1;
}

.timeline-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.timeline-content h4 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
}

/* Comparison Matrix & Product Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: space-between;
  align-items: center;
}

.filter-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  min-width: 280px;
}

.search-input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrapper .form-input {
  padding-left: 45px;
}

.product-compare-section {
  margin-top: 4rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 4rem;
}

.compare-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.compare-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.compare-checkbox-label:hover {
  border-color: var(--primary);
}

.compare-checkbox-label input {
  accent-color: var(--primary);
}

.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  text-align: left;
}

.comparison-matrix-table th, .comparison-matrix-table td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--surface-border);
}

.comparison-matrix-table th {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background: rgba(0,0,0,0.1);
  font-weight: 600;
}

.comparison-matrix-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
}

/* FAQ Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  user-select: none;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: rgba(255,255,255,0.02);
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Resource Card downloads */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.resource-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.resource-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--surface-border);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.resource-meta .download-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.resource-meta .download-link:hover {
  color: var(--primary-hover);
}

/* Customizable Spec Details */
.spec-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.spec-category-card {
  padding: 1.8rem;
}

.spec-category-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 0.5rem;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-list li i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* Simple Interactive Map Container */
.map-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1.8/1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-svg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%),
              linear-gradient(225deg, rgba(255,255,255,0.02) 25%, transparent 25%),
              linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
              linear-gradient(315deg, rgba(255,255,255,0.02) 25%, transparent 25%);
  background-size: 40px 40px;
  opacity: 0.15;
}

.map-points-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
}

.map-point::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-out;
  pointer-events: none;
}

.map-point-na { top: 35%; left: 22%; }
.map-point-hq { top: 44%; left: 75%; }
.map-point-factory { top: 48%; left: 72%; }
.map-point-europe { top: 38%; left: 48%; }
.map-point-sa { top: 72%; left: 32%; }

.map-label {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.9);
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  z-index: 10;
}

.map-point:hover .map-label {
  opacity: 1;
  transform: translate(-50%, -120%) scale(1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Grid layout updates */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .two-col-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================
   ADVANCED NAVIGATION & SEARCH OVERLAY STYLES
   ========================================== */

/* Navbar scrolled shadow and strong blur */
.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Quote button highlight */
.nav-quote-btn {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px var(--primary-glow) !important;
}

.nav-quote-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 15px var(--primary-glow) !important;
}

/* Navigation Dropdown */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  list-style: none;
  padding: 10px 0;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  padding-left: 24px;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

/* Language Dropdown Selector */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateY(15px);
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  list-style: none;
  padding: 8px 0;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.lang-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-dropdown-menu a:hover, .lang-dropdown-menu a.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
}

.lang-dropdown-wrapper:hover .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

/* Search Overlay Modal */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-overlay-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search-overlay-close:hover {
  transform: scale(1.1);
  color: var(--primary);
}

.search-overlay-content {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  text-align: center;
}

.search-overlay-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--surface-border);
  color: #fff;
  font-size: 1.8rem;
  font-family: 'Outfit', sans-serif;
  padding: 10px 0;
  outline: none;
  text-align: center;
  transition: border-color 0.3s ease;
}

.search-overlay-input:focus {
  border-color: var(--primary);
}

.search-results-container {
  margin-top: 2rem;
  max-height: 350px;
  overflow-y: auto;
  text-align: left;
}

.search-result-item {
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.search-result-item h5 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.search-result-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive Overrides for Mobile Actions */
.mobile-only-actions {
  display: none !important;
}

@media (max-width: 1150px) {
  .nav-actions .lang-dropdown-wrapper,
  .nav-actions #theme-toggle,
  .nav-actions #nav-search-btn {
    display: none !important;
  }
}

@media (max-width: 1150px) {
  .mobile-only-actions {
    display: flex !important;
  }
}


