/* ============================================================================
   DIZITIVE COMPONENTS LIBRARY
   Glassmorphism, animations, and interactive elements
   ============================================================================ */

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(8, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-fixed);
  padding: 0 var(--space-lg);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar-logo {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    position: static;
    left: auto;
    width: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    flex-direction: row;
  }
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--fw-medium);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

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

.navbar-cta {
  display: none;
}

@media (min-width: 768px) {
  .navbar-cta {
    display: block;
  }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-darker) 0%, rgba(4, 107, 210, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(4, 107, 210, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: var(--fs-6xl);
  }
}

.hero-text p {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: none;
  position: relative;
  height: 500px;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
  }
}

/* ============================================================================
   HERO CAROUSEL
   ============================================================================ */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-track {
  position: relative;
  flex: 1;
  min-height: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Per-slide accent backgrounds */
.carousel-ai {
  background: linear-gradient(145deg, rgba(0, 102, 255, 0.12) 0%, rgba(0, 102, 255, 0.04) 100%);
}

.carousel-5g {
  background: linear-gradient(145deg, rgba(0, 255, 178, 0.10) 0%, rgba(0, 255, 178, 0.03) 100%);
}

.carousel-cyber {
  background: linear-gradient(145deg, rgba(108, 59, 255, 0.14) 0%, rgba(108, 59, 255, 0.04) 100%);
}

.carousel-slide:first-child {
  border-color: rgba(0, 102, 255, 0.35);
}

.carousel-slide:nth-child(2) {
  border-color: rgba(0, 255, 178, 0.30);
}

.carousel-slide:nth-child(3) {
  border-color: rgba(108, 59, 255, 0.35);
}

.carousel-slide-inner {
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  box-sizing: border-box;
}

.carousel-icon {
  font-size: 2.6rem;
  line-height: 1;
}

/* Badges */
.carousel-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px var(--space-md);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-badge--ai {
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(0, 102, 255, 0.4);
  color: #5599FF;
}

.carousel-badge--5g {
  background: rgba(0, 255, 178, 0.12);
  border: 1px solid rgba(0, 255, 178, 0.4);
  color: var(--color-accent);
}

.carousel-badge--cyber {
  background: rgba(108, 59, 255, 0.18);
  border: 1px solid rgba(108, 59, 255, 0.4);
  color: #9B7BFF;
}

.carousel-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0;
}

.carousel-desc {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Stat pills */
.carousel-stats {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.carousel-stats span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.25);
  color: #5599FF;
}

.carousel-stats--5g span {
  background: rgba(0, 255, 178, 0.10);
  border-color: rgba(0, 255, 178, 0.25);
  color: var(--color-accent);
}

.carousel-stats--cyber span {
  background: rgba(108, 59, 255, 0.12);
  border-color: rgba(108, 59, 255, 0.25);
  color: #9B7BFF;
}

/* CTA buttons */
.carousel-cta {
  margin-top: var(--space-sm);
  width: fit-content;
}

.carousel-cta--5g {
  background: var(--color-accent);
  color: var(--color-bg-darker);
  font-weight: var(--fw-bold);
}

.carousel-cta--5g:hover {
  background: #00e6a0;
  color: var(--color-bg-darker);
}

.carousel-cta--cyber {
  background: var(--color-highlight);
  color: #fff;
}

.carousel-cta--cyber:hover {
  background: #5a2ee0;
}

/* Dot navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 var(--space-xs);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: var(--color-text-tertiary);
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================================
   CARDS GRID
   ============================================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h3 {
  margin-bottom: var(--space-md);
  min-height: 60px;
}

.card p {
  flex-grow: 1;
  margin-bottom: var(--space-lg);
}

/* ============================================================================
   TABS COMPONENT
   ============================================================================ */

.tabs {
  margin-bottom: var(--space-2xl);
}

.tab-buttons {
  display: flex;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.tab-button {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-secondary);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.tab-button:focus-visible {
  outline: none;
  color: var(--color-primary);
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-button:hover {
  color: var(--color-text-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* ============================================================================
   CTA BANNER
   ============================================================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-highlight) 100%);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
}

.cta-banner h2 {
  color: white;
  margin-bottom: var(--space-lg);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.cta-banner .btn {
  background-color: white;
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.cta-banner .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ============================================================================
   CHECKMARK LIST
   ============================================================================ */

.checkmark-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .checkmark-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkmark-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.checkmark-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-radius: 50%;
  font-weight: var(--fw-bold);
}

.checkmark-text {
  flex: 1;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  background-color: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) var(--space-lg);
  margin-top: var(--space-4xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--fs-sm);
}

/* ============================================================================
   BREADCRUMB
   ============================================================================ */

.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-text-secondary);
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .loading {
    animation: none;
    opacity: 0.5;
  }
}

/* ============================================================================
   MOBILE-FIRST ADDITIONS
   ============================================================================ */

/* ---- Hamburger Toggle Button ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: calc(var(--z-fixed) + 1);
  position: relative;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Nav Panel ---- */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(8, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-lg) var(--space-2xl);
    flex-direction: column;
    gap: 0;
    display: flex;
    transition: left 0.3s ease;
    z-index: var(--z-fixed);
  }

  .nav-menu.is-open {
    left: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--fs-lg);
  }

  /* Mobile CTA inside nav — hidden on desktop */
  .nav-cta-mobile {
    display: block !important;
    border-bottom: none !important;
    padding-top: var(--space-lg) !important;
  }
}

@media (min-width: 768px) {
  .nav-cta-mobile {
    display: none !important;
  }
}

/* ---- Responsive Two-Column Grid ---- */
.responsive-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .responsive-two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ---- Mobile Hero ---- */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 90px 0 var(--space-3xl);
  }

  .hero-text h1 {
    font-size: var(--fs-3xl);
  }

  .hero-text p {
    font-size: var(--fs-md);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---- Mobile Section Padding ---- */
@media (max-width: 767px) {
  .section {
    padding: var(--space-3xl) var(--space-lg);
  }
}

/* ---- Mobile Card Adjustments ---- */
@media (max-width: 767px) {
  .card {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ============================================================================
   CONTACT PAGE LAYOUT
   Desktop: [Form | Office Cards] top row, Get-in-Touch full-width below
   Mobile:  single column stack
   ============================================================================ */

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto var(--space-3xl);
}

.contact-form-col,
.contact-offices-col {
  /* columns size themselves naturally via grid */
}

/* Get in Touch — full-width stripe below the grid */
.contact-get-in-touch {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-3xl);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-channels {
  display: flex;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

/* Mobile: single column */
@media (max-width: 767px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }

  .contact-get-in-touch {
    padding: var(--space-xl);
  }

  .contact-channels {
    flex-direction: column;
    gap: var(--space-xl);
  }
}

/* ============================================================================
   ABOUT PAGE — WHO WE ARE SECTION
   ============================================================================ */

/* Vision/Mission column hidden on mobile — text col is sufficient */
@media (max-width: 767px) {
  .about-vision-mission {
    display: none;
  }
}


/* ============================================================================
   NAVIGATION DROPDOWN
   ============================================================================ */

.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(8, 14, 26, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) 0;
  list-style: none;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: color var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--color-primary);
  background: rgba(4, 107, 210, 0.08);
}

/* Mobile: dropdown flattens into nav */
@media (max-width: 767px) {
  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-lg);
    border-left: 2px solid var(--color-border);
    margin: var(--space-xs) 0 var(--space-sm) var(--space-md);
  }

  .nav-item--dropdown.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-sm);
  }

  .nav-dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.7em;
  }
}

/* ============================================================================
   CLIENT LOGOS CAROUSEL
   ============================================================================ */

.logo-carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  width: max-content;
  animation: scroll-x 40s linear infinite;
}

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

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.logo-track img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.logo-track img:hover {
  filter: grayscale(0) opacity(1);
}

/* ============================================================================
   SOCIAL ICONS
   ============================================================================ */

.social-icons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-md);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.social-icons a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================================
   CERTIFICATION BADGES
   ============================================================================ */

.cert-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  align-items: center;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  transition: border-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}

.cert-badge:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cert-badge-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── D-U-N-S Registered Badge ─── */
.duns-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  background: rgba(4, 107, 210, 0.07);
  width: fit-content;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.duns-badge:hover {
  background: rgba(4, 107, 210, 0.13);
  border-color: var(--color-primary-hover);
}

.duns-badge-shield {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.duns-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.duns-badge-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.duns-badge-subtitle {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ─── About Page: Certifications Section ─── */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 720px;
  margin: 0 auto;
}

.certification-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.certification-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.certification-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: var(--space-lg);
  background: var(--color-bg);
}

.certification-info {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.certification-info h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.certification-info p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ─── Hexagonal Beehive Grid ─── */
.hex-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  overflow: visible;
  /* ghost hexes bleed to edges; body overflow-x:hidden prevents scroll */
}

/* Pointy-top hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)
   H = W × (2/√3) ≈ W × 1.1547  (taller than wide)
   For equal g=10px gap on all edges: center-to-center = W+g = 250
   → margin-bottom = H − √((W+g)² − ((W+g)/2)²) = H − (W+g)×(√3/2)
   Standard: 277 − 250×0.866 ≈ 61px                                            */
.hex-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: -61px;
  /* equal gap on all hex edges (standard 277px-tall hex) */
  position: relative;
  z-index: 1;
}

.hex-row:last-child {
  margin-bottom: 0;
}

/* All offset rows use the same half-pitch stagger: (W+gap)/2 = 125px */
.hex-row--offset {
  transform: translateX(125px);
}

/* 3+2 large hex: 2-item row naturally centers between 3-item row — no shift */
.hex-grid--lg .hex-row--offset {
  transform: none;
}

.hex-grid--lg .hex-row {
  margin-bottom: -78px;
  /* equal gap: 346 − 310×(√3/2) ≈ 78px (large 346px-tall hex) */
}

/* ─── OUTER HEX: visible colored border (pointy-top orientation) ─── */
.hex-wrap {
  width: 240px;
  height: 277px;
  /* H = W × 2/√3 = 240 × 1.1547 */
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), transform var(--transition-base), filter var(--transition-base);
  cursor: default;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.hex-grid--lg .hex-wrap {
  width: 300px;
  height: 346px;
  /* H = 300 × 2/√3 = 346px */
}

.hex-wrap:hover {
  animation: none;
  /* let hover styles override the LED strip */
  background: var(--color-highlight);
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 14px 36px rgba(4, 107, 210, 0.6));
  z-index: 2;
}

/* ─── INNER HEX: dark content area (same pointy-top clip, 14px inset border) ─── */
.hex-card {
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28% 10%;
  /* pointy-top: taper at top/bottom, flat on left/right */
  transition: background var(--transition-base);
}

.hex-wrap:hover .hex-card {
  background: #111827;
}

.hex-grid--lg .hex-card {
  padding: 24% 8%;
  /* slightly less top/bottom padding for taller large hex */
}

.hex-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.hex-grid--lg .hex-card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

.hex-card-title {
  font-size: 0.65rem !important;
  font-weight: var(--fw-bold) !important;
  color: var(--color-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  line-height: 1.3 !important;
  margin-bottom: 0.4rem !important;
  min-height: unset !important;
}

.hex-grid--lg .hex-card-title {
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.04em !important;
}

.hex-card-text {
  font-size: 0.62rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hex-grid--lg .hex-card-text {
  font-size: 0.68rem;
  -webkit-line-clamp: 4;
}

.hex-card-link {
  display: block;
  font-size: 0.62rem;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color var(--transition-base);
}

.hex-card-link:hover {
  color: var(--color-highlight);
}

/* ─── Hex Icon Badge (standalone) ─── */
.hex-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 52px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-highlight) 100%);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

/* ─── Service Pillar Grid (rectangular fallback, legacy) ─── */
.pillar-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  margin: 0 auto;
}

.pillar-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.pillar-row--offset {
  margin-left: calc(var(--space-lg) / 2);
}

/* ─── HEX LED STRIP: running-light beehive animation ───────────────────────
   Each hex-wrap scales up + glows bright cyan in sequence — like an LED strip
   travelling outer columns → centre column, repeating every 5 s.
   Each flash is 38% of cycle (~1.9 s) so it's very easy to see.              ─── */

@keyframes hex-led {

  0%,
  38%,
  100% {
    background: var(--color-primary);
    transform: scale(1) translateZ(0);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
  }

  19% {
    background: #25d5f2;
    transform: scale(1.08) translateZ(0);
    filter: drop-shadow(0 0 22px rgba(1, 200, 239, 1)) drop-shadow(0 0 50px rgba(1, 200, 239, 0.85)) drop-shadow(0 0 95px rgba(1, 200, 239, 0.55)) drop-shadow(0 0 160px rgba(1, 200, 239, 0.3));
  }
}

/* Base: every hex-wrap runs the 5 s strip animation */
.hex-grid .hex-wrap {
  animation: hex-led 5s ease-in-out infinite;
  will-change: transform, filter;
}

/* ── 3+3 grid (solution pages): left outer → right outer → centre ──
   row1 = [c1(1), c2(2), c3(3)]   row2 = [c1(1), c2(2), c3(3)]  ── */
/* left column */
.hex-grid:not(.hex-grid--lg):not(.hex-grid--2col) .hex-row:nth-child(1) .hex-wrap:nth-child(1) {
  animation-delay: 0s;
}

.hex-grid:not(.hex-grid--lg):not(.hex-grid--2col) .hex-row:nth-child(2) .hex-wrap:nth-child(1) {
  animation-delay: 0.8s;
}

/* right column */
.hex-grid:not(.hex-grid--lg):not(.hex-grid--2col) .hex-row:nth-child(1) .hex-wrap:nth-child(3) {
  animation-delay: 1.6s;
}

.hex-grid:not(.hex-grid--lg):not(.hex-grid--2col) .hex-row:nth-child(2) .hex-wrap:nth-child(3) {
  animation-delay: 2.4s;
}

/* centre column — strip ENDS here */
.hex-grid:not(.hex-grid--lg):not(.hex-grid--2col) .hex-row:nth-child(1) .hex-wrap:nth-child(2) {
  animation-delay: 3.2s;
}

.hex-grid:not(.hex-grid--lg):not(.hex-grid--2col) .hex-row:nth-child(2) .hex-wrap:nth-child(2) {
  animation-delay: 4.0s;
}

/* ── 2+2 grid (About values): diagonal sweep, top-left → bottom-right ──
   row1 = [Excel(1), Agility(2)]   row2 = [Innov(1), Integ(2)] ── */
.hex-grid--2col .hex-row:nth-child(1) .hex-wrap:nth-child(1) {
  animation-delay: 0s;
}

/* Excellence */
.hex-grid--2col .hex-row:nth-child(2) .hex-wrap:nth-child(2) {
  animation-delay: 1.25s;
}

/* Integrity  */
.hex-grid--2col .hex-row:nth-child(1) .hex-wrap:nth-child(2) {
  animation-delay: 2.5s;
}

/* Agility    */
.hex-grid--2col .hex-row:nth-child(2) .hex-wrap:nth-child(1) {
  animation-delay: 3.75s;
}

/* Innovation */

/* ── 3+2 grid (Homepage Core Capabilities): outer ring → centre hex last ──
   row1 = [AI(1), 5G(2), Cyber(3)]   row2 = [Data(1), Enterprise(2)]  ── */
.hex-grid--lg .hex-row:nth-child(1) .hex-wrap:nth-child(1) {
  animation-delay: 0s;
}

/* AI         */
.hex-grid--lg .hex-row:nth-child(2) .hex-wrap:nth-child(2) {
  animation-delay: 1.0s;
}

/* Enterprise */
.hex-grid--lg .hex-row:nth-child(1) .hex-wrap:nth-child(3) {
  animation-delay: 2.0s;
}

/* Cyber      */
.hex-grid--lg .hex-row:nth-child(2) .hex-wrap:nth-child(1) {
  animation-delay: 3.0s;
}

/* Data       */
.hex-grid--lg .hex-row:nth-child(1) .hex-wrap:nth-child(2) {
  animation-delay: 4.0s;
}

/* 5G — CENTRE */

/* Disable strip on reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hex-grid .hex-wrap {
    animation: none;
  }
}

/* ─── Responsive: disable hex on mobile ─── */
@media (max-width: 767px) {
  .hex-row {
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
  }

  .hex-row--offset,
  .hex-grid--lg .hex-row--offset {
    transform: none;
  }

  .hex-grid--lg .hex-row {
    margin-bottom: var(--space-md);
  }

  .hex-wrap,
  .hex-grid--lg .hex-wrap {
    width: 100%;
    max-width: 380px;
    height: auto;
    clip-path: none;
    background: transparent;
    filter: none;
    display: block;
    transition: none;
  }

  .hex-wrap:hover,
  .hex-grid--lg .hex-wrap:hover {
    transform: none;
    filter: none;
    background: transparent;
  }

  .hex-card,
  .hex-grid--lg .hex-card {
    width: 100%;
    height: auto;
    clip-path: none;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: none;
  }

  .hex-wrap:hover .hex-card,
  .hex-grid--lg .hex-wrap:hover .hex-card {
    background: var(--color-surface);
    border-color: var(--color-highlight);
  }

  .hex-card-text,
  .hex-grid--lg .hex-card-text {
    font-size: var(--fs-sm);
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .hex-card-title,
  .hex-grid--lg .hex-card-title {
    font-size: var(--fs-sm) !important;
  }

  .pillar-row--offset {
    margin-left: 0;
  }

  .pillar-row .card {
    width: 100% !important;
    max-width: 380px;
  }
}

/* ============================================================================
   COMPARISON SHIFT SECTION
   ============================================================================ */

.comparison-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.comparison-list li {
  position: relative;
  font-size: var(--fs-lg);
  padding: var(--space-xs) 0;
  width: fit-content;
  line-height: var(--lh-normal);
}

/* Legacy IT: Strikethrough Animation */
.legacy-list li {
  color: var(--color-text-secondary);
  transition: color var(--transition-slow);
}

.legacy-list li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 55%;
  width: 0;
  height: 2px;
  background-color: #918f90;
  transform: translateY(-50%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
}

/* Trigger animation when in view */
.legacy-list.animate li::after {
  width: 100%;
}

.legacy-list.animate li {
  color: var(--color-text-tertiary);
}

/* DIZITIVE Future: Glow / Highlight Animation */
.future-list li {
  color: var(--color-text-primary);
  font-weight: var(--fw-medium);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(0, 255, 178, 0.08) 0%, rgba(0, 255, 178, 0) 100%);
  border-left: 3px solid transparent;
  transform: translateX(-12px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trigger animation when in view */
.future-list.animate li {
  transform: translateX(0);
  opacity: 1;
  border-left-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 255, 178, 0.03);
}

/* Staggered animation delays for list items */
.comparison-list li:nth-child(1) {
  transition-delay: 0.1s;
}

.comparison-list li:nth-child(1)::after {
  transition-delay: 0.1s;
}

.comparison-list li:nth-child(2) {
  transition-delay: 0.3s;
}

.comparison-list li:nth-child(2)::after {
  transition-delay: 0.3s;
}

.comparison-list li:nth-child(3) {
  transition-delay: 0.5s;
}

.comparison-list li:nth-child(3)::after {
  transition-delay: 0.5s;
}

.comparison-list li:nth-child(4) {
  transition-delay: 0.7s;
}

.comparison-list li:nth-child(4)::after {
  transition-delay: 0.7s;
}

.comparison-list li:nth-child(5) {
  transition-delay: 0.9s;
}

.comparison-list li:nth-child(5)::after {
  transition-delay: 0.9s;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .comparison-list li {
    font-size: var(--fs-base);
  }

  .future-list li {
    transform: none;
    opacity: 1;
    border-left-color: var(--color-accent);
  }
}