/* --- DESIGN SYSTEM 1988 MEDIA (ARIA OS COMPATIBLE) --- */








/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}

.logo {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-hex {
  width: 34px;
  height: 34px;
  background: var(--red) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--white) !important;
  letter-spacing: -.3px;
}

.logo-name span {
  color: var(--red) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--w60);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r8);
  color: var(--w60);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}

.btn-ghost:hover {
  border-color: rgba(245, 245, 247, .2);
  color: var(--white);
}

.btn-cta {
  padding: 8px 18px;
  background: var(--red);
  border-radius: var(--r8);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}

.btn-cta:hover {
  background: var(--red-hover);
}

/* --- HELPERS --- */
.lbl {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
}

.h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.em {
  color: var(--red);
  font-style: normal;
}

.lead {
  font-size: 17px;
  color: var(--w60);
  line-height: 1.75;
  font-weight: 300;
}

.section {
  padding: 100px 60px;
}

.section-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--red);
  border-radius: var(--r12);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all .25s;
  box-shadow: 0 0 40px rgba(232, 25, 44, .25);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(232, 25, 44, .35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r12);
  color: var(--w60);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all .25s;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(245, 245, 247, .2);
  color: var(--white);
  background: var(--border);
}

/* --- HERO --- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 60px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.4s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

/* --- FILTERS --- */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--w60);
  background: rgba(245, 245, 247, 0.02);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--red);
  background: var(--red-dim);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232, 25, 44, 0.15);
}

/* --- PORTFOLIO GRID --- */
.portfolio-sec {
  background: var(--black);
  padding: 60px 60px 100px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--b2);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  overflow: hidden;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  border-color: rgba(232, 25, 44, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-thumb {
  height: 250px;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.4s;
}

.portfolio-card:hover .card-thumb img {
  transform: scale(1.05);
  opacity: 0.8;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.play-btn-circle {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 25, 44, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn-circle svg {
  fill: #fff;
  transform: translateX(2px);
}

.portfolio-card:hover .play-btn-circle {
  transform: scale(1.12);
  background: #ff2a3c;
  box-shadow: 0 6px 25px rgba(232, 25, 44, 0.6);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 8, 0.7);
  border: 1px solid var(--border);
  color: var(--white);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-client {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -.3px;
  line-height: 1.35;
}

.card-desc {
  font-size: 13.5px;
  color: var(--w60);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-spec-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 10px;
  background: var(--b3);
  border: 1px solid var(--border);
  color: var(--w60);
}

.card-metrics {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.card-metric-lbl {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--w60);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- TRIAL / DEMO BOX --- */
.demo-request-box {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(232, 25, 44, 0.08), rgba(232, 25, 44, 0.02));
  border: 1px dashed rgba(232, 25, 44, 0.3);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 32px;
  text-align: left;
}

.demo-req-text h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.demo-req-text p {
  font-size: 14.5px;
  color: var(--w60);
  line-height: 1.6;
}

.demo-req-action {
  text-align: right;
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  width: 100%;
  max-width: 900px;
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content.vertical {
  max-width: 420px;
  aspect-ratio: 9/16;
}

.lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--w60);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-close:hover {
  color: var(--white);
}

/* --- COMPREHENSIVE MOBILE RESPONSIVE FIX --- */
@media(max-width:1024px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .hero { padding: 120px 20px 60px; }
  .portfolio-sec { padding: 40px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .demo-request-box { grid-template-columns: 1fr; text-align: center; padding: 30px 20px; }
  .demo-req-action { text-align: center; }
  body { overflow-x: hidden !important; }
}

/* FAQ Accordion Injected */
.faq-section { background: var(--b2); border-top: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item { background: var(--b3); border: 1px solid var(--border); border-radius: var(--r14); overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: rgba(232,25,44,.2); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; gap: 16px; }
.faq-q-text { font-size: 15px; font-weight: 600; color: var(--white); }
.faq-arrow { font-size: 18px; color: var(--red); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { font-size: 14px; color: var(--w60); line-height: 1.75; padding: 0 24px 20px; display: none; }
.faq-item.open .faq-a { display: block; }

/* Floating Contact Bar */
.fcb {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: stretch;
  height: 64px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.fcb.fcb-visible { transform: translateY(0); }
.fcb-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 4px 8px;
}
.fcb-btn::after {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; right: 0; width: 1px;
  background: rgba(255,255,255,0.06);
}
.fcb-btn:last-child::after { display: none; }
.fcb-btn:active { background: rgba(255,255,255,0.05); }
.fcb-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s;
}
.fcb-btn.fcb-phone .fcb-icon {
  background: linear-gradient(135deg, #E8192C 0%, #c41224 100%);
}
.fcb-btn.fcb-zalo .fcb-icon {
  background: linear-gradient(135deg, #0068FF 0%, #0050cc 100%);
}
.fcb-label {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(245,245,247,0.55);
}
.fcb-label strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(245,245,247,0.9);
}
.fcb-btn.fcb-phone .fcb-label strong { color: #ff6b7a; }
.fcb-btn.fcb-zalo .fcb-label strong { color: #5aabff; }

@media(min-width: 769px) {
  .fcb {
    left: auto; right: 20px; bottom: 20px;
    border-radius: 18px; width: 280px; height: auto;
    flex-direction: row; flex-wrap: wrap; padding: 12px 8px; gap: 6px;
    border: 1px solid rgba(255,255,255,0.09);
  }
  .fcb-btn { flex: 1 1 calc(50% - 6px); flex-direction: row; gap: 8px; border-radius: 12px; padding: 10px 12px; justify-content: flex-start; }
  .fcb-btn::after { display: none; }
  .fcb-label { text-align: left; }
}

/* Mobile Menu Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
  z-index: 1001;
  margin-left: 12px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--white, #F5F5F7);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width: 1024px) {
  .menu-toggle { display: flex !important; }
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: -100% !important;
    width: 280px; height: 100vh;
    background: rgba(7, 7, 8, 0.98) !important;
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    padding: 100px 32px 40px !important;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 998;
    align-items: flex-start;
  }
  .nav-links.active { right: 0 !important; }
}

/* --- DROPDOWN MENU --- */
.nav-links li.drop {
  position: relative;
}
.nav-links li.drop .drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 18, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  min-width: 340px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  pointer-events: none;
}
.nav-links li.drop:hover .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-links li.drop .drop-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links li.drop .drop-inner a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s;
  color: #F5F5F7;
  text-decoration: none;
}
.nav-links li.drop .drop-inner a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-links li.drop .drop-inner .di {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* SEPARATED CONTACT BAR */
.fcb-separated {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.fcb-group {
  background: rgba(17,17,22,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  pointer-events: auto;
  min-width: 240px;
}
.fcb-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.fcb-group-btns {
  display: flex;
  gap: 6px;
}
.fcb-item-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.fcb-item-btn.call-red {
  background: #E8192C;
  color: #fff;
}
.fcb-item-btn.zalo-red {
  background: rgba(232,25,44,0.15);
  color: #ff3b4f;
  border: 1px solid rgba(232,25,44,0.3);
}
.fcb-item-btn.call-blue {
  background: #0068FF;
  color: #fff;
}
.fcb-item-btn.zalo-blue {
  background: rgba(0,104,255,0.15);
  color: #388bff;
  border: 1px solid rgba(0,104,255,0.3);
}
.fcb-item-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
@media (max-width: 640px) {
  .fcb-separated {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  .fcb-group {
    min-width: unset;
    width: 100%;
  }
}

/* --- REAL VIDEO MODAL --- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.open {
  display: flex;
}
.video-modal-box {
  background: #111116;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  overflow: hidden;
}
.video-modal-layout {
  display: flex;
  flex-direction: column;
}
@media(min-width: 768px) {
  .video-modal-layout {
    flex-direction: row;
  }
}
.video-modal-player {
  flex: 1.5;
  background: #000;
  aspect-ratio: 16/9;
}
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-info {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.video-modal-close:hover {
  background: rgba(232, 25, 44, 0.8);
}
