/* ALLA POWER - MAIN LANDING PAGE STYLESHEET */
:root {
  --bg-dark: #070a13;      /* Obsidian Black */
  --bg-card: #0f172a;      /* Dark Slate */
  --primary: #06b6d4;      /* Neon Cyan */
  --primary-glow: rgba(6, 182, 212, 0.4);
  --secondary: #3b82f6;    /* Electric Blue */
  --accent-orange: #f97316; /* Fire Safety Orange */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sarabun', 'Inter', 'Prompt', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Nav Link */
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

/* Buttons */
.btn-primary-sm {
  background-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary-sm:hover {
  background-color: #22d3ee;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.6);
  transform: translateY(-1px);
}

.btn-card-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  display: inline-block;
}
.btn-card-primary:hover {
  background-color: #22d3ee;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* Language switchers */
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.lang-btn:hover {
  color: var(--text-main);
}
.lang-btn.active {
  background-color: var(--primary);
  color: var(--bg-dark);
}

/* Canvas Background style */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Float floating line OA button */
.float-line-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background-color: #06c755; /* Official LINE Green */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}
.float-line-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.6);
}

/* Language routing displays for website */
[lang-content] { display: none; }
body[data-lang="th"] [lang-content="th"] { display: block; }
body[data-lang="en"] [lang-content="en"] { display: block; }
body[data-lang="zh"] [lang-content="zh"] { display: block; }

span[lang-content] { display: none; }
body[data-lang="th"] span[lang-content="th"] { display: inline; }
body[data-lang="en"] span[lang-content="en"] { display: inline; }
body[data-lang="zh"] span[lang-content="zh"] { display: inline; }

/* Grid / Flex override for dynamic routing */
body[data-lang="th"] .lang-grid { display: grid; }
body[data-lang="en"] .lang-grid { display: grid; }
body[data-lang="zh"] .lang-grid { display: grid; }

body[data-lang="th"] .lang-flex { display: flex; }
body[data-lang="en"] .lang-flex { display: flex; }
body[data-lang="zh"] .lang-flex { display: flex; }

/* --- PREMIUM PRODUCT SLIDER / CAROUSEL STYLES --- */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}
.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}
.slide-item {
  flex-shrink: 0;
  width: 100%;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .slide-item {
    grid-template-columns: 1.2fr 1fr;
    padding: 3.5rem 3rem;
    gap: 4rem;
  }
}

/* Slide Left Content */
.slide-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.slide-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  width: fit-content;
}
.slide-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: white;
  line-height: 1.3;
}
.slide-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.slide-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
}
.slide-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.slide-spec-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slide-spec-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

/* Slide Right Visual Display */
.slide-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  padding: 1.5rem;
  height: 250px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .slide-visual {
    height: 380px;
  }
}
.slide-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  border-radius: 0.5rem;
  transition: transform 0.5s ease;
}
.slide-visual:hover img {
  transform: scale(1.03) rotate(1deg);
}

/* Slider Controls */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.slider-nav-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}
.slider-nav-btn.prev {
  left: 1rem;
}
.slider-nav-btn.next {
  right: 1rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

/* Logo Animation & Glow styles */
.logo-glowing {
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6));
  animation: logoPulse 4s infinite alternate;
}
@keyframes logoPulse {
  0% { filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4)); }
  100% { filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8)); }
}

/* --- DYNAMIC SVG CHARTS STYLES --- */
#pump-curve-svg, #energy-chart-svg {
  background-color: rgba(7, 10, 19, 0.4);
  border-radius: 0.5rem;
  font-family: 'Outfit', 'Inter', sans-serif;
}
.chart-axis {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}
.chart-grid {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.chart-text {
  fill: #64748b;
  font-size: 8px;
  font-weight: 500;
}
.curve-head {
  stroke: var(--primary);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.4));
}
.curve-system {
  stroke: var(--secondary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 4 2;
}
.curve-point {
  fill: #ef4444;
  stroke: #ffffff;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px #ef4444);
}
.chart-bar-original {
  fill: url(#barOriginalGrad);
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.2));
}
.chart-bar-optimized {
  fill: url(#barOptimizedGrad);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

