:root {
  --bg: #07111f;
  --bg-soft: rgba(10, 18, 34, 0.8);
  --card: rgba(11, 22, 40, 0.72);
  --card-2: rgba(8, 17, 31, 0.88);
  --text: #eef2ff;
  --muted: #a8b2d1;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --accent-3: #a78bfa;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(5, 10, 22, 0.84), rgba(5, 10, 22, 0.92)),
    url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: -3;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 60%);
  transform: translate(-50%, -50%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.8;
}

.hero-orb,
.hero-orb-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

.hero-orb {
  width: 240px;
  height: 240px;
  top: 14%;
  right: 12%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 70%);
  animation: orbFloat 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: 8%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 40px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease;
  font-size: 0.92rem;
}

.badge:hover,
.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.48);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(7, 14, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-subtitle {
  color: var(--muted);
  font-weight: 500;
}

.logo-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
  flex-shrink: 0;
}

.logo-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 0.28s ease;
}

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

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 72px 0 64px;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 18px 0;
  max-width: 720px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 35%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: shimmer 6s linear infinite;
}

.hero-copy > p,
.profile-note,
.card p,
.project-card p,
.edu-card p,
.contact-card p,
.timeline-item p {
  color: var(--muted);
}

.hero-copy > p {
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 20px 0 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  backdrop-filter: blur(16px);
  max-width: 560px;
}

.profile-image-wrap {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
  animation: pulseRing 3.5s ease-in-out infinite;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  background: #0a1322;
}

.profile-name {
  margin-bottom: 4px;
}

.hero-actions,
.hero-stats,
.project-links,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-bottom: 26px;
}

.btn,
.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn::before,
.project-link-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before,
.project-link-btn:hover::before {
  transform: translateX(120%);
}

.btn:hover,
.project-link-btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  box-shadow: 0 16px 34px rgba(96, 165, 250, 0.24);
}

.btn-secondary,
.project-link-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: block;
  min-height: auto;
}

.hero-panel,
.card,
.project-card,
.skills-block,
.edu-card,
.timeline-item,
.contact-card,
.mini-card,
.code-art {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 28px;
  padding: 24px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  min-width: 0;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  pointer-events: none;
}

.cards-grid,
.projects-grid,
.skills-grid,
.edu-wrap,
.contact-grid,
.timeline {
  display: grid;
  gap: 22px;
}

.cards-grid,
.projects-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid,
.edu-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.project-card,
.skills-block,
.edu-card,
.timeline-item,
.contact-card {
  border-radius: 24px;
  padding: 24px;
  min-width: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.project-card:hover,
.skills-block:hover,
.edu-card:hover,
.timeline-item:hover,
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.42);
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8fe9ff;
  margin-bottom: 14px;
}

.section-heading-icon,
.skill-icon {
  color: #8fe9ff;
}

.section-heading-icon {
  margin-right: 10px;
}

.card h3,
.project-card h3,
.skills-block h3,
.edu-card h3,
.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.timeline-item {
  position: relative;
  overflow: hidden;
  padding-left: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-top,
.project-top,
.edu-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-company,
.project-stack {
  color: #bfdbfe;
  font-weight: 600;
}

.timeline ul,
.project-card ul,
.cert-list {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
}

.timeline li,
.project-card li,
.cert-list li {
  margin-bottom: 10px;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 70%);
}

.contact-link {
  display: inline-block;
  margin-top: 12px;
  color: #bfdbfe;
  font-weight: 600;
  overflow-wrap: anywhere;
}

footer {
  padding: 30px 0 50px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Right panel upgrade */
.developer-panel {
  padding: 20px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.92), rgba(7, 16, 30, 0.82));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.dev-window {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.95), rgba(9, 18, 35, 0.82));
  border: 1px solid rgba(255,255,255,0.08);
}

.dev-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots span:nth-child(1) { background: #fb7185; }
.window-dots span:nth-child(2) { background: #facc15; }
.window-dots span:nth-child(3) { background: #4ade80; }

.window-title {
  color: #cbd5e1;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.dev-card {
  padding: 22px;
  display: grid;
  gap: 20px;
}

.dev-code {
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.9), rgba(7, 16, 30, 0.75));
  border: 1px solid rgba(96, 165, 250, 0.14);
  box-shadow: inset 0 0 40px rgba(34, 211, 238, 0.04);
}

.code-line {
  font-family: "Inter", monospace;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #dbeafe;
  white-space: normal;
  word-break: break-word;
}

.indent {
  padding-left: 20px;
}

.code-keyword {
  color: #7dd3fc;
  font-weight: 700;
}

.code-var {
  color: #c4b5fd;
  font-weight: 700;
}

.code-prop {
  color: #93c5fd;
}

.code-string {
  color: #86efac;
}

.code-symbol {
  color: #e2e8f0;
}

.dev-stack-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: #e0f2fe;
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  animation: techFloat 4.5s ease-in-out infinite;
}

.dev-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-tech-card,
.signal-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-label,
.signal-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 600;
}

.mini-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  animation: fillGrow 2.4s ease forwards;
}

.backend-bar { --fill-width: 92%; animation-delay: 0.2s; }
.ml-bar { --fill-width: 84%; animation-delay: 0.45s; }
.rest-bar { --fill-width: 88%; animation-delay: 0.7s; }
.dsa-bar { --fill-width: 90%; animation-delay: 0.95s; }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signal-card strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
}

.signal-card small {
  color: var(--muted);
}

.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: 0.6s; }
.float-delay-3 { animation-delay: 1.2s; }
.float-delay-4 { animation-delay: 1.8s; }

.typing-line {
  position: relative;
}

.typing-cursor {
  display: inline-block;
  margin-left: 3px;
  color: #67e8f9;
  font-weight: 700;
  animation: blinkCursor 0.9s steps(1) infinite;
}

.cards-grid-offset,
.project-links-spaced {
  margin-top: 22px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.22); }
  50% { box-shadow: 0 0 0 14px rgba(96, 165, 250, 0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(12px); }
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes techFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.08);
  }
}

@keyframes fillGrow {
  from { width: 0; }
  to { width: var(--fill-width, 85%); }
}



.section-visual {
  margin-bottom: 26px;
}

.network-scene,
.ml-scene,
.dl-scene {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.9), rgba(10, 20, 38, 0.78));
  box-shadow: var(--shadow);
}

.network-scene {
  min-height: 220px;
}

.network-node {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
}

.network-node i {
  font-size: 1.7rem;
  color: #8fe9ff;
}

.network-node span {
  font-size: 0.95rem;
  color: #dbeafe;
  font-weight: 600;
}

.node-client { left: 7%; top: 50%; transform: translateY(-50%); }
.node-server { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.node-db { right: 7%; top: 50%; transform: translateY(-50%); }

.network-link {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,0.15), rgba(34,211,238,0.85), rgba(96,165,250,0.15));
  overflow: hidden;
}

.network-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  animation: streamLine 2.4s linear infinite;
}

.network-link-1 {
  left: 21%;
  right: 50%;
  top: calc(50% - 1px);
}

.network-link-2 {
  left: 50%;
  right: 21%;
  top: calc(50% - 1px);
}

.network-link-3 {
  display: none;
}

.data-pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #67e8f9 0%, #60a5fa 65%, transparent 70%);
  top: calc(50% - 7px);
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.9);
}

.pulse-1 { left: 21%; animation: movePulse1 2.8s linear infinite; }
.pulse-2 { left: 48%; animation: movePulse2 2.8s linear infinite 0.9s; }
.pulse-3 { left: 21%; animation: movePulse1 2.8s linear infinite 1.6s; }

.ml-scene {
  min-height: 240px;
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr 130px;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
}

.ml-inputs,
.ml-layer,
.ml-output {
  position: relative;
  z-index: 2;
}

.ml-inputs,
.ml-layer {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.ml-dot,
.neuron {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  background: radial-gradient(circle, #ffffff 0%, #67e8f9 45%, #60a5fa 100%);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.45);
  animation: neuronPulse 2.4s ease-in-out infinite;
}

.ml-layer-1 .neuron:nth-child(2),
.ml-layer-2 .neuron:nth-child(2),
.ml-layer-2 .neuron:nth-child(4),
.ml-layer-3 .neuron:nth-child(2),
.ml-dot:nth-child(2),
.ml-dot:nth-child(4) {
  animation-delay: 0.5s;
}

.ml-layer-1 .neuron:nth-child(3),
.ml-layer-2 .neuron:nth-child(3),
.ml-dot:nth-child(3) {
  animation-delay: 1s;
}

.ml-output {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  color: #dbeafe;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  justify-self: end;
}

.ml-output i {
  font-size: 1.7rem;
  color: #8fe9ff;
}

.ml-scene::before,
.ml-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ml-scene::before {
  background:
    linear-gradient(90deg, transparent 16%, rgba(96,165,250,0.24) 16.2%, transparent 16.5%),
    linear-gradient(90deg, transparent 37%, rgba(96,165,250,0.24) 37.2%, transparent 37.5%),
    linear-gradient(90deg, transparent 60%, rgba(96,165,250,0.24) 60.2%, transparent 60.5%),
    linear-gradient(90deg, transparent 82%, rgba(96,165,250,0.24) 82.2%, transparent 82.5%);
  opacity: 0.9;
}

.ml-scene::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: mlSweep 3.5s linear infinite;
}

.dl-scene {
  min-height: 230px;
  display: grid;
  place-items: center;
}

.dl-core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(34,211,238,0.2));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.16);
  z-index: 2;
}

.dl-core i {
  font-size: 2rem;
  color: #8fe9ff;
  animation: spinSlow 9s linear infinite;
}

.dl-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(143, 233, 255, 0.25);
}

.orbit-1 {
  width: 250px;
  height: 250px;
  animation: spinSlow 18s linear infinite;
}

.orbit-2 {
  width: 340px;
  height: 340px;
  animation: spinReverse 24s linear infinite;
}

.dl-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0f2fe;
  font-size: 0.9rem;
  font-weight: 600;
  animation: chipFloat 4s ease-in-out infinite;
}

.chip-java   { top: 18px; left: 22%; }
.chip-spring { top: 45px; right: 18%; animation-delay: 0.7s; }
.chip-rest   { right: 12%; top: 50%; transform: translateY(-50%); animation-delay: 1.2s; }
.chip-ml     { bottom: 24px; right: 24%; animation-delay: 1.6s; }
.chip-dsa    { bottom: 20px; left: 24%; animation-delay: 0.9s; }
.chip-sql    { left: 12%; top: 50%; transform: translateY(-50%); animation-delay: 1.4s; }

@keyframes streamLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes movePulse1 {
  0% { left: 21%; opacity: 0; }
  10% { opacity: 1; }
  45% { left: 47%; opacity: 1; }
  50% { left: 50%; opacity: 0; }
  100% { left: 50%; opacity: 0; }
}

@keyframes movePulse2 {
  0% { left: 50%; opacity: 0; }
  10% { opacity: 1; }
  45% { left: 76%; opacity: 1; }
  50% { left: 79%; opacity: 0; }
  100% { left: 79%; opacity: 0; }
}

@keyframes neuronPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 1; }
}

@keyframes mlSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1100px) {
  .hero-layout,
  .cards-grid,
  .projects-grid,
  .skills-grid,
  .edu-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 4%;
    background: rgba(8, 12, 24, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .ml-scene {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ml-inputs,
  .ml-layer {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .ml-output {
    justify-self: center;
  }

  .network-scene {
    min-height: 420px;
  }

  .node-client { left: 50%; top: 16%; transform: translateX(-50%); }
  .node-server { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .node-db { left: 50%; top: 84%; right: auto; transform: translateX(-50%); }

  .network-link-1,
  .network-link-2 {
    width: 3px;
    left: calc(50% - 1px);
    right: auto;
    background: linear-gradient(180deg, rgba(96,165,250,0.15), rgba(34,211,238,0.85), rgba(96,165,250,0.15));
  }

  .network-link-1 {
    top: 29%;
    height: 64px;
  }

  .network-link-2 {
    top: 62%;
    height: 62px;
  }

  .pulse-1,
  .pulse-2,
  .pulse-3 {
    left: calc(50% - 7px);
    top: 30%;
  }

  .pulse-1 { animation: movePulseVertical1 2.8s linear infinite; }
  .pulse-2 { animation: movePulseVertical2 2.8s linear infinite 0.9s; }
  .pulse-3 { animation: movePulseVertical1 2.8s linear infinite 1.6s; }

  .hero {
    padding-top: 48px;
  }

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

  .btn,
  .project-link-btn,
  .badge,
  .chip {
    width: 100%;
  }

  .hero-actions,
  .hero-stats,
  .project-links {
    gap: 12px;
  }

  .dev-mini-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .code-line {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .dev-card {
    padding: 16px;
  }
}


@keyframes movePulseVertical1 {
  0% { top: 29%; opacity: 0; }
  10% { opacity: 1; }
  45% { top: 47%; opacity: 1; }
  50% { top: 50%; opacity: 0; }
  100% { top: 50%; opacity: 0; }
}

@keyframes movePulseVertical2 {
  0% { top: 62%; opacity: 0; }
  10% { opacity: 1; }
  45% { top: 78%; opacity: 1; }
  50% { top: 81%; opacity: 0; }
  100% { top: 81%; opacity: 0; }
}


.project-network-scene {
  min-height: 220px;
}

.about-scene {
  position: relative;
  min-height: 280px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.9), rgba(10, 20, 38, 0.78));
  box-shadow: var(--shadow);
}

.about-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  background: radial-gradient(circle, rgba(96,165,250,0.28), rgba(34,211,238,0.12));
  border: 1px solid rgba(255,255,255,0.14);
  color: #e0f2fe;
  z-index: 3;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.18);
}

.about-core i {
  font-size: 1.8rem;
  color: #8fe9ff;
}

.about-core span {
  font-weight: 700;
}

.about-core-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(143, 233, 255, 0.24);
}

.ring-1 {
  width: 220px;
  height: 220px;
  animation: spinSlow 16s linear infinite;
}

.ring-2 {
  width: 310px;
  height: 310px;
  animation: spinReverse 24s linear infinite;
}

.about-float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0f2fe;
  font-weight: 600;
  backdrop-filter: blur(12px);
  animation: chipFloat 4.5s ease-in-out infinite;
  z-index: 2;
}

.about-card-1 { top: 24px; left: 8%; }
.about-card-2 { top: 70px; right: 9%; animation-delay: 0.7s; }
.about-card-3 { bottom: 34px; left: 10%; animation-delay: 1.2s; }
.about-card-4 { bottom: 58px; right: 12%; animation-delay: 1.7s; }

.about-beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,0.55), transparent);
  transform-origin: left center;
  z-index: 1;
}

.beam-1 { width: 180px; left: 22%; top: 36%; transform: rotate(10deg); }
.beam-2 { width: 180px; right: 23%; top: 40%; transform: rotate(-12deg); }
.beam-3 { width: 200px; left: 24%; bottom: 33%; transform: rotate(-14deg); }
.beam-4 { width: 200px; right: 22%; bottom: 30%; transform: rotate(15deg); }

.projects-ml-visual {
  margin-top: 26px;
}

.ml-scene-detailed {
  min-height: 280px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 30px 36px;
}

.ml-column {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.ml-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  background: radial-gradient(circle, #ffffff 0%, #67e8f9 45%, #60a5fa 100%);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.45);
  animation: neuronPulse 2.4s ease-in-out infinite;
}

.ml-column-input .ml-node:first-child {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #dbeafe;
}

.hidden-1 .ml-node:nth-child(2),
.hidden-2 .ml-node:nth-child(2),
.hidden-2 .ml-node:nth-child(4),
.ml-column-output .ml-node:nth-child(2) {
  animation-delay: 0.5s;
}

.hidden-1 .ml-node:nth-child(3),
.hidden-2 .ml-node:nth-child(3) {
  animation-delay: 1s;
}

.ml-output-badge {
  margin-top: 10px;
  display: grid;
  place-items: center;
  gap: 6px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dbeafe;
}

.ml-output-badge i {
  font-size: 1.6rem;
  color: #8fe9ff;
}

.ml-flow-lines {
  position: absolute;
  inset: 22px 28px;
  width: calc(100% - 56px);
  height: calc(100% - 44px);
  z-index: 1;
}

.ml-flow-lines line {
  stroke: rgba(103, 232, 249, 0.34);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
  animation: dashFlow 5s linear infinite;
}

.ml-signal {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #67e8f9 42%, #60a5fa 100%);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.65);
  z-index: 3;
}

.ml-signal-1 { animation: mlTravel1 4s linear infinite; }
.ml-signal-2 { animation: mlTravel2 4s linear infinite 1.3s; }
.ml-signal-3 { animation: mlTravel3 4s linear infinite 2.4s; }

@keyframes dashFlow {
  to { stroke-dashoffset: -44; }
}

@keyframes mlTravel1 {
  0% { left: 10%; top: 18%; opacity: 0; }
  8% { opacity: 1; }
  35% { left: 36%; top: 20%; opacity: 1; }
  66% { left: 64%; top: 14%; opacity: 1; }
  100% { left: 88%; top: 34%; opacity: 0; }
}

@keyframes mlTravel2 {
  0% { left: 10%; top: 50%; opacity: 0; }
  8% { opacity: 1; }
  35% { left: 36%; top: 48%; opacity: 1; }
  66% { left: 64%; top: 54%; opacity: 1; }
  100% { left: 88%; top: 60%; opacity: 0; }
}

@keyframes mlTravel3 {
  0% { left: 10%; top: 80%; opacity: 0; }
  8% { opacity: 1; }
  35% { left: 36%; top: 74%; opacity: 1; }
  66% { left: 64%; top: 84%; opacity: 1; }
  100% { left: 88%; top: 66%; opacity: 0; }
}

@media (max-width: 920px) {
  .about-scene {
    min-height: 380px;
  }

  .about-card-1 { top: 16px; left: 6%; }
  .about-card-2 { top: 90px; right: 6%; }
  .about-card-3 { bottom: 22px; left: 7%; }
  .about-card-4 { bottom: 82px; right: 7%; }

  .beam-1, .beam-2, .beam-3, .beam-4 {
    opacity: 0.6;
  }
}

@media (max-width: 640px) {
  .about-scene {
    min-height: 460px;
  }

  .about-core {
    width: 120px;
    height: 120px;
  }

  .ring-1 { width: 190px; height: 190px; }
  .ring-2 { width: 260px; height: 260px; }

  .about-float-card {
    font-size: 0.84rem;
    padding: 10px 12px;
  }

  .about-card-1 { top: 18px; left: 50%; transform: translateX(-50%); }
  .about-card-2 { top: 118px; right: 50%; transform: translateX(50%); }
  .about-card-3 { bottom: 96px; left: 50%; transform: translateX(-50%); }
  .about-card-4 { bottom: 18px; right: 50%; transform: translateX(50%); }

  .beam-1, .beam-2, .beam-3, .beam-4 {
    display: none;
  }

  .ml-scene-detailed {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 20px 40px;
  }

  .ml-flow-lines,
  .ml-signal {
    display: none;
  }

  .ml-column {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 12px;
  }

  .ml-output-badge {
    width: 100px;
    height: 100px;
  }
}


.project-api-scene {
  min-height: 220px;
}

.projects-ml-wrap {
  margin-top: 28px;
}

.ml-scene-detailed {
  min-height: 320px;
  grid-template-columns: 110px 1fr 1fr 1fr 170px;
  padding-top: 60px;
}

.ml-scene-detailed .ml-output {
  width: 150px;
  height: 150px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(96,165,250,0.14), rgba(34,211,238,0.10));
  border: 1px solid rgba(143,233,255,0.24);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.14);
  padding: 14px;
}

.ml-brain-output i {
  font-size: 2.4rem;
  color: #8fe9ff;
}

.ml-brain-output strong {
  font-size: 1rem;
  color: #f8fbff;
}

.ml-brain-output span {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.ml-stage-label {
  position: absolute;
  top: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfe8ff;
  font-weight: 700;
  z-index: 3;
}

.ml-label-input { left: 28px; }
.ml-label-hidden-1 { left: 24.5%; }
.ml-label-hidden-2 { left: 46.8%; }
.ml-label-output { right: 30px; }

.ml-line-set {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.ml-line-set span {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,0.18), rgba(143,233,255,0.95), rgba(96,165,250,0.18));
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.3);
  overflow: hidden;
}

.ml-line-set span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.96), transparent);
  animation: streamLine 2.8s linear infinite;
}

.lines-input-1 { left: 13%; width: 15%; }
.lines-input-1 span:nth-child(1) { top: 31%; transform: rotate(-22deg); width: 100%; }
.lines-input-1 span:nth-child(2) { top: 41%; transform: rotate(-7deg); width: 100%; }
.lines-input-1 span:nth-child(3) { top: 52%; transform: rotate(8deg); width: 100%; }
.lines-input-1 span:nth-child(4) { top: 63%; transform: rotate(22deg); width: 100%; }

.lines-1-2 { left: 33.5%; width: 16%; }
.lines-1-2 span:nth-child(1) { top: 29%; transform: rotate(-20deg); width: 100%; }
.lines-1-2 span:nth-child(2) { top: 39%; transform: rotate(-8deg); width: 100%; }
.lines-1-2 span:nth-child(3) { top: 49%; transform: rotate(0deg); width: 100%; }
.lines-1-2 span:nth-child(4) { top: 59%; transform: rotate(9deg); width: 100%; }
.lines-1-2 span:nth-child(5) { top: 69%; transform: rotate(20deg); width: 100%; }

.lines-2-3 { left: 56%; width: 14%; }
.lines-2-3 span:nth-child(1) { top: 33%; transform: rotate(-16deg); width: 100%; }
.lines-2-3 span:nth-child(2) { top: 45%; transform: rotate(-4deg); width: 100%; }
.lines-2-3 span:nth-child(3) { top: 57%; transform: rotate(10deg); width: 100%; }
.lines-2-3 span:nth-child(4) { top: 67%; transform: rotate(22deg); width: 100%; }

.lines-3-out { left: 74%; width: 11%; }
.lines-3-out span:nth-child(1) { top: 39%; transform: rotate(-10deg); width: 100%; }
.lines-3-out span:nth-child(2) { top: 50%; transform: rotate(0deg); width: 100%; }
.lines-3-out span:nth-child(3) { top: 61%; transform: rotate(10deg); width: 100%; }

.contact-grid-extended {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-span {
  grid-column: 1 / -1;
}

.contact-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #dbeafe;
  font-weight: 600;
  font-size: 0.94rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8ea2c9;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(103, 232, 249, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.contact-form button {
  width: fit-content;
}

@media (max-width: 900px) {
  .ml-scene-detailed {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding-top: 76px;
    text-align: center;
  }

  .ml-stage-label {
    position: static;
    margin-bottom: -8px;
  }

  .ml-line-set {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}


/* Professional ML / Neural Network upgrade */
.ml-scene-pro {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 72px 36px 34px;
  background:
    radial-gradient(circle at 14% 50%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, rgba(7, 18, 34, 0.96), rgba(6, 15, 30, 0.9));
}

.ml-scene-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 16%, rgba(96,165,250,0.16) 16.2%, transparent 16.4%),
    linear-gradient(90deg, transparent 37.6%, rgba(96,165,250,0.16) 37.8%, transparent 38%),
    linear-gradient(90deg, transparent 61.2%, rgba(96,165,250,0.16) 61.4%, transparent 61.6%),
    linear-gradient(90deg, transparent 84.6%, rgba(96,165,250,0.16) 84.8%, transparent 85%);
  pointer-events: none;
}

.ml-scene-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  animation: mlSweep 5.8s linear infinite;
  pointer-events: none;
}

.ml-scene-pro .ml-inputs,
.ml-scene-pro .ml-layer {
  gap: 18px;
}

.ml-scene-pro .ml-dot,
.ml-scene-pro .neuron {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle, #f8feff 0%, #8be9ff 38%, #3ba2ff 100%);
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.42), 0 0 40px rgba(34, 211, 238, 0.12);
}

.ml-scene-pro .ml-stage-label {
  top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(143,233,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  color: #d8ecff;
  letter-spacing: 0.06em;
}

.ml-scene-pro .ml-output {
  width: 172px;
  height: 172px;
  border-radius: 30px;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(14, 45, 74, 0.9), rgba(7, 34, 57, 0.76));
  border: 1px solid rgba(143,233,255,0.24);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ml-brain-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(103,232,249,0.16), rgba(96,165,250,0.2));
  border: 1px solid rgba(143,233,255,0.22);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.06);
}

.ml-brain-icon i {
  font-size: 2rem;
  color: #a5f3fc;
}

.ml-scene-pro .ml-brain-output strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.ml-scene-pro .ml-brain-output span {
  font-size: 0.9rem;
  color: #d6e4f4;
}

.ml-neural-lines {
  position: absolute;
  inset: 24px 26px 22px;
  width: calc(100% - 52px);
  height: calc(100% - 46px);
  z-index: 1;
  pointer-events: none;
}

.ml-neural-lines line {
  stroke: rgba(120, 220, 255, 0.42);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.16));
  animation: dashFlow 5.4s linear infinite;
}

.ml-signal-pro {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.8), 0 0 30px rgba(96, 165, 250, 0.18);
}

.projects-ml-wrap .ml-signal-1 { animation: mlTravel1 4.4s linear infinite; }
.projects-ml-wrap .ml-signal-2 { animation: mlTravel2 4.4s linear infinite 1.1s; }
.projects-ml-wrap .ml-signal-3 { animation: mlTravel3 4.4s linear infinite 2.2s; }

.projects-ml-visual .ml-output-badge {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 39, 65, 0.86), rgba(7, 29, 50, 0.72));
  border: 1px solid rgba(143,233,255,0.22);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.12);
}

.projects-ml-visual .ml-output-badge span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .ml-scene-pro {
    padding-top: 86px;
  }

  .ml-neural-lines,
  .ml-signal-pro {
    display: none;
  }

  .ml-scene-pro .ml-output {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 640px) {
  .ml-scene-pro {
    padding: 28px 20px 34px;
  }

  .ml-scene-pro::before,
  .ml-scene-pro::after {
    display: none;
  }

  .ml-scene-pro .ml-stage-label {
    position: static;
    margin-bottom: -4px;
  }
}


/* Sleek single ML animation update */
.projects-ml-wrap {
  margin-top: 30px;
}

.ml-scene-pro {
  min-height: 330px;
  grid-template-columns: 110px 1fr 1fr 1fr 190px;
  padding: 76px 34px 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 50%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(5, 14, 27, 0.94));
}

.ml-scene-pro::before {
  background:
    linear-gradient(90deg, transparent 16.2%, rgba(96,165,250,0.14) 16.4%, transparent 16.6%),
    linear-gradient(90deg, transparent 38.2%, rgba(96,165,250,0.14) 38.4%, transparent 38.6%),
    linear-gradient(90deg, transparent 61.5%, rgba(96,165,250,0.14) 61.7%, transparent 61.9%),
    linear-gradient(90deg, transparent 85.2%, rgba(96,165,250,0.14) 85.4%, transparent 85.6%);
}

.ml-scene-pro .ml-inputs,
.ml-scene-pro .ml-layer {
  gap: 16px;
}

.ml-scene-pro .ml-dot,
.ml-scene-pro .neuron {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #f7fdff 0%, #8be9ff 42%, #43a8ff 100%);
  box-shadow: 0 0 12px rgba(96,165,250,0.34), 0 0 24px rgba(34,211,238,0.08);
}

.ml-scene-pro .ml-output {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  justify-self: end;
}

.ml-brain-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.ml-brain-icon i {
  font-size: 1.8rem;
}

.ml-scene-pro .ml-brain-output strong {
  font-size: 1.05rem;
}

.ml-scene-pro .ml-brain-output span {
  font-size: 0.86rem;
  max-width: 120px;
  text-align: center;
}

.ml-neural-lines line {
  stroke: rgba(126, 223, 255, 0.34);
  stroke-width: 1.35;
  stroke-dasharray: 9 8;
  animation: dashFlow 6.4s linear infinite;
}

.ml-scene-pro .ml-stage-label {
  top: 20px;
  font-size: 0.78rem;
  padding: 9px 14px;
}

.ml-label-hidden-1 { left: 24.8%; }
.ml-label-hidden-2 { left: 47.3%; }
.ml-label-output { right: 24px; }

.projects-ml-wrap .ml-signal-1 { animation: mlTravelSleek1 5.4s linear infinite; }
.projects-ml-wrap .ml-signal-2 { animation: mlTravelSleek2 5.4s linear infinite 1.35s; }
.projects-ml-wrap .ml-signal-3 { animation: mlTravelSleek3 5.4s linear infinite 2.7s; }
.projects-ml-wrap .ml-signal-4 { animation: mlTravelSleek4 5.4s linear infinite 4.05s; }

@keyframes mlTravelSleek1 {
  0% { left: 10.8%; top: 31%; opacity: 0; transform: scale(0.7); }
  8% { opacity: 1; }
  34% { left: 31.5%; top: 34%; opacity: 1; }
  60% { left: 55.5%; top: 30%; opacity: 1; }
  82% { left: 76%; top: 43%; opacity: 1; }
  100% { left: 88%; top: 46%; opacity: 0; transform: scale(1); }
}

@keyframes mlTravelSleek2 {
  0% { left: 10.8%; top: 43%; opacity: 0; transform: scale(0.7); }
  8% { opacity: 1; }
  34% { left: 31.5%; top: 47%; opacity: 1; }
  60% { left: 55.5%; top: 43%; opacity: 1; }
  82% { left: 76%; top: 53%; opacity: 1; }
  100% { left: 88%; top: 51%; opacity: 0; transform: scale(1); }
}

@keyframes mlTravelSleek3 {
  0% { left: 10.8%; top: 56%; opacity: 0; transform: scale(0.7); }
  8% { opacity: 1; }
  34% { left: 31.5%; top: 58%; opacity: 1; }
  60% { left: 55.5%; top: 56%; opacity: 1; }
  82% { left: 76%; top: 57%; opacity: 1; }
  100% { left: 88%; top: 54%; opacity: 0; transform: scale(1); }
}

@keyframes mlTravelSleek4 {
  0% { left: 10.8%; top: 69%; opacity: 0; transform: scale(0.7); }
  8% { opacity: 1; }
  34% { left: 31.5%; top: 66%; opacity: 1; }
  60% { left: 55.5%; top: 70%; opacity: 1; }
  82% { left: 76%; top: 67%; opacity: 1; }
  100% { left: 88%; top: 58%; opacity: 0; transform: scale(1); }
}

@media (max-width: 900px) {
  .ml-scene-pro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 84px 22px 30px;
  }

  .ml-scene-pro .ml-output {
    justify-self: center;
  }

  .ml-label-hidden-1, .ml-label-hidden-2, .ml-label-output {
    left: auto;
    right: auto;
  }
}


/* Final ML alignment refinement */
.ml-scene-pro {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1fr 190px;
  align-items: center;
  justify-items: center;
  min-height: 330px;
}

.ml-scene-pro .ml-inputs,
.ml-scene-pro .ml-layer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.ml-scene-pro .ml-layer-1,
.ml-scene-pro .ml-layer-2,
.ml-scene-pro .ml-layer-3 {
  transform: translateX(0);
}

.ml-scene-pro .ml-layer-3 {
  gap: 30px;
}

.ml-scene-pro .ml-dot,
.ml-scene-pro .neuron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.ml-scene-pro .ml-output {
  position: relative;
  z-index: 2;
}

.ml-neural-lines {
  inset: 32px 34px 28px;
  width: calc(100% - 68px);
  height: calc(100% - 60px);
}

.ml-neural-lines g {
  opacity: 0.92;
}

.ml-neural-lines line {
  stroke: rgba(126, 223, 255, 0.32);
  stroke-width: 1.25;
  stroke-dasharray: 10 8;
}

.ml-signal-pro {
  width: 10px;
  height: 10px;
}

.projects-ml-wrap .ml-signal-1 { animation: mlTravelAligned1 5.6s linear infinite; }
.projects-ml-wrap .ml-signal-2 { animation: mlTravelAligned2 5.6s linear infinite 1.4s; }
.projects-ml-wrap .ml-signal-3 { animation: mlTravelAligned3 5.6s linear infinite 2.8s; }
.projects-ml-wrap .ml-signal-4 { animation: mlTravelAligned4 5.6s linear infinite 4.2s; }

@keyframes mlTravelAligned1 {
  0% { left: 10.5%; top: 31%; opacity: 0; transform: scale(0.72); }
  10% { opacity: 1; }
  34% { left: 30.8%; top: 37%; opacity: 1; }
  60% { left: 55.2%; top: 31%; opacity: 1; }
  82% { left: 77.8%; top: 44%; opacity: 1; }
  100% { left: 89.2%; top: 46%; opacity: 0; transform: scale(1); }
}

@keyframes mlTravelAligned2 {
  0% { left: 10.5%; top: 43%; opacity: 0; transform: scale(0.72); }
  10% { opacity: 1; }
  34% { left: 30.8%; top: 44%; opacity: 1; }
  60% { left: 55.2%; top: 43%; opacity: 1; }
  82% { left: 77.8%; top: 52%; opacity: 1; }
  100% { left: 89.2%; top: 51%; opacity: 0; transform: scale(1); }
}

@keyframes mlTravelAligned3 {
  0% { left: 10.5%; top: 56%; opacity: 0; transform: scale(0.72); }
  10% { opacity: 1; }
  34% { left: 30.8%; top: 50%; opacity: 1; }
  60% { left: 55.2%; top: 56%; opacity: 1; }
  82% { left: 77.8%; top: 58%; opacity: 1; }
  100% { left: 89.2%; top: 54%; opacity: 0; transform: scale(1); }
}

@keyframes mlTravelAligned4 {
  0% { left: 10.5%; top: 69%; opacity: 0; transform: scale(0.72); }
  10% { opacity: 1; }
  34% { left: 30.8%; top: 58%; opacity: 1; }
  60% { left: 55.2%; top: 69%; opacity: 1; }
  82% { left: 77.8%; top: 66%; opacity: 1; }
  100% { left: 89.2%; top: 58%; opacity: 0; transform: scale(1); }
}

@media (max-width: 900px) {
  .ml-scene-pro {
    grid-template-columns: 1fr;
  }

  .ml-scene-pro .ml-inputs,
  .ml-scene-pro .ml-layer,
  .ml-scene-pro .ml-layer-3 {
    gap: 16px;
  }
}


/* Precise ML node alignment to line endpoints */
.ml-scene-pro {
  position: relative;
  display: block;
  min-height: 330px;
}

.ml-scene-pro .ml-inputs,
.ml-scene-pro .ml-layer,
.ml-scene-pro .ml-output,
.ml-scene-pro .ml-stage-label {
  position: absolute;
  z-index: 2;
}

.ml-scene-pro .ml-inputs,
.ml-scene-pro .ml-layer {
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34px;
}

.ml-scene-pro .ml-inputs { left: 10.5%; gap: 15px; }
.ml-scene-pro .ml-layer-1 { left: 27.9%; gap: 16px; }
.ml-scene-pro .ml-layer-2 { left: 52.9%; gap: 15px; }
.ml-scene-pro .ml-layer-3 { left: 76.1%; gap: 30px; }

.ml-scene-pro .ml-output {
  left: 94.4%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ml-scene-pro .ml-dot,
.ml-scene-pro .neuron {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
}

.ml-scene-pro .ml-stage-label {
  top: 20px;
  transform: translateX(-50%);
}

.ml-scene-pro .ml-label-input { left: 10.5%; }
.ml-scene-pro .ml-label-hidden-1 { left: 27.9%; }
.ml-scene-pro .ml-label-hidden-2 { left: 52.9%; }
.ml-scene-pro .ml-label-output { left: 90.4%; }

.ml-neural-lines {
  inset: 32px 34px 28px;
  width: calc(100% - 68px);
  height: calc(100% - 60px);
  z-index: 1;
}

@media (max-width: 900px) {
  .ml-scene-pro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 78px;
  }

  .ml-scene-pro .ml-inputs,
  .ml-scene-pro .ml-layer,
  .ml-scene-pro .ml-output,
  .ml-scene-pro .ml-stage-label {
    position: static;
    transform: none;
  }

  .ml-scene-pro .ml-inputs,
  .ml-scene-pro .ml-layer,
  .ml-scene-pro .ml-layer-3 {
    width: auto;
    gap: 16px;
  }

  .ml-scene-pro .ml-stage-label {
    justify-self: center;
  }
}

/* ===== Clean ML network override ===== */
.projects-ml-wrap {
  margin-top: 30px;
}

.projects-ml-wrap .ml-scene-pro {
  position: relative !important;
  display: block !important;
  min-height: 340px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 16% 50%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(5, 14, 27, 0.94)) !important;
}

.projects-ml-wrap .ml-scene-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 16.2%, rgba(96,165,250,0.12) 16.4%, transparent 16.6%),
    linear-gradient(90deg, transparent 38.2%, rgba(96,165,250,0.12) 38.4%, transparent 38.6%),
    linear-gradient(90deg, transparent 61.5%, rgba(96,165,250,0.12) 61.7%, transparent 61.9%),
    linear-gradient(90deg, transparent 85.2%, rgba(96,165,250,0.12) 85.4%, transparent 85.6%);
  pointer-events: none;
}

.projects-ml-wrap .ml-scene-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  animation: mlSweep 6.2s linear infinite;
  pointer-events: none;
}

.projects-ml-wrap .ml-stage-label,
.projects-ml-wrap .ml-inputs,
.projects-ml-wrap .ml-layer,
.projects-ml-wrap .ml-output,
.projects-ml-wrap .ml-neural-lines,
.projects-ml-wrap .ml-signal-pro {
  position: absolute !important;
  z-index: 2;
}

.projects-ml-wrap .ml-stage-label {
  top: 26px !important;
  transform: translateX(-50%) !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(143,233,255,0.12) !important;
  color: #d8ecff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

.projects-ml-wrap .ml-label-input { left: 10.5% !important; }
.projects-ml-wrap .ml-label-hidden-1 { left: 28.2% !important; }
.projects-ml-wrap .ml-label-hidden-2 { left: 52.9% !important; }
.projects-ml-wrap .ml-label-output { left: 91.2% !important; }

.projects-ml-wrap .ml-inputs,
.projects-ml-wrap .ml-layer {
  top: 0 !important;
  left: 0;
  width: 0 !important;
  height: 100% !important;
  transform: none !important;
}

.projects-ml-wrap .ml-inputs { left: 10.5% !important; }
.projects-ml-wrap .ml-layer-1 { left: 28.2% !important; }
.projects-ml-wrap .ml-layer-2 { left: 52.9% !important; }
.projects-ml-wrap .ml-layer-3 { left: 76.1% !important; }

.projects-ml-wrap .ml-inputs .ml-dot,
.projects-ml-wrap .ml-layer .neuron {
  position: absolute !important;
  left: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #f7fdff 0%, #8be9ff 42%, #43a8ff 100%) !important;
  box-shadow: 0 0 12px rgba(96,165,250,0.34), 0 0 24px rgba(34,211,238,0.12) !important;
  animation: neuronPulseCentered 2.6s ease-in-out infinite !important;
}

.projects-ml-wrap .ml-inputs .ml-dot:nth-child(1),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(1) { top: 112px !important; }
.projects-ml-wrap .ml-inputs .ml-dot:nth-child(2),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(2) { top: 154px !important; animation-delay: 0.35s !important; }
.projects-ml-wrap .ml-inputs .ml-dot:nth-child(3),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(3) { top: 196px !important; animation-delay: 0.7s !important; }
.projects-ml-wrap .ml-inputs .ml-dot:nth-child(4),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(4) { top: 238px !important; animation-delay: 1.05s !important; }

.projects-ml-wrap .ml-layer-1 .neuron:nth-child(1) { top: 126px !important; }
.projects-ml-wrap .ml-layer-1 .neuron:nth-child(2) { top: 172px !important; animation-delay: 0.35s !important; }
.projects-ml-wrap .ml-layer-1 .neuron:nth-child(3) { top: 218px !important; animation-delay: 0.7s !important; }

.projects-ml-wrap .ml-layer-3 .neuron:nth-child(1) { top: 154px !important; }
.projects-ml-wrap .ml-layer-3 .neuron:nth-child(2) { top: 196px !important; animation-delay: 0.35s !important; }

.projects-ml-wrap .ml-output {
  left: 91.2% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 210px !important;
  height: 240px !important;
  padding: 18px 18px 16px !important;
  border-radius: 36px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  text-align: center !important;
  background: linear-gradient(180deg, rgba(14, 45, 74, 0.88), rgba(7, 34, 57, 0.76)) !important;
  border: 1px solid rgba(143,233,255,0.24) !important;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.14), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.projects-ml-wrap .ml-brain-icon {
  width: 86px !important;
  height: 86px !important;
  border-radius: 28px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, rgba(103,232,249,0.16), rgba(96,165,250,0.2)) !important;
  border: 1px solid rgba(143,233,255,0.22) !important;
}

.projects-ml-wrap .ml-brain-icon i {
  font-size: 2.2rem !important;
  color: #a5f3fc !important;
}

.projects-ml-wrap .ml-brain-output strong {
  font-size: 1.1rem !important;
  line-height: 1.2 !important;
}

.projects-ml-wrap .ml-brain-output span {
  font-size: 0.82rem !important;
  color: #d6e4f4 !important;
  max-width: 140px !important;
}

.projects-ml-wrap .ml-neural-lines {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.projects-ml-wrap .ml-neural-lines line {
  stroke: rgba(126, 223, 255, 0.34) !important;
  stroke-width: 1.45 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 10 8 !important;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.16)) !important;
  animation: dashFlow 6.4s linear infinite !important;
}

.projects-ml-wrap .ml-signal-pro {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #ffffff 0%, #67e8f9 42%, #60a5fa 100%) !important;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.8), 0 0 30px rgba(96, 165, 250, 0.18) !important;
  z-index: 3 !important;
}

.projects-ml-wrap .ml-signal-1 { animation: mlSignalClean1 5.8s linear infinite !important; }
.projects-ml-wrap .ml-signal-2 { animation: mlSignalClean2 5.8s linear infinite 1.45s !important; }
.projects-ml-wrap .ml-signal-3 { animation: mlSignalClean3 5.8s linear infinite 2.9s !important; }
.projects-ml-wrap .ml-signal-4 { animation: mlSignalClean4 5.8s linear infinite 4.35s !important; }

@keyframes neuronPulseCentered {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.88; }
  50% { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}

@keyframes mlSignalClean1 {
  0% { left: 10.5%; top: 112px; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 28.2%; top: 126px; opacity: 1; }
  62% { left: 52.9%; top: 112px; opacity: 1; }
  84% { left: 76.1%; top: 154px; opacity: 1; }
  100% { left: 79.5%; top: 154px; opacity: 0; }
}

@keyframes mlSignalClean2 {
  0% { left: 10.5%; top: 154px; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 28.2%; top: 172px; opacity: 1; }
  62% { left: 52.9%; top: 154px; opacity: 1; }
  84% { left: 76.1%; top: 154px; opacity: 1; }
  100% { left: 79.5%; top: 154px; opacity: 0; }
}

@keyframes mlSignalClean3 {
  0% { left: 10.5%; top: 196px; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 28.2%; top: 172px; opacity: 1; }
  62% { left: 52.9%; top: 196px; opacity: 1; }
  84% { left: 76.1%; top: 196px; opacity: 1; }
  100% { left: 79.5%; top: 196px; opacity: 0; }
}

@keyframes mlSignalClean4 {
  0% { left: 10.5%; top: 238px; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 28.2%; top: 218px; opacity: 1; }
  62% { left: 52.9%; top: 238px; opacity: 1; }
  84% { left: 76.1%; top: 196px; opacity: 1; }
  100% { left: 79.5%; top: 196px; opacity: 0; }
}

@media (max-width: 900px) {
  .projects-ml-wrap .ml-scene-pro {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    min-height: auto !important;
    padding: 84px 22px 30px !important;
    text-align: center !important;
  }

  .projects-ml-wrap .ml-scene-pro::before,
  .projects-ml-wrap .ml-scene-pro::after,
  .projects-ml-wrap .ml-neural-lines,
  .projects-ml-wrap .ml-signal-pro {
    display: none !important;
  }

  .projects-ml-wrap .ml-stage-label,
  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer,
  .projects-ml-wrap .ml-output {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
  }

  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer {
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .projects-ml-wrap .ml-inputs .ml-dot,
  .projects-ml-wrap .ml-layer .neuron {
    position: static !important;
    transform: none !important;
  }

  .projects-ml-wrap .ml-output {
    width: 180px !important;
    height: 200px !important;
    justify-self: center !important;
  }
}


/* ===== Professional ML network alignment override ===== */
.projects-ml-wrap .ml-scene-pro {
  position: relative !important;
  display: block !important;
  min-height: 360px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 16% 50%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(5, 14, 27, 0.94)) !important;
}

.projects-ml-wrap .ml-scene-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 16.2%, rgba(96,165,250,0.12) 16.4%, transparent 16.6%),
    linear-gradient(90deg, transparent 38.2%, rgba(96,165,250,0.12) 38.4%, transparent 38.6%),
    linear-gradient(90deg, transparent 61.5%, rgba(96,165,250,0.12) 61.7%, transparent 61.9%),
    linear-gradient(90deg, transparent 84.9%, rgba(96,165,250,0.12) 85.1%, transparent 85.3%);
  pointer-events: none;
}

.projects-ml-wrap .ml-scene-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  animation: mlSweep 6.2s linear infinite;
  pointer-events: none;
}

.projects-ml-wrap .ml-stage-label,
.projects-ml-wrap .ml-inputs,
.projects-ml-wrap .ml-layer,
.projects-ml-wrap .ml-output,
.projects-ml-wrap .ml-neural-lines,
.projects-ml-wrap .ml-signal-pro {
  position: absolute !important;
}

.projects-ml-wrap .ml-stage-label {
  top: 22px !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(143,233,255,0.12) !important;
  color: #d8ecff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.projects-ml-wrap .ml-label-input { left: 10.5% !important; }
.projects-ml-wrap .ml-label-hidden-1 { left: 27.9% !important; }
.projects-ml-wrap .ml-label-hidden-2 { left: 52.9% !important; }
.projects-ml-wrap .ml-label-hidden-3 { left: 76.1% !important; }
.projects-ml-wrap .ml-label-output { left: 92.2% !important; }

.projects-ml-wrap .ml-inputs,
.projects-ml-wrap .ml-layer {
  top: 0 !important;
  width: 0 !important;
  height: 100% !important;
  transform: none !important;
  z-index: 2 !important;
}

.projects-ml-wrap .ml-inputs { left: 10.5% !important; }
.projects-ml-wrap .ml-layer-1 { left: 27.9% !important; }
.projects-ml-wrap .ml-layer-2 { left: 52.9% !important; }
.projects-ml-wrap .ml-layer-3 { left: 76.1% !important; }

.projects-ml-wrap .ml-inputs .ml-dot,
.projects-ml-wrap .ml-layer .neuron {
  position: absolute !important;
  left: 50% !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #f7fdff 0%, #8be9ff 42%, #43a8ff 100%) !important;
  box-shadow: 0 0 14px rgba(96,165,250,0.38), 0 0 26px rgba(34,211,238,0.14) !important;
  animation: neuronPulseCentered 2.6s ease-in-out infinite !important;
}

.projects-ml-wrap .ml-inputs .ml-dot:nth-child(1),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(1) { top: 28.125% !important; }
.projects-ml-wrap .ml-inputs .ml-dot:nth-child(2),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(2) { top: 42.5% !important; animation-delay: 0.35s !important; }
.projects-ml-wrap .ml-inputs .ml-dot:nth-child(3),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(3) { top: 56.25% !important; animation-delay: 0.7s !important; }
.projects-ml-wrap .ml-inputs .ml-dot:nth-child(4),
.projects-ml-wrap .ml-layer-2 .neuron:nth-child(4) { top: 69.375% !important; animation-delay: 1.05s !important; }

.projects-ml-wrap .ml-layer-1 .neuron:nth-child(1) { top: 33.75% !important; }
.projects-ml-wrap .ml-layer-1 .neuron:nth-child(2) { top: 48.75% !important; animation-delay: 0.35s !important; }
.projects-ml-wrap .ml-layer-1 .neuron:nth-child(3) { top: 63.75% !important; animation-delay: 0.7s !important; }

.projects-ml-wrap .ml-layer-3 .neuron:nth-child(1) { top: 42.5% !important; }
.projects-ml-wrap .ml-layer-3 .neuron:nth-child(2) { top: 56.25% !important; animation-delay: 0.35s !important; }

.projects-ml-wrap .ml-output {
  left: 94.2% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 156px !important;
  height: 190px !important;
  padding: 16px 14px !important;
  border-radius: 34px !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
  background: linear-gradient(180deg, rgba(14, 45, 74, 0.86), rgba(7, 34, 57, 0.74)) !important;
  border: 1px solid rgba(143,233,255,0.22) !important;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.12), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.projects-ml-wrap .ml-brain-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, rgba(103,232,249,0.16), rgba(96,165,250,0.2)) !important;
  border: 1px solid rgba(143,233,255,0.22) !important;
}

.projects-ml-wrap .ml-brain-icon i {
  font-size: 1.5rem !important;
  color: #a5f3fc !important;
}

.projects-ml-wrap .ml-brain-output strong {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

.projects-ml-wrap .ml-brain-output span {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  color: #d6e4f4 !important;
  max-width: 108px !important;
}

.projects-ml-wrap .ml-neural-lines {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.projects-ml-wrap .ml-neural-lines line {
  stroke: rgba(126, 223, 255, 0.34) !important;
  stroke-width: 1.45 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 10 8 !important;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.16)) !important;
  animation: dashFlow 6.4s linear infinite !important;
}

.projects-ml-wrap .ml-signal-pro {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #ffffff 0%, #67e8f9 42%, #60a5fa 100%) !important;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.8), 0 0 30px rgba(96, 165, 250, 0.18) !important;
  z-index: 3 !important;
}

.projects-ml-wrap .ml-signal-1 { animation: mlSignalClean1 5.8s linear infinite !important; }
.projects-ml-wrap .ml-signal-2 { animation: mlSignalClean2 5.8s linear infinite 1.45s !important; }
.projects-ml-wrap .ml-signal-3 { animation: mlSignalClean3 5.8s linear infinite 2.9s !important; }
.projects-ml-wrap .ml-signal-4 { animation: mlSignalClean4 5.8s linear infinite 4.35s !important; }

@keyframes neuronPulseCentered {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}

@keyframes mlSignalClean1 {
  0% { left: 10.5%; top: 28.125%; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 27.9%; top: 33.75%; opacity: 1; }
  62% { left: 52.9%; top: 28.125%; opacity: 1; }
  84% { left: 76.1%; top: 42.5%; opacity: 1; }
  100% { left: 79.5%; top: 42.5%; opacity: 0; }
}

@keyframes mlSignalClean2 {
  0% { left: 10.5%; top: 42.5%; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 27.9%; top: 48.75%; opacity: 1; }
  62% { left: 52.9%; top: 42.5%; opacity: 1; }
  84% { left: 76.1%; top: 42.5%; opacity: 1; }
  100% { left: 79.5%; top: 42.5%; opacity: 0; }
}

@keyframes mlSignalClean3 {
  0% { left: 10.5%; top: 56.25%; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 27.9%; top: 48.75%; opacity: 1; }
  62% { left: 52.9%; top: 56.25%; opacity: 1; }
  84% { left: 76.1%; top: 56.25%; opacity: 1; }
  100% { left: 79.5%; top: 56.25%; opacity: 0; }
}

@keyframes mlSignalClean4 {
  0% { left: 10.5%; top: 69.375%; opacity: 0; }
  10% { opacity: 1; }
  35% { left: 27.9%; top: 63.75%; opacity: 1; }
  62% { left: 52.9%; top: 69.375%; opacity: 1; }
  84% { left: 76.1%; top: 56.25%; opacity: 1; }
  100% { left: 79.5%; top: 56.25%; opacity: 0; }
}

@media (max-width: 980px) {
  .projects-ml-wrap .ml-stage-label {
    font-size: 0.72rem !important;
    padding: 9px 14px !important;
  }

  .projects-ml-wrap .ml-label-output { left: 91.2% !important; }
  .projects-ml-wrap .ml-output {
    left: 93.5% !important;
    width: 144px !important;
    height: 182px !important;
  }
}

@media (max-width: 900px) {
  .projects-ml-wrap .ml-scene-pro {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    min-height: auto !important;
    padding: 84px 22px 30px !important;
    text-align: center !important;
  }

  .projects-ml-wrap .ml-scene-pro::before,
  .projects-ml-wrap .ml-scene-pro::after,
  .projects-ml-wrap .ml-neural-lines,
  .projects-ml-wrap .ml-signal-pro {
    display: none !important;
  }

  .projects-ml-wrap .ml-stage-label,
  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer,
  .projects-ml-wrap .ml-output {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
  }

  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  .projects-ml-wrap .ml-inputs .ml-dot,
  .projects-ml-wrap .ml-layer .neuron {
    position: static !important;
    transform: none !important;
    width: 18px !important;
    height: 18px !important;
  }

  .projects-ml-wrap .ml-output {
    width: 170px !important;
    min-height: 190px !important;
    justify-self: center !important;
  }
}


/* Projects deployment subsection */
.deployed-projects {
  margin: 34px 0 22px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.88), rgba(10, 20, 38, 0.78));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.deployed-projects-head {
  margin-bottom: 22px;
}

.deployed-projects-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.deployed-projects-head p,
.deployed-card p {
  color: var(--muted);
}

.deployed-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.deployed-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.deployed-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.deployed-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.deployed-icon-heart {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(96, 165, 250, 0.16));
  color: #fecaca;
}

.deployed-icon-crop {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(34, 211, 238, 0.14));
  color: #bbf7d0;
}

.deployed-content {
  min-width: 0;
}

.deployed-top {
  margin-bottom: 10px;
}

.deployed-top h4 {
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .deployed-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .deployed-projects {
    padding: 22px 18px;
  }

  .deployed-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}


/* ===== Final responsive compatibility patch ===== */
html, body {
  max-width: 100%;
}

section,
.container,
.hero-layout,
.cards-grid,
.projects-grid,
.skills-grid,
.edu-wrap,
.contact-grid,
.form-row,
.deployed-projects-grid {
  min-width: 0;
}

.project-card,
.card,
.skills-block,
.edu-card,
.contact-card,
.timeline-item,
.deployed-card,
.hero-panel,
.hero-profile,
.project-links,
.hero-actions,
.hero-stats,
.chips {
  min-width: 0;
}

.project-link-btn,
.btn,
.contact-link,
.chip,
.badge {
  max-width: 100%;
}

.project-link-btn,
.contact-link {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .container {
    width: min(94%, var(--max-width));
  }

  .hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
  }

  .hero-panel {
    animation: none;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }

  .section-subtitle {
    margin-bottom: 28px;
  }

  .cards-grid,
  .projects-grid,
  .skills-grid,
  .edu-wrap,
  .contact-grid,
  .deployed-projects-grid,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 1.02;
  }

  .hero-copy > p,
  .typing-line {
    font-size: 0.98rem;
  }

  .hero-profile {
    max-width: 100%;
  }

  .hero-actions,
  .hero-stats,
  .project-links,
  .chips {
    gap: 12px;
  }

  .project-links {
    width: 100%;
  }

  .project-link-btn,
  .btn,
  .chip,
  .badge {
    width: 100%;
    justify-content: center;
  }

  .timeline-top,
  .project-top,
  .edu-top,
  .deployed-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .developer-panel,
  .dev-window,
  .dev-card,
  .dev-code,
  .card,
  .project-card,
  .skills-block,
  .edu-card,
  .timeline-item,
  .contact-card,
  .deployed-projects,
  .deployed-card {
    border-radius: 22px;
  }

  .deployed-projects {
    padding: 22px 18px;
  }

  .deployed-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 16px;
  }

  .deployed-content,
  .project-card,
  .skills-block,
  .edu-card,
  .contact-card,
  .timeline-item {
    width: 100%;
  }

  .deployed-top,
  .project-top,
  .timeline-top,
  .edu-top {
    width: 100%;
  }

  .deployed-top h4,
  .project-card h3,
  .skills-block h3,
  .edu-card h3,
  .contact-card h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .container {
    width: min(94%, var(--max-width));
  }

  .section {
    padding: 60px 0;
  }

  header {
    backdrop-filter: blur(12px);
  }

  .nav {
    min-height: 70px;
  }

  .logo {
    gap: 10px;
  }

  .logo-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero {
    padding: 40px 0 28px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
    margin: 16px 0;
  }

  .hero-profile {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
  }

  .profile-image-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .profile-image {
    border-radius: 15px;
  }

  .section-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .badge,
  .chip,
  .btn,
  .project-link-btn {
    padding: 11px 14px;
    font-size: 0.92rem;
  }

  .card,
  .project-card,
  .skills-block,
  .edu-card,
  .timeline-item,
  .contact-card,
  .deployed-projects {
    padding: 18px;
  }

  .contact-form {
    gap: 14px;
  }

  .form-group input,
  .form-group textarea {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .about-scene,
  .network-scene,
  .dl-scene,
  .ml-scene-pro {
    border-radius: 22px !important;
  }

  .network-node {
    width: 104px;
    height: 104px;
    border-radius: 20px;
    padding: 12px;
  }

  .network-node i {
    font-size: 1.45rem;
  }

  .network-node span {
    font-size: 0.85rem;
  }

  .deployed-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 1.7rem;
  }

  .ml-scene-pro {
    padding: 84px 16px 28px !important;
  }

  .ml-stage-label {
    font-size: 0.7rem !important;
    padding: 8px 12px !important;
  }

  footer {
    padding: 22px 0 34px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(95%, var(--max-width));
  }

  .hero h1 {
    font-size: clamp(1.95rem, 11vw, 2.5rem);
  }

  .logo-subtitle,
  .window-title,
  .timeline-company,
  .project-stack,
  .section-subtitle,
  .project-card p,
  .card p,
  .contact-card p,
  .edu-card p,
  .timeline-item p {
    font-size: 0.92rem;
  }

  .nav-links {
    padding: 18px 5%;
  }

  .developer-panel,
  .dev-card,
  .dev-code,
  .card,
  .project-card,
  .skills-block,
  .edu-card,
  .timeline-item,
  .contact-card,
  .deployed-projects,
  .deployed-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .code-line {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .contact-form button,
  .project-links .project-link-btn,
  .hero-actions .btn {
    width: 100%;
  }

  .deployed-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
}

/* ===== Mobile animation fixes for Projects section ===== */
@media (max-width: 640px) {
  .project-network-scene {
    min-height: 520px !important;
    padding: 20px 0 !important;
  }

  .project-network-scene .network-node {
    width: 132px !important;
    height: 132px !important;
    border-radius: 26px !important;
  }

  .project-network-scene .node-client {
    left: 50% !important;
    top: 16% !important;
    transform: translate(-50%, -50%) !important;
  }

  .project-network-scene .node-server {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .project-network-scene .node-db {
    left: 50% !important;
    top: 84% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  .project-network-scene .network-link-1,
  .project-network-scene .network-link-2 {
    width: 4px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(96,165,250,0.15), rgba(34,211,238,0.9), rgba(96,165,250,0.15)) !important;
  }

  .project-network-scene .network-link-1 {
    top: 28% !important;
    height: 88px !important;
  }

  .project-network-scene .network-link-2 {
    top: 61% !important;
    height: 88px !important;
  }

  .project-network-scene .data-pulse {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .project-network-scene .pulse-1 {
    top: 30% !important;
    animation: movePulseVerticalProject1 2.8s linear infinite !important;
  }

  .project-network-scene .pulse-2 {
    top: 63% !important;
    animation: movePulseVerticalProject2 2.8s linear infinite 0.9s !important;
  }

  .project-network-scene .pulse-3 {
    top: 30% !important;
    animation: movePulseVerticalProject1 2.8s linear infinite 1.6s !important;
  }

  .projects-ml-wrap .ml-scene-pro {
    min-height: 620px !important;
    padding: 24px 18px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  .projects-ml-wrap .ml-scene-pro::before,
  .projects-ml-wrap .ml-scene-pro::after,
  .projects-ml-wrap .ml-neural-lines,
  .projects-ml-wrap .ml-signal-pro {
    display: none !important;
  }

  .projects-ml-wrap .ml-stage-label,
  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer,
  .projects-ml-wrap .ml-output {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }

  .projects-ml-wrap .ml-stage-label {
    margin: 0 !important;
  }

  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer-1,
  .projects-ml-wrap .ml-layer-2,
  .projects-ml-wrap .ml-layer-3 {
    display: grid !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .projects-ml-wrap .ml-inputs {
    grid-template-columns: repeat(4, 18px) !important;
  }

  .projects-ml-wrap .ml-layer-1 {
    grid-template-columns: repeat(3, 18px) !important;
  }

  .projects-ml-wrap .ml-layer-2 {
    grid-template-columns: repeat(4, 18px) !important;
  }

  .projects-ml-wrap .ml-layer-3 {
    grid-template-columns: repeat(2, 18px) !important;
  }

  .projects-ml-wrap .ml-inputs .ml-dot,
  .projects-ml-wrap .ml-layer .neuron {
    position: static !important;
    transform: none !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  .projects-ml-wrap .ml-output {
    width: 180px !important;
    min-height: 220px !important;
    padding: 20px 16px !important;
    border-radius: 30px !important;
  }
}

@keyframes movePulseVerticalProject1 {
  0% { top: 30%; opacity: 0; }
  10% { opacity: 1; }
  45% { top: 46%; opacity: 1; }
  50% { top: 49%; opacity: 0; }
  100% { top: 49%; opacity: 0; }
}

@keyframes movePulseVerticalProject2 {
  0% { top: 63%; opacity: 0; }
  10% { opacity: 1; }
  45% { top: 79%; opacity: 1; }
  50% { top: 82%; opacity: 0; }
  100% { top: 82%; opacity: 0; }
}


/* ===== FINAL CLEAN MOBILE ML OVERRIDE ===== */
.projects-ml-wrap .mobile-ml-line {
  display: none;
}

@media (max-width: 900px) {
  .projects-ml-wrap .ml-scene-pro {
    position: relative !important;
    display: block !important;
    min-height: 980px !important;
    padding: 24px 16px 40px !important;
    overflow: hidden !important;
  }

  .projects-ml-wrap .ml-neural-lines,
  .projects-ml-wrap .ml-scene-pro::before,
  .projects-ml-wrap .ml-scene-pro::after {
    display: none !important;
  }

  .projects-ml-wrap .mobile-ml-line {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(103, 232, 249, 0.06),
      rgba(103, 232, 249, 0.88),
      rgba(103, 232, 249, 0.06)
    );
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
    z-index: 1;
  }

  .projects-ml-wrap .mobile-ml-line.line-1 { top: 118px; height: 42px; }
  .projects-ml-wrap .mobile-ml-line.line-2 { top: 258px; height: 42px; }
  .projects-ml-wrap .mobile-ml-line.line-3 { top: 398px; height: 42px; }
  .projects-ml-wrap .mobile-ml-line.line-4 { top: 528px; height: 150px; }

  .projects-ml-wrap .ml-stage-label,
  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer,
  .projects-ml-wrap .ml-output,
  .projects-ml-wrap .ml-signal-pro {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .projects-ml-wrap .ml-stage-label {
    z-index: 3 !important;
    padding: 9px 16px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }

  .projects-ml-wrap .ml-label-input { top: 28px !important; }
  .projects-ml-wrap .ml-label-hidden-1 { top: 118px !important; }
  .projects-ml-wrap .ml-label-hidden-2 { top: 248px !important; }
  .projects-ml-wrap .ml-label-hidden-3 { top: 388px !important; }
  .projects-ml-wrap .ml-label-output { top: 518px !important; }

  .projects-ml-wrap .ml-inputs,
  .projects-ml-wrap .ml-layer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    width: 220px !important;
    height: auto !important;
    z-index: 2 !important;
  }

  .projects-ml-wrap .ml-inputs { top: 82px !important; gap: 18px !important; }
  .projects-ml-wrap .ml-layer-1 { top: 172px !important; gap: 26px !important; }
  .projects-ml-wrap .ml-layer-2 { top: 312px !important; gap: 18px !important; }
  .projects-ml-wrap .ml-layer-3 { top: 452px !important; gap: 34px !important; }

  .projects-ml-wrap .ml-dot,
  .projects-ml-wrap .neuron {
    position: static !important;
    transform: none !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
  }

  .projects-ml-wrap .ml-output {
    top: 720px !important;
    width: 190px !important;
    min-height: 210px !important;
    padding: 18px 16px !important;
    border-radius: 28px !important;
    z-index: 2 !important;
  }

  .projects-ml-wrap .ml-brain-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
  }

  .projects-ml-wrap .ml-brain-icon i {
    font-size: 1.6rem !important;
  }

  .projects-ml-wrap .ml-brain-output strong {
    font-size: 0.98rem !important;
  }

  .projects-ml-wrap .ml-brain-output span {
    font-size: 0.78rem !important;
    max-width: 120px !important;
  }

  .projects-ml-wrap .ml-signal-pro {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    z-index: 3 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .projects-ml-wrap .ml-signal-1 {
    animation: mlVerticalFlow1 4.8s linear infinite !important;
  }

  .projects-ml-wrap .ml-signal-2 {
    animation: mlVerticalFlow2 4.8s linear infinite 1.2s !important;
  }

  .projects-ml-wrap .ml-signal-3 {
    animation: mlVerticalFlow3 4.8s linear infinite 2.4s !important;
  }

  .projects-ml-wrap .ml-signal-4 {
    animation: mlVerticalFlow4 4.8s linear infinite 3.6s !important;
  }
}

@keyframes mlVerticalFlow1 {
  0%   { top: 126px; opacity: 0; }
  10%  { opacity: 1; }
  30%  { top: 266px; opacity: 1; }
  55%  { top: 406px; opacity: 1; }
  80%  { top: 548px; opacity: 1; }
  100% { top: 662px; opacity: 0; }
}

@keyframes mlVerticalFlow2 {
  0%   { top: 150px; opacity: 0; }
  10%  { opacity: 1; }
  30%  { top: 290px; opacity: 1; }
  55%  { top: 430px; opacity: 1; }
  80%  { top: 572px; opacity: 1; }
  100% { top: 686px; opacity: 0; }
}

@keyframes mlVerticalFlow3 {
  0%   { top: 138px; opacity: 0; }
  10%  { opacity: 1; }
  30%  { top: 278px; opacity: 1; }
  55%  { top: 418px; opacity: 1; }
  80%  { top: 560px; opacity: 1; }
  100% { top: 674px; opacity: 0; }
}

@keyframes mlVerticalFlow4 {
  0%   { top: 162px; opacity: 0; }
  10%  { opacity: 1; }
  30%  { top: 302px; opacity: 1; }
  55%  { top: 442px; opacity: 1; }
  80%  { top: 584px; opacity: 1; }
  100% { top: 698px; opacity: 0; }
}
