/* ==========================================================================
   VietTech Enterprise SCADA & IoT System CSS
   Guaranteed styles for High-Tech Industrial Aesthetic
   ========================================================================== */

/* Universal Reset & Base Enhancements */
:root {
  --vt-primary: #028ca3;
  --vt-primary-hover: #027588;
  --vt-secondary: #00e5ff;
  --vt-dark-bg: #070e17;
  --vt-dark-card: #0c1a27;
  --vt-dark-navy: #091420;
  --vt-accent-glow: rgba(0, 229, 255, 0.25);
  --vt-border-glow: rgba(0, 229, 255, 0.2);
}

/* Background Utilities */
.bg-tech-dark { background-color: #070e17 !important; color: #f8fafc !important; }
.bg-tech-navy { background-color: #091420 !important; color: #f8fafc !important; }
.bg-tech-card { background-color: #0c1a27 !important; color: #f8fafc !important; }
.bg-tech-light { background-color: #f8fafc !important; color: #0f172a !important; }
.bg-tech-white { background-color: #ffffff !important; color: #0f172a !important; }

/* Text Utilities */
.text-tech-cyan { color: #00e5ff !important; }
.text-tech-teal { color: #2dd4bf !important; }
.text-tech-primary { color: #028ca3 !important; }
.text-tech-white { color: #ffffff !important; }
.text-tech-slate { color: #cbd5e1 !important; }
.text-tech-muted { color: #94a3b8 !important; }
.text-tech-dark { color: #0f172a !important; }
.text-tech-body { color: #334155 !important; }

/* Cyber Grid & Backgrounds */
.cyber-grid {
  background-color: #070e17 !important;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cyber-dots {
  background-image: radial-gradient(rgba(0, 229, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* High-tech Gradient Buttons */
.btn-primary-gradient {
  background: linear-gradient(135deg, #028ca3 0%, #00e5ff 100%) !important;
  color: #070e17 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 10px 25px -5px rgba(0, 229, 255, 0.35) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 16px 35px -5px rgba(0, 229, 255, 0.55) !important;
  filter: brightness(1.08) !important;
}

.btn-glass-secondary {
  background: rgba(12, 26, 39, 0.85) !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  color: #00e5ff !important;
  font-weight: 700 !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}
.btn-glass-secondary:hover {
  background: rgba(0, 229, 255, 0.15) !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25) !important;
}

/* High-Tech Form Controls */
.tech-input {
  background-color: #08121d !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.875rem 1rem !important;
  font-size: 0.875rem !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
}
.tech-input:focus {
  outline: none !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35) !important;
}
.tech-input::placeholder {
  color: #64748b !important;
}
.tech-label {
  display: block !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  margin-bottom: 0.375rem !important;
  letter-spacing: 0.02em !important;
}

/* Glow Pill & Badges */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(2, 140, 163, 0.2);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #028ca3;
  border: 1px solid #bae6fd;
}

/* Status Indicator Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #10b981;
  position: relative;
  display: inline-block;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background-color: #10b981;
  opacity: 0.6;
  animation: vt-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes vt-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* Sticky High-Tech Navbar */
.tech-navbar {
  background-color: rgba(7, 14, 23, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  transition: all 0.3s ease;
}
.tech-navbar.scrolled {
  background-color: rgba(5, 11, 18, 0.98) !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

/* Navigation Dropdown Menus */
.nav-dropdown {
  background-color: #0c1a27 !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 229, 255, 0.12) !important;
  border-radius: 0.875rem !important;
}

/* Clean Product & Solution Cards on Light Background */
.solution-card-light {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.solution-card-light:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(2, 140, 163, 0.22);
  border-color: #028ca3;
}
.solution-card-light h3 {
  color: #0f172a !important;
}
.solution-card-light p {
  color: #475569 !important;
}

/* Clean Product Cards */
.product-card-light {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.product-card-light:hover {
  transform: translateY(-5px);
  border-color: #028ca3;
  box-shadow: 0 20px 30px -10px rgba(2, 140, 163, 0.2);
}
.product-card-light h4 {
  color: #0f172a !important;
}
.product-card-light p {
  color: #475569 !important;
}

/* Product Showcase Image Viewport */
.product-viewport {
  background: radial-gradient(circle, #ffffff 50%, #f8fafc 100%) !important;
  height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.product-viewport img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card-light:hover .product-viewport img {
  transform: scale(1.08);
}

/* Metric Counter Box */
.stat-box {
  background: rgba(12, 26, 39, 0.85) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
}

/* Dark SCADA Screen Showcase Card */
.scada-screen-card {
  background: #0c1a27 !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}
.scada-screen-card:hover {
  border-color: #00e5ff !important;
  box-shadow: 0 20px 45px -10px rgba(0, 229, 255, 0.2);
}
.scada-screen-card h4 {
  color: #ffffff !important;
}
.scada-screen-card p {
  color: #cbd5e1 !important;
}

/* Architecture Tier Node */
.arch-node {
  background: #0c1a27 !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.arch-node:hover {
  border-color: #00e5ff !important;
  box-shadow: 0 15px 35px -8px rgba(0, 229, 255, 0.25);
  transform: translateY(-4px);
}
.arch-node h4 {
  color: #ffffff !important;
}
.arch-node p {
  color: #cbd5e1 !important;
}

/* Case Study Cards on Light */
.case-card-light {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.case-card-light:hover {
  transform: translateY(-5px);
  border-color: #028ca3;
  box-shadow: 0 20px 35px -8px rgba(2, 140, 163, 0.2);
}
.case-card-light h4 {
  color: #0f172a !important;
}
.case-card-light p {
  color: #475569 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070e17;
}
::-webkit-scrollbar-thumb {
  background: #1e3a52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #028ca3;
}

/* Header Line-Wrap Immunity & Fluid Nav */
.tech-navbar nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.tech-nav-link {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Modern Topology Blueprint Card */
.telemetry-topology-card {
  background: linear-gradient(145deg, rgba(12, 26, 39, 0.95), rgba(7, 14, 23, 0.98)) !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

/* SCADA Live Browser Mockup Framing */
.scada-browser-mockup {
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  background: #060d16 !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.3s ease !important;
}
.scada-browser-mockup:hover {
  border-color: rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 25px 50px -10px rgba(0, 229, 255, 0.2) !important;
  transform: translateY(-3px) !important;
}
.scada-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #0b1726;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}
.scada-traffic-dots {
  display: flex;
  gap: 6px;
}
.scada-traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.scada-traffic-red { background: #ef4444; }
.scada-traffic-yellow { background: #eab308; }
.scada-traffic-green { background: #22c55e; }
.scada-address-bar {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 12px;
  font-size: 11px;
  font-family: monospace;
  color: #38bdf8;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sensor Parameter Matrix */
.spec-table-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}
.spec-table-row:last-child {
  border-bottom: none;
}
.spec-key {
  color: #94a3b8;
  font-weight: 500;
}
.spec-val {
  color: #f1f5f9;
  font-weight: 700;
  text-align: right;
}

/* ==========================================================================
   VIETTECH 100% BULLETPROOF LAYOUT STYLES (NO TAILWIND DEPENDENCY)
   ========================================================================== */

/* Section anchor offset for fixed navbar */
section[id], div[id] {
  scroll-margin-top: 5.5rem;
}

/* Header Navigation Row with generous spacing */
.vt-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 2.25rem !important; /* 36px clean spacing between links */
}
.vt-nav-link {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 0.5rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.vt-nav-link:hover {
  color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.08) !important;
}

/* Language Segmented Pill [ 🇻🇳 VI | 🇬🇧 EN ] */
.vt-lang-pill {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(9, 20, 32, 0.95) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 9999px !important;
  padding: 3px !important;
  gap: 2px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}
.vt-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  user-select: none !important;
}
.vt-lang-btn:hover {
  color: #ffffff !important;
}
.vt-lang-btn.active {
  background: linear-gradient(135deg, #028ca3 0%, #00e5ff 100%) !important;
  color: #050b12 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.45) !important;
}
.vt-lang-sep {
  color: rgba(255, 255, 255, 0.2) !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  padding: 0 1px !important;
}

/* Hero Trust Badges Row */
.vt-hero-trust-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1.25rem !important;
  margin-top: 2.75rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid rgba(0, 229, 255, 0.18) !important;
}
.vt-hero-trust-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.6rem 1.15rem !important;
  border-radius: 9999px !important;
  background: rgba(12, 26, 39, 0.85) !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(8px) !important;
}

/* Hero Stats Grid (4 columns) */
.vt-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}
@media (max-width: 1024px) {
  .vt-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .vt-stats-grid { grid-template-columns: 1fr !important; }
}
.vt-stat-card {
  background: rgba(12, 26, 39, 0.85) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 1.25rem !important;
  padding: 1.75rem !important;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
}
.vt-stat-card:hover {
  border-color: rgba(0, 229, 255, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* Solutions 3 Cards Grid */
.vt-solutions-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}
@media (max-width: 1024px) {
  .vt-solutions-grid { grid-template-columns: 1fr !important; }
}

/* Hardware Products 4 Cards Grid */
.vt-hardware-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.75rem !important;
}
@media (max-width: 1200px) {
  .vt-hardware-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .vt-hardware-grid { grid-template-columns: 1fr !important; }
}

.vt-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  padding: 1.6rem !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.25s ease !important;
}
.vt-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 35px -5px rgba(2, 140, 163, 0.18) !important;
  border-color: #028ca3 !important;
}
.vt-card-img-box {
  background: #f8fafc !important;
  border-radius: 0.875rem !important;
  padding: 1rem !important;
  height: 195px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.25rem !important;
  border: 1px solid #f1f5f9 !important;
}
.vt-card-img-box img {
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
}
.vt-card:hover .vt-card-img-box img {
  transform: scale(1.05) !important;
}

.vt-card-divider {
  margin-top: auto !important;
  padding-top: 1rem !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

/* Sub-hardware items 3 columns grid */
.vt-subhardware-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}
@media (max-width: 900px) {
  .vt-subhardware-grid { grid-template-columns: 1fr !important; }
}

/* SCADA Showcase Browser Mockup */
.vt-scada-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}
@media (max-width: 1024px) {
  .vt-scada-grid-2 { grid-template-columns: 1fr !important; }
}

/* Case Studies 3 Columns Grid */
.vt-cases-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}
@media (max-width: 1024px) {
  .vt-cases-grid { grid-template-columns: 1fr !important; }
}

/* Consultation Section (Left details, Right rounded box) */
.vt-consult-layout {
  display: grid !important;
  grid-template-columns: 5fr 7fr !important;
  gap: 3rem !important;
  align-items: center !important;
}
@media (max-width: 1024px) {
  .vt-consult-layout { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}

.vt-consult-box {
  background: linear-gradient(145deg, #0c1a27 0%, #070e17 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  border-radius: 1.75rem !important; /* 28px rounded corners */
  padding: 2.75rem !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
}
@media (max-width: 640px) {
  .vt-consult-box { padding: 1.5rem !important; border-radius: 1.25rem !important; }
}

/* Footer 4 Columns Horizontal Row */
.vt-footer-row {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr !important;
  gap: 3rem !important;
  margin-bottom: 3rem !important;
  padding-bottom: 3rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
@media (max-width: 1024px) {
  .vt-footer-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}
@media (max-width: 640px) {
  .vt-footer-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

.vt-footer-bottom {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.75rem !important;
  color: #64748b !important;
  gap: 1rem !important;
}
@media (max-width: 640px) {
  .vt-footer-bottom { flex-direction: column !important; text-align: center !important; }
}

/* Typography line balance */
.vt-headline-balance {
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
