@import url("./chatbot.css");

/* ========================================================
   Nexcore Dark / Light Theme System
   ======================================================== */

/* Global Mobile Horizontal Overflow Prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative !important;
}

main.View {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Global Smooth Color Transitions */
html, body, .fill, .strip, .View, section, header, footer {
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------- Theme Toggle Button ----------------- */
.ThemeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: #000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
  padding: 0;
  margin-left: 1.4rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (width <= 767px) {
  .ThemeToggle {
    width: 2.8rem;
    height: 2.8rem;
    margin-left: 0.8rem;
  }
}

.ThemeToggle:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ThemeToggle:active {
  transform: scale(0.92);
}

.ThemeToggle svg {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

@media (width <= 767px) {
  .ThemeToggle svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}

/* Light mode icon display (Shows Moon by default) */
.ThemeToggle .icon-sun {
  display: none;
}
.ThemeToggle .icon-moon {
  display: block;
}

/* Dark mode icon display (Shows Sun in dark mode) */
html.dark .ThemeToggle .icon-sun {
  display: block;
  transform: rotate(0deg);
}
html.dark .ThemeToggle .icon-moon {
  display: none;
}

html.dark .ThemeToggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

html.dark .ThemeToggle:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

/* Ensure actions container flexes properly */
.actions[data-astro-cid-o3nrfmq4] {
  display: inline-flex !important;
  align-items: center !important;
}

/* ========================================================
   DARK THEME STYLES
   ======================================================== */

html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #0a0b10 !important;
  color: #ffffff !important;
}

/* Header Glassmorphism in Dark Mode */
html.dark .fill[data-astro-cid-o3nrfmq4] {
  background: rgba(10, 11, 16, 0.88) !important;
  backdrop-filter: blur(16px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ========================================================
   HEADER VISIBILITY OVER HERO VIDEO (WHITE & HIGH CONTRAST)
   ======================================================== */
.Navbar.-inverse:not(.-fixed),
.Navbar:not(.-fixed) {
  z-index: 100 !important;
}

/* Frosted glass / soft dark vignette behind header at top on Desktop */
@media (min-width: 768px) {
  .Navbar.-inverse:not(.-fixed) .strip[data-astro-cid-o3nrfmq4]:before,
  .Navbar:not(.-fixed) .strip[data-astro-cid-o3nrfmq4]:before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(6, 8, 14, 0.72) 0%, rgba(6, 8, 14, 0.35) 75%, transparent 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 0 2rem 2rem !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }
}

/* Navbar Logo: Enlarged Size, White Text & Cyan Glowing Symbol */
.logo[data-astro-cid-o3nrfmq4] {
  width: 13.5rem !important;
  height: 2.4rem !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (min-width: 768px) {
  .logo[data-astro-cid-o3nrfmq4] {
    width: 17.5rem !important;
    height: 3.1rem !important;
  }
}

@media (min-width: 1200px) {
  .logo[data-astro-cid-o3nrfmq4] {
    width: 18.5rem !important;
    height: 3.3rem !important;
  }
}

@media (min-width: 768px) {
.Navbar.-inverse:not(.-fixed) .logo[data-astro-cid-o3nrfmq4],
.Navbar:not(.-fixed) .logo[data-astro-cid-o3nrfmq4],
.Navbar.-inverse:not(.-fixed) .logo[data-astro-cid-o3nrfmq4] svg,
.Navbar:not(.-fixed) .logo[data-astro-cid-o3nrfmq4] svg {
  color: #ffffff !important;
}

.Navbar.-inverse:not(.-fixed) .logo[data-astro-cid-o3nrfmq4] .text-mark,
.Navbar:not(.-fixed) .logo[data-astro-cid-o3nrfmq4] .text-mark,
.Navbar.-inverse:not(.-fixed) .logo[data-astro-cid-o3nrfmq4] .text-mark path,
.Navbar:not(.-fixed) .logo[data-astro-cid-o3nrfmq4] .text-mark path,
html.dark .logo[data-astro-cid-o3nrfmq4] .text-mark,
html.dark .logo[data-astro-cid-o3nrfmq4] .text-mark path {
  fill: #ffffff !important;
  color: #ffffff !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 1px rgba(0, 0, 0, 1)) !important;
}

/* Navbar Links: High-Contrast White with Cyan Hover */
.Navbar.-inverse:not(.-fixed) .navs[data-astro-cid-o3nrfmq4],
.Navbar:not(.-fixed) .navs[data-astro-cid-o3nrfmq4],
.Navbar.-inverse:not(.-fixed) .nav__toggle[data-astro-cid-o3nrfmq4],
.Navbar:not(.-fixed) .nav__toggle[data-astro-cid-o3nrfmq4] {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.Navbar.-inverse:not(.-fixed) .nav__title span:after,
.Navbar:not(.-fixed) .nav__title span:after {
  color: #00f0ff !important;
}

.Navbar.-inverse:not(.-fixed) .nav[data-astro-cid-o3nrfmq4]:hover .nav__toggle,
.Navbar:not(.-fixed) .nav[data-astro-cid-o3nrfmq4]:hover .nav__toggle {
  color: #00f0ff !important;
}

/* Header CTA Button: High-Contrast White Pill */
.Navbar.-inverse:not(.-fixed) .CtaButton[data-astro-cid-s6shze65].-fill,
.Navbar:not(.-fixed) .CtaButton[data-astro-cid-s6shze65].-fill {
  background: #ffffff !important;
  color: #06080e !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.Navbar.-inverse:not(.-fixed) .CtaButton[data-astro-cid-s6shze65].-fill:hover,
.Navbar:not(.-fixed) .CtaButton[data-astro-cid-s6shze65].-fill:hover {
  background: #00f0ff !important;
  color: #000000 !important;
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5) !important;
}

.Navbar.-inverse:not(.-fixed) .CtaButton[data-astro-cid-s6shze65].-fill .title span:after,
.Navbar:not(.-fixed) .CtaButton[data-astro-cid-s6shze65].-fill .title span:after {
  color: #ffffff !important;
}
}

/* Conflicting legacy rules removed for pure Cuberto system */

/* Header CTA Button in Dark Mode */
html.dark .CtaButton[data-astro-cid-s6shze65].-fill {
  color: #0a0b10 !important;
  background: #ffffff !important;
}
html.dark .CtaButton[data-astro-cid-s6shze65].-fill .title span:after {
  color: #ffffff !important;
}

/* Mobile Hamburger Toggle */
html.dark .toggle[data-astro-cid-o3nrfmq4] span {
  background: #ffffff !important;
}

/* Headings and Titles */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark .header[data-astro-cid-yhlrtawi],
html.dark .header[data-astro-cid-em637tx5],
html.dark .header[data-astro-cid-se7isvup],
html.dark .header[data-astro-cid-n6egurcx],
html.dark .title[data-astro-cid-fibfjdhx],
html.dark .caption[data-astro-cid-fibfjdhx] {
  color: #ffffff !important;
}

/* Body Text and Paragraphs */
html.dark .text[data-astro-cid-yhlrtawi],
html.dark .text[data-astro-cid-em637tx5],
html.dark .item__text[data-astro-cid-yvhehy42] {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Dividers */
html.dark .Divider[data-astro-cid-jqyytg4m] path {
  stroke: rgba(255, 255, 255, 0.15) !important;
}

/* Feature Section (Accordion Cards) */
html.dark .FeatureSection[data-astro-cid-yvhehy42] .item {
  color: #ffffff !important;
}
html.dark .FeatureSection[data-astro-cid-yvhehy42] .item__fill {
  background: #12141e !important;
}
html.dark .FeatureSection[data-astro-cid-yvhehy42] .item:not(.-active) .item__fill {
  background: #0e1017 !important;
}

/* Brands / Logoreel - Prominent fullscreen sizing */
.LogoreelSection[data-astro-cid-se7isvup] .items {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4.5rem 3rem !important;
  align-items: center !important;
  width: 100% !important;
}

@media (max-width: 860px) {
  .LogoreelSection[data-astro-cid-se7isvup] .items {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem 1.8rem !important;
  }
}

.LogoreelSection[data-astro-cid-se7isvup] .item {
  height: 8.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 0.8rem 1.6rem !important;
}

.LogoreelSection[data-astro-cid-se7isvup] .item__img {
  height: auto !important;
  max-height: 52px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.LogoreelSection[data-astro-cid-se7isvup] .item__img img {
  max-width: 175px !important;
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 0.88 !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
  will-change: transform, opacity !important;
}

.LogoreelSection[data-astro-cid-se7isvup] .item:hover .item__img img {
  opacity: 1 !important;
  transform: translateY(-2px) scale(1.08) !important;
}

html.dark .LogoreelSection[data-astro-cid-se7isvup] .item__img img {
  filter: brightness(0) invert(1) opacity(0.82) drop-shadow(0 0 1px rgba(255,255,255,0.4)) !important;
}

html.dark .LogoreelSection[data-astro-cid-se7isvup] .item:hover .item__img img {
  filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 10px rgba(0, 229, 255, 0.6)) !important;
}

.LogoreelSection[data-astro-cid-se7isvup] .item__tooltip {
  background: rgba(10, 15, 29, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7) !important;
  font-family: inherit;
  z-index: 10 !important;
}

.LogoreelSection[data-astro-cid-se7isvup] .item__tooltip strong {
  color: #00e5ff;
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* ============================================================
   DESKTOP 1-LINE BASELINE ALIGNMENT FOR SERVICES
   ============================================================ */
@media (min-width: 768px) {
  .Navbar .nav.-has-dropdown .nav__toggle,
  .nav.-has-dropdown .nav__toggle {
    position: relative !important;
    padding-right: 3.2rem !important;
  }
  .Navbar .dropdown-chevron,
  .dropdown-chevron {
    position: absolute !important;
    right: 1.6rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0.95rem !important;
    height: 0.6rem !important;
    margin: 0 !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .Navbar .nav.-has-dropdown:hover .dropdown-chevron,
  .Navbar .nav.-has-dropdown.is-open .dropdown-chevron {
    transform: translateY(-50%) rotate(180deg) !important;
  }
}

/* ============================================================
   WHITE UI DESKTOP SPREAD-OUT MEGA MENU (7 CORE SERVICES + ALL)
   ============================================================ */
.Navbar .services-dropdown-menu,
.services-dropdown-menu,
.services-dropdown-menu * {
  text-shadow: none !important;
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.services-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 1.2rem) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(14px) scale(0.96) !important;
  transform-origin: top center !important;
  width: 710px !important;
  max-width: 94vw !important;
  background: #ffffff !important;
  backdrop-filter: blur(32px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 2.2rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 28px 75px rgba(15, 23, 42, 0.16),
              0 8px 24px rgba(15, 23, 42, 0.06),
              0 0 1px rgba(0, 0, 0, 0.2) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s ease !important;
  z-index: 1000 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.95rem 1.15rem !important;
  box-sizing: border-box !important;
}

/* Dark mode override */
html.dark .services-dropdown-menu {
  background: rgba(11, 16, 30, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(0, 229, 255, 0.12) !important;
}

/* Invisible hover bridge */
.services-dropdown-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -1.6rem !important;
  left: 0 !important;
  right: 0 !important;
  height: 1.6rem !important;
}

/* Subtle top accent */
.services-dropdown-menu::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 15% !important;
  right: 15% !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #0284c7, #38bdf8, transparent) !important;
  border-radius: 999px !important;
  opacity: 0.9 !important;
}

.nav.-has-dropdown:hover .services-dropdown-menu,
.nav.-has-dropdown:focus-within .services-dropdown-menu,
.nav.-has-dropdown.is-open .services-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Dropdown Card Items in White UI */
.services-dropdown-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 1.2rem 1.4rem !important;
  border-radius: 1.5rem !important;
  text-decoration: none !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
}

.services-dropdown-menu .dropdown-item:hover {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12),
              0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Distinctive 8th Explore Card */
.services-dropdown-menu .dropdown-item.-all-services {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06), rgba(56, 189, 248, 0.04)) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

.services-dropdown-menu .dropdown-item.-all-services:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(56, 189, 248, 0.08)) !important;
  border-color: #0284c7 !important;
}

html.dark .services-dropdown-menu .dropdown-item {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .services-dropdown-menu .dropdown-item:hover {
  background: rgba(0, 229, 255, 0.1) !important;
  border-color: rgba(0, 229, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.18) !important;
}

html.dark .services-dropdown-menu .dropdown-item.-all-services {
  background: rgba(0, 229, 255, 0.08) !important;
  border-color: rgba(0, 229, 255, 0.25) !important;
}

/* Icon Badges */
.services-dropdown-menu .dropdown-icon {
  font-size: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 4.4rem !important;
  height: 4.4rem !important;
  background: #eff6ff !important;
  border-radius: 1.25rem !important;
  border: 1px solid rgba(2, 132, 199, 0.2) !important;
  flex-shrink: 0 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.services-dropdown-menu .dropdown-item:hover .dropdown-icon {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

html.dark .services-dropdown-menu .dropdown-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.dark .services-dropdown-menu .dropdown-item:hover .dropdown-icon {
  background: rgba(0, 229, 255, 0.25) !important;
  border-color: #00e5ff !important;
  color: #00e5ff !important;
}

/* Text & Titles */
.services-dropdown-menu .dropdown-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.3rem !important;
  flex-grow: 1 !important;
}

.services-dropdown-menu .dropdown-title {
  font-size: 1.48rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  transition: color 0.25s ease !important;
}

.services-dropdown-menu .dropdown-item:hover .dropdown-title {
  color: #0284c7 !important;
}

html.dark .services-dropdown-menu .dropdown-title {
  color: #ffffff !important;
}

html.dark .services-dropdown-menu .dropdown-item:hover .dropdown-title {
  color: #00e5ff !important;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5) !important;
}

.services-dropdown-menu .dropdown-desc {
  font-size: 1.22rem !important;
  color: #475569 !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  transition: color 0.25s ease !important;
}

.services-dropdown-menu .dropdown-item:hover .dropdown-desc {
  color: #1e293b !important;
}

html.dark .services-dropdown-menu .dropdown-desc {
  color: rgba(255, 255, 255, 0.65) !important;
}

html.dark .services-dropdown-menu .dropdown-item:hover .dropdown-desc {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Right Arrow */
.services-dropdown-menu .dropdown-item::after {
  content: '→' !important;
  font-size: 1.6rem !important;
  color: #0284c7 !important;
  opacity: 0 !important;
  transform: translateX(-8px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: auto !important;
  font-weight: 700 !important;
}

.services-dropdown-menu .dropdown-item:hover::after {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

html.dark .services-dropdown-menu .dropdown-item::after {
  color: #00e5ff !important;
}

/* Stagger animation on open */
.nav.-has-dropdown:hover .services-dropdown-menu .dropdown-item,
.nav.-has-dropdown:focus-within .services-dropdown-menu .dropdown-item,
.nav.-has-dropdown.is-open .services-dropdown-menu .dropdown-item {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.nav.-has-dropdown:hover .dropdown-item:nth-child(1),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(1),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(1) { transition-delay: 0.02s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(2),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(2),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(2) { transition-delay: 0.04s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(3),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(3),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(3) { transition-delay: 0.06s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(4),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(4),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(4) { transition-delay: 0.08s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(5),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(5),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(5) { transition-delay: 0.10s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(6),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(6),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(6) { transition-delay: 0.12s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(7),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(7),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(7) { transition-delay: 0.14s !important; }

.nav.-has-dropdown:hover .dropdown-item:nth-child(8),
.nav.-has-dropdown:focus-within .dropdown-item:nth-child(8),
.nav.-has-dropdown.is-open .dropdown-item:nth-child(8) { transition-delay: 0.16s !important; }

/* ============================================================
   ORIGINAL FULLSCREEN HERO VIDEO WITH CENTERED OVERLAY
   (Exact 1:1 match to home_desk_1440_initial.png)
   ============================================================ */
.HeroVideoSection.-fullscreen,
.HeroVideoSection {
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #000000 !important;
}

.hero-fullscreen-wrapper {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

@media (min-width: 768px) {
  .hero-fullscreen-wrapper {
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
}

.hero-main-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

.hero-main-video .media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hero-main-video .media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Lighter overlay so video is clearly visible */
.hero-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.20) 0%,
      rgba(0, 0, 0, 0.10) 35%,
      rgba(0, 0, 0, 0.15) 65%,
      rgba(0, 0, 0, 0.55) 100%
    ) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Centered Hero Content */
.hero-video-content {
  position: absolute !important;
  top: 52% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 90% !important;
  max-width: 1000px !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
}

.hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  padding: 0.6rem 1.6rem !important;
  border-radius: 9999px !important;
  background: rgba(0, 229, 255, 0.12) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  color: #00e5ff !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 2rem !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18) !important;
}

.hero-badge-dot {
  width: 0.75rem !important;
  height: 0.75rem !important;
  border-radius: 50% !important;
  background: #00e5ff !important;
  box-shadow: 0 0 10px #00e5ff !important;
}

.hero-title {
  font-size: 3.6rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 0 2rem 0 !important;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.9),
    0 4px 20px rgba(0,0,0,0.85),
    0 8px 40px rgba(0,0,0,0.6) !important;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 7rem !important;
  }
}

.hero-description {
  font-size: 1.65rem !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 680px !important;
  margin: 0 0 3rem 0 !important;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.95),
    0 4px 16px rgba(0,0,0,0.8) !important;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 2.1rem !important;
  }
}

.hero-action-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.hero-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
  padding: 1.5rem 3.4rem !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #0a0e1a !important;
  border: none !important;
  font-size: 1.65rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.4) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease !important;
}

.hero-cta-btn:hover {
  background: #00e5ff !important;
  color: #000000 !important;
  transform: scale(1.04) !important;
  box-shadow: 0 12px 35px rgba(0, 229, 255, 0.5) !important;
}

.hero-play-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================================
   CORE TEAM SECTION — Full Styles
   ============================================================ */

.TeamSection {
  padding: 9rem 0 10rem;
  position: relative;
  overflow: hidden;
}

.TeamSection::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 229, 255, 0.055) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.team__header {
  text-align: center;
  margin-bottom: 5.5rem;
}

.team__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e5ff;
  margin-bottom: 2rem;
}

.team__badge-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #00e5ff;
  animation: teamPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes teamPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.7); }
}

.team__title {
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.6rem;
  color: #ffffff;
}

.team__title span {
  background: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team__subtitle {
  font-size: 1.65rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Grid ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

@media (max-width: 1024px) {
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .team__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
    gap: 1.8rem;
  }
}

/* ---------- Card ---------- */
.team__card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2rem;
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s ease,
    border-color 0.28s ease;
  cursor: default;
}

.team__card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 229, 255, 0.12),
    0 0 40px rgba(0, 229, 255, 0.06);
}

/* ---------- Image Wrapper ---------- */
.team__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
}

.team__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.team__card:hover .team__image {
  transform: scale(1.06);
}

/* ---------- Role Pill ---------- */
.team__role-pill {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  background: rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.30);
  border-radius: 9999px;
  padding: 0.42rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00e5ff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- Info ---------- */
.team__info {
  padding: 1.8rem 2rem 2rem;
}

.team__name {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.team__designation {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.team__specialty {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.22);
  border-radius: 6px;
  padding: 0.3rem 0.9rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(100, 165, 255, 0.92);
  letter-spacing: 0.01em;
}

/* ---------- Light Mode Overrides ---------- */
html:not(.dark) .TeamSection::before {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
}

html:not(.dark) .team__badge {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
  color: #0066ff;
}

html:not(.dark) .team__badge-dot {
  background: #0066ff;
}

html:not(.dark) .team__title {
  color: #0a0e1a;
}

html:not(.dark) .team__subtitle {
  color: rgba(10, 14, 26, 0.60);
}

html:not(.dark) .team__card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html:not(.dark) .team__card:hover {
  border-color: rgba(0, 102, 255, 0.28);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 102, 255, 0.10),
    0 0 30px rgba(0, 102, 255, 0.05);
}




html:not(.dark) .team__role-pill {
  background: rgba(0, 102, 255, 0.10);
  border-color: rgba(0, 102, 255, 0.22);
  color: #0066ff;
}

html:not(.dark) .team__name {
  color: #0a0e1a;
}

html:not(.dark) .team__designation {
  color: rgba(10, 14, 26, 0.55);
}

html:not(.dark) .team__specialty {
  background: rgba(0, 102, 255, 0.07);
  border-color: rgba(0, 102, 255, 0.18);
  color: #0052cc;
}

/* ============================================================
   FAQ SECTION — Fix empty space below questions
   ============================================================ */

/* Remove browser default marker and space from summary */
.NexcoreFaqSection details.faq-item > summary.faq-summary {
  list-style: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.NexcoreFaqSection details.faq-item > summary.faq-summary::-webkit-details-marker {
  display: none !important;
}

/* ---- THE REAL FIX ----
   When <details> is CLOSED → hide the faq-body completely (no space at all).
   When <details> is OPEN   → show it normally.
   This beats inline padding-top because display:none collapses everything.
*/
.NexcoreFaqSection details.faq-item:not([open]) > .faq-body {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.NexcoreFaqSection details.faq-item[open] > .faq-body {
  display: block !important;
}

/* Mobile: same rules, already covered above. Extra tightening: */
@media (max-width: 767px) {
  .NexcoreFaqSection .faq-summary {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .NexcoreFaqSection .faq-accordion-list {
    gap: 0 !important;
  }

  .NexcoreFaqSection .faq-question-text {
    font-size: 1.7rem !important;
    line-height: 1.4 !important;
  }
}

/* ============================================================
   HERO — Mobile text size boost
   ============================================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 3.2rem !important;
  }

  .hero-description {
    font-size: 1.55rem !important;
  }

  .hero-badge {
    font-size: 1.1rem !important;
    padding: 0.5rem 1.2rem !important;
  }
}
