
/* ==========================================================================
   DEVABBAS FULL-PAGE PORTFOLIO LOADER ENGINE
   Hosts all 8 Futuristic Liquid Glass Loading Animations (Concepts 3 to 10)
   ========================================================================== */

.portfolio-loader-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999999 !important;
  pointer-events: auto;
  overflow: hidden;
  background: transparent;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s;
}

.portfolio-loader-overlay.is-hidden,
html.loader-already-shown .portfolio-loader-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.portfolio-loader-overlay .master-liquid-loader {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999999 !important;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared Overlay */
    .master-liquid-loader {
      position: absolute;
      inset: 0;
      z-index: 99999;
      pointer-events: auto;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .loader-ambient-caustic {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 550px;
      height: 550px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(14, 165, 233, 0.12) 45%, transparent 70%);
      filter: blur(55px);
      pointer-events: none;
      animation: causticPulse 3s ease-in-out infinite alternate;
    }

    @keyframes causticPulse {
      0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
      100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.9; }
    }

    .underlying-site-view {
      width: 100%;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
      background: radial-gradient(circle at 15% 15%, #ffffff 0%, #eef3f9 45%, #e2ebf5 100%);
      transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .master-liquid-loader:not(.revealing):not(.completed) + .underlying-site-view {
      filter: blur(14px);
      transform: scale(0.97);
    }

    .master-liquid-loader.revealing + .underlying-site-view {
      filter: blur(0);
      transform: scale(1);
    }

    .master-liquid-loader.completed {
      display: none !important;
    }

    /* ---------------- IDEA 3 STYLES ---------------- */
    .theme-liquid-silk .loader-shutter {
      position: absolute; left: 0; right: 0; width: 100%; height: 50.5%; overflow: hidden;
      background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(240, 246, 254, 0.93) 65%, rgba(226, 238, 252, 0.96) 100%);
      backdrop-filter: blur(36px) saturate(180%); -webkit-backdrop-filter: blur(36px) saturate(180%);
      transition: transform 1.05s cubic-bezier(0.85, 0, 0.15, 1); will-change: transform;
    }
    .theme-liquid-silk .loader-shutter-top { top: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.85); transform-origin: top center; }
    .theme-liquid-silk .loader-shutter-bottom { bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.85); transform-origin: bottom center; }
    .loader-silk-bg { position: absolute; inset: -50px; width: calc(100% + 100px); height: calc(100% + 100px); pointer-events: none; opacity: 0.65; }
    .loader-specular-beam {
      position: absolute; top: -50%; left: -60%; width: 80%; height: 200%;
      background: linear-gradient(60deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(56,189,248,0.3) 55%, rgba(255,255,255,0) 70%);
      transform: rotate(25deg); pointer-events: none; filter: blur(6px);
      animation: beamSweep 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    }
    @keyframes beamSweep {
      0% { transform: translateX(-100%) rotate(25deg); opacity: 0; }
      15% { opacity: 0.9; } 85% { opacity: 0.9; }
      100% { transform: translateX(350%) rotate(25deg); opacity: 0; }
    }
    .silk-stage-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; max-width: 600px; width: 90%; transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
    .silk-brand-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 999px; box-shadow: 0 10px 30px -4px rgba(0, 136, 255, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.9); margin-bottom: 24px; }
    .loader-kinetic-wrapper { height: 72px; overflow: hidden; position: relative; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
    .loader-kinetic-phrase { position: absolute; font-size: clamp(22px, 5vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #0f172a; opacity: 0; transform: translateY(32px) scale(0.96); filter: blur(8px); transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap; text-shadow: 0 2px 14px rgba(255, 255, 255, 0.8); }
    .loader-kinetic-phrase.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    .loader-kinetic-phrase.exit { opacity: 0; transform: translateY(-28px) scale(1.02); filter: blur(8px); }
    .phrase-highlight { background: linear-gradient(135deg, #0088ff 0%, #0ea5e9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
    .loader-progress-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
    .loader-progress-track { width: 100%; height: 3px; background: rgba(148, 163, 184, 0.25); border-radius: 999px; overflow: hidden; position: relative; }
    .loader-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #0088ff 0%, #38bdf8 70%, #ffffff 100%); border-radius: 999px; position: relative; box-shadow: 0 0 14px rgba(56, 189, 248, 0.8), 0 0 4px #ffffff; transition: width 0.05s linear; }
    .loader-progress-fill::after { content: ''; position: absolute; right: 0; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 10px #ffffff, 0 0 16px #38bdf8; }
    .loader-meta-row { display: flex; align-items: center; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #64748b; letter-spacing: 0.05em; }
    .theme-liquid-silk.revealing .silk-stage-content { opacity: 0; transform: scale(1.08) translateY(-10px); filter: blur(10px); }
    .theme-liquid-silk.revealing .loader-shutter-top { transform: translateY(-100%); }
    .theme-liquid-silk.revealing .loader-shutter-bottom { transform: translateY(100%); }

    /* ---------------- IDEA 4 STYLES (Spatial Lens) ---------------- */
    .theme-spatial-lens { background: radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 0.95) 0%, rgba(230, 239, 250, 0.97) 100%); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1); }
    .spatial-glass-lens {
      position: relative; width: 320px; height: 320px; border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.92) 0%, rgba(240, 248, 255, 0.65) 50%, rgba(200, 225, 250, 0.5) 100%);
      border: 2px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 28px 70px -10px rgba(0, 136, 255, 0.3), inset 0 4px 10px rgba(255, 255, 255, 1), inset 0 -8px 24px rgba(14, 165, 233, 0.35);
      display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      animation: spatialFloat 4s ease-in-out infinite; transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease, filter 0.8s ease;
    }
    @keyframes spatialFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    .spatial-chromatic-ring {
      position: absolute; inset: -3px; border-radius: 50%;
      background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.6), rgba(255, 255, 255, 0.95), rgba(168, 85, 247, 0.5), rgba(56, 189, 248, 0.6));
      filter: blur(2px); opacity: 0.75; animation: spinPrism 6s linear infinite; z-index: 1; pointer-events: none;
      mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2px));
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2px));
    }
    @keyframes spinPrism { to { transform: rotate(360deg); } }
    .spatial-radar-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(56, 189, 248, 0.4); pointer-events: none; z-index: 2; }
    .spatial-radar-ring.ring-outer { width: 270px; height: 270px; animation: spinClockwise 18s linear infinite; }
    .spatial-radar-ring.ring-mid { width: 210px; height: 210px; border: 1px solid rgba(255, 255, 255, 0.45); animation: spinCounterClockwise 12s linear infinite; }
    .spatial-radar-ring.ring-inner { width: 145px; height: 145px; border: 1px dotted rgba(2, 132, 199, 0.45); animation: spinClockwise 8s linear infinite; }
    @keyframes spinClockwise { to { transform: rotate(360deg); } }
    @keyframes spinCounterClockwise { to { transform: rotate(-360deg); } }
    .spatial-liquid-reservoir {
      position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 0%;
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.35) 0%, rgba(14, 165, 233, 0.55) 100%);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: height 0.05s linear; z-index: 3;
      border-top: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 -4px 18px rgba(56, 189, 248, 0.6);
    }
    .spatial-hologram-glyph { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: 0 2px 16px rgba(255, 255, 255, 0.9); }
    .spatial-logo-svg { width: 42px; height: 42px; filter: drop-shadow(0 4px 12px rgba(0, 136, 255, 0.5)); }
    .spatial-brand-name { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; color: #0f172a; }
    .spatial-coords-text { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: #0284c7; letter-spacing: 0.1em; background: rgba(255, 255, 255, 0.75); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.9); }
    .spatial-readout-pill { position: relative; z-index: 5; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(15, 23, 42, 0.85); color: #ffffff; padding: 5px 14px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.25); }
    .spatial-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }
    .spatial-sub-status { font-size: 9px; color: #94a3b8; letter-spacing: 0.08em; }
    .spatial-hud-chip { position: absolute; padding: 8px 14px; background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 12px; backdrop-filter: blur(20px); box-shadow: 0 8px 24px rgba(0, 136, 255, 0.12); font-family: 'JetBrains Mono', monospace; display: flex; flex-direction: column; gap: 2px; }
    .spatial-hud-chip.chip-left { left: calc(50% - 240px); top: calc(50% - 60px); }
    .spatial-hud-chip.chip-right { right: calc(50% - 240px); top: calc(50% + 20px); }
    .hud-label { font-size: 9px; color: #64748b; letter-spacing: 0.08em; font-weight: 600; }
    .hud-val { font-size: 12px; color: #0284c7; font-weight: 700; }
    .theme-spatial-lens.revealing .spatial-glass-lens { transform: scale(14) rotate(15deg); opacity: 0; filter: blur(24px) brightness(1.8); pointer-events: none; }
    .theme-spatial-lens.revealing .spatial-hud-chip { opacity: 0; transform: translateY(-20px); }
    .theme-spatial-lens.revealing { opacity: 0; pointer-events: none; }

    /* ---------------- IDEA 5 STYLES (Cyber Monolith) ---------------- */
    .theme-quantum-monolith { background: radial-gradient(circle at 50% 50%, rgba(245, 249, 255, 0.94) 0%, rgba(222, 235, 250, 0.98) 100%); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); transition: all 1.05s cubic-bezier(0.85, 0, 0.15, 1); }
    .quantum-matrix-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
    .quantum-monolith-card { position: relative; width: 350px; min-height: 520px; height: auto; max-width: 90%; border-radius: 24px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 32px 80px -10px rgba(0, 136, 255, 0.28), inset 0 1px 2px rgba(255, 255, 255, 1); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); display: flex; flex-direction: column; justify-content: space-between; padding: 24px; gap: 8px; overflow: hidden; transition: all 0.9s cubic-bezier(0.85, 0, 0.15, 1); }
    .quantum-circuits-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.75; }
    .quantum-laser-scanner { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent 0%, #38bdf8 30%, #ffffff 50%, #38bdf8 70%, transparent 100%); box-shadow: 0 0 14px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.9); top: 0%; z-index: 10; pointer-events: none; animation: laserScan 2.4s ease-in-out infinite alternate; }
    @keyframes laserScan { 0% { top: 6%; opacity: 0.7; } 100% { top: 92%; opacity: 1; } }
    .quantum-header-badge { display: flex; align-items: center; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #0284c7; letter-spacing: 0.08em; position: relative; z-index: 5; }
    .quantum-pulse-beacon { width: 8px; height: 8px; border-radius: 50%; background: #0088ff; box-shadow: 0 0 10px #0088ff; animation: demoPulse 1.2s infinite; }
    .quantum-biometric-stage { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 4px 0; }
    .quantum-reticle-box { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
    .quantum-reticle-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(2, 132, 199, 0.45); }
    .ring-rot-cw { animation: spinClockwise 10s linear infinite; }
    .ring-rot-ccw { inset: 10px; border: 1px dotted rgba(56, 189, 248, 0.65); animation: spinCounterClockwise 7s linear infinite; }
    .quantum-core-glyph { width: 50px; height: 50px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 8px 24px rgba(0, 136, 255, 0.25); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
    .quantum-glyph-svg { width: 26px; height: 26px; }
    .quantum-pct-display { margin-top: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 800; color: #0f172a; }
    .quantum-telemetry-terminal { background: rgba(15, 23, 42, 0.05); border: 1px solid rgba(2, 132, 199, 0.2); border-radius: 12px; padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #475569; display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 5; }
    .telemetry-line { opacity: 0.45; transition: all 0.3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .telemetry-line.active { opacity: 1; color: #0284c7; font-weight: 700; }
    .quantum-card-footer { display: flex; align-items: center; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #64748b; font-weight: 600; position: relative; z-index: 5; }
    .status-encrypted { color: #10b981; font-weight: 700; }
    .theme-quantum-monolith.revealing .quantum-monolith-card { transform: scale(0.9) translateY(-20px); opacity: 0; filter: blur(14px); }
    .theme-quantum-monolith.revealing { opacity: 0; pointer-events: none; }

    /* ---------------- IDEA 6 STYLES (Prism Crystal) ---------------- */
    .theme-prism-crystal { background: radial-gradient(circle at 50% 50%, rgba(240, 246, 255, 0.96) 0%, rgba(215, 230, 250, 0.98) 100%); backdrop-filter: blur(42px); -webkit-backdrop-filter: blur(42px); transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1); }
    .prism-stage-wrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 680px; }
    .prism-incoming-laser { position: absolute; left: 20px; width: 150px; height: 3px; background: linear-gradient(90deg, transparent, #ffffff 40%, #ffffff 100%); box-shadow: 0 0 12px #ffffff, 0 0 20px rgba(56, 189, 248, 0.8); z-index: 4; animation: laserPulse 2s infinite alternate; }
    @keyframes laserPulse { 0% { opacity: 0.8; height: 2px; } 100% { opacity: 1; height: 3.5px; } }
    .prism-crystal-facet {
      position: relative; width: 245px; height: 245px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 244, 255, 0.6) 45%, rgba(200, 230, 255, 0.8) 100%);
      clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
      border: 2px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 24px 60px -8px rgba(0, 136, 255, 0.35), inset 0 0 30px rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 5;
      animation: crystalHover 3.5s ease-in-out infinite alternate; transition: all 0.9s cubic-bezier(0.85, 0, 0.15, 1);
    }
    @keyframes crystalHover { 0% { transform: rotate(0deg) scale(0.98); } 100% { transform: rotate(2deg) scale(1.02); } }
    .prism-crystal-inner-cut { position: absolute; inset: 18px; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); border: 1px solid rgba(255, 255, 255, 0.7); background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 80%); }
    .prism-logo-icon { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(0, 136, 255, 0.4)); position: relative; z-index: 6; }
    .prism-percent-tag { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: #0f172a; margin-top: 4px; position: relative; z-index: 6; }
    .prism-dispersion-fan { position: absolute; left: 50%; top: 50%; transform: translateY(-50%); width: 260px; height: 180px; pointer-events: none; z-index: 3; }
    .spectral-ray { position: absolute; left: 0; top: 50%; height: 2px; transform-origin: left center; filter: blur(0.6px); box-shadow: 0 0 10px currentColor; transition: width 0.05s linear; width: 0%; }
    .ray-violet { background: #8b5cf6; color: #8b5cf6; transform: rotate(-24deg); }
    .ray-blue   { background: #0088ff; color: #0088ff; transform: rotate(-12deg); }
    .ray-cyan   { background: #06b6d4; color: #06b6d4; transform: rotate(0deg); }
    .ray-amber  { background: #f59e0b; color: #f59e0b; transform: rotate(12deg); }
    .ray-red    { background: #ef4444; color: #ef4444; transform: rotate(24deg); }
    .prism-meta-hud { position: absolute; bottom: -72px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.7); padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.9); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #475569; font-weight: 700; white-space: nowrap; }
    .theme-prism-crystal.revealing .prism-crystal-facet { transform: scale(8) rotate(45deg); opacity: 0; filter: blur(28px) brightness(2.2); }
    .theme-prism-crystal.revealing .prism-incoming-laser, .theme-prism-crystal.revealing .prism-dispersion-fan, .theme-prism-crystal.revealing .prism-meta-hud { opacity: 0; }
    .theme-prism-crystal.revealing { opacity: 0; pointer-events: none; }

    /* ---------------- IDEA 7 STYLES (Liquid Morph) ---------------- */
    .theme-liquid-morph { background: radial-gradient(circle at 50% 50%, rgba(242, 248, 255, 0.95) 0%, rgba(220, 234, 252, 0.97) 100%); backdrop-filter: blur(42px); -webkit-backdrop-filter: blur(42px); transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1); }
    .liquid-ripple-wave { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.2); border-radius: 50%; border: 2px solid rgba(56, 189, 248, 0.6); box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.8); pointer-events: none; opacity: 0; }
    .liquid-ripple-wave.trigger { animation: rippleExpand 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
    @keyframes rippleExpand { 0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
    .mercury-morph-capsule {
      position: relative; width: 340px; height: 340px; border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
      background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(220, 240, 255, 0.75) 45%, rgba(147, 197, 253, 0.6) 100%);
      border: 2px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 28px 70px -10px rgba(0, 136, 255, 0.35), inset 0 6px 14px rgba(255, 255, 255, 1), inset 0 -8px 24px rgba(14, 165, 233, 0.4);
      backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      animation: morphBlob 7s ease-in-out infinite alternate; z-index: 5; transition: all 0.9s cubic-bezier(0.85, 0, 0.15, 1);
    }
    @keyframes morphBlob {
      0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg); }
      33% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; transform: rotate(4deg); }
      66% { border-radius: 50% 50% 30% 70% / 55% 35% 65% 45%; transform: rotate(-3deg); }
      100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg); }
    }
    .mercury-core-logo { width: 44px; height: 44px; filter: drop-shadow(0 4px 12px rgba(0, 136, 255, 0.4)); }
    .mercury-morph-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0.14em; color: #0f172a; margin-top: 4px; }
    .mercury-morph-counter { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 800; color: #0284c7; margin-top: 2px; }
    .mercury-fluid-pill { margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: #0f172a; background: rgba(255, 255, 255, 0.85); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.95); }
    .theme-liquid-morph.revealing .mercury-morph-capsule { transform: scale(16); opacity: 0; filter: blur(30px); }
    .theme-liquid-morph.revealing { opacity: 0; pointer-events: none; }

    /* ==========================================================================
       IDEA 8: THUNDERSTORM & RAIN ON FROSTED GLASS (LIGHT WHITISH THEME)
       ========================================================================== */
    .theme-thunder-storm {
      background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f1f6fc 45%, #e2ecf7 75%, #d4e2f2 100%);
      backdrop-filter: blur(42px);
      -webkit-backdrop-filter: blur(42px);
      transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1);
    }

    /* Lightning Flash Sheet */
    .lightning-ambient-flash {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 1) 0%, rgba(224, 242, 254, 0.92) 50%, rgba(255, 255, 255, 0.98) 100%);
      opacity: 0;
      pointer-events: none;
      z-index: 4;
      transition: opacity 0.05s ease-out;
    }

    .lightning-ambient-flash.flash {
      opacity: 0.98;
    }

    #rainCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
    }

    /* Wet Frosted Glass Storm Capsule */
    .thunder-storm-capsule {
      position: relative;
      width: 350px;
      min-height: 530px;
      max-width: 92%;
      border-radius: 28px;
      background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.92) 0%, rgba(240, 247, 255, 0.78) 50%, rgba(220, 235, 252, 0.68) 100%);
      border: 2px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 28px 75px -10px rgba(0, 136, 255, 0.22),
                  inset 0 2px 6px rgba(255, 255, 255, 1),
                  inset 0 -6px 20px rgba(186, 230, 253, 0.4),
                  0 0 35px rgba(224, 242, 254, 0.6);
      backdrop-filter: blur(32px) saturate(180%);
      -webkit-backdrop-filter: blur(32px) saturate(180%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 22px;
      gap: 10px;
      z-index: 5;
      overflow: hidden;
      transition: all 0.9s cubic-bezier(0.85, 0, 0.15, 1), box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    }

    .thunder-storm-capsule.storm-lit {
      border-color: #ffffff;
      box-shadow: 0 35px 90px -10px rgba(14, 165, 233, 0.45),
                  0 0 50px rgba(56, 189, 248, 0.6),
                  inset 0 0 30px #ffffff;
    }

    /* Rain condensation drops layer over capsule */
    .capsule-wet-streaks {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle at 20% 30%, rgba(2, 132, 199, 0.15) 2px, transparent 3px),
                        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.9) 3px, transparent 4px),
                        radial-gradient(circle at 80% 25%, rgba(2, 132, 199, 0.18) 2px, transparent 3px),
                        radial-gradient(circle at 40% 85%, rgba(255, 255, 255, 0.8) 2.5px, transparent 3.5px);
      pointer-events: none;
      opacity: 0.8;
    }

    .thunder-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: #0284c7;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .storm-core-stage {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .thunder-bolt-icon {
      width: 54px;
      height: 54px;
      filter: drop-shadow(0 4px 14px rgba(0, 136, 255, 0.35));
      animation: stormIconGlow 2s infinite alternate;
    }

    @keyframes stormIconGlow {
      0% { filter: drop-shadow(0 2px 8px rgba(0, 136, 255, 0.3)); transform: scale(0.98); }
      100% { filter: drop-shadow(0 6px 20px rgba(14, 165, 233, 0.6)); transform: scale(1.02); }
    }

    .storm-pct-display {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 32px;
      font-weight: 800;
      color: #0f172a;
      text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9);
      letter-spacing: -0.02em;
    }

    .storm-telemetry-box {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.95);
      border-radius: 12px;
      padding: 10px 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      color: #0284c7;
      display: flex;
      flex-direction: column;
      gap: 3px;
      font-weight: 700;
      box-shadow: 0 4px 14px rgba(0, 136, 255, 0.08);
    }

    .theme-thunder-storm.revealing .thunder-storm-capsule {
      transform: scale(14);
      opacity: 0;
      filter: blur(24px) brightness(1.6);
    }
    .theme-thunder-storm.revealing { opacity: 0; pointer-events: none; }

    /* ==========================================================================
       IDEA 9: EXTREME SNOWFALL & SUBO-ZERO CRYO-GLASS (LIGHT WHITISH THEME)
       ========================================================================== */
    .theme-extreme-snow {
      background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.95) 45%, rgba(224, 242, 254, 0.96) 80%, rgba(210, 233, 252, 0.98) 100%);
      backdrop-filter: blur(42px);
      -webkit-backdrop-filter: blur(42px);
      transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1);
    }

    #snowCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
    }

    /* Sub-Zero Cryo-Glass Shield */
    .cryo-glass-shield {
      position: relative;
      width: 350px;
      min-height: 530px;
      max-width: 92%;
      border-radius: 28px;
      background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.96) 0%, rgba(240, 248, 255, 0.82) 50%, rgba(218, 236, 254, 0.65) 100%);
      border: 2px solid rgba(255, 255, 255, 0.98);
      box-shadow: 0 28px 75px -10px rgba(0, 136, 255, 0.22),
                  inset 0 3px 8px #ffffff,
                  inset 0 -8px 22px rgba(186, 230, 253, 0.5),
                  0 0 35px rgba(224, 242, 254, 0.8);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 22px;
      gap: 10px;
      z-index: 5;
      overflow: hidden;
      animation: cryoHover 4s ease-in-out infinite alternate;
      transition: all 0.9s cubic-bezier(0.85, 0, 0.15, 1);
    }

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

    /* Frost Feather Ice Crystal Vectors */
    .cryo-ice-feather {
      position: absolute;
      pointer-events: none;
      opacity: 0.75;
    }

    .feather-top-left { top: 0; left: 0; width: 100px; height: 100px; }
    .feather-bottom-right { bottom: 0; right: 0; width: 100px; height: 100px; transform: rotate(180deg); }

    .cryo-snowflake-icon {
      width: 52px;
      height: 52px;
      filter: drop-shadow(0 4px 12px rgba(0, 136, 255, 0.35));
      animation: spinClockwise 20s linear infinite;
    }

    .cryo-pct-display {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 32px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.02em;
      margin-top: 6px;
      text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9);
    }

    .cryo-telemetry-box {
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.95);
      border-radius: 12px;
      padding: 10px 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      color: #0284c7;
      display: flex;
      flex-direction: column;
      gap: 3px;
      font-weight: 700;
      box-shadow: 0 4px 14px rgba(0, 136, 255, 0.08);
    }

    .theme-extreme-snow.revealing .cryo-glass-shield {
      transform: scale(14);
      opacity: 0;
      filter: blur(28px);
    }
    .theme-extreme-snow.revealing { opacity: 0; pointer-events: none; }

    /* ==========================================================================
       IDEA 10: PURE GLASSY WATER & CAUSTIC OCEAN SURFACE (LIGHT WHITISH THEME)
       ========================================================================== */
    .theme-glassy-water {
      background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.95) 38%, rgba(224, 242, 254, 0.96) 75%, rgba(207, 232, 252, 0.98) 100%);
      backdrop-filter: blur(42px);
      -webkit-backdrop-filter: blur(42px);
      transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1);
    }

    #waterCausticCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      opacity: 0.9;
    }

    /* Floating Aquamarine Glass Water Pod */
    .water-glass-pod {
      position: relative;
      width: 380px;
      height: 380px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.85) 45%, rgba(215, 237, 254, 0.65) 100%);
      border: 2.5px solid rgba(255, 255, 255, 1);
      box-shadow: 0 28px 70px -10px rgba(0, 136, 255, 0.22),
                  inset 0 4px 14px #ffffff,
                  inset 0 -8px 24px rgba(56, 189, 248, 0.3),
                  0 0 35px rgba(56, 189, 248, 0.25);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      z-index: 5;
      animation: waterPodFloat 5s ease-in-out infinite alternate;
      transition: all 0.9s cubic-bezier(0.85, 0, 0.15, 1);
    }

    @keyframes waterPodFloat {
      0% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-12px) rotate(1deg); }
      100% { transform: translateY(4px) rotate(-1deg); }
    }

    /* Internal Submerged Water Wave */
    .water-pod-level {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: 0%;
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.35) 0%, rgba(14, 165, 233, 0.55) 100%);
      border-top: 2px solid rgba(255, 255, 255, 1);
      box-shadow: 0 -4px 14px rgba(56, 189, 248, 0.5);
      z-index: 3;
      transition: height 0.05s linear;
      overflow: hidden;
    }

    .water-pod-level::before {
      content: '';
      position: absolute;
      top: -10px;
      left: 0;
      width: 200%;
      height: 20px;
      background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.85) 0%, transparent 65%);
      animation: waterWaveShift 2.2s linear infinite;
    }

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

    .water-pod-content {
      position: relative;
      z-index: 5;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    .water-pod-logo {
      width: 44px;
      height: 44px;
      filter: drop-shadow(0 4px 10px rgba(0, 136, 255, 0.35));
    }

    .water-pct-display {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 30px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.02em;
      text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9);
    }

    .water-telemetry-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      color: #0284c7;
      background: rgba(255, 255, 255, 0.88);
      padding: 3px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 2px 10px rgba(0, 136, 255, 0.1);
    }

    .theme-glassy-water.revealing .water-glass-pod {
      transform: scale(15);
      opacity: 0;
      filter: blur(26px);
    }
    .theme-glassy-water.revealing { opacity: 0; pointer-events: none; }

    /* Universal Developer Info & Branding Styles across All Concepts */
    .loader-brand-title {
      font-size: 15px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-top: 5px;
      text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9);
      text-align: center;
    }

    .loader-brand-subtitle {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      color: #0284c7;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
    }

    .loader-hire-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 4px 14px rgba(0, 136, 255, 0.12);
      padding: 4px 12px;
      border-radius: 999px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9.5px;
      font-weight: 700;
      color: #0f172a;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-top: 6px;
    }

    .loader-hire-badge .badge-ping {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 8px #10b981;
      animation: demoPulse 1.4s infinite;
    }

    .loader-skill-pills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 5px;
      margin-top: 6px;
    }

    .loader-skill-pill {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      font-weight: 700;
      color: #0369a1;
      background: rgba(224, 242, 254, 0.7);
      border: 1px solid rgba(186, 230, 253, 0.85);
      border-radius: 6px;
      padding: 2px 7px;
    }

    /* Responsive Toolbar Adjustments */
    @media (max-width: 992px) {
      .demo-control-bar {
        border-radius: 20px;
        padding: 8px 12px;
        top: 6px;
        gap: 5px;
      }
      .prism-incoming-laser { display: none; }
    }
  