/* =============================================
   pages/managed-services.css — Managed IT Services + Enterprise Architecture
   ============================================= */
/* ============================= */
/* MANAGED IT SERVICES HERO      */
/* ============================= */

.ms-hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Background */
.ms-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, #091228 0%, #122246 45%, #193264 100%);
}

.ms-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Orbs */
.ms-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
  animation: msOrbDrift 14s ease-in-out infinite;
}
.ms-orb-1 {
  width: 320px;
  height: 320px;
  background: #1e4fd8;
  opacity: 0.13;
  top: -80px;
  left: -60px;
}
.ms-orb-2 {
  width: 200px;
  height: 200px;
  background: #f19839;
  opacity: 0.09;
  bottom: -50px;
  right: 40px;
  animation-delay: -7s;
}
@keyframes msOrbDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -12px);
  }
}

/* Layout */
.ms-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* ---- LEFT ---- */
.ms-hero-text {
  color: #fff;
}

.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f19839;
  margin-bottom: 16px;
  opacity: 0;
  animation: msFadeUp 0.5s ease forwards;
  animation-delay: 0.1s;
}

.ms-eyebrow-dot {
  width: 10px;
  height: 10px;
  background: #f19839;
  border-radius: 50%;
  flex-shrink: 0;
  animation: msBlink 1.6s ease-in-out infinite;
}

@keyframes msBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.ms-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  opacity: 0;
  animation: msFadeUp 0.55s ease forwards;
  animation-delay: 0.2s;
}
.ms-hero-title span {
  color: #f19839;
}

.ms-hero-sub {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin-bottom: 26px;
  opacity: 0;
  animation: msFadeUp 0.55s ease forwards;
  animation-delay: 0.3s;
}

.ms-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  animation: msFadeUp 0.55s ease forwards;
  animation-delay: 0.4s;
}

.ms-stats {
  display: flex;
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: msFadeUp 0.5s ease forwards;
  animation-delay: 0.88s;
}

.ms-stat {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 0;
}
.ms-stat + .ms-stat {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ms-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f19839;
  letter-spacing: -0.02em;
}
.ms-stat-lbl {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}

@keyframes msFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RIGHT — ORBITAL VIZ ---- */
.ms-hero-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: msFadeUp 0.7s ease forwards;
  animation-delay: 0.55s;
}

.ms-solar {
  position: relative;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
}

/* Rings */
.ms-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ms-r1 {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-r2 {
  width: 290px;
  height: 290px;
  border: 1px solid rgba(241, 152, 57, 0.12);
}
.ms-r3 {
  width: 440px;
  height: 440px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Hub */
.ms-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(13, 59, 136, 0.92),
    rgba(26, 92, 200, 0.88)
  );
  border: 2px solid rgba(241, 152, 57, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: msHubPulse 3s ease-in-out infinite;
}

.ms-hub-title {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.3;
}
.ms-hub-sub {
  font-size: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

@keyframes msHubPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(13, 59, 136, 0.2),
      0 0 0 14px rgba(13, 59, 136, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 11px rgba(13, 59, 136, 0.28),
      0 0 0 22px rgba(13, 59, 136, 0.05);
  }
}

/* Orbits */
.ms-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}
.ms-orb1 {
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  animation: msSpin1 35s linear infinite; /* ← was lost in update */
}

.ms-orb2 {
  width: 290px;
  height: 290px;
  margin: -145px 0 0 -145px;
  animation: msSpin2 55s linear infinite; /* ← was lost in update */
}

.ms-orb3 {
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  animation: msSpin3 80s linear infinite; /* ← was lost in update */
}
@keyframes msSpin1 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes msSpin2 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
@keyframes msSpin3 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Nodes */
.ms-node {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(10, 20, 52, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-node svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: rgba(255, 255, 255, 0.72);
}

/* Node color variants */
.ms-accent {
  background: rgba(241, 152, 57, 0.12);
  border-color: rgba(241, 152, 57, 0.5);
}
.ms-accent svg {
  stroke: #f19839;
}

.ms-blue {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.35);
}
.ms-blue svg {
  stroke: #60a5fa;
}

.ms-green {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}
.ms-green svg {
  stroke: #34d399;
}

.ms-purple {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
}
.ms-purple svg {
  stroke: #a78bfa;
}

/* Node label */
.ms-nlbl {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.46rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- ORBIT 1 node positions ---- */
.ms-o1n1 {
  top: 0;
  left: 50%;
  animation: msCR1a 35s linear infinite;
}
.ms-o1n2 {
  bottom: 0;
  left: 50%;
  animation: msCR1b 35s linear infinite;
}
@keyframes msCR1a {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
@keyframes msCR1b {
  from {
    transform: translate(-50%, 50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, 50%) rotate(-360deg);
  }
}

/* ---- ORBIT 2 node positions ---- */
.ms-o2n1 {
  top: 0;
  left: 50%;
  animation: msCR2a 55s linear infinite;
}
.ms-o2n2 {
  top: 50%;
  right: 0;
  animation: msCR2b 55s linear infinite;
}
.ms-o2n3 {
  bottom: 0;
  left: 50%;
  animation: msCR2c 55s linear infinite;
}
.ms-o2n4 {
  top: 50%;
  left: 0;
  animation: msCR2d 55s linear infinite;
}
@keyframes msCR2a {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes msCR2b {
  from {
    transform: translate(50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(50%, -50%) rotate(360deg);
  }
}
@keyframes msCR2c {
  from {
    transform: translate(-50%, 50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, 50%) rotate(360deg);
  }
}
@keyframes msCR2d {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ---- ORBIT 3 node positions — diagonal (45°, 135°, 225°, 315°) ---- */
.ms-o3n1 {
  top: 13%;
  left: 86%;
  animation: msCR3 80s linear infinite;
}
.ms-o3n2 {
  top: 86%;
  left: 86%;
  animation: msCR3 80s linear infinite;
}
.ms-o3n3 {
  top: 86%;
  left: 14%;
  animation: msCR3 80s linear infinite;
}
.ms-o3n4 {
  top: 14%;
  left: 14%;
  animation: msCR3 80s linear infinite;
}
@keyframes msCR3 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Tagline */
.ms-tagline {
  margin-top: 16px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}
.ms-tagline span {
  color: #f19839;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */
/* Tablet */
@media (max-width: 1200px) {
  .ms-solar {
    width: 420px;
    height: 420px;
  }
  .ms-r3 {
    width: 388px;
    height: 388px;
  }
  .ms-orb3 {
    width: 388px;
    height: 388px;
    margin: -194px 0 0 -194px;
  }
}

@media (max-width: 992px) {
  .ms-solar {
    width: 380px;
    height: 380px;
  }
  .ms-r1 {
    width: 136px;
    height: 136px;
  }
  .ms-r2 {
    width: 262px;
    height: 262px;
  }
  .ms-r3 {
    width: 352px;
    height: 352px;
  }
  .ms-orb1 {
    width: 136px;
    height: 136px;
    margin: -68px 0 0 -68px;
  }
  .ms-orb2 {
    width: 262px;
    height: 262px;
    margin: -131px 0 0 -131px;
  }
  .ms-orb3 {
    width: 352px;
    height: 352px;
    margin: -176px 0 0 -176px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .ms-solar {
    width: 300px;
    height: 300px;
  }
  .ms-r1 {
    width: 106px;
    height: 106px;
  }
  .ms-r2 {
    width: 200px;
    height: 200px;
  }
  .ms-r3 {
    width: 278px;
    height: 278px;
  }
  .ms-hub {
    width: 76px;
    height: 76px;
  }
  .ms-orb1 {
    width: 106px;
    height: 106px;
    margin: -53px 0 0 -53px;
  }
  .ms-orb2 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
  }
  .ms-orb3 {
    width: 278px;
    height: 278px;
    margin: -139px 0 0 -139px;
  }
  .ms-node {
    width: 44px;
    height: 44px;
  }
  .ms-node svg {
    width: 18px;
    height: 18px;
  }
}

/* Problem Solution Section */

.managed-problem-solution h2 {
  color: #0f1c3f;
}

.managed-problem-solution p {
  color: #475569;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* =============================
   SERVICE CARDS
   ============================= */

.managed-service-cards h2 {
  color: #0f1c3f;
  font-weight: 700;
}

.managed-service-cards .card {
  border-radius: 14px;
  transition: all 0.3s ease;
}

.managed-service-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.managed-service-cards .card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.managed-service-cards .card-title a {
  color: #0f1c3f;
  text-decoration: none;
}

.managed-service-cards .card-title a:hover {
  color: #2563eb;
}

.managed-service-cards .card-text {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================
   CAPABILITIES
   ============================= */

.managed-capabilities {
  background: #ffffff;
}

.managed-capabilities h2 {
  color: #0f1c3f;
  font-weight: 700;
}

.managed-capabilities h5 {
  font-weight: 600;
  color: #0f1c3f;
  margin-bottom: 10px;
}

.managed-capabilities p {
  color: #64748b;
  font-size: 0.95rem;
}

/* =============================
   BENEFITS
   ============================= */

.managed-benefits h2 {
  color: #0f1c3f;
  font-weight: 700;
}

.managed-benefits li {
  font-size: 1.05rem;
  color: #475569;
  padding-left: 5px;
}

.managed-benefits strong {
  color: #0f1c3f;
}

/* =============================
   CTA SECTION
   ============================= */

.managed-cta {
  background: linear-gradient(135deg, #0f1c3f, #1e293b);
  color: #ffffff;
  text-align: center;
  padding: 90px 20px;
}

.managed-cta h2 {
  font-weight: 700;
}

.managed-cta .lead {
  max-width: 720px;
  margin: auto;
  color: #cbd5f5;
}

/* =============================
   ADVISORY PANEL
   ============================= */

.advisory-panel {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 320px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 9999;
  display: none;
}

.advisory-header {
  font-weight: 600;
  margin-bottom: 15px;
  color: #0f1c3f;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
}

.advisory-panel input,
.advisory-panel textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.advisory-panel button {
  width: 100%;
  background: #2563eb;
  border: none;
  padding: 11px;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

.advisory-panel button:hover {
  background: #1d4ed8;
}

.advisory-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

/* =============================
   MOBILE
   ============================= */

@media (max-width: 768px) {
  .hero-section.bg-managed {
    padding: 70px 0;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .managed-icon-circle {
    width: 120px;
    height: 120px;
    font-size: 45px;
    margin-top: 30px;
  }

  .managed-capabilities .col-md-3 {
    text-align: center;
  }

  .advisory-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }
}
/* =============================
   ENTERPRISE IT ARCHITECTURE
   ============================= */
/* PREMIUM ARCHITECTURE */

.premium-architecture {
  background: #0f172a;
  color: #fff;
  overflow: hidden;
}

.premium-architecture h2 {
  font-weight: 700;
}

.arch-container {
  position: relative;
  width: 500px;
  height: 500px;
  margin: auto;
}

/* CORE */
.arch-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.8);
  animation: coreRotate 20s linear infinite;
  z-index: 2;
}

/* NODES */
.arch-node {
  position: absolute;
  padding: 10px 18px;
  background: #1e293b;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transition: all 0.3s;
  z-index: 3;
}

.arch-node:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(59, 130, 246, 1);
}

.node-cyber:hover {
  transform: translateX(-50%) scale(1.1);
}

.node-network:hover {
  transform: translateX(-50%) scale(1.1);
}

/* NODE POSITIONS */

.node-cyber {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.node-cloud {
  top: 130px;
  right: 0px;
}
.node-backup {
  bottom: 120px;
  right: 0px;
}
.node-network {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.node-email {
  bottom: 120px;
  left: 0px;
}
.node-web {
  top: 120px;
  left: 0;
}

/* SVG LINES */
.arch-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.arch-lines line {
  stroke: #3b82f6;
  stroke-width: 2;
  opacity: 0.6;
  stroke-dasharray: 6 6;
  animation: lineMove 6s linear infinite;
}

/* DATA PACKETS */

.packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 10px #60a5fa;
}

.p1 {
  top: 300px;
  left: 300px;
  animation: packetMove1 5s linear infinite;
}

.p2 {
  top: 300px;
  left: 300px;
  animation: packetMove2 6s linear infinite;
}

.p3 {
  top: 300px;
  left: 300px;
  animation: packetMove3 7s linear infinite;
}

/* ANIMATIONS */

@keyframes coreRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes lineMove {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 20;
  }
}

@keyframes packetMove1 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(0, -240px);
  }
}

@keyframes packetMove2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(220px, -120px);
  }
}

@keyframes packetMove3 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-220px, 120px);
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .arch-container {
    width: 100%;
    height: 420px;
  }

  .arch-node {
    font-size: 12px;
  }

  .arch-core {
    width: 120px;
    height: 120px;
    font-size: 14px;
  }
}
