/* ============================================
   SHARED.CSS — Utilities for all inner pages
   ============================================ */

/* === Scroll Progress Bar === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff, #7b2dff, #a855f7);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* === Active Nav Link === */
.nav-link.nav-active {
  color: #fff !important;
}

.nav-link.nav-active::after {
  width: 100% !important;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 1rem 0 2rem;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.breadcrumb li a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb li a:hover {
  color: var(--c-cyan);
}

.breadcrumb li[aria-current="page"] span {
  color: var(--c-cyan);
  font-weight: 500;
}

.breadcrumb svg {
  color: #334155;
  flex-shrink: 0;
}

/* === Page Hero (shared base) === */
.page-hero {
  position: relative;
  padding: 140px 2rem 80px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.page-hero .hero-glow-1 {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* === Tag Pill === */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  padding: 7px 18px;
  background: rgba(0, 212, 255, 0.07);
  margin-bottom: 1.5rem;
}

/* === Clip Reveal Animation === */
.clip-reveal {
  overflow: hidden;
  display: block;
}

.clip-reveal-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.clip-reveal-inner.visible {
  transform: translateY(0);
  opacity: 1;
}

/* === Glitch Text Effect === */
@keyframes glitch1 {
  0% {
    clip-path: inset(10% 0 80% 0);
    transform: translate(-2px, 1px);
  }

  20% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(2px, -1px);
  }

  40% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(-1px, 2px);
  }

  60% {
    clip-path: inset(5% 0 70% 0);
    transform: translate(1px, -2px);
  }

  80% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(2px, 1px);
  }

  100% {
    clip-path: inset(30% 0 60% 0);
    transform: translate(-1px, -1px);
  }
}

@keyframes glitch2 {
  0% {
    clip-path: inset(40% 0 30% 0);
    transform: translate(2px, -2px);
  }

  25% {
    clip-path: inset(15% 0 65% 0);
    transform: translate(-2px, 2px);
  }

  50% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(1px, -1px);
  }

  75% {
    clip-path: inset(25% 0 55% 0);
    transform: translate(-1px, 1px);
  }

  100% {
    clip-path: inset(50% 0 25% 0);
    transform: translate(2px, -2px);
  }
}

.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--c-bg);
  -webkit-background-clip: text;
  background-clip: text;
}

.glitch-wrap.glitching::before {
  color: #00ffff;
  opacity: 0.7;
  animation: glitch1 0.3s steps(1) 3;
}

.glitch-wrap.glitching::after {
  color: #ff00ff;
  opacity: 0.5;
  animation: glitch2 0.3s steps(1) 3 0.05s;
}

/* === Floating Shapes Animation === */
@keyframes floatA {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-16px) rotate(3deg);
  }

  66% {
    transform: translateY(8px) rotate(-3deg);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(-5deg);
  }
}

@keyframes floatC {

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

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

.float-a {
  animation: floatA 7s ease-in-out infinite;
}

.float-b {
  animation: floatB 9s ease-in-out infinite;
}

.float-c {
  animation: floatC 6s ease-in-out infinite;
}

/* === Marquee === */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--c-bg), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--c-bg), transparent);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

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

/* === Stat pill in marquee === */
.marquee-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  padding: 0.8rem 2rem;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 100px;
}

.marquee-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00d4ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.marquee-stat-label {
  font-size: 0.82rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-sep {
  font-size: 1.5rem;
  color: #1e293b;
}

/* === Service color badge === */
.service-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* === Feature Icon Card === */
.feature-icon-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  background: rgba(8, 20, 48, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-icon-card .fic-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 45, 255, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.feature-icon-card p {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.65;
}

/* === Timeline Step === */
.timeline-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 52px;
  width: 2px;
  height: calc(100% - 28px);
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.4), rgba(123, 45, 255, 0.1));
}

.step-num-circle {
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 255, 0.08);
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.step-content {
  padding-bottom: 2rem;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
}

/* === Tech Tag Cloud === */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-cloud-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 100px;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.03);
  transition: all 0.25s;
  cursor: default;
  animation: floatTag 4s ease-in-out infinite;
}

.tech-cloud-tag:nth-child(even) {
  animation-duration: 5.5s;
}

.tech-cloud-tag:nth-child(3n) {
  animation-duration: 6.5s;
}

.tech-cloud-tag:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--c-cyan);
  background: rgba(0, 212, 255, 0.08);
}

@keyframes floatTag {

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

  50% {
    transform: translateY(-4px);
  }
}

/* === Use Case Chip === */
.use-case-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(123, 45, 255, 0.07);
  border: 1px solid rgba(123, 45, 255, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  color: #c084fc;
  font-weight: 500;
}

.use-case-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === CTA Section === */
.cta-section {
  position: relative;
  padding: 7rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-section .cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, rgba(123, 45, 255, 0.04) 50%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ====================================================
   MEGA DROPDOWN NAVBAR (Consistent across all pages)
   ==================================================== */

/* Nav item wrapper for dropdown */
.nav-item {
  position: relative;
}

/* Dropdown trigger chevron */
.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link-dropdown .nav-chevron {
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-item:hover .nav-chevron,
.nav-item.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Mega panel */
.mega-dropdown {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: min(1100px, 95vw);
  background: rgba(5, 8, 17, 0.97);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 212, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Grid inside mega panel */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  /* Use overflow:hidden ONLY for border-radius clipping of bg — columns won't be clipped
     because we removed the 1px gap that was causing sub-pixel rounding issues */
}

/* Each service column */
.mega-col {
  background: rgba(5, 8, 17, 0.95);
  padding: 1.5rem;
  transition: background 0.25s;
  border-right: 1px solid rgba(0, 212, 255, 0.06);
  /* Ensure last column never gets a right-border that could be clipped */
  min-width: 0;
}

.mega-col:last-child {
  border-right: none;
}

.mega-col:hover {
  background: rgba(0, 212, 255, 0.03);
}

/* Service header link */
.mega-service-link {
  display: block;
  text-decoration: none;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  display: block;
  transition: color 0.2s;
}

.mega-service-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  transition: color 0.2s;
}

.mega-service-link:hover .mega-service-name {
  color: var(--srv-color, #00d4ff);
}

.mega-service-link:hover .mega-service-num {
  color: var(--srv-color, #00d4ff);
}

/* Sub-service links */
.mega-sub-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.mega-sub-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #64748b;
  padding: 5px 6px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-sub-link .sub-arrow {
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
  flex-shrink: 0;
  color: var(--srv-color, #00d4ff);
}

.mega-sub-link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
  padding-left: 10px;
}

.mega-sub-link:hover .sub-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-sub-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* View all link */
.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--srv-color, #00d4ff);
  margin-top: 0.8rem;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--srv-color) 25%, transparent);
  border-radius: 100px;
  text-decoration: none;
  background: color-mix(in srgb, var(--srv-color) 6%, transparent);
  transition: all 0.2s;
}

.mega-view-all:hover {
  background: color-mix(in srgb, var(--srv-color) 14%, transparent);
  transform: translateY(-1px);
}

/* Mega footer bar */
.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.mega-footer-text {
  font-size: 0.78rem;
  color: #475569;
}

.mega-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 20px;
  background: linear-gradient(135deg, #00d4ff, #7b2dff);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
}

.mega-footer-cta:hover {
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

/* Unified home-nav links identical to inner pages */
#navbar .nav-links li {
  list-style: none;
}

/* Mobile dropdown sub-links */
.mobile-sub-dropdown {
  display: none;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid rgba(0, 212, 255, 0.2);
  margin: 0.3rem 0 0.5rem;
}

.mobile-sub-dropdown.open {
  display: block;
}

.mobile-sub-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
  padding: 7px 0;
  border-bottom: none;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-sub-dropdown a:hover {
  color: var(--c-cyan, #00d4ff);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mega-dropdown {
    display: none !important;
  }
}

/* ============================================
   END MEGA DROPDOWN
   ============================================ */

/* === Page transition fade === */
.page-fade-in {
  animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .cta-section {
    padding: 5rem 1.2rem;
  }
}

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


/* === Industries Dropdown Panel === */
.ind-dropdown {
  position: fixed;
  top: var(--nav-h, 70px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(420px, 96vw);
  background: rgba(5, 8, 20, 0.97);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.04);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.ind-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ind-dropdown-inner {
  padding: 1rem;
}

.ind-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
}

.ind-dropdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 212, 255, 0.6);
  font-weight: 600;
}

.ind-dropdown-all {
  font-size: 0.75rem;
  color: rgba(0, 212, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.ind-dropdown-all:hover {
  color: #00d4ff;
}

.ind-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ind-dd-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: none;
}

.ind-dd-link:hover {
  background: rgba(var(--ind-dd-color, 0, 212, 255), 0.06);
}

.ind-dd-icon {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.ind-dd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ind-dd-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ind-dd-tag {
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

.ind-dd-arrow {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  opacity: 0;
}

.ind-dd-link:hover .ind-dd-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* === Mobile Industries Dropdown === */
.mobile-industries-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-industries-dropdown.open {
  max-height: 400px;
}

.mobile-industries-dropdown a {
  display: block;
  padding: 0.6rem 1.2rem 0.6rem 2rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: color 0.2s, background 0.2s;
}

.mobile-industries-dropdown a:hover {
  color: var(--c-cyan);
  background: rgba(0, 212, 255, 0.04);
}