/* ═══════════════════════════════════════════════════════════════
   QBSTECH.CSS  –  Shared stylesheet
   Dùng chung cho: qbstech-services.html, qbstech-service-detail.html
   (và mọi trang dịch vụ khác cùng hệ thống)
═══════════════════════════════════════════════════════════════ */
/* ─────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────── */
:root {
  --blue-dark:   #0033cc;
  --blue-light:  #00d2ff;
  --orange:      #ff6600;
  --gold:        #ffcc00;
  --ink:         #08112b;
  --ink-soft:    #1a2540;
  --muted:       #64748b;
  --surface:     #f4f7ff;
  --white:       #ffffff;
  --grad-blue:   linear-gradient(135deg, #00d2ff 0%, #0033cc 100%);
  --grad-orange: linear-gradient(135deg, #ff6600 0%, #ffcc00 100%);
}


/* ─────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
}


/* ─────────────────────────────────────
   3. GRADIENT TEXT HELPERS
───────────────────────────────────── */
.gt-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gt-orange {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ─────────────────────────────────────
   4. NAVBAR
───────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
  padding: 1.4rem 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  transition: padding .4s, box-shadow .4s;
}
#navbar.scrolled {
  padding: .7rem 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .08);
}

.nav-link-q {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink) !important; padding: .5rem 1rem !important;
  position: relative; transition: color .3s;
}
.nav-link-q::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  transition: width .4s;
}
.nav-link-q:hover { color: var(--blue-dark) !important; }
.nav-link-q:hover::after,
.nav-link-q.active::after { width: 80%; }

.btn-nav {
  background: var(--grad-blue); color: #fff !important;
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: .85rem; border: none; padding: .65rem 1.6rem;
  border-radius: .75rem; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 51, 204, .2);
  transition: transform .3s, box-shadow .3s; display: inline-block;
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 51, 204, .3);
}

/* ─────────────────────────────────────
   4b. DROPDOWN SUBMENU
───────────────────────────────────── */
.nav-item-dropdown {
  position: relative;
}
.nav-item-dropdown .nav-link-q {
  display: inline-flex; align-items: center; gap: .3rem; cursor: pointer;
}
.nav-item-dropdown .nav-link-q .dd-caret {
  font-size: .65rem; transition: transform .3s;
  display: inline-block; margin-top: 1px;
}
.nav-item-dropdown:hover .nav-link-q .dd-caret,
.nav-item-dropdown.open .nav-link-q .dd-caret {
  transform: rotate(180deg);
}

/* Invisible bridge so mouse can travel from link → dropdown */
.nav-item-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 1rem;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 230px; background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 20px 50px rgba(8,17,43,.13), 0 0 0 1px rgba(0,51,204,.07);
  padding: .6rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1000;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Arrow tip */
.nav-dropdown::before {
  content: '';
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.nav-dd-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .9rem;
  border-radius: .75rem;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: .82rem;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-dd-item:hover {
  background: var(--surface);
  color: var(--blue-dark);
}
.nav-dd-item .dd-icon {
  width: 2rem; height: 2rem; border-radius: .55rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,210,255,.15), rgba(0,51,204,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--blue-dark);
  transition: background .2s, color .2s;
}
.nav-dd-item:hover .dd-icon {
  background: var(--grad-blue);
  color: #fff;
}
.nav-dd-sep {
  height: 1px; background: #f1f5f9; margin: .4rem .9rem;
}


/* ─────────────────────────────────────
   5. MOBILE MENU  (redesigned)
───────────────────────────────────── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--ink);
  display: none; flex-direction: column;
  overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,210,255,.3) .5px, transparent .5px);
  background-size: 24px 24px; opacity: .08;
}

/* Close button */
#menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem; color: #fff; width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#menu-close:hover { background: rgba(255,255,255,.15); }
#menu-close .bi { font-size: 1.1rem; }

/* Nav list */
.m-nav-list {
  position: relative; z-index: 1;
  padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: .3rem;
  width: 100%;
}

/* Regular nav link */
.m-nav-link {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: 1rem; color: rgba(255,255,255,.75) !important;
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none;
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  transition: background .2s, color .2s;
}
.m-nav-link:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.m-nav-link .m-nav-icon {
  width: 2.2rem; height: 2.2rem; border-radius: .6rem; flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--blue-light);
}

/* Parent item with dropdown */
.m-nav-group { display: flex; flex-direction: column; }
.m-nav-parent-wrap {
  display: flex; align-items: center;
}
.m-nav-parent-wrap .m-nav-link {
  flex: 1;
}
.m-nav-toggle {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: .65rem; cursor: pointer;
  color: rgba(255,255,255,.6); font-size: .8rem;
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-right: 1rem;
  transition: background .2s, color .2s;
}
.m-nav-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.m-nav-toggle .dd-caret { transition: transform .3s; display: inline-block; }

/* Submenu */
.m-nav-sub {
  display: none; flex-direction: column; gap: .15rem;
  padding: .25rem 0 .5rem 3.2rem;
}
.m-nav-sub.open { display: flex; }
.m-nav-sub-item {
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: .88rem; color: rgba(255,255,255,.5) !important;
  text-decoration: none;
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .85rem;
  border-radius: .65rem;
  transition: background .2s, color .2s;
  letter-spacing: .04em;
}
.m-nav-sub-item:hover {
  color: #fff !important;
  background: rgba(255,255,255,.06);
}
.m-nav-sub-item .m-sub-icon {
  width: 1.6rem; height: 1.6rem; border-radius: .4rem; flex-shrink: 0;
  background: rgba(0,210,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--blue-light);
}

/* Divider */
.m-nav-sep {
  height: 1px; background: rgba(255,255,255,.07);
  margin: .5rem 1rem;
}

/* CTA at bottom */
.m-nav-cta {
  padding: 0 1.5rem 2.5rem;
  position: relative; z-index: 1;
  margin-top: auto;
}


/* ─────────────────────────────────────
   6. SECTION HELPERS
───────────────────────────────────── */
.section-eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .28em; margin-bottom: .9rem; display: block;
}
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.08; }
.section-sub   { color: var(--muted); line-height: 1.8; font-size: 1rem; }


/* ─────────────────────────────────────
   7. BUTTONS
───────────────────────────────────── */
.btn-primary-q {
  background: var(--grad-blue); color: #fff;
  font-family: 'Roboto', sans-serif; font-weight: 700;
  border: none; padding: .85rem 2rem; border-radius: .9rem;
  box-shadow: 0 10px 28px rgba(0, 51, 204, .22);
  transition: transform .3s, box-shadow .3s; font-size: .97rem;
  text-decoration: none; display: inline-block;
}
.btn-primary-q:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 51, 204, .35);
  color: #fff;
}

.btn-outline-q {
  border: 2px solid var(--blue-dark); color: var(--blue-dark);
  font-family: 'Roboto', sans-serif; font-weight: 700;
  background: transparent; padding: .83rem 2rem; border-radius: .9rem;
  transition: all .3s; font-size: .97rem;
  text-decoration: none; display: inline-block;
}
.btn-outline-q:hover { background: var(--blue-dark); color: #fff; }

.btn-cta-primary {
  background: var(--grad-blue); color: #fff;
  font-family: 'Roboto', sans-serif; font-weight: 700;
  border: none; padding: .9rem 2.2rem; border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 51, 204, .3);
  transition: transform .3s, box-shadow .3s; font-size: .97rem;
  text-decoration: none; display: inline-block;
}
.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 51, 204, .42);
  color: #fff;
}

.btn-cta-outline {
  border: 2px solid rgba(255, 255, 255, .2); color: #fff;
  font-family: 'Roboto', sans-serif; font-weight: 700;
  background: transparent; padding: .88rem 2.2rem; border-radius: 1rem;
  transition: all .3s; font-size: .97rem;
  text-decoration: none; display: inline-block;
}
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

/* ─────────────────────────────────────
   18. FOOTER
───────────────────────────────────── */
footer {
  background: var(--ink); color: #fff;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-link {
  color: #64748b; text-decoration: none; font-size: .9rem;
  transition: color .3s; display: block; margin-bottom: .8rem;
}
.footer-link:hover { color: #fff; }
.footer-social {
  width: 2.4rem; height: 2.4rem; border-radius: .7rem;
  background: rgba(255, 255, 255, .05);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 1rem;
  transition: background .3s; margin-right: .4rem;
}
.footer-social:hover { background: var(--blue-dark); color: #fff; }
.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 4rem; padding-top: 2rem;
}


/* ─────────────────────────────────────
   19. RESPONSIVE
───────────────────────────────────── */
@media (max-width: 991px) {
  .panel-content { padding: 2rem 0 0; }
  .step-connector { display: none; }
  .hero-orb-1 { width: 300px; height: 300px; right: -60px; top: -60px; }
  .hero-orb-2 { width: 200px; height: 200px; left: -40px; }
}

@media (max-width: 767px) {
  .stab-nav { flex-direction: column; }
  .cta-banner { padding: 3.5rem 1.5rem; }
  .tech-grid  { grid-template-columns: repeat(2, 1fr); }
}
