:root {
  /* Premium Balanced Cyber Slate Palette */
  --bg-deep: #0f172a;          /* Deep Slate 900 */
  --bg-navy: #1e293b;          /* Professional Slate 800 */
  --bg-card: #ffffff;          /* Pristine High-Contrast White for Service Sheets */
  --bg-glass: rgba(15, 23, 42, 0.75);

  /* High-Tech Highlight Paths */
  --primary: #3B82F6;
  --secondary: #6366F1;
  --accent: #8B5CF6;
  --primary-rgb: 59, 130, 246;
  --secondary-rgb: 99, 102, 241;

  /* Typography & Framing Colors */
  --text-dark: #0f172a;        /* Solid Slate 900 for Light Card Elements */
  --text-light: #f8fafc;       /* Crisp White for Dark Container Spaces */
  --text-secondary: #475569;   /* Slate 600 Core Subtext */
  --text-muted: #94a3b8;       /* Slate 400 Descriptions */
  --border-subtle: rgba(0, 0, 0, 0.06);

  --gradient-primary: linear-gradient(135deg, #3B82F6, #6366F1);
  --gradient-full: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-width: 1400px;         /* Increased max-width to let 1440px screens feel spacious */
  --nav-height: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-deep);
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

.portfolio-page-wrapper img {
  max-width: 100%;
  display: block;
}

.portfolio-page-wrapper a {
  color: inherit;
  text-decoration: none;
}

.portfolio-page-wrapper .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;            /* Increased base horizontal padding for a premium layout edge */
}

.portfolio-page-wrapper .gradient-text {
  background: var(--gradient-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   REUSABLE SECTION COMPONENTS
   ========================================= */
.portfolio-page-wrapper .section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
}

.portfolio-page-wrapper .section-title-new {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.portfolio-page-wrapper .section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.portfolio-page-wrapper .section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* =========================================
   CONTROL BUTTONS
   ========================================= */
.portfolio-page-wrapper .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
}
.portfolio-page-wrapper .btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}
.portfolio-page-wrapper .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}
.portfolio-page-wrapper .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.portfolio-page-wrapper .btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* Ambient Cursor Glow Frame */
.portfolio-page-wrapper .cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 75%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
}

/* Translucent Glass Top Bar */
.portfolio-page-wrapper .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-page-wrapper .navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.portfolio-page-wrapper .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portfolio-page-wrapper .nav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.portfolio-page-wrapper .nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
}
.portfolio-page-wrapper .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}
.portfolio-page-wrapper .nav-link:hover {
  color: #fff;
}

/* =======================================================
   INTERACTIVE HERO SECTION
   ======================================================= */
.portfolio-page-wrapper .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 60%, #111827 100%);
  z-index: 20;                  /* Ensures cards hide beneath the hero block */
}
.portfolio-page-wrapper .hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.portfolio-page-wrapper .hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 35% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}
.portfolio-page-wrapper .hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
 .portfolio-page-wrapper .orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.portfolio-page-wrapper .orbit-ring:nth-child(1) { width: 560px; height: 560px; }
.portfolio-page-wrapper .orbit-ring:nth-child(2) { width: 380px; height: 380px; }
.portfolio-page-wrapper .orbit-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.portfolio-page-wrapper .hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 760px;
}
.portfolio-page-wrapper .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}
.portfolio-page-wrapper .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.portfolio-page-wrapper .hero-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.portfolio-page-wrapper .hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 36px;
}
.portfolio-page-wrapper .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.portfolio-page-wrapper .hero-tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.portfolio-page-wrapper .hero-tag {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.portfolio-page-wrapper .hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.portfolio-page-wrapper .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

/* =======================================================
   CORE PHYSICAL DECK ENGINE (2-COLUMN COMPOSITION)
   ======================================================= */
.portfolio-page-wrapper .services-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  background: var(--bg-navy);
  z-index: 10;
}

.portfolio-page-wrapper .services-section .container {
  max-width: var(--max-width);
}

.portfolio-page-wrapper .services-layout-wrapper {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  width: 100%;
      margin-top: 5%;

}

.portfolio-page-wrapper .services-sticky-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  align-self: start;
  z-index: 10;
}

.portfolio-page-wrapper .services-sticky-sidebar .section-title-new {
  text-align: left;
  margin-bottom: 16px;
}

.portfolio-page-wrapper .services-sticky-sidebar .section-desc {
  text-align: left;
  margin-left: 0;
  margin-bottom: 32px;
}

/* Background Matrix Decorative Overlays */
.portfolio-page-wrapper .services-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.portfolio-page-wrapper .services-backdrop-glow {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =======================================================
   UNIFORM CARD CONTAINMENT SYSTEM (DYNAMIC PORT SCALING)
   ======================================================= */
.portfolio-page-wrapper .services-stack-container {
  position: relative;
  width: 100%;
  height: clamp(540px, 65vh, 680px); /* Fluid height matching viewport size dynamically */
}

.portfolio-page-wrapper .service-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center top;
  will-change: transform, opacity;
}

.portfolio-page-wrapper .service-card-sheet {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.portfolio-page-wrapper .service-panel:nth-child(even) .service-card-sheet {
  flex-direction: row-reverse;
}

.portfolio-page-wrapper .service-sheet-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 52%;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;       /* Balanced ratio map */
  align-self: center;
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-sheet-image,
.service-sheet-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.portfolio-page-wrapper .service-sheet-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 48%;
  padding: 4px 0;
}

.portfolio-page-wrapper .service-sheet-header-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-page-wrapper .service-sheet-num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgb(20 41 91);
  line-height: 0.9;
}

.portfolio-page-wrapper .service-sheet-name {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.2;
}

.portfolio-page-wrapper .service-sheet-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =======================================================
   MAGNETIC EXPLORE DEMOS ATTRACTOR ENGINE
   ======================================================= */
.portfolio-page-wrapper .explore-btn-attract {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  border: none;
  overflow: visible;
  will-change: transform;
  width: max-content;
  min-width: 220px;
}

.portfolio-page-wrapper .explore-btn-attract::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-sm) + 6px);
  border: 2px solid var(--primary);
  opacity: 0;
  pointer-events: none;
  animation: structuralPulseRing 2.2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes structuralPulseRing {
  0% { transform: scale(0.96); opacity: 0.8; }
  60%, 100% { transform: scale(1.14); opacity: 0; }
}

.portfolio-page-wrapper .shine-icon {
  font-size: 0.9rem;
  color: #fef08a;
  transition: transform 0.3s ease;
}

/* =======================================================
   SIDEBAR PROGRESS TRACKER NODES (VERTICAL FOR DESKTOP)
   ======================================================= */
.portfolio-page-wrapper .services-progress-tracker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  padding-left: 24px;
  position: relative;
}

.portfolio-page-wrapper .progress-step-node {
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.4;
  transform: translateX(-5px);
}

.portfolio-page-wrapper .progress-step-node .step-bullet {
  position: absolute;
  left: -24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-navy);
  transition: all 0.4s ease;
}

.portfolio-page-wrapper .progress-step-node:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff !important;
  opacity: 0.8;
}

.portfolio-page-wrapper .progress-step-node.active-node {
  background: rgba(59, 130, 246, 0.08) !important;
  color: var(--text-light) !important;
  font-weight: 800;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 1;
  transform: translateX(1);
  font-size: 1rem;
   animation: goBigAndNormal 1s infinite ease-in-out;
}

.portfolio-page-wrapper .progress-step-node.active-node .step-bullet {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  transform: scale(1.3);
}

@keyframes goBigAndNormal {
  0% {
    transform: scale(1); /* Start at normal size */
  }
  25% {
    transform: scale(1.02); /* Start at normal size */
  }
  50% {
    transform: scale(1.04); /* Smoothly scale up to 118% (Big) */
  }
  75% {
    transform: scale(1.02); /* Start at normal size */
  }

  100% {
    transform: scale(1); /* Return back to normal size */
  }
}

/* =======================================================
   DYNAMIC TECH LOGO PNG STRIP & INTERACTIVE DATA MESH
   ======================================================= */
.portfolio-page-wrapper .service-sheet-tech-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-page-wrapper .tech-stack-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: filter 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s ease;
}

.portfolio-page-wrapper .service-card-sheet:hover .tech-stack-logo {
  filter: grayscale(0.2) contrast(1) opacity(0.8);
}

.portfolio-page-wrapper .tech-stack-logo:hover {
  filter: grayscale(0) contrast(1) opacity(1) !important;
  transform: translateY(-2px) scale(1.05);
}

.portfolio-page-wrapper .service-sheet-tech-mesh {
  position: relative;
  width: 100%;
  flex-grow: 1;
  min-height: 140px;
  margin: 4px 0;
  overflow: visible;
}

.portfolio-page-wrapper .constellation-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.portfolio-page-wrapper .constellation-line {
  stroke: rgba(59, 130, 246, 0.08);
  stroke-width: 0.75;
  stroke-dasharray: 4 2;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.portfolio-page-wrapper .mesh-node-wrapper {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.node-pos-0 { top: 5%; left: 5%;  animation: proDriftA 2.5s ease-in-out infinite; }
.node-pos-1 { top: 40%; left: 55%;  animation: proDriftB 2s ease-in-out infinite; }
.node-pos-2 { top: 15%; right: 15%; animation: proDriftC 1.7s ease-in-out infinite; }
.node-pos-3 { bottom: 12%; left: 10%; animation: proDriftB 1.5s ease-in-out infinite; }
.node-pos-4 { top: 35%; left: 25%;  animation: proDriftA 2.2s ease-in-out infinite; }
.node-pos-5 { top: 80%; left: 70%;  animation: proDriftC 2.5s ease-in-out infinite; }

.constellation-svg .line-from-0 { x1: 12%; y1: 20%; x2: 46%; y2: 50%; }
.constellation-svg .line-from-1 { x1: 46%; y1: 50%; x2: 84%; y2: 22%; }
.constellation-svg .line-from-2 { x1: 84%; y1: 22%; x2: 76%; y2: 84%; }
.constellation-svg .line-from-3 { x1: 18%; y1: 88%; x2: 14%; y2: 65%; }
.constellation-svg .line-from-4 { x1: 14%; y1: 65%; x2: 46%; y2: 50%; }

@keyframes proDriftA {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, 6px) rotate(1.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes proDriftB {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -5px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes proDriftC {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, -6px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.mesh-node-wrapper:hover {
  animation-play-state: paused !important;
  transform: scale(1.28) translateY(-4px) !important;
  z-index: 10;
}
.mesh-node-wrapper:hover .tech-stack-logo {
  filter: drop-shadow(0 10px 22px rgba(99, 102, 241, 0.35));
}
.service-sheet-tech-mesh:has(.node-pos-1:hover) .constellation-line {
  stroke: rgba(99, 102, 241, 0.45);
  stroke-width: 1.25;
}

/* =======================================================
   CAPABILITIES MATRIX CAPABILITIES (GRID SECTION)
   ======================================================= */
.portfolio-page-wrapper .grid-section {
  padding: 120px 0;
  background: var(--bg-deep);
}
.portfolio-page-wrapper .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-page-wrapper .matrix-card {
  position: relative;
  background: var(--bg-navy);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.portfolio-page-wrapper .card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--primary-rgb), 0.1) 0%, transparent 65%);
  z-index: 2;
}
.matrix-card:hover .card-spotlight { opacity: 1; }
.matrix-card-image { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 18px; background: #0f172a; }
.matrix-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.matrix-card:hover .matrix-card-image img { transform: scale(1.06); }
.matrix-card-num { font-size: 0.7rem; font-weight: 600; color: var(--primary); letter-spacing: 0.05em; margin-bottom: 6px; }
.matrix-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text-light); }
.matrix-card-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.matrix-card-link { font-size: 0.8rem; font-weight: 600; color: var(--secondary); display: inline-flex; align-items: center; gap: 4px; }

/* =======================================================
   BOTTOM CALL TO ACTION (CTA) SECTION
   ======================================================= */
.portfolio-page-wrapper .cta-section {
  padding: 120px 0;
  background: var(--bg-navy);
  position: relative;
  z-index: 20;                 /* Keeps cards beneath layout maps during drop out timelines */
}
.portfolio-page-wrapper .cta-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.portfolio-page-wrapper .cta-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.cta-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 32px; }

.tracker-mobile-view{
    display:none;
  }

/* =======================================================
   RE-ENGINEERED TRUE DYNAMIC FLUID RESPONSIVE ENGINE
   ======================================================= */

/* --- 1. Wide Desktop Optimizations (1440px and Up) --- */
@media (min-width: 1440px) {
  .services-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
  }
  .services-layout-wrapper {
    grid-template-columns: 32% 1fr;
    gap: 80px;
  }
  .services-stack-container {
    height: 620px !important;
  }
  .service-card-sheet {
    padding: 48px;
    gap: 48px;
  }

}

/* --- 2. Medium Laptops & Small Desktops (1101px to 1439px) --- */
@media (max-width: 1439px) and (min-width: 1101px) {
  .services-section {
    min-height: 100vh;
    padding: 60px 0;
  }
  .services-layout-wrapper {
    gap: 40px;
  }
  .services-stack-container {
    height: 560px !important;
  }
  .service-card-sheet {
    padding: 32px;
    gap: 32px;
  }


}

/* --- 3. Large Tablets & Small Laptops Breakpoint (1024px Grid) --- */
@media (max-width: 1100px) {
  .services-section {
    min-height: auto !important;
    height: auto !important;
    padding: 60px 0 !important;
  }

  .services-layout-wrapper {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .services-sticky-sidebar {
    position: relative !important;
    top: 0 !important;
    text-align: center;
    width: 100%;
  }

  .services-sticky-sidebar .section-title-new,
  .services-sticky-sidebar .section-desc {
    text-align: center !important;
    margin: 0 auto 12px !important;
  }

  .tracker-desktop-view {
    display: none !important;
  }

  .services-progress-tracker {
    display: block !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin: 16px auto 24px !important;
    width: 100% !important;
    max-width: 420px;
  }

  .tracker-mobile-view {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
  }

  .tracker-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .tracker-active-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    flex-grow: 1;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
  }

  .services-stack-container {
    position: relative !important;
    width: 100% !important;
    height: 540px !important;
    margin-top: 10px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Drops capabilities into 2 columns nicely */
    gap: 20px;
  }
}

/* --- 4. Portrait Tablets & iPads (768px Layout Tuning) --- */
@media (max-width: 768px) {
  .portfolio-page-wrapper .container {
    padding: 0 24px !important;
    margin-top: 10%;
  }

  .services-stack-container {
    height: 480px !important; /* Shrinks container framework box to prevent excess dead space */
  }

  .service-card-sheet {
    padding: 24px !important;
    gap: 24px !important;
  }

  .service-sheet-image-wrap {
    width: 45% !important; /* Balances picture side layout footprint */
  }

  .service-sheet-content {
    width: 55% !important;
  }

  .service-sheet-num {
    font-size: 2.2rem !important;
  }

  .service-sheet-name {
    font-size: 1.4rem !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important; /* Converts lower matrix grid clean into a single column row stack */
  }
}

/* --- 5. Precise Mobile Layout Adaptations (480px and Below / 425px Optimized) --- */
@media (max-width: 480px) {
  .hero-actions {
    margin: 10px;
    gap: 8px;
  }

  #btn1 {
    display: none;
  }

  #btn2 {
    display: none;
  }

  .portfolio-page-wrapper .container {
    padding: 0 16px !important;
    margin-top: 25%;
  }

  .services-section {
    padding: 40px 0 !important;
    display: block !important;
    height: auto !important;
    min-height: auto !important;
  }

  .services-layout-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .tracker-desktop-view {
    display: none !important;
  }

  .services-progress-tracker {
    max-width: 100% !important;
    margin: 0 auto 16px !important;
  }

  .tracker-nav-arrow {
      width: 32px !important;
      height: 32px !important;
      font-size: 0.6rem !important;

  }

  .tracker-active-label {
    font-size: 0.85rem !important;
  }

  .services-stack-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 580px;
    margin-top: 0 !important;
  }

  .service-panel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .service-card-sheet {
    flex-direction: column !important;
    padding: 20px !important;
    gap: 16px !important;
    height: 100% !important;
    justify-content: flex-start !important;
  }

  .service-panel:nth-child(even) .service-card-sheet {
    flex-direction: column !important;
  }

  .service-sheet-image-wrap {
    width: 100% !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    aspect-ratio: auto !important;
    position: relative !important;
    margin-bottom: 4px;
  }

  .service-sheet-image {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .service-sheet-content {
    width: 100% !important;
    flex-grow: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .service-sheet-header-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .service-sheet-num {
    font-size: 1.4rem !important;
  }

  .service-sheet-name {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
  }

  .service-sheet-desc {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .service-sheet-tech-mesh {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 4px 0 !important;
    padding: 0 !important;
  }

  .constellation-svg {
    display: none !important;
  }

  .mesh-node-wrapper {
    position: static !important;
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    animation: none !important;
  }

  .tech-stack-logo {
    height: 24px !important;
    width: auto !important;
    filter: none !important;
    mix-blend-mode: multiply;
  }

  .explore-btn-attract {
    width: 100% !important;
    min-width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    margin-top: auto !important;
  }
}


/* Hide mobile trackers completely on desktop monitors */
.portfolio-page-wrapper .mobile-only-tracker {
  display: none !important;
}

/* Base formatting for numeric dots inside the responsive container */
.portfolio-page-wrapper .tracker-mobile-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-page-wrapper .dot-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
}

.portfolio-page-wrapper .dot-node:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-page-wrapper .dot-node.active-dot {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: #fff !important;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
  transform: scale(1.12);
}

/* --- Responsive Media Viewport Targets (1024px and below) --- */
@media (max-width: 1100px) {
  .portfolio-page-wrapper .tracker-desktop-view {
    display: none !important;
  }

  .portfolio-page-wrapper .mobile-only-tracker {
    display: block !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin: 16px auto 24px !important;
    width: 100% !important;
    max-width: 420px;
  }
}

/* Adjust size nicely for tiny screens (480px down to 425px) */
@media (max-width: 480px) {
  .portfolio-page-wrapper .mobile-only-tracker {
    max-width: 100% !important;
  }
  .portfolio-page-wrapper .dot-node {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}
@media( max-width: 375px){
  .portfolio-page-wrapper .section-title-new {
    font-size: 25px;
  }
      .model-name, span {
        font-size: 25px;
    }
  .portfolio-page-wrapper .dot-node {
    width: 23px;
    height: 23px;
    font-size: 0.6rem;
}
}




/* =======================================================
   MOBILE NAV ARROWS CONTINUOUS 2-SECOND INTERACTIVE DRIVE
   ======================================================= */

/* 1. Continually loops the whole button box scale (Grow & Shrink) every 2 seconds */
.mobile-only-tracker .tracker-nav-arrow {
  position: relative;
  animation: buttonPulseScale 2s infinite ease-in-out;
  transform-origin: center;
}

/* Offsets the right arrow by 0.4s so they pulse in an elegant, alternate cadence */
.mobile-only-tracker .next-arrow {
  animation-delay: 0.8s;
}

/* 2. Continually loops the back-and-forth micro-nudges inside the buttons every 2 seconds */
.mobile-only-tracker .prev-arrow i {
  animation: arrowBounceLeft 2s infinite ease-in-out;
}

.mobile-only-tracker .next-arrow i {
  animation: arrowBounceRight 2s infinite ease-in-out;
}


/* --- CSS Keyframes Engine --- */

/* Controls the scale and subtle glow effect every 2 seconds */
@keyframes buttonPulseScale {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(var(--primary-rgb), 0);
  }
  50% {
    transform: scale(1.12); /* Expands the button box slightly */
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.35); /* Casts a premium premium glow when expanded */
  }
}

/* Horizontal arrow micro-movements */
@keyframes arrowBounceLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2px); }
}

@keyframes arrowBounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

