/* ============================================================
   NGỌC LONG - DESIGN SYSTEM & STYLES
   ============================================================
   Phong cách: Dark Industrial Premium
   Sửa biến CSS bên dưới để thay đổi màu sắc toàn bộ website
   ============================================================ */

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

/* ========== CSS VARIABLES ========== */
:root {
  /* --- Màu chính (sửa ở đây để đổi theme) --- */
  --color-bg-primary: #0a1628;
  --color-bg-secondary: #0f1f3a;
  --color-bg-tertiary: #142440;
  --color-bg-card: rgba(15, 31, 58, 0.7);
  --color-bg-card-hover: rgba(20, 36, 64, 0.9);
  --color-bg-glass: rgba(255, 255, 255, 0.04);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.08);

  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.3);
  --color-accent-light: #60a5fa;
  --color-accent-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);

  --color-text-primary: #e8edf5;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-accent: #60a5fa;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(59, 130, 246, 0.3);

  --color-success: #22c55e;
  --color-warning: #f59e0b;

  /* --- Typography --- */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* --- Border Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--color-accent-glow);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --container-max: 1200px;
  --header-height: 72px;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* ========== UTILITY CLASSES ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--color-accent-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 22, 40, 0.85);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.logo-text .brand {
  font-size: var(--font-size-lg);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .tagline {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent-gradient);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px var(--color-accent-glow);
}

.nav-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--color-accent-glow);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.95) 0%,
    rgba(10, 22, 40, 0.8) 40%,
    rgba(10, 22, 40, 0.6) 100%
  );
}

/* Decorative elements */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
}

.hero-decoration-1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -200px;
  right: -200px;
}

.hero-decoration-2 {
  width: 300px;
  height: 300px;
  background: #1d4ed8;
  bottom: -100px;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-text {
  animation: slideInLeft 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-accent-light);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--font-size-6xl));
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-accent-light);
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.hero-image {
  position: relative;
  animation: slideInRight 0.8s ease forwards;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: 0;
  transition: transform var(--transition-slow), opacity 1s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

.hero-image-badge {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.hero-image-badge p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.hero-image-badge strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px var(--color-accent-glow);
}

.btn-secondary {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--font-size-lg);
}

.btn-icon {
  font-size: var(--font-size-xl);
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
  background: var(--color-bg-secondary);
  position: relative;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  background: var(--color-bg-card-hover);
}

.product-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-xl);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-overlay-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transform: translateY(10px);
  transition: transform var(--transition-base);
}

.product-card:hover .product-card-overlay-btn {
  transform: translateY(0);
}

.product-card-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-accent-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.product-card-body {
  padding: var(--space-lg);
}

.product-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.product-card:hover .product-card-link {
  gap: var(--space-sm);
}

/* ========== ABOUT / WHY CHOOSE US ========== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-content h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.about-content h2 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.about-content p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xl);
  transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
  background: var(--color-accent-gradient);
  border-color: transparent;
  transform: scale(1.1);
}

.feature-info h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.feature-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ========== WHY CHOOSE US ========== */
.why-section {
  background: var(--color-bg-secondary);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.why-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  background: var(--color-bg-glass-hover);
  box-shadow: var(--shadow-glow);
}

.why-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  background: var(--color-accent-gradient);
  border-radius: var(--radius-xl);
  font-size: 32px;
  box-shadow: 0 4px 20px var(--color-accent-glow);
  transition: transform var(--transition-spring);
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(5deg);
}

.why-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.why-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-info h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.2;
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xl);
}

.contact-item-content h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact-item-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.contact-item-content a {
  color: var(--color-accent-light);
  font-weight: 600;
}

.contact-item-content a:hover {
  color: var(--color-accent);
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 100%;
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.8) contrast(1.1) saturate(0.8);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links a:hover {
  color: var(--color-accent-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.footer-contact-item span:first-child {
  min-width: 20px;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========== GALLERY TRUST SECTION ========== */
.gallery-trust-section {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.gallery-trust-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.trust-icon {
  font-size: var(--font-size-xl);
  min-width: 28px;
  text-align: center;
  line-height: 1.6;
}

.trust-item strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.trust-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== FLOATING CONTACT BUTTONS ========== */
.floating-contacts {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.15);
}

.floating-btn-phone {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  animation: pulse 2s ease infinite;
}

.floating-btn-zalo {
  background: linear-gradient(135deg, #0068ff, #0052cc);
}

.floating-btn-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.floating-btn:hover .floating-btn-tooltip {
  opacity: 1;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
  padding-top: calc(var(--header-height) + var(--space-2xl));
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent-light);
}

.breadcrumb .separator {
  color: var(--color-text-muted);
}

.breadcrumb .current {
  color: var(--color-accent-light);
  font-weight: 600;
}

/* Product detail layout */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
}

.product-detail-grid > * {
  min-width: 0;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  background: var(--color-bg-secondary);
}

.gallery-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.gallery-thumb {
  flex: 1 1 calc(20% - var(--space-sm)); /* Show ~5 items per row */
  min-width: 60px;
  max-width: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  aspect-ratio: 1;
}

.gallery-thumb.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.gallery-thumb:hover {
  border-color: var(--color-accent-light);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.product-info-category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-glass);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent-light);
  width: fit-content;
}

.product-info h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.2;
}

.product-info-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.product-features {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.product-features h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-features ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.product-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  min-width: 20px;
}

/* Contact CTA */
.product-contact-cta {
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
}

.product-contact-cta h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.product-contact-cta p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.product-contact-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-call {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-zalo {
  background: linear-gradient(135deg, #0068ff, #0052cc);
  color: #fff;
}

.btn-zalo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 104, 255, 0.3);
}

/* Product video */
.product-video-section {
  margin-top: var(--space-3xl);
}

.product-video-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-video-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}

.product-video-wrapper video {
  width: 100%;
  max-height: 500px;
  display: block;
}

/* Related products */
.related-products {
  margin-top: var(--space-4xl);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
  border-top: 1px solid var(--color-border);
}

.related-products h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-xl);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: #fff;
  font-size: var(--font-size-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: #fff;
  font-size: var(--font-size-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 998;
  backdrop-filter: blur(10px);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-gradient);
  border-color: transparent;
  transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-description {
    margin: 0 auto var(--space-2xl);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrapper img {
    height: 350px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-4xl: 4rem;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .nav-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a1628;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    gap: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all var(--transition-base);
    z-index: -1;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
  }

  .nav-link {
    font-size: var(--font-size-lg);
    padding: var(--space-sm) var(--space-xl);
  }

  .menu-toggle {
    display: flex;
    z-index: 1001; /* Ensure toggle is above the menu */
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    height: auto;
    min-height: 100vh;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
    line-height: 1.35;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    padding-bottom: 80px; /* Add space for floating contacts */
  }

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

  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main img {
    height: 300px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }

  .product-info h1 {
    font-size: var(--font-size-3xl);
  }

  .product-contact-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .product-contact-buttons .btn {
    width: 100%;
  }

  /* Make sure hero actions don't overlap with floating buttons */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
  }

  .floating-contacts {
    bottom: 16px;
    right: 16px;
    gap: 12px;
    z-index: 99;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .floating-btn-tooltip {
    display: none;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
    line-height: 1.35;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .product-card-image {
    height: 220px;
  }

  .hero-image-wrapper img {
    height: 280px;
  }
}
