/* ==========================================================================
   CÔNG TY TNHH CƠ ĐIỆN THÀNH CÔNG (TCC M&E)
   THANH CONG MECHANICAL AND ELECTRICAL COMPANY LIMITED - EST. 2011
   Chuyên Ngành: Cơ Điện Công Nghiệp (M&E) & Hệ Thống PCCC Chuyên Sâu
   Palette: Crimson Red (#D9231E), Deep Navy (#0A1E33), Cobalt Blue (#0066CC), Clean White (#FFFFFF)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Archivo:wght@600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

/* Fix Ampersand (&): Archivo font renders '&' like an inverted '3'.
   We define a clean ampersand stack using unicode-range U+0026 */
@font-face {
  font-family: 'CleanAmpersand';
  src: local('Segoe UI'), local('Arial'), local('Helvetica Neue'), sans-serif;
  unicode-range: U+0026;
}

:root {
  --tc-red: #da251c;
  --tc-red-dark: #b81a12;
  --tc-red-light: #fff5f5;
  --tc-red-border: #fecaca;
  --tc-blue: #0094de;
  --tc-blue-dark: #0077b5;
  --tc-navy: #071526;
  --tc-navy-deep: #030d17;
  --tc-blue-light: #f0f9ff;
  --tc-slate: #1e293b;
  --tc-gray-bg: #f8fafc;
  --tc-border: #e2e8f0;
}

body {
  font-family: 'CleanAmpersand', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.65;
  text-align: start;
  overflow-wrap: break-word;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

/* Headings with industrial punch */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'CleanAmpersand', 'Archivo', 'Be Vietnam Pro', sans-serif;
  text-wrap: balance;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p, li, blockquote {
  text-wrap: pretty;
}

/* Fluid Heading Typography */
.hero-title-fluid {
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem);
  letter-spacing: -0.03em;
}

.section-title-fluid {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  letter-spacing: -0.025em;
}

.article-title-fluid {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.65rem);
  letter-spacing: -0.025em;
}

/* Monospace for model numbers and technical specs */
.font-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Header with Dual Industrial PCCC & M&E Accent Bar */
.site-header {
  background: #ffffff;
  border-bottom: 3.5px solid var(--tc-red);
  box-shadow: 0 4px 20px -4px rgba(10, 30, 51, 0.08);
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -3.5px;
  right: 0;
  width: 42%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--tc-blue) 0%, var(--tc-blue-dark) 100%);
}

/* Corporate Top Bar - Discreet & Hidden by default, reveals smoothly when hovering over the menu bar */
.site-header .topbar-me,
.topbar-me {
  background-color: var(--tc-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: translateY(-8px);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.35s ease,
              transform 0.3s ease;
  pointer-events: none;
}

.site-header:hover .topbar-me,
.header-hover-reveal:hover .topbar-me {
  max-height: 48px;
  opacity: 1;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  transform: translateY(0);
  pointer-events: auto;
}

/* Role-Based Admin Only Controls (Hidden for regular guests by default) */
.cms-admin-only {
  display: none !important;
}

.cms-logged-in .cms-admin-only {
  display: inline-flex !important;
}

.cms-logged-in .cms-admin-only.block {
  display: block !important;
}

.cms-logged-in .cms-admin-only.flex {
  display: flex !important;
}

/* Navigation Links - Symmetrical & Clean */
.nav-link {
  position: relative;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.15s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--tc-red);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--tc-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--tc-red) !important;
}

/* High-Contrast Technical Badges */
.badge-tech-red {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--tc-red-light);
  color: var(--tc-red);
  border: 1px solid var(--tc-red-border);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
}

.badge-tech-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--tc-blue-light);
  color: var(--tc-blue-dark);
  border: 1px solid #bfdbfe;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
}

.badge-tech-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--tc-navy);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
}

/* Product & Service Cards */
.product-card, .service-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.product-card:hover, .service-card:hover {
  transform: translateY(-5px);
  border-color: var(--tc-blue);
  box-shadow: 0 20px 35px -10px rgba(0, 75, 135, 0.16), 0 6px 12px -4px rgba(217, 35, 30, 0.08);
}

.product-img-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.product-img-box img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

/* Dynamic Glow, Shimmer & High-Tech Animations */
@keyframes glow-red {
  0%, 100% {
    text-shadow: 0 0 10px rgba(218, 37, 28, 0.65), 0 0 20px rgba(218, 37, 28, 0.35);
  }
  50% {
    text-shadow: 0 0 20px rgba(218, 37, 28, 0.95), 0 0 35px rgba(218, 37, 28, 0.6), 0 0 50px rgba(218, 37, 28, 0.3);
  }
}

.text-glow-red {
  animation: glow-red 3s ease-in-out infinite;
}

@keyframes glow-blue {
  0%, 100% {
    text-shadow: 0 0 8px rgba(0, 148, 222, 0.55), 0 0 16px rgba(0, 148, 222, 0.25);
  }
  50% {
    text-shadow: 0 0 18px rgba(0, 148, 222, 0.9), 0 0 32px rgba(0, 148, 222, 0.5);
  }
}

.text-glow-blue {
  animation: glow-blue 3s ease-in-out infinite;
}

/* Shimmer animated gradient text */
@keyframes text-shimmer-anim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.shimmer-text-brand {
  background: linear-gradient(90deg, #da251c 0%, #ff6b6b 35%, #ffffff 50%, #ff6b6b 65%, #da251c 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer-anim 5s ease-in-out infinite;
}

.shimmer-text-blue {
  background: linear-gradient(90deg, #0094de 0%, #38bdf8 40%, #ffffff 50%, #38bdf8 60%, #0094de 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer-anim 5s ease-in-out infinite;
}

/* Radar ping & live beacon */
.beacon-dot {
  position: relative;
  display: inline-flex;
  height: 9px;
  width: 9px;
}
.beacon-dot .ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #da251c;
  opacity: 0.8;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.beacon-dot .core {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 9px;
  width: 9px;
  background-color: #da251c;
}

/* Bullet cards for clean engineering light hero */
.bullet-card-light,
.bullet-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bullet-card-light:hover,
.bullet-card:hover {
  border-color: var(--tc-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 148, 222, 0.16);
}

/* Partner Logos Infinite Marquee (Right to Left) */
.partner-marquee-wrap {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 0.5rem 0;
}

.partner-marquee-wrap::before,
.partner-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partner-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partner-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partner-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: partner-scroll 35s linear infinite;
  will-change: transform;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes partner-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 48px;
  padding: 0.25rem 0.65rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px; /* Viên con nhộng thon gọn vừa vặn */
  box-shadow: 0 2px 5px -1px rgba(15, 23, 42, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  cursor: pointer;
}

.partner-logo-item:hover {
  border-color: var(--tc-red);
  box-shadow: 0 8px 18px -4px rgba(218, 37, 28, 0.25);
  transform: translateY(-2px);
}

.partner-logo-item img {
  max-height: 34px;
  max-width: 98px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.25s ease;
}

.partner-logo-item:hover img {
  transform: scale(1.08);
}

/* Dynamic Brand Wave Section with Warm Red Energy (#da251c) & Cyan (#0094de) */
.hero-brand-section {
  position: relative;
  background: linear-gradient(145deg, #fff0f0 0%, #fee2e2 16%, #ffeded 32%, #f0f7fe 55%, #fdf2f2 85%, #fee2e2 100%);
  border-top: 2px solid #fca5a5;
  border-bottom: 2px solid #e2e8f0;
  overflow: hidden;
}

/* Bolder, Saturated Red & Blue Waves */
.wave-red-bold {
  fill: url(#brand-wave-gradient-red);
  animation: move-wave-2 15s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-blue-bold {
  fill: rgba(0, 148, 222, 0.45);
  animation: move-wave-1 11s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-white-crest {
  fill: rgba(255, 255, 255, 0.85);
  animation: move-wave-3 8s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-red-deep {
  fill: rgba(218, 37, 28, 0.75);
  animation: move-wave-4 20s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

/* ==========================================================================
   3D ROTATING PERSPECTIVE STAGE & CAROUSEL (.hero-3d-stage)
   ========================================================================== */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 470px;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

@media (max-width: 640px) {
  .hero-3d-stage {
    height: 390px;
    perspective: 800px;
  }
}

.hero-3d-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-card {
  position: absolute;
  width: 84%;
  height: 380px;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
  cursor: pointer;
  background: #0f172a;
}

@media (max-width: 640px) {
  .hero-3d-card {
    width: 90%;
    height: 310px;
  }
}

.hero-3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-3d-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.08) 0%, rgba(7, 21, 38, 0.3) 50%, rgba(7, 21, 38, 0.88) 100%);
}

/* 4 Spatial 3D Rotating Positions */
.hero-3d-card.pos-front {
  transform: translateX(0) translateZ(80px) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 20;
  box-shadow: 0 30px 60px -12px rgba(218, 37, 28, 0.38), 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.95);
  pointer-events: auto;
}

.hero-3d-card.pos-right {
  transform: translateX(105px) translateZ(-90px) rotateY(-26deg) scale(0.85);
  opacity: 0.65;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: auto;
}

.hero-3d-card.pos-left {
  transform: translateX(-105px) translateZ(-90px) rotateY(26deg) scale(0.85);
  opacity: 0.65;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: auto;
}

.hero-3d-card.pos-back {
  transform: translateX(0) translateZ(-220px) rotateY(180deg) scale(0.68);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Foreground Floating HUD & Description (Nổi trước không gian 3D) */
.hero-3d-hud-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(218, 37, 28, 0.25);
  box-shadow: 0 10px 25px -5px rgba(218, 37, 28, 0.2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-3d-hud-desc {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.55), 0 0 25px rgba(218, 37, 28, 0.25);
  transition: all 0.35s ease;
}

@media (max-width: 640px) {
  .hero-3d-hud-badge {
    top: 10px;
    right: 12px;
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
  }
  .hero-3d-hud-desc {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 0.75rem 0.85rem;
  }
}

/* 3D Arrow Buttons */
.hero-3d-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  z-index: 35;
  cursor: pointer;
  border: 1.5px solid #ffffff;
}

.hero-3d-btn:hover {
  background: #ffffff;
  color: var(--tc-red);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(218, 37, 28, 0.35);
}

.hero-3d-btn.prev { left: -8px; }
.hero-3d-btn.next { right: -8px; }

@media (max-width: 640px) {
  .hero-3d-btn.prev { left: 4px; }
  .hero-3d-btn.next { right: 4px; }
}

/* 3D Pagination Dots */
.hero-3d-dots {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 35;
}

.hero-3d-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-3d-dot.active {
  width: 28px;
  background: var(--tc-red);
  box-shadow: 0 0 12px rgba(218, 37, 28, 0.7);
}

/* Large Interactive Construction Showcase Slider */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 490px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(10, 30, 51, 0.18), 0 0 0 1.5px rgba(226, 232, 240, 0.9);
  background: #0f172a;
}

@media (max-width: 640px) {
  .hero-slider-container {
    height: 380px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.15) 0%, rgba(7, 21, 38, 0.35) 45%, rgba(7, 21, 38, 0.92) 100%);
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-slider-btn:hover {
  background: #ffffff;
  color: var(--tc-red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(218, 37, 28, 0.3);
}

.hero-slider-btn.prev { left: 12px; }
.hero-slider-btn.next { right: 12px; }

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-slider-dot.active {
  width: 26px;
  background: var(--tc-red);
  box-shadow: 0 0 10px rgba(218, 37, 28, 0.7);
}

@keyframes hero-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-waves-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-brand-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 80px;
}

.wave-layer {
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.55, 0.5, 0.45, 0.5);
}

.wave-layer-1 {
  animation: move-wave-1 12s infinite;
}

.wave-layer-2 {
  animation: move-wave-2 16s infinite;
}

.wave-layer-3 {
  animation: move-wave-3 8s infinite;
}

.wave-layer-4 {
  animation: move-wave-4 22s infinite;
}

@keyframes move-wave-1 {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

@keyframes move-wave-2 {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

@keyframes move-wave-3 {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

@keyframes move-wave-4 {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes float-reverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(0.92); }
}

.animate-float-slow {
  animation: float-slow 12s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-reverse 15s ease-in-out infinite;
}

/* High-Tech Glowing Action Button */
.btn-cta-glow {
  position: relative;
  background: linear-gradient(135deg, #da251c 0%, #b81a12 100%);
  box-shadow: 0 4px 20px -2px rgba(218, 37, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn-cta-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  transform: rotate(35deg);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-cta-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(218, 37, 28, 0.75), 0 0 20px rgba(218, 37, 28, 0.45);
}

.btn-cta-glow:hover::before {
  opacity: 1;
}

/* Dynamic Live Tech Ticker / Marquee */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: rgba(7, 21, 38, 0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 148, 222, 0.25);
  border-bottom: 1px solid rgba(218, 37, 28, 0.25);
  padding: 0.65rem 0;
}

.ticker-wrap::before, .ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #071526 0%, transparent 100%);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #071526 0%, transparent 100%);
}

.ticker-move {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker-slide 32s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
}

/* Hotline pulse animation */
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(218, 37, 28, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(218, 37, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(218, 37, 28, 0); }
}

.animate-pulse-red {
  animation: pulse-red 2.2s infinite;
}

@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(0, 148, 222, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0, 148, 222, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 148, 222, 0); }
}

.animate-pulse-blue {
  animation: pulse-blue 2.2s infinite;
}

/* ==========================================================================
   TECHNICAL ARTICLE TYPOGRAPHY & WORDPRESS PROSE (.article-prose)
   ========================================================================== */
.article-prose {
  max-width: 80ch;
  color: #1e293b;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-prose h2 {
  font-family: 'CleanAmpersand', 'Archivo', 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tc-navy);
  margin-top: 2.5rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #cbd5e1;
  scroll-margin-top: 100px;
  letter-spacing: -0.02em;
}

.article-prose h3 {
  font-family: 'CleanAmpersand', 'Archivo', 'Be Vietnam Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.85rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 100px;
}

.article-prose h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tc-red);
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.article-prose p {
  margin-bottom: 1.35rem;
  color: #334155;
}

.article-prose ul {
  list-style-type: square;
  padding-left: 1.75rem;
  margin-bottom: 1.35rem;
  color: #334155;
}

.article-prose ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin-bottom: 1.35rem;
  color: #334155;
}

.article-prose li {
  margin-bottom: 0.55rem;
}

.article-prose blockquote,
.article-prose .callout-box {
  background-color: var(--tc-blue-light);
  border-left: 5px solid var(--tc-blue);
  padding: 1.25rem 1.65rem;
  border-radius: 0 0.85rem 0.85rem 0;
  margin: 1.75rem 0;
  color: #0a1e33;
  font-size: 0.98rem;
  line-height: 1.7;
}

.article-prose .callout-warning {
  background-color: var(--tc-red-light);
  border-left: 5px solid var(--tc-red);
  padding: 1.25rem 1.65rem;
  border-radius: 0 0.85rem 0.85rem 0;
  margin: 1.75rem 0;
  color: #7f1d1d;
  font-size: 0.98rem;
  line-height: 1.7;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.85rem 0;
  font-size: 0.9375rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-prose th {
  background-color: var(--tc-navy);
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  padding: 0.85rem 1.15rem;
  border: 1px solid #cbd5e1;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-prose td {
  padding: 0.85rem 1.15rem;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.article-prose tr:nth-child(even) td {
  background-color: #f8fafc;
}

.article-prose figure {
  margin: 2rem 0;
}

.article-prose img {
  border-radius: 0.85rem;
  border: 1.5px solid #e2e8f0;
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
}

.article-prose figcaption {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.65rem;
  font-style: italic;
}

/* WordPress Full-Page Studio Canvas & Toolbar */
.wp-editor-canvas {
  min-height: 560px;
  outline: none;
  max-width: 100%;
}

.wp-editor-canvas:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.wp-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.wp-toolbar-btn:hover {
  background: var(--tc-blue-light);
  color: var(--tc-blue-dark);
  border-color: var(--tc-blue);
}

/* Admin Toolbar & Edit Overlay */
#admin-toolbar {
  background: var(--tc-navy-deep);
  border-bottom: 2.5px solid var(--tc-red);
  color: #ffffff;
}

.admin-card-badge,
.admin-project-badge,
.admin-blog-badge {
  display: none;
}

.edit-mode-active .admin-card-badge,
.edit-mode-active .admin-project-badge,
.edit-mode-active .admin-blog-badge,
.cms-logged-in .admin-card-badge,
.cms-logged-in .admin-project-badge,
.cms-logged-in .admin-blog-badge {
  display: flex;
}

/* ==========================================================================
   OFFICIAL PROFILE FLIPBOOK MODAL & PREVIEW SHOWCASE
   ========================================================================== */
.profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 30, 51, 0.94);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.profile-modal.active {
  display: flex;
}

.profile-modal-container {
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  width: 96%;
  max-width: 1240px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(218, 37, 28, 0.3);
}

.profile-modal-header {
  padding: 0.85rem 1.25rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-iframe-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #090d16;
}

.profile-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--tc-blue-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tc-red);
}

/* ==========================================================================
   AI ASSISTANT CHATBOT & LEAD CAPTURE WIDGET (THÀNH CÔNG MECO)
   ========================================================================== */
.tc-ai-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(217, 35, 30, 0.32));
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tc-ai-launcher:hover {
  transform: translateY(-3px) scale(1.02);
}
.tc-ai-launcher-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(218, 37, 28, 0.35);
  border: 2px solid #da251c;
  cursor: pointer;
}
.tc-ai-launcher-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.tc-ai-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 15px;
  height: 15px;
  background-color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tc-ai-pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #da251c;
  opacity: 0;
  animation: tc-pulse 2.2s infinite;
}
@keyframes tc-pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.tc-ai-launcher-tooltip {
  background: #071526;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(218, 37, 28, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Chat Window - Compact & Clean */
.tc-ai-window {
  position: fixed;
  bottom: 82px;
  right: 20px;
  width: 345px;
  max-width: calc(100vw - 28px);
  height: 485px;
  max-height: calc(100vh - 96px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px -10px rgba(7, 21, 38, 0.35), 0 0 0 1px rgba(7, 21, 38, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tc-ai-window.hidden-widget {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(20px);
}
.tc-ai-header {
  background: linear-gradient(135deg, #071526 0%, #0d2642 100%);
  color: #ffffff;
  padding: 10px 14px;
  border-bottom: 2.5px solid #da251c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-ai-bubble {
  max-width: 88%;
  font-size: 0.8125rem;
  line-height: 1.5;
  border-radius: 13px;
  padding: 8px 12px;
  word-break: break-word;
}
.tc-ai-bubble-bot {
  background: #ffffff;
  color: #0f172a;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.tc-ai-bubble-user {
  background: linear-gradient(135deg, #da251c 0%, #b81a12 100%);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  box-shadow: 0 3px 10px rgba(218, 37, 28, 0.22);
}
.tc-ai-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tc-ai-chip:hover {
  background: #fff5f5;
  border-color: #da251c;
  color: #da251c;
}
.tc-ai-typing-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #64748b;
  font-style: italic;
  padding: 3px 8px;
  align-self: flex-start;
}
.tc-ai-typing span {
  display: inline-block;
  width: 4.5px;
  height: 4.5px;
  background-color: #da251c;
  border-radius: 50%;
  animation: tc-typing 1.2s infinite ease-in-out;
}
.tc-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.tc-ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tc-typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}
.tc-ai-footer {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tc-ai-input {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
}
.tc-ai-input:focus {
  background: #ffffff;
  border-color: #0094de;
  box-shadow: 0 0 0 2.5px rgba(0, 148, 222, 0.15);
}
.tc-ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #da251c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  shrink: 0;
}
.tc-ai-send-btn:hover {
  background: #b81a12;
}
