/* ================================
   ASSETWATCHER LEARN CENTRE
================================ */

.learn-intro {
  padding: clamp(28px, 4vw, 46px);
  margin-bottom: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 255, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(12, 25, 45, 0.94), rgba(5, 12, 24, 0.96));
}

.learn-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 14px;
}

.learn-intro p {
  max-width: 980px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1.03rem;
  line-height: 1.65;
}

/* ================================
   CATEGORY GRID
================================ */

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.learn-card {
  position: relative;
  min-height: 285px;
  padding: 32px;
  border-radius: 30px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: learnFadeIn 0.55s ease forwards;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 255, 0.20), transparent 34%),
    linear-gradient(145deg, rgba(13, 28, 52, 0.96), rgba(5, 12, 24, 0.98));
  border: 1px solid rgba(52, 211, 255, 0.20);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  transition: 0.25s ease;
}

.learn-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(52, 211, 255, 0.10);
  filter: blur(8px);
}

.learn-card:hover,
.learn-card-ready:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 211, 255, 0.68);
  box-shadow: 0 30px 90px rgba(52, 211, 255, 0.15);
}

@keyframes learnFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learn-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 22px;
  font-size: 1.9rem;
  background: rgba(52, 211, 255, 0.12);
  border: 1px solid rgba(52, 211, 255, 0.35);
  box-shadow: inset 0 0 24px rgba(52, 211, 255, 0.08);
}

.learn-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.32rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.learn-card p {
  position: relative;
  z-index: 2;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.58;
  font-size: 0.96rem;
}

/* ================================
   VIDEO PLACEHOLDER
================================ */

.video-placeholder {
  padding: clamp(28px, 4vw, 46px);
  margin-bottom: 28px;
  border-radius: 30px;
}

.video-box {
  margin-top: 24px;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 26px;
  border: 1px dashed rgba(52, 211, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.video-box span {
  font-size: 3rem;
  color: var(--cyan);
}

.video-box p {
  color: var(--muted);
  font-weight: 800;
}

/* ================================
   LESSON SECTIONS
================================ */

.lesson-section {
  padding: clamp(30px, 4vw, 52px);
  margin-bottom: 34px;
  border-radius: 30px;
}

.lesson-section h2 {
  margin-bottom: 18px;
}

.lesson-section p {
  max-width: 1120px;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.84);
}

/* ================================
   ALGORITHM TABLE
================================ */

.algorithm-table-wrap {
  margin: 34px auto 0;
  width: 100%;
  max-width: 1280px;
  overflow-x: auto;
}

.algorithm-title {
  text-align: center;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.algorithm-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  border: 1px solid rgba(52, 211, 255, 0.24);
  border-radius: 18px;
  overflow: hidden;
}

.algorithm-table th,
.algorithm-table td {
  padding: 18px 20px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.algorithm-table th {
  text-align: center;
  background: rgba(52, 211, 255, 0.12);
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.algorithm-table td:first-child {
  width: 120px;
  text-align: center;
  color: var(--cyan);
  font-weight: 900;
}

.algorithm-table td:nth-child(2) {
  width: 340px;
}

.algorithm-table td:nth-child(3) {
  min-width: 430px;
}

.algorithm-table tr:last-child td {
  border-bottom: none;
}

/* ================================
   SVG DIAGRAMS
================================ */

.svg-diagram {
  margin-top: 30px;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 255, 0.08), transparent 32%),
    rgba(52, 211, 255, 0.035);
  border: 1px solid rgba(52, 211, 255, 0.20);
  overflow: hidden;
}

.svg-diagram svg {
  width: 100%;
  height: auto;
  min-height: 260px;
  max-height: 460px;
  display: block;
}

/* ================================
   USE CASE GRID
================================ */

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.use-case-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(52, 211, 255, 0.055);
  border: 1px solid rgba(52, 211, 255, 0.18);
}

.use-case-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(52, 211, 255, 0.12);
  border: 1px solid rgba(52, 211, 255, 0.24);
  font-size: 1.35rem;
}

.use-case-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.use-case-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.76);
}

/* ================================
   QUIZ
================================ */

.quiz-container {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.quiz-question {
  padding: 22px;
  border-radius: 20px;
  background: rgba(52, 211, 255, 0.06);
  border: 1px solid rgba(52, 211, 255, 0.18);
}

.quiz-question h3 {
  margin-bottom: 14px;
}

.quiz-option {
  display: block;
  margin: 10px 0;
  color: rgba(226, 232, 240, 0.86);
}

.quiz-option input {
  margin-right: 10px;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.quiz-button {
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  border: none;
  font-weight: 900;
  cursor: pointer;
}

.quiz-button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(52, 211, 255, 0.28);
}

.quiz-result {
  margin-top: 18px;
  font-weight: 900;
  color: var(--cyan);
}

/* ================================
   NEXT LESSON BUTTON
================================ */

.next-lesson-btn {
  display: inline-flex;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(52, 211, 255, 0.18);
}

.next-lesson-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(52, 211, 255, 0.26);
}

/* ================================
   FOOTER
================================ */

.site-footer {
  text-align: center;
  padding: 36px 24px 60px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  margin: 0 10px;
}

.site-footer a:hover {
  color: var(--cyan);
}

/* ================================
   MOBILE
================================ */

@media (max-width: 760px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .learn-card {
    min-height: auto;
    padding: 26px;
  }

  .algorithm-table {
    min-width: 860px;
  }

  .svg-diagram {
    padding: 10px;
  }

  .svg-diagram svg {
    min-height: 220px;
    max-height: 340px;
  }

  .quiz-actions {
    flex-direction: column;
  }
}
.audio-panel {
  padding: clamp(28px, 4vw, 46px);
  margin-bottom: 34px;
  border-radius: 30px;
}

.audio-panel p {
  margin-bottom: 20px;
}

.audio-play-button {
  margin-top: 10px;
}

.video-placeholder {
  margin-top: 34px;
}
.key-takeaway {
    margin-top: 30px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(52,211,255,0.05);
    border: 1px solid rgba(52,211,255,0.15);
}

.key-takeaway h3 {
    margin-bottom: 22px;
    color: var(--cyan);
}

.takeaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 18px;
}

.takeaway-item {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(52,211,255,0.10);
}

.takeaway-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
}

.takeaway-item p {
    margin: 0;
    font-size: 0.95rem;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.lesson-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(52, 211, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    transition: all 0.25s ease;
}

.lesson-nav-btn span {
    margin-top: 0.35rem;
    color: #94a8c6;
    font-size: 0.9rem;
}

.lesson-nav-btn:hover {
    transform: translateY(-2px);
    border-color: #34d3ff;
    box-shadow: 0 0 20px rgba(52, 211, 255, 0.2);
}

.lesson-nav-btn.previous {
    text-align: left;
}

.lesson-nav-btn.next {
    text-align: right;
}

.learn-grid {
    margin-bottom: 2.5rem;
}
/* ================================
   SVG EMBEDDED ELEMENT STYLING
================================ */
.svg-html-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Forces vertical centering */
  align-items: center;     /* Forces horizontal centering */
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 12px 16px;      /* Generates a safe breathing margin */
  box-sizing: border-box;
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
}

.svg-html-content h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  width: 100%;
}

.svg-html-content p {
  margin: 0;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.4;         /* Balanced spacing so rows do not collide */
  max-width: 100%;
  word-wrap: break-word;
}

/* Specific micro-adjustments for the taller center accent box */
.svg-html-content.accent-box {
  padding: 16px;
}

.svg-html-content.accent-box h4 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.svg-html-content.accent-box p {
  color: #e5e7eb;
}

.audio-timer {
    display: inline-block;
    margin-left: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
}

.animated-preview {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.cyber-mini-animation {
  position: relative;
  width: 380px;
  height: 220px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-core {
  font-size: 6rem;
  z-index: 3;
  filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.8));
  animation: shieldPulse 2s infinite ease-in-out;
}

.threat-dot {
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.9);
  animation: threatMove 2.6s infinite linear;
}

.delay-one {
  animation-delay: 1.2s;
  top: 88px;
}

.defence-pulse {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  animation: defencePulse 2s infinite ease-in-out;
}

@keyframes threatMove {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  60% { left: 112px; opacity: 1; }
  75% { left: 120px; opacity: 0; transform: scale(0.3); }
  100% { left: 120px; opacity: 0; transform: scale(0.3); }
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes defencePulse {
  0%, 100% { transform: scale(0.8); opacity: 0.35; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

.lesson-hero-split {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.lesson-hero-text {
  flex: 1;
  min-width: 280px;
}

.lesson-hero-animation {
  flex: 0 0 280px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 800px) {
  .lesson-hero-split {
    flex-direction: column;
    align-items: stretch;
  }

  .lesson-hero-animation {
    flex: 1;
    width: 100%;
  }
}

.network-defence-animation {
    position: relative;
    width: 420px;
    height: 240px;
}

.firewall-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    filter: drop-shadow(0 0 18px rgba(59,130,246,0.8));
}

.packet {
    position: absolute;
    font-size: 2rem;
}

.packet-one {
    top: 70px;
    animation: packetMove 4s linear infinite;
}

.packet-two {
    top: 140px;
    animation: packetMove 4s linear infinite 2s;
}

.blocked-threat {
    position: absolute;
    right: 40px;
    top: 95px;
    font-size: 2rem;
    animation: threatFlash 1.5s infinite;
}

@keyframes packetMove {
    0% {
        left: 10px;
        opacity: 1;
    }

    45% {
        left: 165px;
        opacity: 1;
    }

    50% {
        left: 165px;
        opacity: 0;
    }

    100% {
        left: 165px;
        opacity: 0;
    }
}

@keyframes threatFlash {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* =========================
   Vulnerability Assessment
   ========================= */

.vulnerability-animation {
    position: relative;
    width: 420px;
    height: 240px;
}

.scan-target {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    filter: drop-shadow(0 0 15px rgba(52, 211, 255, 0.5));
}

.scanner {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    font-size: 4rem;
    animation: scanMove 3s ease-in-out infinite;
}

.scan-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(52, 211, 255, 0.7);
    border-radius: 50%;
    animation: scanPulse 2s infinite;
}

@keyframes scanMove {

    0% {
        left: 20%;
    }

    50% {
        left: 65%;
    }

    100% {
        left: 20%;
    }

}

@keyframes scanPulse {

    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

}

.split-intro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.intro-text-column {
  flex: 1;
  min-width: 300px;
}

.intro-visual-column {
  flex: 0 0 280px;
  min-height: 210px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Additive Manufacturing mini interactive printer */
.split-intro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.intro-text-column {
  flex: 1;
  min-width: 300px;
}

.intro-visual-column {
  flex: 0 0 280px;
  min-height: 210px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mini-printer {
  width: 180px;
  height: 130px;
  border: 2px solid rgba(52,211,255,0.35);
  border-radius: 10px;
  position: relative;
  margin-bottom: 14px;
}

.mini-nozzle {
  width: 28px;
  height: 28px;
  background: #f59e0b;
  clip-path: polygon(20% 0, 80% 0, 60% 100%, 40% 100%);
  position: absolute;
  top: 24px;
  left: 76px;
  transition: all 0.4s ease;
}

.mini-print {
  position: absolute;
  bottom: 24px;
  left: 62px;
  width: 56px;
  height: 8px;
  border-radius: 999px;
  background: #34d3ff;
  box-shadow: 0 0 12px rgba(52,211,255,0.5);
  transition: all 0.4s ease;
}

.mini-bed {
  position: absolute;
  bottom: 16px;
  left: 34px;
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: rgba(168,85,247,0.65);
}

.am-state-label {
  font-size: 0.85rem;
  color: #d1d5db;
  text-align: center;
  margin-bottom: 12px;
}

.am-demo-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.am-demo-buttons button {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}

.am-demo-buttons button:hover {
  background: rgba(52,211,255,0.15);
}

.state-model .mini-print {
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34d3ff, #2563eb);
}

.state-slice .mini-print {
  height: 50px;
  background: repeating-linear-gradient(
    to top,
    #34d3ff 0px,
    #34d3ff 5px,
    #0f172a 6px,
    #0f172a 8px
  );
}

.state-print .mini-nozzle {
  left: 108px;
}

.state-print .mini-print {
  height: 72px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #10b981, #34d3ff);
}

/* 3D Models interactive CAD / Mesh / Printable visual */
.model-demo {
  width: 180px;
  height: 140px;
  border: 2px solid rgba(52,211,255,0.35);
  border-radius: 12px;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(15,23,42,0.45);
}

.model-shape {
  position: absolute;
  width: 76px;
  height: 76px;
  left: 52px;
  top: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #34d3ff, #2563eb);
  box-shadow: 0 0 18px rgba(52,211,255,0.45);
  transform: rotate(45deg);
  transition: all 0.4s ease;
}

.model-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(45deg, transparent 47%, rgba(255,255,255,0.35) 48%, rgba(255,255,255,0.35) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(52,211,255,0.35) 48%, rgba(52,211,255,0.35) 52%, transparent 53%);
  background-size: 24px 24px;
  transition: opacity 0.4s ease;
}

.state-cad .model-shape {
  border-radius: 12px;
  transform: rotate(45deg);
}

.state-mesh .model-grid {
  opacity: 1;
}

.state-mesh .model-shape {
  background: rgba(52,211,255,0.22);
  border: 2px solid #34d3ff;
  box-shadow: none;
}

.state-printable .model-grid {
  opacity: 0.25;
}

.state-printable .model-shape {
  width: 86px;
  height: 86px;
  left: 47px;
  top: 27px;
  border-radius: 50%;
  transform: rotate(0deg);
  background: linear-gradient(180deg, #10b981, #34d3ff);
  box-shadow: 0 0 22px rgba(16,185,129,0.45);
}

.slicer-demo {
  width: 180px;
  height: 140px;
  border: 2px solid rgba(52,211,255,0.35);
  border-radius: 12px;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(15,23,42,0.45);
}

.slicer-model {
  position: absolute;
  left: 58px;
  top: 34px;
  width: 64px;
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(180deg, #34d3ff, #2563eb);
  transition: all 0.4s ease;
}

.slicer-lines {
  position: absolute;
  left: 52px;
  top: 34px;
  width: 76px;
  height: 74px;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 8px,
    rgba(255,255,255,0.75) 9px,
    rgba(255,255,255,0.75) 10px
  );
  transition: opacity 0.4s ease;
}

.slicer-nozzle {
  position: absolute;
  top: 14px;
  left: 76px;
  width: 28px;
  height: 24px;
  background: #f59e0b;
  clip-path: polygon(20% 0, 80% 0, 60% 100%, 40% 100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.slicer-code {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  font-size: 0.75rem;
  color: #d1d5db;
  opacity: 0;
  text-align: center;
  transition: opacity 0.4s ease;
}

.state-slice .slicer-lines {
  opacity: 1;
}

.state-support .slicer-model {
  background: linear-gradient(180deg, #10b981, #34d3ff);
}

.state-support .slicer-model::before,
.state-support .slicer-model::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 28px;
  background: rgba(245,158,11,0.75);
}

.state-support .slicer-model::before {
  left: 10px;
}

.state-support .slicer-model::after {
  right: 10px;
}

.state-gcode .slicer-nozzle {
  opacity: 1;
  left: 110px;
}

.state-gcode .slicer-code {
  opacity: 1;
}

.state-gcode .slicer-model {
  height: 52px;
  top: 46px;
}

/* 3D Printing Materials interactive visual */
.material-demo {
  width: 180px;
  height: 140px;
  border: 2px solid rgba(52,211,255,0.35);
  border-radius: 12px;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(15,23,42,0.45);
}

.material-spool {
  position: absolute;
  left: 18px;
  top: 34px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 10px solid #34d3ff;
  box-shadow: 0 0 16px rgba(52,211,255,0.35);
  transition: all 0.4s ease;
}

.material-strand {
  position: absolute;
  left: 78px;
  top: 62px;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: #34d3ff;
  transition: all 0.4s ease;
}

.material-part {
  position: absolute;
  right: 22px;
  top: 48px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34d3ff, #2563eb);
  box-shadow: 0 0 16px rgba(52,211,255,0.35);
  transition: all 0.4s ease;
}

.state-pla .material-spool,
.state-pla .material-strand {
  border-color: #34d3ff;
  background: #34d3ff;
}

.state-petg .material-spool {
  border-color: #10b981;
}

.state-petg .material-strand,
.state-petg .material-part {
  background: linear-gradient(135deg, #10b981, #34d3ff);
}

.state-tpu .material-spool {
  border-color: #a855f7;
}

.state-tpu .material-strand {
  background: #a855f7;
  height: 5px;
  transform: rotate(8deg);
}

.state-tpu .material-part {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-radius: 50%;
  transform: scaleX(1.25);
}

.state-resin .material-spool {
  border-radius: 14px;
  border-color: #f59e0b;
}

.state-resin .material-strand {
  background: #f59e0b;
  width: 38px;
}

.state-resin .material-part {
  background: linear-gradient(180deg, #f59e0b, #ef4444);
  border-radius: 14px;
  transform: scale(0.9);
}
/* What is AR interactive animation */
.ar-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
}

.ar-phone-frame {
  position: absolute;
  inset: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.7);
  overflow: hidden;
}

.ar-camera-view {
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(52, 211, 255, 0.12), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.18), transparent 55%);
  overflow: hidden;
}

.ar-grid-floor {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 45px;
  opacity: 0;
  background:
    linear-gradient(rgba(52, 211, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 255, 0.35) 1px, transparent 1px);
  background-size: 14px 10px;
  transform: perspective(80px) rotateX(55deg);
  transform-origin: bottom;
  transition: opacity 0.4s ease;
}

.ar-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 18px;
  height: 3px;
  border-radius: 999px;
  background: #34d3ff;
  box-shadow: 0 0 12px rgba(52, 211, 255, 0.8);
  animation: arScanMove 1.8s linear infinite;
  opacity: 1;
}

.ar-anchor-point {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 14px;
  height: 14px;
  border: 2px solid #10b981;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
  transition: opacity 0.4s ease;
}

.ar-virtual-cube {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34d3ff, #2563eb);
  box-shadow: 0 0 18px rgba(52, 211, 255, 0.45);
  transform: translateX(-50%) rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.ar-info-label {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(168, 85, 247, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-capture .ar-scan-line {
  opacity: 1;
}

.state-detect .ar-grid-floor,
.state-detect .ar-anchor-point {
  opacity: 1;
}

.state-render .ar-grid-floor,
.state-render .ar-anchor-point,
.state-render .ar-info-label {
  opacity: 1;
}

.state-render .ar-virtual-cube {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) scale(1);
}

.state-interact .ar-grid-floor,
.state-interact .ar-anchor-point,
.state-interact .ar-info-label {
  opacity: 1;
}

.state-interact .ar-virtual-cube {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) scale(1.15);
  background: linear-gradient(135deg, #10b981, #34d3ff);
}

.state-interact .ar-info-label {
  background: rgba(16, 185, 129, 0.65);
}

@keyframes arScanMove {
  0% {
    top: 18px;
  }

  50% {
    top: 92px;
  }

  100% {
    top: 18px;
  }
}

/* How AR Works interactive animation */
.ar-works-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
}

.ar-works-phone {
  position: absolute;
  inset: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  overflow: hidden;
}

.ar-works-screen {
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(52, 211, 255, 0.12), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 50% 78%, rgba(168, 85, 247, 0.2), transparent 58%);
}

.ar-works-camera-feed {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(rgba(52, 211, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  animation: arCameraPulse 1.6s ease-in-out infinite;
}

.ar-works-sensor-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dot-one {
  left: 22px;
  top: 26px;
}

.dot-two {
  right: 24px;
  top: 44px;
}

.dot-three {
  left: 48px;
  bottom: 28px;
}

.ar-works-path {
  position: absolute;
  left: 30px;
  top: 78px;
  width: 70px;
  height: 2px;
  background: #34d3ff;
  opacity: 0;
  transform: rotate(-22deg);
  box-shadow: 0 0 10px rgba(52, 211, 255, 0.7);
  transition: opacity 0.4s ease;
}

.ar-works-anchor {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 16px;
  height: 16px;
  border: 2px solid #10b981;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
  transition: opacity 0.4s ease;
}

.ar-works-object {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34d3ff, #2563eb);
  box-shadow: 0 0 18px rgba(52, 211, 255, 0.45);
  transform: translateX(-50%) rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.ar-works-label {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(168, 85, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-camera .ar-works-camera-feed {
  opacity: 1;
}

.state-sensors .ar-works-camera-feed,
.state-sensors .ar-works-sensor-dot {
  opacity: 1;
}

.state-track .ar-works-camera-feed,
.state-track .ar-works-sensor-dot,
.state-track .ar-works-path,
.state-track .ar-works-anchor,
.state-track .ar-works-label {
  opacity: 1;
}

.state-render .ar-works-camera-feed,
.state-render .ar-works-sensor-dot,
.state-render .ar-works-path,
.state-render .ar-works-anchor,
.state-render .ar-works-label {
  opacity: 1;
}

.state-render .ar-works-object {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) scale(1);
}

.state-render .ar-works-label {
  background: rgba(16, 185, 129, 0.65);
}

@keyframes arCameraPulse {
  0% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.75;
  }

  100% {
    opacity: 0.25;
  }
}

/* Spatial Mapping Animation */

.spatial-map-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52,211,255,0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,0.65);
  position: relative;
  margin-bottom: 14px;
}

.map-room {
  position: absolute;
  inset: 12px;
}

.room-outline {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(52,211,255,0.4);
  border-radius: 10px;
}

.point-cloud span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d3ff;
  opacity: 0;
  box-shadow: 0 0 8px #34d3ff;
}

.p1 { left:20px; top:20px; }
.p2 { left:70px; top:30px; }
.p3 { left:120px; top:20px; }
.p4 { left:40px; top:60px; }
.p5 { left:90px; top:70px; }
.p6 { left:140px; top:60px; }
.p7 { left:50px; top:100px; }
.p8 { left:120px; top:105px; }

.mesh-grid {
  position: absolute;
  inset: 15px;
  opacity: 0;
  background:
  linear-gradient(rgba(168,85,247,0.4) 1px, transparent 1px),
  linear-gradient(90deg, rgba(168,85,247,0.4) 1px, transparent 1px);
  background-size: 18px 18px;
  transition: opacity .4s ease;
}

.virtual-chair {
  position: absolute;
  width: 36px;
  height: 36px;
  left: 70px;
  top: 55px;
  border-radius: 8px;
  background: linear-gradient(135deg,#10b981,#34d3ff);
  transform: scale(0);
  opacity: 0;
  transition: all .4s ease;
}

.mapping-label {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(168,85,247,.55);
  color: white;
  opacity: 0;
}

.state-scan .room-outline {
  animation: mapPulse 1.5s infinite;
}

.state-points .point-cloud span {
  opacity: 1;
}

.state-mesh .point-cloud span,
.state-mesh .mesh-grid,
.state-mesh .mapping-label {
  opacity: 1;
}

.state-ar .point-cloud span,
.state-ar .mesh-grid,
.state-ar .mapping-label {
  opacity: 1;
}

.state-ar .virtual-chair {
  opacity: 1;
  transform: scale(1);
}

@keyframes mapPulse {

  0% {
    box-shadow: 0 0 0 rgba(52,211,255,0);
  }

  50% {
    box-shadow: 0 0 20px rgba(52,211,255,.5);
  }

  100% {
    box-shadow: 0 0 0 rgba(52,211,255,0);
  }

}

/* Lens and Filter Development Animation */
.lens-filter-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.filter-phone {
  position: absolute;
  inset: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  overflow: hidden;
}

.filter-screen {
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.16), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 50% 45%, rgba(52, 211, 255, 0.2), transparent 60%);
  overflow: hidden;
}

.face-outline {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 58px;
  height: 72px;
  border: 2px solid rgba(52, 211, 255, 0.75);
  border-radius: 45% 45% 48% 48%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(52, 211, 255, 0.4);
  transition: all 0.4s ease;
}

.eye {
  position: absolute;
  top: 25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d3ff;
}

.eye-left {
  left: 15px;
}

.eye-right {
  right: 15px;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 22px;
  height: 8px;
  border-bottom: 2px solid #34d3ff;
  border-radius: 0 0 20px 20px;
  transform: translateX(-50%);
}

.landmark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lm-1 { left: 49px; top: 45px; }
.lm-2 { left: 76px; top: 45px; }
.lm-3 { left: 62px; top: 57px; }
.lm-4 { left: 50px; top: 76px; }
.lm-5 { left: 75px; top: 76px; }
.lm-6 { left: 62px; top: 90px; }

.filter-glasses {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 48px;
  height: 16px;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.filter-glasses::before,
.filter-glasses::after {
  content: "";
  position: absolute;
  top: 0;
  width: 17px;
  height: 13px;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.filter-glasses::before {
  left: 0;
}

.filter-glasses::after {
  right: 0;
}

.filter-glasses {
  border-top: 2px solid #f59e0b;
}

.filter-sparkle {
  position: absolute;
  color: #f59e0b;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sparkle-one {
  left: 24px;
  top: 24px;
}

.sparkle-two {
  right: 22px;
  top: 82px;
}

.filter-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-face .face-outline {
  animation: faceScanPulse 1.6s ease-in-out infinite;
}

.state-landmarks .landmark {
  opacity: 1;
}

.state-effect .landmark,
.state-effect .filter-glasses,
.state-effect .filter-label {
  opacity: 1;
}

.state-effect .filter-glasses {
  transform: translateX(-50%) scale(1);
}

.state-share .landmark,
.state-share .filter-glasses,
.state-share .filter-label,
.state-share .filter-sparkle {
  opacity: 1;
}

.state-share .filter-glasses {
  transform: translateX(-50%) scale(1);
}

.state-share .face-outline {
  border-color: rgba(16, 185, 129, 0.85);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.state-share .filter-label {
  background: rgba(16, 185, 129, 0.65);
}

@keyframes faceScanPulse {
  0% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }

  50% {
    box-shadow: 0 0 20px rgba(52, 211, 255, 0.55);
  }

  100% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }
}

/* WebXR Animation */

.webxr-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52,211,255,.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,.65);
  position: relative;
  margin-bottom: 14px;
}

.web-browser {
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.15);
  overflow: hidden;
}

.browser-bar {
  height: 18px;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.browser-content {
  position: relative;
  height: calc(100% - 18px);
  background:
  linear-gradient(
    180deg,
    rgba(52,211,255,.12),
    rgba(15,23,42,.95)
  );
}

.device-check {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #34d3ff;
  transform: translateX(-50%);
  opacity: 0;
}

.xr-session {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 60px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: all .4s ease;
}

.webxr-cube {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg,#34d3ff,#2563eb);
  transform: translateX(-50%) rotate(45deg) scale(0);
  opacity: 0;
  transition: all .4s ease;
}

.interaction-ring {
  position: absolute;
  left: 50%;
  bottom: 45px;
  width: 60px;
  height: 60px;
  border: 2px solid #10b981;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: all .4s ease;
}

.webxr-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(168,85,247,.55);
  color: white;
  opacity: 0;
}

.state-browser .browser-bar {
  animation: browserPulse 1.5s infinite;
}

.state-device .device-check {
  opacity: 1;
  animation: browserPulse 1.5s infinite;
}

.state-session .device-check,
.state-session .xr-session {
  opacity: 1;
}

.state-session .xr-session {
  transform: translateX(-50%) scaleX(1);
}

.state-interact .device-check,
.state-interact .xr-session,
.state-interact .webxr-cube,
.state-interact .interaction-ring,
.state-interact .webxr-label {
  opacity: 1;
}

.state-interact .webxr-cube {
  transform: translateX(-50%) rotate(45deg) scale(1);
}

.state-interact .interaction-ring {
  transform: translateX(-50%) scale(1);
}

@keyframes browserPulse {

  0% {
    box-shadow: 0 0 0 rgba(52,211,255,0);
  }

  50% {
    box-shadow: 0 0 16px rgba(52,211,255,.6);
  }

  100% {
    box-shadow: 0 0 0 rgba(52,211,255,0);
  }

}
/* Building VR Applications Animation */
.vr-build-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.vr-build-panel {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(15, 23, 42, 0.95)),
    radial-gradient(circle at 50% 75%, rgba(52, 211, 255, 0.18), transparent 60%);
  overflow: hidden;
}

.vr-build-headset {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 58px;
  height: 28px;
  border-radius: 12px;
  border: 2px solid #34d3ff;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(52, 211, 255, 0.45);
  animation: vrHeadsetPulse 1.7s ease-in-out infinite;
}

.vr-build-headset::before,
.vr-build-headset::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 12px;
  height: 8px;
  border-radius: 4px;
  background: rgba(52, 211, 255, 0.45);
}

.vr-build-headset::before {
  left: 10px;
}

.vr-build-headset::after {
  right: 10px;
}

.vr-build-controller {
  position: absolute;
  top: 58px;
  width: 12px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #a855f7;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.controller-left {
  left: 34px;
  transform: rotate(-18deg);
}

.controller-right {
  right: 34px;
  transform: rotate(18deg);
}

.vr-build-scene {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 255, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vr-build-grid {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  height: 42px;
  opacity: 0;
  background:
    linear-gradient(rgba(52, 211, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 255, 0.35) 1px, transparent 1px);
  background-size: 12px 10px;
  transform: perspective(80px) rotateX(55deg);
  transform-origin: bottom;
  transition: opacity 0.4s ease;
}

.vr-build-object {
  position: absolute;
  left: 50%;
  bottom: 45px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981, #34d3ff);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
  transform: translateX(-50%) rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.vr-build-ray {
  position: absolute;
  left: 50%;
  top: 72px;
  width: 2px;
  height: 42px;
  background: #f59e0b;
  transform: rotate(-30deg);
  transform-origin: top;
  opacity: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  transition: opacity 0.4s ease;
}

.vr-build-buildbox {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(168, 85, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-idea .vr-build-headset {
  border-color: #34d3ff;
}

.state-xr .vr-build-controller,
.state-xr .vr-build-scene {
  opacity: 1;
}

.state-interact .vr-build-controller,
.state-interact .vr-build-scene,
.state-interact .vr-build-grid,
.state-interact .vr-build-object,
.state-interact .vr-build-ray {
  opacity: 1;
}

.state-interact .vr-build-object {
  transform: translateX(-50%) rotate(45deg) scale(1);
}

.state-deploy .vr-build-controller,
.state-deploy .vr-build-scene,
.state-deploy .vr-build-grid,
.state-deploy .vr-build-object,
.state-deploy .vr-build-ray,
.state-deploy .vr-build-buildbox {
  opacity: 1;
}

.state-deploy .vr-build-object {
  transform: translateX(-50%) rotate(45deg) scale(1.08);
  background: linear-gradient(135deg, #f59e0b, #10b981);
}

.state-deploy .vr-build-buildbox {
  background: rgba(16, 185, 129, 0.65);
}

@keyframes vrHeadsetPulse {
  0% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(52, 211, 255, 0.65);
  }

  100% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }
}
/* What is VR Animation */

.what-vr-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52,211,255,.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,.65);
  position: relative;
  margin-bottom: 14px;
}

.vr-world-panel {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.12);
  overflow: hidden;
  background:
  linear-gradient(
    180deg,
    rgba(52,211,255,.08),
    rgba(15,23,42,.95)
  );
}

.real-world-icon {
  position: absolute;
  left: 18px;
  top: 45px;
  font-size: 2rem;
  transition: all .4s ease;
}

.virtual-world-icon {
  position: absolute;
  right: 18px;
  top: 42px;
  font-size: 2rem;
  opacity: 0;
  transition: all .4s ease;
}

.vr-headset-icon {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 50px;
  height: 24px;
  border-radius: 12px;
  border: 2px solid #34d3ff;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: all .4s ease;
}

.vr-headset-icon::before,
.vr-headset-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 10px;
  height: 8px;
  background: rgba(52,211,255,.5);
  border-radius: 3px;
}

.vr-headset-icon::before {
  left: 10px;
}

.vr-headset-icon::after {
  right: 10px;
}

.vr-avatar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: all .4s ease;
}

.vr-avatar::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 18px;
  left: 6px;
  top: 18px;
  background: #10b981;
  border-radius: 5px;
}

.presence-ring {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: all .4s ease;
}

.vr-status {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: .62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(168,85,247,.55);
  color: white;
  opacity: 0;
}

.state-world .real-world-icon {
  animation: vrBounce 1.5s infinite;
}

.state-headset .vr-headset-icon {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.state-virtual .vr-headset-icon,
.state-virtual .virtual-world-icon {
  opacity: 1;
}

.state-virtual .vr-headset-icon {
  transform: translateX(-50%) scale(1);
}

.state-presence .vr-headset-icon,
.state-presence .virtual-world-icon,
.state-presence .vr-avatar,
.state-presence .presence-ring,
.state-presence .vr-status {
  opacity: 1;
}

.state-presence .vr-headset-icon {
  transform: translateX(-50%) scale(1);
}

.state-presence .vr-avatar {
  transform: translateX(-50%) scale(1);
}

.state-presence .presence-ring {
  transform: translateX(-50%) scale(1);
}

@keyframes vrBounce {

  0% { transform: translateY(0); }

  50% { transform: translateY(-4px); }

  100% { transform: translateY(0); }

}
/* How VR Works Animation */

.vr-pipeline-demo {
  width: 210px;
  height: 150px;
  position: relative;
  margin-bottom: 14px;
}

.pipeline-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid rgba(52,211,255,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background: rgba(15,23,42,.85);
  font-size: 1.2rem;
  transition: all .4s ease;
}

.sensor-box {
  left: 0;
  top: 50px;
}

.engine-box {
  left: 55px;
  top: 50px;
}

.headset-box {
  left: 110px;
  top: 50px;
}

.user-box {
  left: 165px;
  top: 50px;
}

.pipeline-arrow {
  position: absolute;
  height: 3px;
  background: #34d3ff;
  top: 70px;
  opacity: .2;
  transition: all .4s ease;
}

.arrow-one {
  left: 42px;
  width: 13px;
}

.arrow-two {
  left: 97px;
  width: 13px;
}

.arrow-three {
  left: 152px;
  width: 13px;
}

.state-track .sensor-box {
  box-shadow: 0 0 18px #34d3ff;
}

.state-track .arrow-one {
  opacity: 1;
}

.state-render .sensor-box,
.state-render .engine-box {
  box-shadow: 0 0 18px #34d3ff;
}

.state-render .arrow-one,
.state-render .arrow-two {
  opacity: 1;
}

.state-display .sensor-box,
.state-display .engine-box,
.state-display .headset-box {
  box-shadow: 0 0 18px #34d3ff;
}

.state-display .arrow-one,
.state-display .arrow-two,
.state-display .arrow-three {
  opacity: 1;
}

.state-presence .pipeline-box {
  box-shadow: 0 0 18px #10b981;
}

.state-presence .arrow-one,
.state-presence .arrow-two,
.state-presence .arrow-three {
  background: #10b981;
  opacity: 1;
}

.state-presence .user-box {
  transform: scale(1.1);
}

/* VR Hardware and Tracking Animation */
.vr-hardware-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.hardware-room {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(52, 211, 255, 0.08), rgba(15, 23, 42, 0.95)),
    radial-gradient(circle at 50% 75%, rgba(168, 85, 247, 0.18), transparent 60%);
  overflow: hidden;
}

.tracking-boundary {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 16px;
  height: 48px;
  border: 2px dashed rgba(16, 185, 129, 0.8);
  border-radius: 12px;
  opacity: 0;
  transform: perspective(90px) rotateX(55deg);
  transform-origin: bottom;
  transition: opacity 0.4s ease;
}

.hardware-headset {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 58px;
  height: 28px;
  border: 2px solid #34d3ff;
  border-radius: 12px;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(52, 211, 255, 0.45);
  transition: all 0.4s ease;
}

.hardware-headset::before,
.hardware-headset::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 12px;
  height: 8px;
  border-radius: 4px;
  background: rgba(52, 211, 255, 0.45);
}

.hardware-headset::before {
  left: 10px;
}

.hardware-headset::after {
  right: 10px;
}

.hardware-controller {
  position: absolute;
  width: 12px;
  height: 28px;
  border: 2px solid #a855f7;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.4s ease;
}

.controller-a {
  left: 42px;
  top: 72px;
  transform: rotate(-20deg);
}

.controller-b {
  right: 42px;
  top: 72px;
  transform: rotate(20deg);
}

.tracking-camera {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
  transition: opacity 0.4s ease;
}

.camera-a {
  left: 16px;
  top: 16px;
}

.camera-b {
  right: 16px;
  top: 16px;
}

.tracking-rays {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 38px;
  height: 70px;
  opacity: 0;
  background:
    linear-gradient(35deg, transparent 48%, rgba(245, 158, 11, 0.45) 49%, rgba(245, 158, 11, 0.45) 51%, transparent 52%),
    linear-gradient(-35deg, transparent 48%, rgba(245, 158, 11, 0.45) 49%, rgba(245, 158, 11, 0.45) 51%, transparent 52%);
  transition: opacity 0.4s ease;
}

.tracking-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(168, 85, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-headset .hardware-headset {
  animation: hardwarePulse 1.7s ease-in-out infinite;
}

.state-sensors .hardware-headset,
.state-sensors .tracking-camera {
  opacity: 1;
}

.state-sensors .tracking-rays {
  opacity: 1;
}

.state-controllers .hardware-headset,
.state-controllers .tracking-camera,
.state-controllers .tracking-rays,
.state-controllers .hardware-controller {
  opacity: 1;
}

.state-controllers .hardware-controller {
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.65);
}

.state-boundary .hardware-headset,
.state-boundary .tracking-camera,
.state-boundary .tracking-rays,
.state-boundary .hardware-controller,
.state-boundary .tracking-boundary,
.state-boundary .tracking-label {
  opacity: 1;
}

.state-boundary .tracking-label {
  background: rgba(16, 185, 129, 0.65);
}

@keyframes hardwarePulse {
  0% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(52, 211, 255, 0.65);
  }

  100% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }
}

/* VR Platforms and Ecosystems Animation */
.vr-platform-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.platform-map {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(52, 211, 255, 0.08), rgba(15, 23, 42, 0.95)),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.2), transparent 60%);
  overflow: hidden;
}

.platform-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #34d3ff, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 16px rgba(52, 211, 255, 0.45);
  z-index: 3;
}

.platform-node {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(52, 211, 255, 0.45);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.35;
  transition: all 0.4s ease;
  z-index: 4;
}

.standalone-node {
  left: 14px;
  top: 16px;
}

.pc-node {
  right: 14px;
  top: 16px;
}

.console-node {
  left: 14px;
  bottom: 22px;
}

.enterprise-node {
  right: 14px;
  bottom: 22px;
}

.platform-link {
  position: absolute;
  height: 2px;
  background: rgba(52, 211, 255, 0.35);
  opacity: 0.35;
  transform-origin: left center;
  transition: all 0.4s ease;
}

.link-one {
  left: 48px;
  top: 42px;
  width: 78px;
  transform: rotate(20deg);
}

.link-two {
  left: 46px;
  top: 94px;
  width: 80px;
  transform: rotate(-20deg);
}

.link-three {
  left: 78px;
  top: 70px;
  width: 58px;
}

.platform-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 0.58rem;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(168, 85, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-standalone .standalone-node,
.state-pc .pc-node,
.state-console .console-node,
.state-enterprise .enterprise-node {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 0 16px rgba(52, 211, 255, 0.65);
}

.state-standalone .platform-centre,
.state-pc .platform-centre,
.state-console .platform-centre,
.state-enterprise .platform-centre {
  animation: platformPulse 1.7s ease-in-out infinite;
}

.state-pc .link-one,
.state-console .link-two,
.state-enterprise .link-three,
.state-standalone .link-one {
  opacity: 1;
  background: #34d3ff;
  box-shadow: 0 0 10px rgba(52, 211, 255, 0.6);
}

.state-enterprise .platform-label {
  opacity: 1;
  background: rgba(16, 185, 129, 0.65);
}

@keyframes platformPulse {
  0% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(52, 211, 255, 0.65);
  }

  100% {
    box-shadow: 0 0 0 rgba(52, 211, 255, 0);
  }
}
/* VR Development with Unity and Unreal Animation */
.vr-engine-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.engine-workspace {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(52, 211, 255, 0.08), rgba(15, 23, 42, 0.95)),
    radial-gradient(circle at 50% 60%, rgba(168, 85, 247, 0.18), transparent 60%);
  overflow: hidden;
}

.engine-panel {
  position: absolute;
  top: 12px;
  width: 56px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid rgba(52, 211, 255, 0.45);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.unity-panel {
  left: 14px;
}

.unreal-panel {
  right: 14px;
}

.openxr-bridge {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 70px;
  height: 22px;
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0);
  background: rgba(16, 185, 129, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.xr-plugin-node,
.interaction-node,
.deploy-node {
  position: absolute;
  bottom: 28px;
  width: 38px;
  height: 24px;
  border-radius: 8px;
  background: rgba(52, 211, 255, 0.15);
  border: 1px solid rgba(52, 211, 255, 0.45);
  color: #fff;
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.xr-plugin-node {
  left: 16px;
}

.interaction-node {
  left: 62px;
}

.deploy-node {
  right: 16px;
}

.engine-headset {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%) scale(0);
  font-size: 1.35rem;
  opacity: 0;
  transition: all 0.4s ease;
}

.engine-link {
  position: absolute;
  height: 2px;
  background: #34d3ff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.link-a {
  left: 58px;
  top: 41px;
  width: 44px;
  transform: rotate(18deg);
}

.link-b {
  left: 74px;
  top: 72px;
  width: 42px;
  transform: rotate(90deg);
}

.link-c {
  left: 86px;
  bottom: 32px;
  width: 32px;
}

.state-engine .unity-panel,
.state-engine .unreal-panel {
  opacity: 1;
  box-shadow: 0 0 14px rgba(52, 211, 255, 0.55);
}

.state-openxr .unity-panel,
.state-openxr .unreal-panel,
.state-openxr .openxr-bridge,
.state-openxr .link-a {
  opacity: 1;
}

.state-openxr .openxr-bridge {
  transform: translateX(-50%) scaleX(1);
}

.state-input .unity-panel,
.state-input .unreal-panel,
.state-input .openxr-bridge,
.state-input .xr-plugin-node,
.state-input .interaction-node,
.state-input .link-a,
.state-input .link-b {
  opacity: 1;
}

.state-input .openxr-bridge {
  transform: translateX(-50%) scaleX(1);
}

.state-deploy .unity-panel,
.state-deploy .unreal-panel,
.state-deploy .openxr-bridge,
.state-deploy .xr-plugin-node,
.state-deploy .interaction-node,
.state-deploy .deploy-node,
.state-deploy .engine-headset,
.state-deploy .link-a,
.state-deploy .link-b,
.state-deploy .link-c {
  opacity: 1;
}

.state-deploy .openxr-bridge {
  transform: translateX(-50%) scaleX(1);
}

.state-deploy .engine-headset {
  transform: translateX(-50%) scale(1);
}

/* VR Optimisation Animation */

.vr-optimisation-demo {
  width: 190px;
  height: 150px;
  border: 2px solid rgba(52,211,255,.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,.65);
  position: relative;
  margin-bottom: 14px;
}

.vr-performance-panel {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.12);
  background:
    linear-gradient(
      180deg,
      rgba(245,158,11,.08),
      rgba(15,23,42,.95)
    );
}

.fps-meter {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: .8rem;
  font-weight: 600;
}

.scene-load {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 55px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.load-bar {
  height: 100%;
  width: 85%;
  border-radius: 999px;
  background: #ef4444;
  transition: all .5s ease;
}

.optimise-gear {
  position: absolute;
  left: 25px;
  bottom: 18px;
  font-size: 1.5rem;
  opacity: 0;
  transition: all .4s ease;
}

.headset-status {
  position: absolute;
  right: 25px;
  bottom: 18px;
  font-size: 1.5rem;
}

.comfort-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  transform: translateX(-50%);
  transition: all .4s ease;
}

.state-heavy .load-bar {
  width: 85%;
  background: #ef4444;
}

.state-heavy .comfort-indicator {
  background: #ef4444;
}

.state-optimise .optimise-gear {
  opacity: 1;
  animation: spinGear 2s linear infinite;
}

.state-optimise .load-bar {
  width: 55%;
  background: #f59e0b;
}

.state-fps .optimise-gear {
  opacity: 1;
}

.state-fps .load-bar {
  width: 35%;
  background: #10b981;
}

.state-comfort .optimise-gear {
  opacity: 1;
}

.state-comfort .load-bar {
  width: 20%;
  background: #10b981;
}

.state-comfort .comfort-indicator {
  background: #10b981;
  box-shadow: 0 0 15px rgba(16,185,129,.7);
}

@keyframes spinGear {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
/* Introduction to Networks Animation */

.network-intro-demo {
  width: 200px;
  height: 150px;
  border: 2px solid rgba(52,211,255,.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,.65);
  position: relative;
  margin-bottom: 14px;
}

.network-topology {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(52,211,255,.08),
      rgba(15,23,42,.95)
    );
}

.network-device,
.network-switch,
.network-router,
.network-cloud {
  position: absolute;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 10px;
  background: rgba(15,23,42,.85);
  border: 2px solid rgba(52,211,255,.35);
  opacity: .35;
  transition: all .4s ease;
}

.network-device {
  left: 8px;
  top: 48px;
}

.network-switch {
  left: 55px;
  top: 48px;
}

.network-router {
  left: 105px;
  top: 48px;
}

.network-cloud {
  right: 8px;
  top: 48px;
}

.network-link {
  position: absolute;
  height: 2px;
  background: #34d3ff;
  opacity: .2;
  transition: all .4s ease;
}

.link1 {
  left: 42px;
  top: 65px;
  width: 18px;
}

.link2 {
  left: 90px;
  top: 65px;
  width: 18px;
}

.link3 {
  left: 140px;
  top: 65px;
  width: 18px;
}

.packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0;
}

.state-device .network-device {
  opacity: 1;
  box-shadow: 0 0 16px rgba(52,211,255,.6);
}

.state-switch .network-device,
.state-switch .network-switch {
  opacity: 1;
}

.state-switch .link1 {
  opacity: 1;
}

.state-router .network-device,
.state-router .network-switch,
.state-router .network-router {
  opacity: 1;
}

.state-router .link1,
.state-router .link2 {
  opacity: 1;
}

.state-internet .network-device,
.state-internet .network-switch,
.state-internet .network-router,
.state-internet .network-cloud {
  opacity: 1;
}

.state-internet .link1,
.state-internet .link2,
.state-internet .link3 {
  opacity: 1;
}

.state-internet .packet {
  opacity: 1;
  animation: packetTravel 2s linear infinite;
}

@keyframes packetTravel {

  0% {
    left: 22px;
    top: 60px;
  }

  33% {
    left: 70px;
    top: 60px;
  }

  66% {
    left: 120px;
    top: 60px;
  }

  100% {
    left: 170px;
    top: 60px;
  }

}

/* OSI and TCP/IP Models Animation */
.osi-tcp-demo {
  width: 200px;
  height: 160px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.model-panel {
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(52, 211, 255, 0.08), rgba(15, 23, 42, 0.95)),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.14), transparent 60%);
  overflow: hidden;
}

.osi-stack,
.tcp-stack {
  position: absolute;
  top: 12px;
  width: 58px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.osi-stack {
  left: 16px;
}

.tcp-stack {
  right: 16px;
  top: 28px;
}

.osi-layer,
.tcp-layer {
  height: 13px;
  border-radius: 4px;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.35;
  transition: all 0.4s ease;
}

.osi-layer {
  background: rgba(52, 211, 255, 0.18);
}

.tcp-layer {
  background: rgba(16, 185, 129, 0.18);
  height: 18px;
}

.encap-packet {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 48px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #a855f7);
  color: #fff;
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  transition: all 0.4s ease;
}

.model-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 0.58rem;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(168, 85, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.state-osi .osi-layer {
  opacity: 1;
  box-shadow: 0 0 8px rgba(52, 211, 255, 0.35);
}

.state-tcp .tcp-layer {
  opacity: 1;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.state-encap .osi-layer,
.state-encap .tcp-layer,
.state-encap .encap-packet {
  opacity: 1;
}

.state-encap .encap-packet {
  transform: translateX(-50%) scale(1);
  animation: packetLayerMove 1.8s ease-in-out infinite;
}

.state-trouble .osi-layer,
.state-trouble .tcp-layer,
.state-trouble .model-label {
  opacity: 1;
}

.state-trouble .l3,
.state-trouble .t2 {
  background: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
}

.state-trouble .model-label {
  background: rgba(239, 68, 68, 0.65);
}

@keyframes packetLayerMove {
  0% {
    bottom: 42px;
  }

  50% {
    bottom: 88px;
  }

  100% {
    bottom: 42px;
  }
}
/* IP Addressing and Subnetting Animation */

.ip-demo {
  width: 200px;
  height: 160px;
  border: 2px solid rgba(52,211,255,.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,.65);
  position: relative;
  margin-bottom: 14px;
}

.ip-panel {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.14);
  background:
    linear-gradient(
      180deg,
      rgba(52,211,255,.08),
      rgba(15,23,42,.95)
    );
}

.network-block {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(52,211,255,.15);
  border: 1px solid rgba(52,211,255,.45);
  color: white;
  font-size: .65rem;
  opacity: .35;
  transition: all .4s ease;
}

.subnet-mask {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: rgba(168,85,247,.25);
  border: 1px solid rgba(168,85,247,.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  opacity: .35;
  transition: all .4s ease;
}

.host-row {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 40px;
  display: flex;
  justify-content: space-between;
}

.host-node {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.5);
  color: white;
  font-size: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .35;
  transition: all .4s ease;
}

.gateway-node {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 1.2rem;
  opacity: .35;
  transition: all .4s ease;
}

.ip-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  opacity: 0;
}

.state-network .network-block {
  opacity: 1;
  box-shadow: 0 0 14px rgba(52,211,255,.55);
}

.state-subnet .network-block,
.state-subnet .subnet-mask {
  opacity: 1;
}

.state-subnet .subnet-mask {
  box-shadow: 0 0 14px rgba(168,85,247,.55);
}

.state-hosts .network-block,
.state-hosts .subnet-mask,
.state-hosts .host-node {
  opacity: 1;
}

.state-hosts .host-node {
  box-shadow: 0 0 10px rgba(16,185,129,.45);
}

.state-gateway .network-block,
.state-gateway .subnet-mask,
.state-gateway .host-node,
.state-gateway .gateway-node {
  opacity: 1;
}

.state-gateway .gateway-node {
  transform: scale(1.15);
}

.state-gateway .ip-packet {
  opacity: 1;
  animation: ipPacketMove 2s linear infinite;
}

@keyframes ipPacketMove {

  0% {
    left: 30px;
    bottom: 55px;
  }

  50% {
    left: 95px;
    bottom: 55px;
  }

  100% {
    left: 160px;
    bottom: 18px;
  }

}

/* Routing and Switching Animation - fixed spacing */
.routing-switching-demo {
  width: 260px;
  height: 175px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  margin-bottom: 14px;
}

.traffic-panel {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(52, 211, 255, 0.08), rgba(15, 23, 42, 0.95));
}

.lan-device,
.lan-switch,
.lan-router,
.wan-cloud {
  position: absolute;
  width: 42px;
  height: 34px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(52, 211, 255, 0.45);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: all 0.4s ease;
  z-index: 3;
}

.device-a {
  left: 18px;
  top: 34px;
}

.device-b {
  left: 18px;
  bottom: 34px;
}

.lan-switch {
  left: 82px;
  top: 63px;
}

.lan-router {
  left: 136px;
  top: 63px;
}

.wan-cloud {
  right: 0.01px;
  top: 63px;
  font-size: 1rem;
}

.traffic-line {
  position: absolute;
  height: 2px;
  background: #34d3ff;
  opacity: 0.2;
  transition: opacity 0.4s ease;
  z-index:1;
}

.line-a {
  left: 48px;
  top: 52px;
  width: 40px;
  transform: rotate(35deg);
}

.line-b {
  left: 58px;
  top: 96px;
  width: 40px;
  transform: rotate(-22deg);
}

.line-c {
  left: 124px;
  top: 79px;
  width: 58px;
}

.traffic-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  z-index: 5;
}

.vlan-zone {
  position: absolute;
  left: 10px;
  width: 72px;
  height: 24px;
  border-radius: 8px;
  border: 1px dashed rgba(245, 158, 11, 0.8);
  color: #fff;
  font-size: 0.52rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(15, 23, 42, 0.9);
  z-index: 4;
}

.vlan-one {
  top: 8px;
}

.vlan-two {
  bottom: 8px;
}

.state-switch .device-a,
.state-switch .device-b,
.state-switch .lan-switch,
.state-switch .line-a,
.state-switch .line-b {
  opacity: 1;
}

.state-route .device-a,
.state-route .lan-switch,
.state-route .lan-router,
.state-route .line-a,
.state-route .line-c {
  opacity: 1;
}

.state-gateway .device-a,
.state-gateway .lan-switch,
.state-gateway .lan-router,
.state-gateway .wan-cloud,
.state-gateway .line-a,
.state-gateway .line-c {
  opacity: 1;
}

.state-vlan .device-a,
.state-vlan .device-b,
.state-vlan .lan-switch,
.state-vlan .vlan-zone {
  opacity: 1;
}

.state-switch .traffic-packet {
  opacity: 1;
  animation: switchPacketMove 1.8s linear infinite;
}

.state-route .traffic-packet {
  opacity: 1;
  animation: routePacketMove 1.8s linear infinite;
}

.state-gateway .traffic-packet {
  opacity: 1;
  animation: gatewayPacketMove 2s linear infinite;
}

@keyframes switchPacketMove {
  0% { left: 36px; top: 48px; }
  50% { left: 104px; top: 78px; }
  100% { left: 36px; top: 104px; }
}

@keyframes routePacketMove {
  0% { left: 36px; top: 48px; }
  50% { left: 104px; top: 78px; }
  100% { left: 158px; top: 78px; }
}

@keyframes gatewayPacketMove {
  0% { left: 6px; top: 48px; }
  45% { left: 104px; top: 78px; }
  75% { left: 158px; top: 78px; }
  100% { left: 212px; top: 78px; }
}


/* ======================================================
   Network Services Simple Animation (Fixed Spacing)
   Used in: network-services.html
   ====================================================== */

.simple-services-demo {
  /* Widen this slightly so nodes have room to breathe */
  width: 320px; 
  height: 150px;
  border: 2px solid rgba(52, 211, 255, 0.35);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  position: relative;
  overflow: hidden;
  margin: 0 auto 14px auto; /* Centers the demo card */
}

.simple-service-flow {
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(52, 211, 255, 0.08),
    rgba(15, 23, 42, 0.95)
  );
  /* Use flexbox to perfectly stretch and space out the nodes */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.simple-node {
  /* Positioned relative now so they play nice with flex layout */
  position: relative;
  width: 54px;
  height: 36px;
  border-radius: 10px;
  background: rgba(52, 211, 255, 0.12);
  border: 1px solid rgba(52, 211, 255, 0.45);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

/* Connecting lines bridge the gaps perfectly between the nodes */
.simple-arrow {
  position: relative;
  height: 2px;
  background: rgba(52, 211, 255, 0.35);
  flex-grow: 1; /* Forces lines to fill the exact gap space */
  z-index: 1;
}

/* Absolute positioning for the dot so it can glide across the flex layout */
.simple-pulse-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.85);
  top: 54px; /* Centered vertically relative to 120px inner flow height */
  z-index: 4;
  animation: simpleServiceMove 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- STATE DYNAMICS --- */

.simple-services-demo.state-dhcp .simple-service-main {
  background: rgba(52, 211, 255, 0.22);
  box-shadow: 0 0 14px rgba(52, 211, 255, 0.65);
}
.simple-services-demo.state-dhcp .simple-client {
  border-color: rgba(52, 211, 255, 0.85);
  box-shadow: 0 0 10px rgba(52, 211, 255, 0.4);
}
.simple-services-demo.state-dhcp .simple-pulse-dot {
  background: #34d3ff;
  box-shadow: 0 0 12px rgba(52, 211, 255, 0.85);
}

.simple-services-demo.state-dns .simple-service-main {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.65);
}
.simple-services-demo.state-dns .simple-pulse-dot {
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.85);
}

.simple-services-demo.state-nat .simple-service-main {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
}
.simple-services-demo.state-nat .simple-internet {
  border-color: rgba(16, 185, 129, 0.85);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.simple-services-demo.state-nat .simple-pulse-dot {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.85);
}

.simple-services-demo.state-security .simple-service-main {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
}
.simple-services-demo.state-security .simple-pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.85);
}

/* --- ADJUSTED ANIMATION PATHWAY --- */
@keyframes simpleServiceMove {
  0% {
    left: 36px;  /* Starts inside PC */
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  45% {
    left: 142px; /* Smoothly halts inside middle node */
  }
  55% {
    left: 142px;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 254px; /* Finishes neatly inside NET */
    opacity: 0;
  }
}

/* Button Layout Fixes */
.am-state-label {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.am-demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

