/* ═══════════════════════════════════════
   MEGDESK — POLISH & SERVICES LAYER
   ═══════════════════════════════════════ */

/* Code wallpaper tuned in brand.css */

main,
.footer,
.values-band,
.bento-showcase,
.bento-cell,
.tech-band,
.testimonials,
.industries-band,
.about,
.credentials,
.faq-section,
.contact,
.leadership,
.services-section,
.service-card,
.team-card,
.value-card,
.pillar,
.quote-card,
.cred-card,
.lux-card,
.global-band .global-copy {
  position: relative;
  z-index: 1;
}

/* Solid surfaces — code never bleeds through text/images */
/* Section transparency in brand.css */

/* ── Tech stack: official brand-colored icons ── */
.tech-band {
  padding: 4rem 0 5rem !important;
  overflow: visible !important;
  background: linear-gradient(180deg, #fff9f3 0%, #ffffff 100%) !important;
  border-top: 1px solid rgba(232, 117, 26, 0.12) !important;
  border-bottom: 1px solid rgba(232, 117, 26, 0.12) !important;
}

.tech-title {
  color: #5c4a6e !important;
  margin-bottom: 2.5rem !important;
}

.tech-icons {
  gap: 2rem 2.5rem !important;
  margin-bottom: 0 !important;
  padding: 0 1rem 1rem !important;
}

.tech-icon {
  min-width: 100px;
  gap: 12px !important;
}

.tech-icon-box {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(232, 117, 26, 0.28) !important;
  box-shadow: 0 8px 28px rgba(232, 117, 26, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
}

.tech-icon-box img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  display: block !important;
}

.tech-icon-box img.tech-icon-img--wide {
  width: 44px !important;
}

.tech-icon span {
  color: #1a0a2e !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap;
  line-height: 1.2;
}

.tech-band .marquee {
  display: none;
}

/* ── Uniform card preview heights (not solutions — see gradient-sections.css) ── */
.card-ui {
  height: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
}

.section--dark .card-ui {
  display: revert !important;
  align-items: revert !important;
  justify-content: revert !important;
}

.bento-ui {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ── Services section ── */
.services-section {
  padding: 6rem 0;
  background: #ffffff;
}

.services-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.services-intro p {
  color: #3d2a55;
  line-height: 1.8;
  margin-top: 1rem;
}

.service-block {
  margin-bottom: 4rem;
}

.service-block-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(232, 117, 26, 0.15);
}

.service-block-header h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: #1a0a2e;
  margin-bottom: 0.75rem;
}

.service-block-header p {
  color: #3d2a55;
  line-height: 1.75;
  max-width: 900px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 117, 26, 0.15);
  background: #fffdf9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(232, 117, 26, 0.1);
  border-color: rgba(232, 117, 26, 0.3);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 117, 26, 0.15), rgba(245, 200, 66, 0.1));
  border: 1px solid rgba(232, 117, 26, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #e8751a;
}

.service-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a0a2e;
  margin-bottom: 0.65rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  font-size: 0.8rem;
  color: #3d2a55;
  line-height: 1.55;
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e8751a;
}

.global-capability {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a0a2e 0%, #2a1545 100%);
  border: 1px solid rgba(232, 117, 26, 0.25);
  text-align: center;
}

.global-capability h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #f5c842;
  margin-bottom: 1rem;
}

.global-capability p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.92rem;
}

/* ── Location map (Virar West) ── */
.location-map {
  position: relative;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(232, 117, 26, 0.2);
  background: #fff;
}

.location-map__embed {
  display: block;
  width: 100%;
  height: calc(100% - 52px);
  border: 0;
}

.location-map__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(42, 22, 84, 0.08);
}

.location-map__label strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a0a2e;
}

.location-map__label span {
  font-size: 0.72rem;
  color: #3d2a55;
}

/* legacy — kept for reference */
.mumbai-viz {
  position: relative;
  height: 300px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(232, 117, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 117, 26, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #0f0618, #1a0a2e);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border: 1px solid rgba(232, 117, 26, 0.2);
  overflow: hidden;
}

.mumbai-viz__hub {
  position: absolute;
  left: 58%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
}

.mumbai-viz__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  border: 2px solid rgba(232, 117, 26, 0.5);
  animation: hubPulse 2.5s ease-out infinite;
}

.mumbai-viz__pulse:nth-child(2) {
  animation-delay: 1.2s;
}

.mumbai-viz__dot {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e8751a;
  box-shadow: 0 0 24px rgba(232, 117, 26, 0.8);
  position: relative;
  z-index: 2;
}

.mumbai-viz__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5c842;
}

.mumbai-viz__line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #e8751a, rgba(232, 117, 26, 0.1));
  transform-origin: left center;
  z-index: 1;
}

.mumbai-viz__line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #e8751a;
  box-shadow: 0 0 12px rgba(232, 117, 26, 0.6);
  animation: dotBlink 2s ease-in-out infinite;
}

.mumbai-viz__line--1 { left: 58%; top: 52%; width: 22%; transform: rotate(-35deg); }
.mumbai-viz__line--2 { left: 58%; top: 52%; width: 28%; transform: rotate(-8deg); }
.mumbai-viz__line--3 { left: 58%; top: 52%; width: 24%; transform: rotate(25deg); }
.mumbai-viz__line--4 { left: 35%; top: 52%; width: 24%; transform: rotate(175deg); }
.mumbai-viz__line--5 { left: 58%; top: 52%; width: 20%; transform: rotate(55deg); }

.mumbai-viz__city {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.mumbai-viz__city--1 { right: 12%; top: 28%; }
.mumbai-viz__city--2 { right: 8%; top: 48%; }
.mumbai-viz__city--3 { right: 14%; top: 68%; }
.mumbai-viz__city--4 { left: 8%; top: 48%; }
.mumbai-viz__city--5 { right: 18%; top: 18%; }

.mumbai-viz__data {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.mumbai-viz__stat {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(232, 117, 26, 0.08);
  border: 1px solid rgba(232, 117, 26, 0.15);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.mumbai-viz__stat strong {
  display: block;
  color: #e8751a;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

@keyframes hubPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.global-band .overline {
  color: #e8751a !important;
}

.global-band h2 {
  color: #fff !important;
}

.global-band h2 em {
  color: #f5c842 !important;
  font-style: italic;
}

.global-band .global-copy p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Bento AI — neural network visualization */
.bento--tall {
  min-height: 420px !important;
}

.bento--tall .bento-ui.bento-ml-net {
  inset: 2.5rem 1.25rem 8.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem !important;
  overflow: hidden !important;
  background: linear-gradient(160deg, #12081f 0%, #1a0a2e 55%, #0f0618 100%) !important;
  border: 1px solid rgba(245, 200, 66, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bento--tall .bento-title {
  background: #ffffff !important;
  padding: 1.1rem 1.5rem 1.4rem !important;
  border-top: 1px solid rgba(42, 22, 84, 0.07);
}

.bento-ml-net {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
}

.ml-net-svg {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100% - 2.25rem);
  display: block;
}

.ml-net-link {
  stroke: rgba(232, 117, 26, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: mlSignalFlow 2.8s linear infinite;
}

.ml-net-link--active {
  stroke: rgba(245, 200, 66, 0.55);
  stroke-width: 2;
  animation-duration: 1.6s;
}

.ml-net-node {
  fill: #1a0a2e;
  stroke: #e8751a;
  stroke-width: 2;
  animation: mlNodeGlow 2.8s ease-in-out infinite;
}

.ml-net-layer--hidden .ml-net-node:nth-child(1) { animation-delay: 0s; }
.ml-net-layer--hidden .ml-net-node:nth-child(2) { animation-delay: -0.35s; }
.ml-net-layer--hidden .ml-net-node:nth-child(3) { animation-delay: -0.7s; }
.ml-net-layer--hidden .ml-net-node:nth-child(4) { animation-delay: -1.05s; }
.ml-net-layer--hidden .ml-net-node:nth-child(5) { animation-delay: -1.4s; }
.ml-net-layer--hidden .ml-net-node:nth-child(6) { animation-delay: -1.75s; }

.ml-net-layer--in .ml-net-node:nth-child(1) { animation-delay: -0.2s; }
.ml-net-layer--in .ml-net-node:nth-child(2) { animation-delay: -0.9s; }
.ml-net-layer--in .ml-net-node:nth-child(3) { animation-delay: -1.6s; }

.ml-net-node--active {
  fill: #2a1654;
  stroke: #f5c842;
  filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.55));
}

.ml-net-node--out {
  fill: #2a1654;
  stroke: #f5c842;
  stroke-width: 2.5;
  animation: mlOutputPulse 2s ease-in-out infinite;
}

.ml-net-label {
  fill: rgba(245, 200, 66, 0.45);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: middle;
  font-family: system-ui, sans-serif;
}

.ml-net-hud {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 200, 66, 0.12);
}

.ml-net-hud__status {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 200, 66, 0.7);
  white-space: nowrap;
}

.ml-net-hud__track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ml-net-hud__fill {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8751a, #f5c842);
  animation: mlHudFill 3s ease-in-out infinite;
}

.ml-net-hud__score {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f5c842;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@keyframes mlSignalFlow {
  to { stroke-dashoffset: -24; }
}

@keyframes mlNodeGlow {
  0%, 100% { stroke: #e8751a; filter: none; }
  50% { stroke: #f5c842; filter: drop-shadow(0 0 4px rgba(245, 200, 66, 0.35)); }
}

@keyframes mlOutputPulse {
  0%, 100% { opacity: 0.82; stroke-width: 2.5; }
  50% { opacity: 1; stroke-width: 3.5; }
}

@keyframes mlHudFill {
  0%, 100% { width: 68%; opacity: 0.85; }
  50% { width: 82%; opacity: 1; }
}

/* Cloud — server rack animation */
.bento-servers {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
}

.bento-server {
  width: 36px;
  background: rgba(8, 4, 15, 0.08);
  border: 1px solid rgba(232, 117, 26, 0.2);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bento-server span {
  height: 6px;
  border-radius: 2px;
  background: rgba(232, 117, 26, 0.25);
  animation: serverBlink 1.5s ease-in-out infinite;
}

.bento-server:nth-child(1) { height: 70px; }
.bento-server:nth-child(2) { height: 90px; }
.bento-server:nth-child(3) { height: 60px; }
.bento-server:nth-child(2) span { animation-delay: -0.5s; }
.bento-server:nth-child(3) span { animation-delay: -1s; }

@keyframes serverBlink {
  0%, 100% { background: rgba(232, 117, 26, 0.2); }
  50% { background: rgba(232, 117, 26, 0.55); }
}

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

@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .tech-icons { gap: 1.5rem !important; }
  .location-map { height: 280px; }
}
