:root {
  --primary: #047857; /* Deep emerald green */
  --primary-light: #10b981;
  --primary-dark: #064e3b;
  --accent: #f59e0b; /* Amber for CTA buttons */
  --accent-hover: #d97706;
  --text-dark: #1f2937;
  --text-light: #f3f4f6;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-white);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.header.scrolled .logo {
  color: var(--primary-dark);
}

.logo span {
  color: var(--accent);
}

.logo img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.header-cta {
  font-weight: 600;
  color: var(--bg-white);
  transition: color 0.3s ease;
}

.header.scrolled .header-cta {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  background-color: #000;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/factory_interior_1785689816894.png');
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark overlay only on the left for text readability, clear on the right */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  color: var(--bg-white);
}

.hero-content {
  max-width: 650px;
  animation: slideUp 1s ease forwards;
}

.hero-content h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-white);
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
  margin-top: -3rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  font-size: 2rem;
  color: var(--primary);
}

.trust-text h4 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.trust-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Products Section */
.products {
  background: var(--bg-light);
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-nav:hover {
  background: var(--primary);
  color: var(--bg-white);
}

.slider-prev {
  left: -22px;
}

.slider-next {
  right: -22px;
}

.product-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  margin-top: 3rem;
  padding-bottom: 2rem;
  scrollbar-width: none;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 calc(27% - 1rem); /* Show 3 cards and a larger peek of the 4th */
  scroll-snap-align: start;
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 200px;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}

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

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-specs {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-specs li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-specs li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* Factory Section */
.factory {
  padding: 6rem 0;
  background: #fff;
  position: relative;
}

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

.factory-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.factory-features {
  list-style: none;
}

.factory-features li {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* CTA & Form Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg-white);
  position: relative;
  padding: 6rem 0;
}

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

.cta-content h2 {
  color: var(--bg-white);
}

.cta-form {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  color: var(--text-dark);
}

.cta-form h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 3rem 0;
  text-align: center;
}

.footer h4 {
  color: #fff;
  margin-bottom: 1rem;
}

/* Sticky Widgets */
.zalo-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #0068ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 104, 255, 0.4);
  z-index: 9999;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.call-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
  z-index: 9999;
  text-decoration: none;
  animation: pulse 2s infinite 1s;
}

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

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 104, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

.call-widget {
  animation-name: pulseCall;
}
@keyframes pulseCall {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .product-card { flex: 0 0 calc(45% - 1rem); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .trust-bar { margin-top: 1rem; border-radius: 0; }
  .factory-grid, .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { text-align: center; }
  .hero { align-items: center; justify-content: center; padding-top: 0; }
  .header-cta { display: none; }
  .product-card { flex: 0 0 calc(85% - 1rem); }
}
