:root {
  --bg: #060810;
  --bg-deep: #030509;
  --surface: #0d1019;
  --surface-2: #121724;
  --blue: #489dd4;
  --blue-bright: #65b9ef;
  --blue-soft: #cbe5f7;
  --text: #f7f8fa;
  --muted: #aeb2bc;
  --ink: #0a0c11;
  --light: #f5f6f8;
  --line: rgba(255,255,255,.1);
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

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

button, input, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 100;
  background-image:
    radial-gradient(circle at 25% 25%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #fff 0 1px, transparent 1px);
  background-size: 18px 18px, 23px 23px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(3,5,9,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark .mark-bg {
  fill: #0b1420;
  stroke: rgba(101,185,239,.45);
  stroke-width: 2;
}

.brand-mark .mark-cloud {
  fill: none;
  stroke: var(--blue-bright);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  color: #dcdfe5;
  font-size: .95rem;
  transition: color .2s ease;
}

.main-nav a:hover { color: var(--blue-bright); }

.nav-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: .92rem;
}

.btn-primary {
  color: #060b10;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 12px 30px rgba(72,157,212,.2);
}

.btn-secondary {
  color: white;
  background: rgba(255,255,255,.035);
  border-color: rgba(101,185,239,.5);
}

.hero {
  position: relative;
  min-height: 960px;
  padding: 150px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(70,106,160,.22), transparent 35%),
    radial-gradient(circle at 20% 60%, rgba(47,62,95,.18), transparent 34%),
    linear-gradient(180deg, #040710 0%, #070a13 100%);
}

#three-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .85;
}

#three-scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
}

.hero-glow-one {
  width: 380px;
  height: 380px;
  right: 8%;
  top: 120px;
  background: rgba(72,157,212,.12);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  left: 10%;
  bottom: 160px;
  background: rgba(37,59,118,.13);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-bright);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 0 rgba(101,185,239,.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(101,185,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(101,185,239,0); }
}

.hero h1 {
  margin: 22px 0 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 780px;
}

.hero h1 span {
  display: block;
  color: var(--blue-bright);
}

.hero-text {
  max-width: 650px;
  color: #c6cad2;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  color: #c7cad2;
  font-size: .92rem;
}

.trust-row span::before {
  content: "✓";
  margin-right: 8px;
  color: var(--blue-bright);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.interactive-stage {
  position: relative;
  width: min(560px, 92vw);
  height: 540px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(101,185,239,.22);
  background:
    linear-gradient(180deg, rgba(12,18,31,.72), rgba(4,6,12,.7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  z-index: 2;
  pointer-events: none;
}

.interactive-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 35%),
    radial-gradient(circle at 72% 28%, rgba(72,157,212,.13), transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.stage-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(3,5,9,.7);
  border: 1px solid rgba(255,255,255,.1);
  color: #cbe5f7;
  font-size: .7rem;
  letter-spacing: .12em;
  font-weight: 800;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 14px rgba(101,185,239,.8);
}

.control-panel {
  position: absolute;
  right: 16px;
  bottom: 48px;
  z-index: 6;
  display: grid;
  gap: 7px;
  justify-items: center;
  pointer-events: auto;
}

.control-panel > div {
  display: flex;
  gap: 7px;
}

.control-panel button {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(101,185,239,.28);
  background: rgba(4,6,12,.78);
  color: white;
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease;
}

.control-panel button:hover {
  transform: translateY(-2px);
  background: rgba(72,157,212,.22);
}

.control-panel button[data-action="wave"] {
  min-width: 98px;
  color: #0a0f16;
  background: var(--blue-bright);
}

.stage-help {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: 17px;
  color: #aeb2bc;
  font-size: .72rem;
  pointer-events: none;
}

.skill-chip {
  position: absolute;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,10,16,.82);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  pointer-events: none;
}

.chip-aws { top: 8%; right: -2%; }
.chip-excel { top: 29%; left: -3%; }
.chip-powerbi { top: 48%; right: -4%; }
.chip-python { bottom: 21%; left: -2%; }
.chip-sql { bottom: 6%; right: 11%; }

.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(7,9,14,.75);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.stat {
  padding: 25px;
  text-align: center;
}

.stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }

.stat strong {
  display: block;
  color: var(--blue-bright);
  font-family: "Space Grotesk";
  font-size: 1.7rem;
}

.stat span {
  color: #b9bdc6;
  font-size: .88rem;
}

.section { padding: 100px 0; }

.light-section {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(72,157,212,.08), transparent 25%),
    #f5f6f8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2,
.pathway-intro h2,
.about-copy h2,
.community-card h2 {
  margin: 10px 0 0;
  font-family: "Space Grotesk";
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: #5b5e66;
  line-height: 1.75;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card {
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: white;
  border: 1px solid #e0e3e8;
  box-shadow: 0 14px 40px rgba(18,25,41,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(18,25,41,.13);
}

.course-card.featured {
  background: linear-gradient(160deg, #0b101d, #121a2b);
  color: white;
  border-color: rgba(72,157,212,.35);
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-status {
  padding: 6px 10px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.course-status.active { background: #cbe5f7; color: #1a2f4b; }
.course-status.new { background: #f3ecc8; color: #604d00; }
.course-status.soon { background: #e9eef6; color: #34506b; }

.course-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #162033;
  background: var(--blue-soft);
  font-size: 1.5rem;
}

.course-card h3 {
  margin: 28px 0 14px;
  font-family: "Space Grotesk";
  font-size: 1.45rem;
  line-height: 1.2;
}

.course-card p {
  color: #595c64;
  line-height: 1.7;
}

.course-card.featured p { color: #b8bdc7; }

.course-meta {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.course-meta span {
  padding: 6px 9px;
  border-radius: 99px;
  border: 1px solid #dfe1e5;
  font-size: .78rem;
}

.course-card.featured .course-meta span { border-color: rgba(255,255,255,.14); }

.course-card > a {
  margin-top: 22px;
  color: #254e7b;
  font-weight: 800;
}

.course-card.featured > a { color: var(--blue-bright); }

.pathway-section {
  color: var(--ink);
  background: #edf0f4;
}

.pathway-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.pathway-intro p {
  color: #5c606a;
  line-height: 1.8;
  max-width: 480px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.step {
  min-height: 240px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid #dce1e9;
}

.step > span {
  color: #7d818a;
  font-size: .75rem;
  font-weight: 800;
}

.step-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 20px 0;
  border-radius: 16px;
  color: #182336;
  background: var(--blue-soft);
  font-family: "Space Grotesk";
  font-weight: 700;
}

.step h3 { margin: 0 0 8px; font-family: "Space Grotesk"; }
.step p { margin: 0; color: #5d6169; line-height: 1.6; }

.dark-section {
  background:
    radial-gradient(circle at 80% 0%, rgba(72,157,212,.1), transparent 28%),
    #050810;
}

.section-heading.invert p { color: #aeb2bb; }

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.advanced-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}

.advanced-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(101,185,239,.35);
  color: var(--blue-bright);
  font-size: 1.35rem;
}

.advanced-card h3 {
  margin: 24px 0 10px;
  font-family: "Space Grotesk";
  font-size: 1.18rem;
}

.advanced-card p {
  color: #acb0b9;
  line-height: 1.65;
}

.partner-note {
  margin-top: 28px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 16px;
  border: 1px solid rgba(101,185,239,.25);
  background: rgba(72,157,212,.06);
}

.partner-note span { color: #aeb2bb; }
.partner-note strong { color: var(--blue-bright); }
.partner-note a { margin-left: auto; font-weight: 800; }

.about-section {
  color: var(--ink);
  background: #f7f8fa;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  max-width: 430px;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(145deg, #cbe5f7, #ffffff);
  box-shadow: 0 20px 60px rgba(26,36,55,.12);
}

.about-image img {
  width: 100%;
  border-radius: 20px;
}

.about-copy p {
  color: #595c64;
  line-height: 1.85;
  font-size: 1.05rem;
}

.signature {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
}

.signature strong,
.signature span { display: block; }

.signature span { color: #6c7078; margin-top: 4px; }

.community-section {
  padding: 80px 0;
  background: #eaeef3;
  color: var(--ink);
}

.community-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 46px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 22px 70px rgba(25,35,53,.1);
}

.community-card p {
  color: #5f626a;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #dbdfe5;
  color: #171a20;
  background: #f8f9fa;
}

.lead-form button { grid-column: span 2; }
.lead-form small { grid-column: span 2; color: #787c84; }

.site-footer {
  padding: 60px 0 24px;
  background: #030509;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid p,
.footer-grid a { color: #a7abb4; }

.footer-grid a:hover { color: var(--blue-bright); }

.footer-grid strong {
  color: white;
  font-family: "Space Grotesk";
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f838d;
  font-size: .85rem;
}

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

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-pending.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    border-radius: 18px;
    background: #070a11;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: var(--shadow);
  }
  .hero-grid,
  .pathway-grid,
  .about-grid,
  .community-card {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-copy { padding-top: 30px; }
  .hero-visual { min-height: 500px; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .advanced-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1180px); }
  .site-header .container { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 118px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .interactive-stage { height: 470px; }
  .skill-chip { font-size: .72rem; padding: 8px 10px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .section { padding: 76px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .course-grid,
  .advanced-grid,
  .steps,
  .footer-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }
  .lead-form button,
  .lead-form small { grid-column: auto; }
  .community-card { padding: 28px; }
  .partner-note a { margin-left: 0; width: 100%; }
  .footer-bottom { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
   Interactive SVG lab (replaces the WebGL scene — works everywhere)
--------------------------------------------------------------------------- */

.lab-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  cursor: grab;
  perspective: 900px;
  touch-action: none;
}

.lab-scene:active { cursor: grabbing; }

.scene-tilt {
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: rotateX(3deg) rotateY(-5deg);
}

#lab-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* animated svg parts */
#lab-svg .bar,
#lab-svg .eye,
#lab-svg .chest-light,
#lab-svg .antenna-tip,
#lab-svg .dot,
#lab-svg .arm-swing {
  transform-box: fill-box;
}

#lab-svg .bar {
  transform-origin: center bottom;
  animation: barPulse 2.6s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(.62); }
  50%      { transform: scaleY(1); }
}

#lab-svg .chart-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 5s ease-in-out infinite;
}

@keyframes drawLine {
  0%       { stroke-dashoffset: 320; }
  45%, 70% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -320; }
}

.robot-bob {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: robotBob 2.4s ease-in-out infinite;
}

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

#lab-svg .eye {
  transform-origin: center center;
  animation: blink 4.4s infinite;
}

@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(.12); }
}

#lab-svg .chest-light,
#lab-svg .antenna-tip {
  transform-origin: center center;
  animation: glowPulse 2.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.22); opacity: .75; }
}

#lab-svg .dot {
  animation-name: floatDot;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

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

/* wave: right arm pivots at the shoulder */
#arm-right .arm-swing {
  transform-origin: center top;
}

.waving #arm-right .arm-swing {
  animation: waveArm .45s ease-in-out 4 alternate;
}

@keyframes waveArm {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-135deg); }
}

@media (prefers-reduced-motion: reduce) {
  #lab-svg .bar,
  #lab-svg .eye,
  #lab-svg .chest-light,
  #lab-svg .antenna-tip,
  #lab-svg .dot,
  #lab-svg .chart-line,
  .robot-bob {
    animation: none;
  }
  #lab-svg .chart-line { stroke-dashoffset: 0; }
}

/* When the real 3D scene is running, hide the SVG fallback */
.interactive-stage.webgl-active .lab-scene { display: none; }

/* ---------------------------------------------------------------------------
   Tool icons + animated course scenes
--------------------------------------------------------------------------- */

.skill-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  animation: chipFloat 4.6s ease-in-out infinite;
}

.chip-aws     { animation-delay: 0s; }
.chip-excel   { animation-delay: .9s; }
.chip-powerbi { animation-delay: 1.8s; }
.chip-python  { animation-delay: 2.7s; }
.chip-sql     { animation-delay: 3.6s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-1.2deg); }
}

.chip-ic { display: grid; place-items: center; }

.chip-ic svg {
  width: 27px;
  height: 27px;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.45));
}

.course-icon svg,
.advanced-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* animated laptop scene on cards */
.course-screen {
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #14203a 0%, #0a1120 70%);
  border: 1px solid rgba(101,185,239,.22);
}

.lap-scene {
  width: 100%;
  height: auto;
  display: block;
}

.lap-scene .db-bar,
.lap-scene .code-line,
.lap-scene .term-line,
.lap-scene .bubble,
.lap-scene .blink-dot,
.lap-scene .donut,
.lap-scene .cursor,
.lap-scene .pulse-soft,
.lap-scene .person {
  transform-box: fill-box;
}

.lap-scene .db-bar {
  transform-origin: center bottom;
  animation: dbBar 3s ease-in-out infinite;
}

@keyframes dbBar {
  0%, 100% { transform: scaleY(.55); }
  50%      { transform: scaleY(1); }
}

.lap-scene .donut {
  transform-origin: center center;
  animation: donutSpin 7s linear infinite;
}

@keyframes donutSpin { to { transform: rotate(360deg); } }

.lap-scene .spark-line {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: sparkDraw 4.5s ease-in-out infinite;
}

@keyframes sparkDraw {
  0%       { stroke-dashoffset: 240; }
  50%, 75% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -240; }
}

.lap-scene .flow-line { animation: dashFlow 1.2s linear infinite; }

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

.lap-scene .blink-dot { animation: blinkDot 1.8s ease-in-out infinite; }

@keyframes blinkDot {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}

.lap-scene .code-line,
.lap-scene .term-line {
  transform-origin: left center;
  animation: typeLine 6s ease-out infinite;
}

@keyframes typeLine {
  0%       { transform: scaleX(0); }
  12%, 88% { transform: scaleX(1); }
  100%     { transform: scaleX(1); opacity: 0; }
}

.lap-scene .cursor { animation: cursorBlink 1s steps(1) infinite; }

@keyframes cursorBlink { 50% { opacity: 0; } }

.lap-scene .bubble {
  transform-origin: center bottom;
  animation: popBubble 6s ease-out infinite;
}

@keyframes popBubble {
  0%        { transform: scale(.6); opacity: 0; }
  8%, 88%   { transform: scale(1); opacity: 1; }
  100%      { transform: scale(1); opacity: 0; }
}

.lap-scene .flow-dot { animation: flowDot 3.3s linear infinite; opacity: 0; }

@keyframes flowDot {
  0%   { transform: translateX(50px);  opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(172px); opacity: 0; }
}

.lap-scene .person {
  transform-origin: center bottom;
  animation: personSway 5.5s ease-in-out infinite;
}

@keyframes personSway {
  0%, 100% { transform: rotate(-.8deg); }
  50%      { transform: rotate(.8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .skill-chip,
  .lap-scene .db-bar,
  .lap-scene .donut,
  .lap-scene .spark-line,
  .lap-scene .flow-line,
  .lap-scene .blink-dot,
  .lap-scene .code-line,
  .lap-scene .term-line,
  .lap-scene .cursor,
  .lap-scene .bubble,
  .lap-scene .flow-dot,
  .lap-scene .person {
    animation: none;
  }
  .lap-scene .spark-line { stroke-dashoffset: 0; }
  .lap-scene .flow-dot { opacity: 0; }
}

/* ---------------------------------------------------------------------------
   Assistant widget + WhatsApp float
--------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: #25d366;
  color: #06340f;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.wa-float svg { width: 22px; height: 22px; }

.cw-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
}

.chat-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(101,185,239,.5);
  background: linear-gradient(180deg, #16233a, #0a1120);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  position: relative;
  transition: transform .2s ease;
}

.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher svg { width: 34px; height: 34px; }

.chat-launcher::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(101,185,239,.45);
  animation: launcherPulse 2.6s ease-out infinite;
  pointer-events: none;
}

.chat-launcher.open::after { animation: none; opacity: 0; }

@keyframes launcherPulse {
  0%   { transform: scale(.85); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.chat-panel[hidden] { display: none; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 350px;
  max-width: calc(100vw - 34px);
  height: 480px;
  max-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #0b1120;
  border: 1px solid rgba(101,185,239,.3);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  animation: panelIn .22s ease-out;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: linear-gradient(180deg, #14213a, #0e1728);
  border-bottom: 1px solid rgba(101,185,239,.2);
}

.chat-head-id { display: flex; align-items: center; gap: 10px; color: #f2f6fb; }
.chat-head-id strong { display: block; font-size: .96rem; }

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(101,185,239,.14);
  display: grid;
  place-items: center;
}
.chat-avatar svg { width: 26px; height: 26px; }

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  color: #9db4cd;
}
.chat-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3fd9c9;
  animation: blinkDot 2s ease-in-out infinite;
}

.chat-hbtns { display: flex; align-items: center; gap: 2px; }

.chat-hbtn {
  border: 0;
  background: transparent;
  color: #9db4cd;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.chat-hbtn:hover { color: #fff; background: rgba(101,185,239,.12); }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: .9rem;
  line-height: 1.55;
  animation: msgIn .18s ease-out;
}

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

.msg.bot {
  align-self: flex-start;
  background: #16233a;
  color: #e8eef7;
  border-bottom-left-radius: 5px;
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(180deg, #65b9ef, #489dd4);
  color: #06121f;
  font-weight: 600;
  border-bottom-right-radius: 5px;
}

.msg a { color: #8fd0ff; font-weight: 700; }

.msg-wa {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #06340f !important;
  font-weight: 800;
  font-size: .84rem;
  text-decoration: none;
}

.tdots { display: inline-flex; gap: 5px; padding: 3px 2px; }
.tdots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #65b9ef;
  animation: tdot 1s ease-in-out infinite;
}
.tdots i:nth-child(2) { animation-delay: .15s; }
.tdots i:nth-child(3) { animation-delay: .3s; }

@keyframes tdot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-4px); }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 14px;
}

.quick-chip {
  border: 1px solid rgba(101,185,239,.45);
  background: rgba(101,185,239,.08);
  color: #a9d4f5;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.quick-chip:hover { background: rgba(101,185,239,.2); }

.chat-inputrow {
  display: flex;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid rgba(101,185,239,.18);
  background: #0e1728;
}

.chat-inputrow input {
  flex: 1;
  border: 1px solid rgba(101,185,239,.25);
  background: #0a1120;
  color: #eef4fb;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: .9rem;
  outline: none;
}
.chat-inputrow input:focus { border-color: rgba(101,185,239,.6); }

.chat-inputrow button {
  width: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #65b9ef, #489dd4);
  color: #06121f;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-inputrow button svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .wa-float { bottom: 94px; right: 14px; padding: 11px; }
  .wa-float span { display: none; }
  .cw-chat { right: 14px; bottom: 16px; }
  .chat-panel { height: 66vh; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher::after, .tdots i, .chat-status i { animation: none; }
}
