:root {
  --bg-color: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --surface-color: rgba(255, 255, 255, 0.8);
  --surface-border: rgba(0, 0, 0, 0.1);
  --surface-light: #ffffff;
  --surface-dark: #64748b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b; /* equivalent text-light for light mode */
  --nav-bg: rgba(248, 250, 252, 0.85);
  --accent-color: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.2);
  --card-spotlight: rgba(0, 0, 0, 0.05);
  --card-gradient-bottom: rgba(255, 255, 255, 0.9);
  --card-gradient-hover: rgba(255, 255, 255, 0.4);
  --card-text-title: var(--text-primary);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg-color: #0b0f19;
  --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #1a2333 100%);
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.1);
  --surface-light: #151822;
  --surface-dark: #0f111a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-light: #cbd5e1;
  --nav-bg: rgba(11, 15, 25, 0.85);
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --card-spotlight: rgba(255, 255, 255, 0.08);
  --card-gradient-bottom: rgba(11, 15, 25, 0.8);
  --card-gradient-hover: rgba(11, 15, 25, 0.4);
  --card-text-title: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  text-decoration: underline;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition-fast);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--accent-color);
}
.lang-switch {
  padding-left: 2rem;
  border-left: 1px solid var(--surface-border);
}

/* HERO SECTION */
.hero {
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  filter: blur(60px);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.25rem;
  color: #cbd5e1; /* explicitly lock to light grey since bg is always dark */
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn.primary {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
}
.btn.primary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

/* CONTAINER & SECTIONS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* AMBIENT AURORA BACKGROUND */
.ambient-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent-glow);
  top: -200px; left: -200px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: rgba(147, 51, 234, 0.3); /* Purple */
  bottom: -100px; right: 10vw;
  animation-delay: -5s;
  animation-duration: 25s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: rgba(16, 185, 129, 0.2); /* Emerald */
  top: 40%; left: 30%;
  animation-delay: -10s;
  animation-duration: 30s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-20px, -30px) scale(0.9); }
}

/* CATEGORY GRID (HOMEPAGE) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}
.category-card {
  position: relative;
  min-height: 460px; /* Taller card to give the product more breathing room */
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
}
.card-bg {
  flex: 1;
  min-height: 280px; /* Ensure the image area is tall enough */
  background-size: contain; /* Or 110% to slightly enlarge */
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform var(--transition-slow);
  opacity: 1; /* Removed opacity reduction */
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
  margin: 1rem 1rem 0; /* Minimized margin so image fills container */
  animation: floatProduct 6s ease-in-out infinite;
  z-index: 1;
  position: relative;
}
.category-card:hover .card-bg {
  animation: floatProductHover 3.5s ease-in-out infinite;
  filter: drop-shadow(0 25px 35px rgba(56, 189, 248, 0.5));
  opacity: 1;
}
.card-content {
  flex-shrink: 0;
  padding: 1.5rem 2rem 2rem;
  background: linear-gradient(to bottom, transparent 0%, var(--card-gradient-bottom) 100%);
  transition: background var(--transition-fast);
  z-index: 2;
}
.category-card:hover .card-content {
  background: linear-gradient(to bottom, transparent 0%, var(--card-gradient-hover) 100%);
}
.card-content h3 {
  font-family: var(--font-display);
  color: var(--card-text-title);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.view-btn {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: all var(--transition-fast);
  display: block;
}
.category-card:hover .view-btn {
  opacity: 1;
}

/* SINGLE CATEGORY PAGE */
.category-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at bottom, rgba(56, 189, 248, 0.15) 0%, transparent 50%);
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.category-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.category-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* PRODUCT CARDS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 6rem;
}
.product-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.product-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease-in-out;
  pointer-events: none;
}
.product-item:hover::before {
  left: 100%;
}
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px var(--accent-glow);
  border-color: rgba(56, 189, 248, 0.5);
}
.product-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateZ(30px); /* 3D Effect for Vanilla Tilt */
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.lightbox-link {
  display: contents;
}
.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: all var(--transition-slow);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
  cursor: zoom-in;
  animation: floatProduct 6s ease-in-out infinite;
}
.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.product-item:hover .product-image img {
  animation: floatProductHover 3.5s ease-in-out infinite;
  filter: drop-shadow(0 25px 35px rgba(56, 189, 248, 0.5));
}
.product-info {
  transform: translateZ(20px);
}
.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-id {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: monospace;
}
.product-id span {
  color: var(--accent-color);
}

/* MARKDOWN CONTENT styling */
.page-content-markdown {
  max-width: 900px;
  margin: 0 auto 4rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}
.page-content-markdown img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.page-content-markdown p {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-content-markdown h2, .page-content-markdown h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 3rem 0 1.5rem;
}
.page-content-markdown h3 a {
  color: var(--accent-color);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.05);
  transition: all var(--transition-fast);
}
.page-content-markdown h3 a:hover {
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* Premium Download Center Grid for Lists (Only scoped to Instruction Section) */
.page-content-markdown.section-instruction ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.page-content-markdown.section-instruction li {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
  margin-bottom: 0;
}
.page-content-markdown.section-instruction li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
  border-color: rgba(56, 189, 248, 0.5);
}
.page-content-markdown.section-instruction li a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  display: block;
  width: 100%;
}
.page-content-markdown.section-instruction li a:hover {
  color: var(--accent-color);
}

/* Default standard list styles for warranty texts etc. */
.page-content-markdown ul {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.page-content-markdown li {
  margin-bottom: 0.5rem;
}
.page-content-markdown p {
  margin-bottom: 1.5rem;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 4rem 0;
  text-align: center;
  color: var(--text-secondary);
}
.icp {
  margin-top: 1rem;
  font-size: 0.85rem;
}
.icp a {
  color: var(--text-secondary);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
figure img {
  border-radius: 12px;
  max-width: 100%;
}

/* About Page Styles */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}
.about-hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
}
@media (min-width: 900px) {
  .about-hero {
    flex-direction: row;
    align-items: center;
  }
}
.hero-image-wrapper {
  flex: 1;
  min-width: 0; /* Crucial: Prevents Flexbox blowout */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.company-profile {
  flex: 1.2;
  min-width: 0; /* Ensures text wraps rather than expands */
}
.company-profile h2 {
  color: var(--accent-color);
  margin-top: 0;
  font-size: 2.2rem;
}
.company-profile p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.mt-4 { margin-top: 4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.contact-card {
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}
.lang-btn {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  transition: all var(--transition-fast);
}
.lang-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--surface-color);
}
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--accent-color);
  background: var(--surface-color);
}
/* Display correct icon based on active theme */
:root[data-theme="light"] .theme-toggle-btn .icon-light { display: none; }
:root[data-theme="light"] .theme-toggle-btn .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle-btn .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle-btn .icon-light { display: block; }
.contact-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.contact-card h4 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
}
.contact-card p, .contact-card a {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
  text-decoration: none;
}
.contact-card a:hover {
  color: var(--accent-color);
}
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Taxonomy Data Chips Grid */
.terms-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}
.term-chip {
  display: flex;
  align-items: center;
  background: var(--surface-light);
  border: 1px solid var(--surface-border);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--card-spotlight);
}
.term-chip:hover {
  background: var(--surface-dark);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
  color: var(--text-primary);
}
.term-icon {
  margin-right: 0.6rem;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}
.term-icon svg {
  width: 16px;
  height: 16px;
}
.term-count {
  margin-left: 1rem;
  background: var(--surface-dark);
  color: var(--text-primary);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--surface-border);
}

/* B2B Inquiry Cart System */
.add-inquiry-btn {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: bold;
  transition: all var(--transition-fast);
  width: 100%;
}
.add-inquiry-btn:hover {
  background: var(--accent-glow);
}
.add-inquiry-btn.added {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.floating-inquiry {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--surface-light);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  transform: scale(0); /* Hidden when cart empty */
}
.floating-inquiry.active {
  transform: scale(1);
}
.floating-inquiry:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px var(--accent-glow);
  transform: scale(1.1);
}
.inquiry-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* Spotlight.js Gallery Enhancements - Dark Studio Lighting */
#spotlight {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, rgba(10, 12, 16, 0.98) 70%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#spotlight .spl-image {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  animation: floatProduct 6s ease-in-out infinite;
}
@keyframes floatProduct {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1); }
  100% { transform: translateY(0px) scale(1); }
}
@keyframes floatProductHover {
  0% { transform: translateY(-5px) scale(1.1); }
  50% { transform: translateY(-18px) scale(1.1); }
  100% { transform: translateY(-5px) scale(1.1); }
}
