/*
Theme Name: NIDTECH Modern
Theme URI: https://nidtech.vn/
Author: NIDTECH
Description: Modern technology-focused WordPress theme for NIDTECH.
Version: 1.0.0
Text Domain: nidtech
*/

:root {
  --ink: #eaf2ff;
  --muted: #a5b8d6;
  --line: rgba(148, 163, 184, .22);
  --soft: rgba(255, 255, 255, .08);
  --panel: rgba(10, 18, 34, .72);
  --brand: #36d1dc;
  --brand-dark: #0d9488;
  --accent: #7c3aed;
  --warn: #f59e0b;
  --shadow: 0 28px 72px rgba(5, 10, 22, .34);
  --radius: 8px;
  --max: 1180px;
}

html.has-page-loader,
html.has-page-loader body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at center, rgba(33, 167, 232, .14), transparent 34%),
    #f7fbff;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}

.has-page-loader .page-loader {
  display: grid;
}

.page-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.page-loader-inner {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
}

.page-loader-spinner {
  position: absolute;
  inset: 0;
  border: 8px solid #dbe7f2;
  border-top-color: #168ed1;
  border-right-color: #0f67b7;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(15, 103, 183, .16);
  animation: nidtech-loader-spin .85s linear infinite;
}

.page-loader-logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(15, 103, 183, .18));
}

.page-loader-label {
  color: #17446f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

@keyframes nidtech-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader-spinner {
    animation: none;
    transition-duration: .01ms;
  }
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.form-notice-success {
  border-color: rgba(34, 197, 94, .42);
  background: rgba(34, 197, 94, .12);
  color: #166534;
}

.form-notice-error {
  border-color: rgba(239, 68, 68, .42);
  background: rgba(239, 68, 68, .1);
  color: #991b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(54, 209, 220, .10), transparent 45%),
    radial-gradient(1200px 800px at 90% 10%, rgba(124, 58, 237, .12), transparent 40%),
    #07111f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  --pointer-x: .5;
  --pointer-y: .5;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(120deg, rgba(54, 209, 220, .06), transparent 28%),
    linear-gradient(220deg, rgba(124, 58, 237, .10), transparent 36%),
    #07111f;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%), rgba(54, 209, 220, .14), transparent 24%),
    linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  content: "";
}

.topbar,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.logo-orbit {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.logo-shard {
  position: absolute;
  display: grid;
  width: clamp(72px, 10vw, 148px);
  aspect-ratio: 1;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(54, 209, 220, 0.08) 100%);
  box-shadow: 0 30px 80px rgba(5, 10, 22, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 25px rgba(54, 209, 220, 0.15);
  opacity: .36;
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  filter: saturate(1.1);
  transform:
    translate3d(calc((var(--pointer-x) - .5) * var(--move-x, 38px)), calc((var(--pointer-y) - .5) * var(--move-y, 38px)), var(--z, 0px)) rotateX(calc((.5 - var(--pointer-y)) * var(--rx, 22deg))) rotateY(calc((var(--pointer-x) - .5) * var(--ry, 28deg))) rotateZ(var(--rz, -8deg));
  transition: transform .12s ease-out;
  animation: logo-drift var(--speed, 14s) ease-in-out infinite alternate;
}

.logo-shard img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  transform: translateZ(42px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(54, 209, 220, 0.45));
}

.shard-1 {
  top: 14%;
  left: 6%;
  --move-x: 90px;
  --move-y: -52px;
  --z: 70px;
  --rz: -10deg;
  --speed: 12s;
}

.shard-2 {
  top: 22%;
  right: 7%;
  --move-x: -110px;
  --move-y: 68px;
  --z: 120px;
  --rz: 14deg;
  --speed: 15s;
}

.shard-3 {
  bottom: 18%;
  left: 12%;
  --move-x: 74px;
  --move-y: 88px;
  --z: 40px;
  --rz: 20deg;
  --speed: 17s;
}

.shard-4 {
  bottom: 10%;
  right: 18%;
  --move-x: -90px;
  --move-y: -64px;
  --z: 95px;
  --rz: -22deg;
  --speed: 13s;
}

.shard-5 {
  top: 48%;
  left: 46%;
  --move-x: 140px;
  --move-y: -90px;
  --z: -20px;
  --rz: 9deg;
  --speed: 18s;
  opacity: .12;
}

.shard-6 {
  top: 66%;
  right: 5%;
  --move-x: -72px;
  --move-y: 70px;
  --z: 80px;
  --rz: 28deg;
  --speed: 16s;
}

.shard-7 {
  top: 4%;
  left: 42%;
  --move-x: 62px;
  --move-y: 86px;
  --z: 30px;
  --rz: -28deg;
  --speed: 19s;
  opacity: .14;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: rgba(4, 10, 20, .78);
  color: #d8e5f2;
  font-size: 13px;
}

.topbar .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
}

.topbar-left {
  display: flex;
  gap: 24px;
  justify-self: start;
}

.topbar-center {
  display: flex;
  justify-self: center;
}

.topbar-right {
  display: flex;
  justify-self: end;
}

.topbar strong {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  background: rgba(8, 15, 29, .72);
  backdrop-filter: blur(20px) saturate(1.15);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 160px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, .15);
  overflow: hidden;
}

.brand-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand span:last-child {
  display: block;
  color: #9ab0cf;
  font-size: 12px;
  font-weight: 650;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #d9e6fb;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
  background: rgba(54, 209, 220, .14);
  color: #fff;
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius);
  background: rgba(8, 15, 29, .94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .18s ease;
}

.main-nav .sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.main-nav li:hover>.sub-menu,
.main-nav li.is-clicked>.sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn-primary {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(13, 148, 136, .24);
}

.btn-ghost {
  color: #edf4ff;
  border-color: rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .06);
}

.hero-band {
  padding: 44px 0 22px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.glass-card,
.glass-tile,
.glass-inner,
.stack-item,
.contact-list li {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(11, 18, 34, .56);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 18px 50px rgba(5, 10, 22, .24);
}

.glass-card::before,
.glass-tile::before,
.glass-inner::before,
.stack-item::before,
.contact-list li::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(54, 209, 220, .12), rgba(124, 58, 237, .08));
  content: "";
  pointer-events: none;
  opacity: .55;
}

.glass-card::after,
.glass-tile::after,
.glass-inner::after,
.stack-item::after,
.contact-list li::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: radial-gradient(140px circle at calc(var(--card-x, 0.5) * 100%) calc(var(--card-y, 0.5) * 100%),
      rgba(54, 209, 220, 0.82) 0%,
      rgba(124, 58, 237, 0.62) 42%,
      rgba(245, 158, 11, 0.18) 72%,
      transparent 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  content: "";
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.glass-card:hover::after,
.glass-tile:hover::after,
.glass-inner:hover::after,
.stack-item:hover::after,
.contact-list li:hover::after {
  opacity: 1;
}

.glass-card:hover,
.glass-inner:hover,
.stack-item:hover {
  box-shadow: 0 24px 66px rgba(5, 10, 22, .34);
}

.hero-card {
  padding: 28px;
}

.hero-card h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 640px;
  color: #b4c5e0;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat {
  position: relative;
  padding: 16px;
  border-radius: 8px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: #afc0db;
  font-size: 13px;
}

.visual-card {
  padding: 18px;
  min-height: 100%;
}

.visual-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.visual-head strong {
  font-size: 26px;
}

.visual-head p {
  color: #b4c5e0;
  margin-bottom: 0;
}

.chip {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #d9e6fb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.visual-panel {
  position: relative;
  min-height: 380px;
}

.glass-inner {
  position: relative;
  border-radius: 8px;
  padding: 18px;
}

.signal-card {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, 310px);
  display: grid;
  gap: 16px;
  z-index: 5;
}

.signal-card h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.signal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.clock-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.signal-grid .clock-colon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: clock-blink 1s steps(1) infinite;
  width: 12px;
  text-shadow: 
    0 0 10px var(--brand),
    0 0 20px var(--accent);
  line-height: 1;
  transform: translateY(-2px);
}

@keyframes clock-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.signal-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  height: 62px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(54, 209, 220, .88), rgba(124, 58, 237, .58));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.floating-ticket {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 270px);
  z-index: 6;
}

.floating-ticket strong {
  display: block;
  font-size: 22px;
}

.floating-ticket span {
  color: #b4c5e0;
}

.info-card {
  padding: 20px;
}

.info-card h3,
.service-card h3,
.product-card h3,
.news-card h3,
.contact-panel h2 {
  margin-bottom: 10px;
}

.info-card p,
.service-card p,
.product-card p,
.news-card p,
.contact-panel p {
  color: #b4c5e0;
}

.span-12 {
  grid-column: span 12;
}

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-9 {
  grid-column: span 9;
}

.services-bento .service-card,
.content-bento .product-card,
.content-bento .news-card,
.contact-panel {
  padding: 20px;
}

.service-card {
  min-height: 220px;
}

.service-card .icon {
  background: linear-gradient(135deg, rgba(54, 209, 220, .92), rgba(124, 58, 237, .92));
}

.service-card h3,
.product-card h3,
.news-card h3 {
  color: #f4f8ff;
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.section-head p {
  max-width: 620px;
  color: #aabdd9;
  margin-bottom: 0;
}

.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stack-item {
  position: relative;
  padding: 16px;
  border-radius: 8px;
  color: var(--ink);
}

.stack-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.stack-item span {
  color: var(--muted);
}

.stack-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.stack-item .news-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.stack-item .news-excerpt {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.contact-section {
  padding: 18px 0 64px;
  background: transparent;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  position: relative;
  padding: 14px;
  border-radius: 8px;
}

.contact-list li strong {
  color: #f4f8ff;
}

.product-card p,
.news-card p {
  margin-bottom: 0;
}

.hero {
  padding: 74px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #405167;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.device-scene {
  position: relative;
  min-height: 420px;
}

.device-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(219, 229, 239, .9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(233, 245, 244, .82)),
    url("assets/images/banner.webp") center / cover;
  box-shadow: var(--shadow);
}

.device-panel::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(7, 17, 31, .76), rgba(7, 17, 31, .12));
  content: "";
}

.device-panel>* {
  position: relative;
  z-index: 1;
}

.signal-card {
  width: min(85%, 310px);
  padding: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, .56);
  backdrop-filter: blur(14px);
}

.signal-card h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  gap: 6px;
  margin-top: 16px;
  align-items: center;
}

.signal-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(45, 212, 191, .85), rgba(37, 99, 235, .55));
}

.floating-ticket {
  width: min(80%, 270px);
  padding: 16px;
  color: #0b1625;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 17, 31, .18);
}

.floating-ticket strong {
  display: block;
  font-size: 22px;
}

.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.product-card,
.news-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.service-card {
  min-height: 220px;
  padding: 20px;
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.service-card h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.service-card p,
.product-card p,
.news-card p {
  color: var(--muted);
  font-size: 14px;
}

.product-band {
  background: #07111f;
  color: #fff;
}

.product-band .section-head p {
  color: #b7c5d7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  overflow: hidden;
  background: #0d1828;
  border-color: rgba(255, 255, 255, .12);
}

.product-visual {
  display: grid;
  min-height: 170px;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 212, 191, .24), transparent 35%),
    linear-gradient(135deg, #101c2e, #0d9488);
}

.product-visual span {
  color: #fff;
  font-size: 44px;
  font-weight: 900;
}

.product-card div:last-child {
  padding: 18px;
}

.product-card p {
  color: #bdd0df;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  padding: 20px;
}

.date {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e7f7f4;
  font-size: 12px;
  font-weight: 850;
}

.contact-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #e7f7f4, #f8fafc 52%, #eaf1ff);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.site-footer {
  padding: 34px 0;
  color: #c7d4e4;
  background: #07111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer li {
  color: #aebed2;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-toggle {
  display: none;
}

.main-nav a,
.btn {
  position: relative;
  overflow: hidden;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.main-nav a::after,
.btn::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .55) 45%, transparent 70%);
  content: "";
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.main-nav a:hover,
.btn:hover {
  transform: translateY(-2px);
}

.main-nav a:hover::after,
.btn:hover::after {
  transform: translateX(120%);
}

.btn {
  cursor: pointer;
  isolation: isolate;
}

.btn:active,
.touch-press {
  transform: translateY(1px) scale(.98);
}

.device-panel,
.bento-card,
.service-card,
.product-card,
.news-card,
.contact-panel {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transform-style: preserve-3d;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  will-change: transform;
}

.device-panel,
.bento-card,
.service-card,
.product-card,
.news-card,
.contact-panel,
.bento-card::before,
.service-card::before,
.product-card::before,
.news-card::before,
.contact-panel::before {
  position: relative;
}

.device-scene .device-panel {
  position: absolute;
}

.bento-card,
.service-card,
.product-card,
.news-card,
.contact-panel {
  overflow: hidden;
}

.device-panel:hover,
.bento-card:hover,
.service-card:hover,
.product-card:hover,
.news-card:hover,
.contact-panel:hover {
  border-color: rgba(13, 148, 136, .34);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}

.bento-card::before,
.service-card::before,
.product-card::before,
.news-card::before,
.contact-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at calc(var(--card-x, .5) * 100%) calc(var(--card-y, .5) * 100%), rgba(45, 212, 191, .22), transparent 38%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.bento-card:hover::before,
.service-card:hover::before,
.product-card:hover::before,
.news-card:hover::before,
.contact-panel:hover::before {
  opacity: 1;
}

.bento-card>*,
.service-card>*,
.product-card>*,
.news-card>*,
.contact-panel>* {
  position: relative;
  z-index: 1;
}

.signal-card {
  transform: translateZ(36px);
  animation: bounce-x1 11.8s linear infinite alternate, bounce-y1 8.3s linear infinite alternate;
}

.floating-ticket {
  transform: translateZ(58px);
  animation: bounce-x2 9.5s linear infinite alternate, bounce-y2 6.8s linear infinite alternate;
}

@keyframes bounce-x1 {
  0% {
    left: 16px;
  }
  100% {
    left: calc(100% - 326px);
  }
}

@keyframes bounce-y1 {
  0% {
    top: 16px;
  }
  100% {
    top: calc(100% - 156px);
  }
}

@keyframes bounce-x2 {
  0% {
    left: calc(100% - 286px);
  }
  100% {
    left: 16px;
  }
}

@keyframes bounce-y2 {
  0% {
    top: calc(100% - 100px);
  }
  100% {
    top: 16px;
  }
}

.icon {
  box-shadow: 0 12px 22px rgba(13, 148, 136, .22);
  transform: translateZ(26px);
  transition: transform .24s ease;
}

.service-card:hover .icon {
  transform: translateZ(42px) rotate(-5deg) scale(1.06);
}

.product-visual {
  background-size: 100% 100%, 180% 180%;
  animation: panel-shift 8s ease infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.98);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.device-panel.reveal.is-visible,
.bento-card.reveal.is-visible,
.service-card.reveal.is-visible,
.product-card.reveal.is-visible,
.news-card.reveal.is-visible,
.contact-panel.reveal.is-visible {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
}

.hero-card .eyebrow,
.hero-card h1,
.hero-copy,
.hero-actions,
.stat,
.visual-card,
.info-card,
.section-head,
.service-card,
.product-card,
.news-card,
.contact-panel {
  animation: rise-in .75s ease both;
}

.hero-card h1 {
  animation-delay: .08s;
}

.hero-copy {
  animation-delay: .16s;
}

.hero-actions {
  animation-delay: .24s;
}

.stat:nth-child(1) {
  animation-delay: .30s;
}

.stat:nth-child(2) {
  animation-delay: .38s;
}

.stat:nth-child(3) {
  animation-delay: .46s;
}

@keyframes logo-drift {
  from {
    margin-top: -10px;
  }

  to {
    margin-top: 14px;
  }
}

@keyframes float-ticket {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes panel-shift {

  0%,
  100% {
    background-position: 0 0, 0 50%;
  }

  50% {
    background-position: 0 0, 100% 50%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Futuristic hero pass */
:root {
  --bevel: 18px;
  --bevel-sm: 10px;
}

.hero-band {
  position: relative;
  display: grid;
  min-height: calc(100vh - 108px);
  align-items: center;
  padding: 68px 0 42px;
  isolation: isolate;
}

.hero-band::before,
.hero-band::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero-band::before {
  z-index: -2;
  background:
    linear-gradient(105deg, transparent 0 22%, rgba(54, 209, 220, .16) 23%, transparent 24% 46%, rgba(124, 58, 237, .12) 47%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(54, 209, 220, .08) 0 1px, transparent 1px 120px);
  background-size: 260% 100%, 240px 100%;
  animation: data-pan 11s linear infinite;
  opacity: .76;
}

.hero-band::after {
  z-index: -1;
  background:
    radial-gradient(circle at calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%), rgba(54, 209, 220, .20), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
  opacity: .72;
}

.bento-card,
.glass-card,
.glass-tile,
.glass-inner,
.stack-item,
.contact-list li,
.btn,
.chip,
.main-nav a,
.brand-mark {
  border-radius: 0;
  clip-path: polygon(0 var(--bevel-sm),
      var(--bevel-sm) 0,
      calc(100% - var(--bevel-sm)) 0,
      100% var(--bevel-sm),
      100% calc(100% - var(--bevel-sm)),
      calc(100% - var(--bevel-sm)) 100%,
      var(--bevel-sm) 100%,
      0 calc(100% - var(--bevel-sm)));
}

.hero-card,
.visual-card {
  clip-path: polygon(0 var(--bevel),
      var(--bevel) 0,
      calc(100% - var(--bevel)) 0,
      100% var(--bevel),
      100% calc(100% - var(--bevel)),
      calc(100% - var(--bevel)) 100%,
      var(--bevel) 100%,
      0 calc(100% - var(--bevel)));
}

.hero-bento {
  position: relative;
  align-items: stretch;
  grid-auto-rows: minmax(154px, auto);
}

.hero-card {
  min-height: 700px;
  justify-content: center;
  padding: 20px 24px;
  border-color: rgba(54, 209, 220, .22);
  background:
    linear-gradient(145deg, rgba(12, 24, 43, .72), rgba(9, 13, 28, .46)),
    radial-gradient(circle at 18% 14%, rgba(54, 209, 220, .20), transparent 32%);
}

.hero-card>*,
.visual-card>* {
  position: relative;
  z-index: 2;
}

.hero-card h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.25vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(54, 209, 220, .18);
}

.hero-copy {
  color: #b8c9e6;
}

.terminal-typing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  margin: 22px 0 0;
  padding: 13px 16px;
  border: 1px solid rgba(54, 209, 220, .36);
  background: linear-gradient(90deg, rgba(3, 9, 20, .82), rgba(7, 18, 34, .72));
  color: #dffcff;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 800;
  box-shadow: inset 0 0 24px rgba(54, 209, 220, .10), 0 18px 48px rgba(5, 10, 22, .26);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.terminal-prefix {
  flex: 0 0 auto;
  color: #36d1dc;
  font-weight: 800;
}

.typing-output {
  display: block;
  flex: 1 1 320px;
  min-width: min(100%, 240px);
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.typing-output::after {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 3px;
  border-right: 2px solid #36d1dc;
  vertical-align: -2px;
  content: "";
  animation: cursor-blink .85s steps(1) infinite;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chips span {
  padding: 8px 11px;
  border: 1px solid rgba(148, 163, 184, .20);
  background: rgba(255, 255, 255, .045);
  color: #c8d8ef;
  font-size: 12px;
  font-weight: 800;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.data-flow {
  position: absolute;
  z-index: 1;
  display: block;
  height: 2px;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(54, 209, 220, .95), rgba(124, 58, 237, .82), transparent);
  filter: drop-shadow(0 0 14px rgba(54, 209, 220, .65));
  opacity: .86;
  transform-origin: center;
  animation: flow-line 4.8s linear infinite;
}

.data-flow-a {
  top: 18%;
  left: -12%;
  rotate: -8deg;
}

.data-flow-b {
  right: -16%;
  bottom: 22%;
  rotate: -8deg;
  animation-delay: -2s;
}

.data-flow-c {
  top: 30%;
  left: -18%;
  rotate: 12deg;
  animation-delay: -1.1s;
}

.data-flow-d {
  right: -22%;
  bottom: 18%;
  rotate: 12deg;
  animation-delay: -3s;
}

.corner-node {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(54, 209, 220, .48);
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(54, 209, 220, .45));
}

.corner-node-a {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.corner-node-b {
  right: 14px;
  bottom: 14px;
  border-top: 0;
  border-left: 0;
}

.visual-card {
  min-height: 700px;
  border-color: rgba(124, 58, 237, .24);
  background:
    linear-gradient(145deg, rgba(9, 16, 32, .74), rgba(9, 13, 28, .50)),
    radial-gradient(circle at 72% 18%, rgba(124, 58, 237, .24), transparent 34%);
}

.visual-panel {
  position: relative;
  min-height: 550px;
  align-items: end;
  padding-bottom: 0;
}

.holo-core {
  position: absolute;
  inset: 52px 40px auto auto;
  display: grid;
  width: min(48%, 230px);
  aspect-ratio: 1;
  place-items: center;
  background: radial-gradient(circle, rgba(54, 209, 220, .22), rgba(124, 58, 237, .08) 42%, transparent 68%);
  filter: drop-shadow(0 0 34px rgba(54, 209, 220, .28));
  animation: holo-float 5.6s ease-in-out infinite;
}

.holo-core span {
  position: absolute;
  inset: var(--ring-inset, 0);
  border: 1px solid rgba(54, 209, 220, .28);
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
}

.holo-core span:nth-child(1) {
  --ring-inset: 0;
  animation: holo-spin 12s linear infinite;
}

.holo-core span:nth-child(2) {
  --ring-inset: 18px;
  animation: holo-spin 9s linear infinite reverse;
}

.holo-core span:nth-child(3) {
  --ring-inset: 36px;
  animation: holo-spin 7s linear infinite;
}

.hero-band .btn {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  box-shadow: 0 18px 42px rgba(54, 209, 220, .16);
}

.hero-band .btn:hover {
  transform: translate3d(var(--mx), calc(var(--my) - 3px), 0) scale(1.02);
}

.hero-band .btn-primary {
  background: linear-gradient(135deg, #36d1dc, #7c3aed);
}

.hero-band .btn-ghost {
  background: rgba(255, 255, 255, .055);
}

.visual-card .floating-ticket {
  position: absolute;
  z-index: 4;
  width: min(80%, 270px);
  padding: 18px 20px;
  color: #eaf2ff;
  background: linear-gradient(135deg, rgba(9, 16, 32, .86), rgba(16, 28, 50, .72));
  border-color: rgba(54, 209, 220, .28);
  box-shadow:
    inset 0 0 24px rgba(54, 209, 220, .08),
    0 18px 48px rgba(5, 10, 22, .28);
}

.visual-card .floating-ticket strong {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
}

.visual-card .floating-ticket span {
  display: block;
  max-width: 100%;
  color: #aFC0dc;
  font-size: 14px;
}

.hero-band .bento-card:hover,
.hero-band .glass-card:hover {
  box-shadow:
    0 28px 80px rgba(5, 10, 22, .44),
    0 0 42px rgba(54, 209, 220, .14);
}

@keyframes data-pan {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 260% 0, 240px 0;
  }
}

@keyframes flow-line {
  0% {
    translate: -22% 0;
    opacity: 0;
  }

  18% {
    opacity: .85;
  }

  100% {
    translate: 64% 0;
    opacity: 0;
  }
}

@keyframes cursor-blink {

  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes holo-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.035);
  }
}

@keyframes holo-spin {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 960px) {
  .topbar .wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .topbar-center {
    display: flex;
  }

  .topbar-right {
    display: flex;
    align-items: flex-end;
  }

  .nav-row {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul,
  .main-nav .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav .sub-menu {
    margin-left: 12px;
    border: 0;
    background: transparent;
  }

  .bento-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .span-12,
  .span-9,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================================================== 
   RESPONSIVE FOUNDATION — desktop, tablet and phone
   ========================================================================== */
@media (max-width: 960px) {
  .span-12,
  .span-9,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: 1 / -1;
  }

  .portal-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .portal-layout-grid > .span-9 {
    width: 100%;
  }

  .services-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .services-portal-grid .service-portal-card {
    grid-column: auto;
    min-width: 0;
  }

  .service-sidebar-card {
    margin-bottom: 0;
  }

  .service-cat-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail > .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail .span-6 {
    grid-column: 1 / -1;
  }

  .footer-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .page-content,
  .post-content,
  .service-content-rich,
  .product-detail-content {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  body {
    min-width: 320px;
    overflow-x: hidden;
  }

  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .topbar .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    padding-block: 7px;
  }

  .topbar-left,
  .topbar-center {
    min-width: 0;
    font-size: 10px;
    line-height: 1.35;
  }

  .topbar-center {
    justify-content: flex-end;
    text-align: right;
  }

  .topbar-center a {
    overflow-wrap: anywhere;
  }

  .topbar-right {
    display: none;
  }

  .nav-row {
    flex-wrap: wrap;
    padding: 9px 0;
  }

  .brand img {
    max-width: 112px;
    height: auto;
  }

  .mobile-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .main-nav {
    max-height: min(72vh, 560px);
    overflow-y: auto;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .section,
  .service-portal-section {
    padding-block: 34px;
  }

  .service-hero-banner {
    padding: 28px 20px;
  }

  .service-hero-banner h1 {
    font-size: clamp(27px, 9vw, 36px);
    line-height: 1.08;
  }

  .portal-layout-grid,
  .services-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .portal-layout-grid > *,
  .services-portal-grid .service-portal-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    grid-column: 1 / -1;
    scroll-snap-align: none;
  }

  .service-sidebar-card {
    padding: 20px 16px;
  }

  .service-cat-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-cat-menu li a {
    min-height: 44px;
  }

  .service-portal-card h3,
  .service-excerpt {
    min-height: 0;
  }

  .service-card-footer,
  .product-action-footer {
    gap: 10px;
    flex-wrap: wrap;
  }

  .service-card-footer .btn,
  .product-action-footer .btn,
  .filter-actions .btn {
    min-height: 44px;
  }

  .product-filters {
    padding: 16px;
  }

  .filters-container,
  .filter-actions {
    width: 100%;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-group select,
  .service-request-form input,
  .service-request-form select,
  .service-request-form textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .footer-grid-rich {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-company-info p {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-contact {
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: auto;
    padding: 6px;
    border-radius: 14px;
    transform: none;
  }

  .floating-contact-item {
    min-width: 0;
    min-height: 54px;
    padding: 4px 2px;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
  }

  .floating-contact-icon {
    width: 27px;
    height: 27px;
  }

  .floating-contact-close {
    top: -12px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 47, 83, .18);
  }
}

@media (hover: none), (pointer: coarse) {
  .bento-card,
  .service-card,
  .product-card,
  .news-card,
  .glass-card {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-primary {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .service-grid,
  .product-grid,
  .news-grid {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 0 16px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .service-card,
  .product-card,
  .news-card,
  .bento-card {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }

  .section-head {
    display: block;
  }

  .floating-ticket {
    width: 100%;
  }

  .hero-band {
    min-height: auto;
    padding: 42px 0 30px;
  }

  .hero-bento {
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .hero-bento .bento-card {
    flex: initial;
    width: auto;
    scroll-snap-align: none;
  }

  .hero-card,
  .visual-card {
    min-height: auto;
  }

  .hero-card h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .terminal-typing {
    width: 100%;
  }

  .holo-core {
    position: relative;
    inset: auto;
    width: min(70vw, 220px);
    margin: 8px auto 0;
  }
}

/* Blue-white UX pass inspired by the NIDTECH logo */
:root {
  --ink: #0b2542;
  --muted: #57718f;
  --line: rgba(44, 125, 207, .18);
  --soft: rgba(255, 255, 255, .72);
  --panel: rgba(255, 255, 255, .78);
  --brand: #0f67b7;
  --brand-dark: #084d91;
  --brand-bright: #21a7e8;
  --accent: #6db7ff;
  --shadow: 0 24px 60px rgba(15, 82, 145, .14);
}

body {
  color: var(--ink);
  background:
    linear-gradient(135deg, #f7fbff 0%, #edf7ff 48%, #ffffff 100%);
}

.site-shell {
  background:
    linear-gradient(120deg, rgba(33, 167, 232, .12), transparent 34%),
    linear-gradient(220deg, rgba(15, 103, 183, .09), transparent 38%),
    #f7fbff;
}

.site-shell::before {
  background:
    radial-gradient(circle at calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%), rgba(33, 167, 232, .16), transparent 24%),
    linear-gradient(90deg, rgba(15, 103, 183, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 103, 183, .08) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.topbar {
  color: #17446f;
  background: rgba(235, 247, 255, .92);
  border-bottom: 1px solid rgba(15, 103, 183, .10);
}

.topbar strong {
  color: var(--brand-dark);
}

.site-header {
  border-bottom: 1px solid rgba(15, 103, 183, .12);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 38px rgba(15, 82, 145, .08);
}

.brand span:last-child,
.main-nav a {
  color: #365c82;
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
  color: var(--brand-dark);
  background: rgba(33, 167, 232, .12);
}

.main-nav .sub-menu {
  border-color: rgba(15, 103, 183, .14);
  background: rgba(255, 255, 255, .94);
}

.logo-shard {
  opacity: .28;
  border: 1.5px solid rgba(15, 103, 183, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(33, 167, 232, 0.1) 100%);
  box-shadow: 0 26px 70px rgba(15, 82, 145, 0.18), inset 0 0 16px rgba(255, 255, 255, 0.45), 0 0 20px rgba(33, 167, 232, 0.12);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
}

.logo-shard img {
  filter: drop-shadow(0 8px 18px rgba(15, 82, 145, 0.25)) drop-shadow(0 0 15px rgba(33, 167, 232, 0.35));
}

.glass-card,
.glass-tile,
.glass-inner,
.stack-item,
.contact-list li {
  color: var(--ink);
  border-color: rgba(15, 103, 183, .16);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 45px rgba(15, 82, 145, .12);
}

.glass-card::before,
.glass-tile::before,
.glass-inner::before,
.stack-item::before,
.contact-list li::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .70), rgba(226, 244, 255, .34));
  opacity: .62;
}

.glass-card::after,
.glass-tile::after,
.glass-inner::after,
.stack-item::after,
.contact-list li::after {
  background: radial-gradient(140px circle at calc(var(--card-x, 0.5) * 100%) calc(var(--card-y, 0.5) * 100%),
      rgba(33, 167, 232, 0.82) 0%,
      rgba(15, 103, 183, 0.62) 46%,
      rgba(255, 255, 255, 0.22) 76%,
      transparent 100%) border-box;
}

.bento-card::before,
.service-card::before,
.product-card::before,
.news-card::before,
.contact-panel::before {
  background: radial-gradient(circle at calc(var(--card-x, .5) * 100%) calc(var(--card-y, .5) * 100%), rgba(33, 167, 232, .18), transparent 42%);
}

.hero-band::before {
  background:
    linear-gradient(105deg, transparent 0 22%, rgba(33, 167, 232, .13) 23%, transparent 24% 46%, rgba(15, 103, 183, .10) 47%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(15, 103, 183, .07) 0 1px, transparent 1px 120px);
}

.hero-band::after {
  background:
    radial-gradient(circle at calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%), rgba(33, 167, 232, .14), transparent 30%),
    repeating-linear-gradient(0deg, rgba(15, 103, 183, .025) 0 1px, transparent 1px 7px);
  opacity: .60;
}

.hero-card,
.visual-card {
  border-color: rgba(15, 103, 183, .16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(238, 248, 255, .66)),
    radial-gradient(circle at 20% 10%, rgba(33, 167, 232, .16), transparent 34%);
}

.hero-card h1 {
  max-width: 720px;
  color: #0b2542;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
  text-shadow: none;
}

.hero-copy,
.visual-head p,
.info-card p,
.service-card p,
.product-card p,
.news-card p,
.contact-panel p,
.stack-item span {
  color: var(--muted);
}

.eyebrow,
.terminal-prefix {
  color: var(--brand);
}

.eyebrow::before {
  background: var(--brand-bright);
}

.terminal-typing {
  color: #123a63;
  border-color: rgba(15, 103, 183, .22);
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(232, 247, 255, .80));
  box-shadow: inset 0 0 24px rgba(33, 167, 232, .08), 0 16px 38px rgba(15, 82, 145, .10);
}

.typing-output::after {
  border-right-color: var(--brand);
}

.hero-chips span,
.chip {
  color: #17446f;
  border-color: rgba(15, 103, 183, .14);
  background: rgba(255, 255, 255, .66);
}

.data-flow {
  background: linear-gradient(90deg, transparent, rgba(15, 103, 183, .64), rgba(33, 167, 232, .56), transparent);
  filter: drop-shadow(0 0 10px rgba(33, 167, 232, .30));
  opacity: .58;
}

.corner-node {
  border-color: rgba(15, 103, 183, .34);
  filter: drop-shadow(0 0 10px rgba(33, 167, 232, .22));
}

.holo-core {
  background: radial-gradient(circle, rgba(33, 167, 232, .16), rgba(15, 103, 183, .06) 42%, transparent 68%);
  filter: drop-shadow(0 0 28px rgba(33, 167, 232, .18));
}

.holo-core span {
  border-color: rgba(15, 103, 183, .20);
}

.signal-grid span {
  background: linear-gradient(180deg, rgba(33, 167, 232, .72), rgba(15, 103, 183, .76));
}

.hero-band .btn-primary,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0f67b7, #21a7e8);
  box-shadow: 0 16px 34px rgba(15, 103, 183, .22);
}

.hero-band .btn-ghost,
.btn-ghost {
  color: var(--brand-dark);
  border-color: rgba(15, 103, 183, .16);
  background: rgba(255, 255, 255, .72);
}

.hero-band .bento-card:hover,
.hero-band .glass-card:hover,
.tilt-card:hover {
  box-shadow:
    0 22px 58px rgba(15, 82, 145, .16),
    0 0 30px rgba(33, 167, 232, .12);
}

.visual-card .floating-ticket {
  color: var(--ink);
  border-color: rgba(15, 103, 183, .16);
  background: linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(230, 246, 255, .80));
  box-shadow: 0 18px 40px rgba(15, 82, 145, .12);
}

.visual-card .floating-ticket strong {
  color: var(--brand-dark);
}

.visual-card .floating-ticket span,
.stat span {
  color: #6b84a1;
}

.service-card h3,
.product-card h3,
.news-card h3,
.info-card h3,
.visual-head strong,
.contact-panel h2,
.site-footer h3 {
  color: #0b2542;
}

.product-card,
.news-card,
.service-card,
.contact-panel {
  background: rgba(255, 255, 255, .76);
}

.icon,
.service-card .icon {
  background: linear-gradient(135deg, #0f67b7, #21a7e8);
  box-shadow: 0 12px 24px rgba(15, 103, 183, .18);
}

.section-head h2 {
  color: #0b2542;
}

.section-head p {
  color: var(--muted);
}

.contact-section {
  background: transparent;
}

.site-footer {
  background: linear-gradient(135deg, #0b2542, #0f4f86);
}

.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #d8e8f8;
}

/* Polish section headers so CTA buttons and long titles stay balanced */
.section-head {
  align-items: center;
}

.section-head>div {
  min-width: 0;
  max-width: 880px;
}

.section-head h2 {
  max-width: 820px;
  font-size: clamp(30px, 2.6vw, 50px);
  line-height: 1.08;
}

.section-head .btn {
  flex: 0 0 auto;
  min-width: 136px;
  white-space: nowrap;
  padding-inline: 22px;
}

/* Promo Banner Section */
.promo-banner {
  margin-top: 36px;
  margin-bottom: 24px;
  padding: 14px !important;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow);
}

.banner-slides-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 6px;
}

.banner-slides {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
}

.banner-slide a {
  display: block;
  width: 100%;
}

.banner-slide .banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Navigation Buttons */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(30px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 15, 29, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  user-select: none;
}

.banner-nav:hover {
  background: var(--brand);
  border-color: transparent;
  box-shadow: 0 0 15px color-mix(in srgb, var(--brand) 50%, transparent);
}

.banner-prev {
  left: 16px;
}

.banner-next {
  right: 16px;
}

/* Dots Indicators */
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateZ(30px);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.is-active,
.banner-dot:hover {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .promo-banner {
    margin-top: 24px;
  }

  .banner-nav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .banner-prev {
    left: 8px;
  }

  .banner-next {
    right: 8px;
  }

  .banner-dots {
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .logo-orbit {
    display: none;
  }
}

/* Hero Search Form styles */
.hero-search-form {
  margin-top: 22px;
  margin-bottom: 6px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 5;
}

.hero-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: var(--radius) !important;
  padding: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.hero-search-wrap:focus-within {
  border-color: #10b981 !important; /* Green border on focus */
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.hero-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.hero-search-input::placeholder {
  color: #a5b8d6 !important;
  opacity: 0.7 !important;
}

.hero-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #10b981 !important; /* Sét nút màu xanh lục công nghệ */
  border: none !important;
  border-radius: calc(var(--radius) - 2px) !important;
  color: #07111f !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
}

.hero-search-btn:hover {
  background: #059669 !important; /* Xanh lục đậm hơn khi hover */
}

.hero-search-btn:active {
  transform: scale(0.97) !important;
}

.search-icon {
  stroke: #07111f !important;
}

/* Styling for Hero Banner Slider Container */
.hero-banner-slider-container {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 1 !important; /* Tỷ lệ 2:1 khớp hoàn hảo với ảnh banner 1000x500 để không bị cắt chữ */
  border-radius: 6px !important;
  overflow: hidden !important;
  margin-bottom: 14px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 24px rgba(5, 10, 22, .18) !important;
}

.hero-banner-slider-container .banner-slides-wrapper {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: stretch !important;
}

.hero-banner-slider-container .banner-slides {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: stretch !important;
}

.hero-banner-slider-container .banner-slide {
  height: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
}

.hero-banner-slider-container .banner-slide a {
  height: 100% !important;
  width: 100% !important;
  display: block !important;
}

.hero-banner-slider-container .banner-slide .banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Cố định lại vị trí nút và dot cho khớp với container slider của hero banner */
.hero-banner-slider-container .banner-nav {
  width: 36px !important;
  height: 36px !important;
  font-size: 14px !important;
}

.hero-banner-slider-container .banner-dots {
  bottom: 10px !important;
}

/* Thu gọn margin của các thành phần bên dưới banner trong hero-card */
.hero-card .terminal-typing {
  margin-top: 12px !important;
}

.hero-card .hero-search-form {
  margin-top: 12px !important;
}

.hero-card .hero-actions {
  margin-top: 14px !important;
}

.hero-card .hero-chips {
  margin-top: 10px !important;
}

.hero-card .hero-stats {
  margin-top: 16px !important;
}


/* Centering and restoring floating animations of Bento Widgets with custom hover effect */
.signal-card {
  position: absolute !important;
  top: 40px !important; /* Điều chỉnh vị trí phù hợp với chiều cao khung mới */
  left: 50% !important;
  transform: translateX(-50%) translateZ(36px) !important;
  width: min(90%, 280px) !important;
  z-index: 5 !important;
  animation: float-gentle-1 5s ease-in-out infinite alternate !important;
  transition: transform 0.3s ease, left 0.3s ease !important;
}

.floating-ticket {
  position: absolute !important;
  bottom: 40px !important; /* Điều chỉnh vị trí phù hợp với chiều cao khung mới */
  left: 50% !important;
  transform: translateX(-50%) translateZ(58px) !important;
  width: min(85%, 220px) !important; /* Thu gọn chiều rộng khung sđt */
  z-index: 6 !important;
  animation: float-gentle-2 4.5s ease-in-out infinite alternate !important;
  transition: transform 0.3s ease, left 0.3s ease !important;
  padding: 12px 16px !important; /* Cho padding gọn lại một chút */
}

.floating-ticket strong {
  font-size: 20px !important; /* Chữ SĐT nhỏ lại một chút cho cân xứng */
  line-height: 1.2 !important;
}

.floating-ticket span {
  font-size: 12px !important; /* Chữ mô tả nhỏ lại */
}

@keyframes float-gentle-1 {
  0% {
    transform: translateX(-50%) translateY(0) translateZ(36px);
  }
  100% {
    transform: translateX(-50%) translateY(-12px) translateZ(36px);
  }
}

@keyframes float-gentle-2 {
  0% {
    transform: translateX(-50%) translateY(0) translateZ(58px);
  }
  100% {
    transform: translateX(-50%) translateY(-10px) translateZ(58px);
  }
}

/* Extra small screens topbar center styling */
@media (max-width: 576px) {
  .topbar .wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .topbar-left {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .topbar-left div,
  .topbar-center,
  .topbar-center div,
  .topbar-right div {
    text-align: center !important;
    width: 100% !important;
  }
  .topbar-center {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .topbar-right {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
}

/* Service-only homepage */
.service-hero .hero-card {
  display: flex;
  flex-direction: column;
}

.hero-service-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 2 / 1;
  background: #e9f6ff;
}

.hero-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero .hero-card h1 {
  margin-bottom: 14px;
}

.service-hero .hero-copy {
  color: var(--muted);
}

.service-ticket-panel {
  position: relative;
  display: grid;
  min-height: 520px;
  align-content: start;
  gap: 16px;
  padding-top: 8px;
}

.ticket-status {
  position: relative;
  z-index: 2;
}

.ticket-status > *,
.service-ticket-panel .floating-ticket > * {
  position: relative;
  z-index: 1;
}

.ticket-status span,
.process-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 1px solid rgba(15, 103, 183, .16);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 850;
}

.ticket-status strong {
  display: block;
  margin-bottom: 8px;
  color: #0b2542;
  font-size: 22px;
}

.ticket-status p,
.process-card p,
.request-side h3 {
  color: var(--muted);
}

.ticket-status p,
.service-ticket-panel .floating-ticket span {
  color: #365c82;
}

.service-ticket-panel .floating-ticket {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  transform: none !important;
  animation: none !important;
}

.process-card,
.request-panel,
.request-side {
  padding: 22px;
}

.process-card.reveal,
.request-panel.reveal,
.request-side.reveal {
  opacity: 1;
  transform: none;
}

.process-card h3 {
  margin-bottom: 8px;
  color: #0b2542;
}

.request-panel h2 {
  margin-bottom: 18px;
  color: #0b2542;
}

.service-request-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-request-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.service-request-form .span-full {
  grid-column: 1 / -1;
}

.service-request-form input,
.service-request-form select,
.service-request-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 103, 183, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.service-request-form input:focus,
.service-request-form select:focus,
.service-request-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(33, 167, 232, .14);
}

.service-request-form button {
  width: fit-content;
}

.service-package-list .stack-item {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) 1fr auto;
  align-items: center;
  gap: 16px;
}

.service-package-list .stack-item em {
  color: var(--brand-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 960px) {
  .service-ticket-panel {
    min-height: auto;
  }

  .service-package-list .stack-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .services-bento,
  .process-grid,
  .content-bento,
  .request-section .bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .services-bento .bento-card,
  .process-grid .bento-card,
  .content-bento .bento-card,
  .request-section .bento-card {
    flex: initial;
    width: auto;
    scroll-snap-align: none;
  }

  .service-request-form {
    grid-template-columns: 1fr;
  }

  .service-request-form button {
    width: 100%;
  }

  .service-hero .hero-stats {
    grid-template-columns: 1fr;
  }
}

.floating-contact {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 60;
  display: grid;
  width: 116px;
  gap: 12px;
  padding: 22px 12px 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
  color: #334155;
  transform: translateY(-50%);
  transition: opacity .3s ease, transform .4s cubic-bezier(0.4, 0, 0.2, 1), visibility .3s ease;
}

.floating-contact.is-hidden {
  visibility: visible;
  opacity: 1;
  transform: translate(calc(100% + 18px), -50%);
}

.floating-contact-toggle {
  position: absolute;
  top: 50%;
  left: -40px;
  width: 40px;
  height: 48px;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-right: none;
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -4px 0 12px rgba(15, 23, 42, .08);
  color: #334155;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-contact.is-hidden .floating-contact-toggle {
  opacity: 1;
  pointer-events: auto;
}

.floating-contact-close {
  position: absolute;
  top: 7px;
  right: 9px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.floating-contact-close:hover,
.floating-contact-close:focus-visible {
  color: #0f172a;
  outline: none;
}

.floating-contact-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
}

.floating-contact-item:hover,
.floating-contact-item:focus-visible {
  color: #0f172a;
  outline: none;
}

.floating-contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.floating-contact-icon svg {
  width: 100%;
  height: 100%;
}

.zalo-icon {
  width: 48px;
  height: 48px;
  border: 3px solid #1473ff;
  border-top-color: transparent;
  border-bottom-color: #1473ff;
  border-radius: 50%;
  color: #1473ff;
  font-size: 16px;
  font-weight: 900;
}

.mail-icon {
  color: #0ea5e9;
}

@media (max-width: 760px) {
  .floating-contact {
    right: 10px;
    width: 82px;
    gap: 9px;
    padding: 20px 8px 12px;
  }

  .floating-contact-item {
    font-size: 13px;
  }

  .floating-contact-icon {
    width: 36px;
    height: 36px;
  }

  .zalo-icon {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

.site-footer {
  position: relative;
  padding: 56px 0 58px;
  border-top: 1px solid #d7e2ee;
  color: #536273;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .40)),
    #edf3f8;
}

.footer-grid-rich {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(290px, .95fr) minmax(440px, 1.45fr) minmax(390px, 1.24fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.footer-brand-col,
.footer-center-col,
.footer-company-col {
  min-width: 0;
}

.footer-center-col,
.footer-company-col {
  padding-left: clamp(18px, 2.5vw, 34px);
  border-left: 1px solid #d8e3ee;
}

.footer-center-col {
  display: grid;
  gap: 26px;
}

.footer-menu-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px);
}

.footer-company-col {
  display: grid;
  gap: 18px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #1d2b3f;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.footer-company-col h3:first-child,
.footer-menu-col h3:first-child {
  text-transform: none;
  letter-spacing: 0;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer label {
  color: #5d6d7f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.52;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #0b5cab;
  outline: none;
}

.footer-logo {
  display: inline-flex;
  padding: 0;
  margin-bottom: 18px;
}

.footer-logo img {
  width: min(250px, 100%);
  height: auto;
}

.footer-brand-col p {
  margin: 0 0 8px;
}

.footer-brand-col p strong {
  color: #152033;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 18px;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  position: relative;
  display: grid;
  min-height: 52px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.footer-contact-list li:hover {
  border-color: #a9c8e6;
  background: #f7fbff;
  transform: translateY(-1px);
}

.footer-contact-list a {
  color: #32475f;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.38;
}

.footer-contact-list li::before {
  position: relative;
  left: auto;
  top: auto;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #c9def2;
  border-radius: 50%;
  background: #e8f4ff;
  color: #0b5cab;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  content: "";
}

.footer-contact-phone::before {
  content: "☎" !important;
}

.footer-contact-mail::before {
  content: "✉" !important;
}

.footer-contact-location::before {
  content: "⌖" !important;
}

.footer-contact-list li::after {
  content: none;
}

.footer-map {
  width: 100%;
  min-height: 142px;
  border: 0;
  border-radius: 6px;
  background: #d1d5db;
}

.footer-map-link {
  display: grid;
  gap: 8px;
  width: 100%;
}

.footer-map-link span {
  color: #0b5cab;
  font-size: 13px;
  font-weight: 850;
}

.footer-links {
  gap: 10px;
}

.footer-menu-col .footer-links {
  margin-bottom: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: color .18s ease, transform .18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: transparent;
  transform: translateX(2px);
}

.footer-support-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #f8fbff;
  list-style: none;
  overflow: hidden;
}

.footer-support-list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid #d8e3ee;
  border-bottom: 0;
  height: 100%;
}

.footer-support-list li:last-child {
  border-right: 0;
}

.footer-support-list span,
.footer-support-list a {
  font-size: 15px;
  font-weight: 850;
}

.footer-support-list span {
  white-space: normal;
  word-break: break-word;
}

.footer-support-list a {
  justify-self: start;
  color: #32475f;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 0 0 16px;
}

.footer-social {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d8e3ee;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 47, 83, .08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  box-shadow: 0 12px 24px rgba(15, 47, 83, .12);
  transform: translateY(-2px);
}

.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-newsletter {
  display: grid;
  gap: 5px;
  max-width: 100%;
  margin: 0;
}

.footer-newsletter label {
  color: #1d2b3f;
  font-size: 15px;
}

.footer-newsletter div {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 74px;
}

.footer-newsletter input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d8e3ee;
  border-right: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  padding: 10px 12px;
  outline: none;
}

.footer-newsletter input:focus {
  border-color: #0b5cab;
  box-shadow: 0 0 0 4px rgba(11, 92, 171, .12);
}

.footer-newsletter button {
  border: 0;
  background: #0757a4;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-newsletter-card {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #d8e3ee;
  border-radius: 0;
  background: transparent;
}

.footer-newsletter-card p {
  margin: 0 0 14px;
}

.footer-newsletter-card .footer-newsletter-notice {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 103, 183, .2);
  border-radius: 6px;
  color: #17446f;
  background: #eef8ff;
  font-weight: 700;
}

.footer-newsletter-card .footer-newsletter-notice.is-success {
  border-color: #86d7a2;
  color: #166534;
  background: #effcf3;
}

.footer-newsletter-card .footer-newsletter-notice.is-error {
  border-color: #f0a3a3;
  color: #991b1b;
  background: #fff1f1;
}

.footer-company-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-company-info {
  display: grid;
  gap: 10px;
}

.footer-company-info p {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #526273;
  font-size: 15px;
  font-weight: 750;
}

.footer-company-info p:first-child {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8e3ee;
  color: #1d2b3f;
  font-size: 18px;
}

.footer-company-info span:first-child {
  width: fit-content;
  min-width: 94px;
  text-align: center;
  border-radius: 999px;
  background: #e8f4ff;
  color: #0b5cab;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.footer-company-info a {
  color: #1d2b3f;
  font-size: inherit;
  font-weight: 900;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #d8e3ee;
}

.footer-badges img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.footer-badges img:last-child {
  height: 40px;
}

@media (max-width: 1200px) {
  .footer-grid-rich {
    grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.1fr);
  }

  .footer-company-col {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #d8e3ee;
    padding-top: 26px;
  }

  .footer-company-info p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-company-info span:first-child {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .site-footer {
    padding: 34px 0 42px;
  }

  .footer-grid-rich {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-center-col,
  .footer-company-col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #d8e3ee;
    padding-top: 24px;
  }

  .footer-menu-pair,
  .footer-support-list {
    grid-template-columns: 1fr;
  }

  .footer-support-list li {
    border-right: 0;
    border-bottom: 1px solid #d8e3ee;
  }

  .footer-support-list li:last-child {
    border-bottom: 0;
  }

  .site-footer h3 {
    font-size: 20px;
  }

  .site-footer p,
  .site-footer li,
  .site-footer a {
    font-size: 16px;
  }

  .footer-newsletter {
    margin-bottom: 0;
  }

  .footer-newsletter div {
    grid-template-columns: 1fr;
  }

  .footer-newsletter input {
    border-right: 1px solid #d1d5db;
  }

  .footer-newsletter button {
    min-height: 44px;
  }
}

/* ==========================================================================
   PRODUCT & SERVICE ARCHIVES (SHOP / CỬA HÀNG & DỊCH VỤ)
   ========================================================================== */

/* Bộ lọc sản phẩm */
.product-filters {
  padding: 16px 20px;
  margin-bottom: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, .16);
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 200px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  color-scheme: light;
  outline: none;
  cursor: pointer;
  transition: border-color .15s ease;
}

.filter-group select:focus {
  border-color: var(--brand);
  background: #fff;
  color: #334155;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .14);
}

.filter-group select option {
  background: #fff;
  color: #334155;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Lưới sản phẩm & Card */
.products-grid,
.services-grid {
  margin-top: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.product-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.product-placeholder-icon {
  font-size: 42px;
}

.product-info-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

.product-meta-header {
  margin-bottom: 10px;
}

.product-brand-tag {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(54, 209, 220, .12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(54, 209, 220, .18);
  letter-spacing: .5px;
}

.product-card h3 {
  font-size: 17px;
  margin: 0 0 8px 0;
  font-weight: 700;
  line-height: 1.35;
}

.product-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.product-card h2 a { color: var(--ink); }

.product-detail { padding: clamp(20px, 4vw, 42px); }
.product-detail-image { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.product-detail-summary { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.product-detail-summary h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); }
.product-detail-content { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); line-height: 1.7; }

.product-card h3 a {
  color: var(--ink);
  transition: color .15s ease;
}

.product-card h3 a:hover {
  color: var(--brand);
}

.product-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.product-action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.product-price-tag {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  text-shadow: 0 0 15px rgba(54, 209, 220, .15);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  min-height: auto;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

/* Dịch vụ Card media */
.service-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-info-wrapper {
  padding-top: 14px;
}

/* Pagination */
.products-pagination,
.services-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.navigation.pagination {
  display: block;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: all .15s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #07111f;
}

/* Mobile responsive filters */
@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex: 1 1 100%;
  }

  .filter-actions {
    width: 100%;
    margin-top: 15px;
  }

  .filter-actions button,
  .filter-actions a {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   SERVICE PORTAL (PORTAL DỊCH VỤ)
   ========================================================================== */

/* Banner Portal Dịch vụ */
.service-hero-banner {
  padding: 50px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.7) !important; /* Viền trắng trong suốt */
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8) !important; /* Nền trắng sáng đục 80% */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 25px;
}

.service-hero-banner h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: #0f172a !important; /* Màu đen sẫm sắc nét 100% */
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.service-hero-banner p {
  color: #334155 !important; /* Màu xám tối cực kỳ rõ ràng, tương phản tốt */
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 820px;
}

/* Sidebar Menu dọc */
.portal-layout-grid {
  align-items: stretch;
}

.portal-layout-grid > .span-9 {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}

.services-portal-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.service-sidebar-card {
  padding: 24px 20px;
  height: auto;
  align-self: stretch;
}

.sidebar-menu-wrapper h3 {
  font-size: 16px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 20px 0;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.service-cat-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-cat-menu li {
  width: 100%;
}

.service-cat-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  transition: all .15s ease;
  background: transparent;
}

.service-cat-menu li a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .03);
}

.service-cat-menu li.is-active a {
  color: #07111f;
  background: var(--brand);
}

.service-cat-menu li.is-active a:hover {
  color: #07111f;
  background: var(--brand);
}

.service-cat-menu .menu-icon {
  font-size: 16px;
}

/* Card Dịch vụ của Portal */
.service-portal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.service-portal-card .service-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--line);
}

.service-portal-card .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.service-portal-card:hover .service-media img {
  transform: scale(1.04);
}

.service-portal-card .service-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .01);
}

.service-portal-card .placeholder-icon {
  font-size: 38px;
}

.service-portal-card .service-info-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-portal-card h3 {
  font-size: 17px;
  margin: 0 0 8px 0;
  font-weight: 700;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-portal-card h3 a {
  color: var(--ink);
  transition: color .15s ease;
}

.service-portal-card h3 a:hover {
  color: var(--brand);
}

.service-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px 0;
  flex-grow: 1;
  min-height: calc(1.55em * 2);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}

/* Cam kết */
.commitment-card {
  padding: 30px 20px;
}

.commitment-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 14px;
}

.commitment-card h3 {
  font-size: 17px;
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.commitment-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* Related news in Portal */
.related-news-section {
  padding-top: 20px;
}

.news-portal-card h3 a:hover {
  color: var(--brand);
}

.portal-pagination .navigation.pagination {
  display: block;
}

.portal-pagination .pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive Portal */
@media (max-width: 960px) {
  .portal-layout-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar-card {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .services-portal-grid {
    height: auto;
    grid-auto-rows: auto;
  }
}

/* Final responsive overrides: keep portal content in the normal document flow. */
@media (max-width: 960px) {
  .portal-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
  }

  .portal-layout-grid > .span-3,
  .portal-layout-grid > .span-9 {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
  }

  .portal-layout-grid > .span-9 {
    display: block;
  }

  .services-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .services-portal-grid > .service-portal-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .reveal,
  .reveal.is-visible,
  .bento-card.reveal.is-visible,
  .service-card.reveal.is-visible,
  .product-card.reveal.is-visible,
  .news-card.reveal.is-visible {
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .portal-layout-grid,
  .services-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .services-portal-grid > .service-portal-card {
    flex: none;
    grid-column: 1 / -1;
  }

  .floating-contact {
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    transform: none;
  }

  .floating-contact-item {
    min-width: 0;
    padding: 4px 2px;
  }
}

/* ==========================================================================
   AI Chatbox Styles
   ========================================================================== */
.floating-ai-chat {
  position: fixed;
  bottom: 40px;
  left: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Inter', sans-serif;
}

.ai-chat-toggle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.ai-chat-toggle:hover {
  transform: scale(1.1);
}

.ai-chat-window {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 400px;
  height: 520px;
  background: rgba(255, 255, 255, 0.95); /* White glass background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  z-index: 1;
}

.ai-chat-window.is-open {
  display: flex !important;
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ai-chat-window > .ai-chat-header,
.ai-chat-window > .ai-chat-messages,
.ai-chat-window > .ai-chat-quick-actions,
.ai-chat-window > .ai-chat-form {
  position: relative;
  z-index: 1;
}

.ai-chat-header {
  padding: 15px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title strong {
  display: block;
  font-size: 16px;
  color: #0b2542;
  font-weight: 800;
  margin-bottom: 2px;
}

.ai-chat-title span {
  font-size: 12px;
  color: #0f67b7;
  font-weight: 700;
}

.ai-chat-close {
  background: none;
  border: none;
  color: #475569;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.ai-chat-close:hover {
  color: #111827;
}

.ai-chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.ai-message, .user-message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
  animation: ai-message-enter 0.3s ease-out both;
}

@keyframes ai-message-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-message {
  background: #f3f4f6;
  color: #000;
  font-weight: 500;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-message p {
  margin: 0 0 8px;
}

.ai-message p:last-child {
  margin-bottom: 0;
}

.ai-message ol,
.ai-message ul {
  margin: 6px 0 2px;
  padding-left: 22px;
}

.ai-message li + li {
  margin-top: 8px;
}

.ai-message strong {
  color: #111827;
  font-weight: 750;
}

.user-message {
  background: var(--brand-dark);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-quick-actions {
  padding: 10px 12px 0;
  border-top: 1px solid rgba(15, 103, 183, 0.1);
  background: #fff;
}

.ai-booking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f67b7, #21a7e8);
  box-shadow: 0 8px 20px rgba(15, 103, 183, 0.2);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-booking-link:hover,
.ai-booking-link:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 103, 183, 0.28);
}

.ai-chat-form {
  display: flex;
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.ai-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #000;
  font-weight: 500;
  font-size: 14px;
  padding: 8px;
  outline: none;
}

.ai-chat-input::placeholder {
  color: #64748b;
  opacity: 1;
}

.ai-chat-submit {
  background: transparent;
  border: none;
  color: var(--brand);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
}

.ai-chat-submit:hover {
  color: var(--brand-dark);
  transform: translateX(2px);
}

.ai-typing {
  font-size: 12px;
  color: var(--muted);
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 5px 10px;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing 1.4s infinite both;
}
.ai-typing span:nth-child(1) { animation-delay: 0s; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 768px) {
  .floating-ai-chat {
    bottom: 100px; /* To prevent overlapping with right-side floating menu on mobile */
    left: 15px;
  }
  .ai-chat-toggle {
    width: 60px;
    height: 60px;
  }
  .ai-chat-window {
    width: calc(100vw - 30px);
    max-width: 400px;
    height: 70vh;
    min-height: 380px;
    bottom: 75px;
  }
  .ai-chat-tooltip {
    bottom: 70px;
  }
}
@media (max-width: 400px) {
  .floating-ai-chat {
    left: 10px;
  }
  .ai-chat-window {
    width: calc(100vw - 20px);
  }
}

.ai-chat-tooltip {
  position: absolute;
  bottom: 84px;
  left: -10px;
  background: var(--brand-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}
.ai-chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 30px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--brand-dark) transparent transparent transparent;
}
.ai-chat-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile performance: keep the visual style while avoiding persistent GPU work. */
@media (max-width: 768px) {
  .logo-shard,
  .product-visual,
  .hero-band::before,
  .typing-output::after,
  .data-flow,
  .holo-core,
  .holo-core span,
  .signal-card,
  .floating-ticket,
  .signal-grid .clock-colon {
    animation: none !important;
  }

  .logo-shard,
  .site-header,
  .glass-card,
  .glass-tile,
  .glass-inner,
  .stack-item,
  .contact-list li,
  .signal-card,
  .banner-nav,
  .hero-search-wrap,
  .ai-chat-window {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
