/* ==========================================================================
   ITC TECHNOLOGY - Industrial Web Design System (Referencing CNC VINA)
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #0052cc;          /* CNC Industrial Blue */
  --primary-dark: #0747a6;     /* Deep Royal Blue */
  --primary-light: #deebff;    /* Ice Blue Accent */
  --secondary: #ff6b00;        /* Industrial Safety Orange */
  --secondary-hover: #e05e00;
  --dark: #0b1e36;             /* Heavy Industry Dark Navy */
  --dark-surface: #132742;     /* Card background for dark sections */
  --gray-900: #1a202c;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-300: #cbd5e0;
  --gray-200: #e2e8f0;
  --gray-100: #f7fafc;
  --light: #ffffff;
  --success: #38a169;
  --warning: #dd6b20;
  --danger: #e53e3e;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Rajdhani', 'Inter', sans-serif;

  /* Layout & Spacing */
  --container-max: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background-color: #fbfcfd;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOPBAR & HEADER
   ========================================================================== */

.topbar {
  background-color: var(--dark);
  color: var(--gray-300);
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.topbar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  color: var(--secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.lang-flag {
  font-size: 13px;
  line-height: 1;
}

/* Google Translate Silent Seamless Integration */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

/* Main Navigation Header */
.main-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
  transition: transform 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.brand-logo:hover .logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
  display: inline-block;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-text p {
  font-size: 10px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 360px;
}

.footer-about .logo-img {
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(0, 82, 204, 0.04);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--gray-700);
  font-weight: 500;
}

.dropdown-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 22px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-rfq {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-rfq:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.45);
}

.btn-rfq::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40px;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -60%; }
  20% { left: 140%; }
  100% { left: 140%; }
}

.btn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* ==========================================================================
   TICKER / FLASH NEWS BAR
   ========================================================================== */
.ticker-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
  font-size: 13.5px;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-scroll {
  display: inline-block;
  animation: ticker 25s linear infinite;
  color: var(--gray-700);
}

.ticker-scroll a {
  margin-right: 40px;
  color: var(--gray-800);
}

.ticker-scroll a:hover {
  color: var(--primary);
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HERO BANNER & SLIDER
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 30, 54, 0.95) 0%, rgba(11, 30, 54, 0.8) 50%, rgba(11, 30, 54, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero-subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(255, 107, 0, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-title span {
  color: #60a5fa;
}

.hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  bottom: 25px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   STATS COUNTER BAR
   ========================================================================== */
.stats-bar {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding: 28px 20px;
  border: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: var(--stats-cols, repeat(4, 1fr));
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 15px;
  border-right: 1px solid var(--gray-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-bg-light {
  background-color: #f8fafc;
}

.section-bg-dark {
  background-color: var(--dark);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.section-bg-dark .section-subtitle {
  color: var(--secondary);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-bg-dark .section-title {
  color: #ffffff;
}

.section-desc {
  color: var(--gray-600);
  font-size: 15px;
}

.section-bg-dark .section-desc {
  color: var(--gray-300);
}

.title-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto 0 auto;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   CATEGORY SHOWCASE (CNC VINA STYLE)
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.category-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #1e293b;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-badge-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 30, 54, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.category-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-card:hover .category-title {
  color: var(--primary);
}

.category-desc {
  font-size: 13.5px;
  color: var(--gray-600);
  margin-bottom: 16px;
  flex: 1;
}

.category-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-card:hover .category-link {
  gap: 10px;
}

/* ==========================================================================
   PRODUCT CARD COMPONENT
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

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

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-code-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.product-cat-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-excerpt {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  font-size: 12.5px;
}

.btn-detail {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-rfq-mini {
  background: var(--secondary);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.btn-rfq-mini:hover {
  background: var(--secondary-hover);
}

/* Filter tabs for products */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.25);
}

/* ==========================================================================
   CAPABILITIES & FACTORY HIGHLIGHT
   ========================================================================== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-item {
  background: var(--dark-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition);
}

.capability-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.capability-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 82, 204, 0.2);
  color: #60a5fa;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.capability-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.capability-desc {
  color: var(--gray-400);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ==========================================================================
   WORKFLOW STEPS
   ========================================================================== */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.workflow-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.workflow-step:hover .step-number {
  background: var(--primary);
  color: #fff;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--gray-600);
}

/* ==========================================================================
   PARTNERS / CLIENTS
   ========================================================================== */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
}

.partner-logo-item {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-weight: 800;
  font-size: 16px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.partner-logo-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   QUOTE / RFQ CALL TO ACTION
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #17365d 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-text h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-text p {
  color: var(--gray-300);
  font-size: 15px;
  margin-bottom: 24px;
}

.cta-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #e2e8f0;
}

.cta-check-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* RFQ Form */
.quote-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}

.quote-form-card h4 {
  color: var(--dark);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.quote-form-card p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--gray-800);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.btn-submit-rfq {
  width: 100%;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit-rfq:hover {
  background: var(--secondary-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #06111f;
  color: var(--gray-400);
  padding-top: 60px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

.footer-about p {
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--gray-400);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ==========================================================================
   FLOATING INTERACTION WIDGETS (CNC VINA STYLE)
   ========================================================================== */
.floating-widgets {
  position: fixed;
  right: 25px;
  bottom: 35px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-phone {
  background: #25d366;
  animation: pulse-ring 2s infinite;
}

.float-zalo {
  background: #0088cc;
}

.float-rfq {
  background: var(--secondary);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   MODAL STYLES (RFQ MODAL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 30, 54, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
}

.btn-close-modal:hover {
  color: var(--dark);
}

.modal-body {
  padding: 24px;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .cta-banner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .logo-text p {
    font-size: 9.5px;
    letter-spacing: 0.35px;
    max-width: 250px;
  }
  .header-actions .btn-rfq {
    padding: 8px 14px;
    font-size: 12.5px;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .header-inner {
    height: 60px;
    gap: 8px;
  }
  .brand-logo {
    gap: 8px;
    min-width: 0;
    max-width: calc(100% - 145px);
    flex: 1 1 auto;
  }
  .logo-img {
    height: 38px;
    max-width: 55px;
    flex-shrink: 0;
  }
  .logo-text {
    min-width: 0;
    overflow: hidden;
  }
  .logo-text h1 {
    font-size: 14.5px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-text p,
  .dyn-slogan {
    font-size: 8.5px !important;
    letter-spacing: 0.15px !important;
    line-height: 1.2 !important;
    font-weight: 600;
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 100%;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .header-actions .btn-rfq {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.25);
    white-space: nowrap;
  }
  .header-actions .btn-rfq svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }
  .btn-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .btn-mobile-toggle svg {
    width: 22px;
    height: 22px;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-menu.open {
    left: 0;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
  }
  .hero-title {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-inner {
    height: 54px;
    gap: 6px;
  }
  .brand-logo {
    max-width: calc(100% - 122px);
    gap: 6px;
  }
  .logo-img {
    height: 32px;
    max-width: 44px;
  }
  .logo-text h1 {
    font-size: 13px;
  }
  .logo-text p,
  .dyn-slogan {
    font-size: 7.8px !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    -webkit-line-clamp: 1;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn-rfq {
    padding: 5px 8px;
    font-size: 10.5px;
    gap: 3px;
  }
  .header-actions .btn-rfq svg {
    display: none;
  }
  .btn-mobile-toggle {
    width: 32px;
    height: 32px;
  }
  .btn-mobile-toggle svg {
    width: 20px;
    height: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .header-inner {
    height: 50px;
    gap: 4px;
  }
  .brand-logo {
    max-width: calc(100% - 100px);
    gap: 4px;
  }
  .logo-img {
    height: 26px;
    max-width: 36px;
  }
  .logo-text h1 {
    font-size: 11.5px;
  }
  .logo-text p,
  .dyn-slogan {
    display: none !important;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .btn-rfq {
    padding: 4px 6px;
    font-size: 9px;
  }
}

/* ============================================================
   MODERN TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-item.toast-hiding {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

.toast-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon-wrap {
  background: #ecfdf5;
  color: #10b981;
}

.toast-error .toast-icon-wrap {
  background: #fef2f2;
  color: #ef4444;
}

.toast-warning .toast-icon-wrap {
  background: #fffbeb;
  color: #f59e0b;
}

.toast-info .toast-icon-wrap {
  background: #eff6ff;
  color: #3b82f6;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.3;
}

.toast-message {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  margin-top: -2px;
}

.toast-close:hover {
  color: #334155;
  background: #f1f5f9;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3.5px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress { background: linear-gradient(90deg, #10b981, #059669); }
.toast-error .toast-progress { background: linear-gradient(90deg, #ef4444, #dc2626); }
.toast-warning .toast-progress { background: linear-gradient(90deg, #f59e0b, #d97706); }
.toast-info .toast-progress { background: linear-gradient(90deg, #3b82f6, #2563eb); }

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
