html { background-color: var(--jk-bg-base, #0a0e13); transition: background-color 0.4s ease; }
body { background: transparent !important; position: relative; }
/* ==========================================================================
   JARKOS Motion UI - Core Design Tokens & Interactive Physics (v1.0.0)
   Author: Amanj Kozer (JARKOS 888)
   License: MIT
   ========================================================================== */

:root {
  --jk-bg-base: #0a0e13;
  --jk-surface: rgba(18, 24, 33, 0.76);
  --jk-surface-hover: rgba(26, 35, 48, 0.94);
  --jk-border: rgba(255, 255, 255, 0.09);
  --jk-accent: #e8b85c;
  --jk-accent-strong: #f5ca73;
  --jk-accent-glow: rgba(232, 184, 92, 0.28);
  --jk-text-primary: #f8fafc;
  --jk-text-secondary: #9aa5b4;
  --jk-radius: 14px;
  --jk-blur: blur(12px);
  --jk-transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#jk-motion-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5; mix-blend-mode: screen;
  pointer-events: none;
}

.jk-card {
  position: relative;
  overflow: hidden;
  background: var(--jk-surface);
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius);
  backdrop-filter: var(--jk-blur);
  -webkit-backdrop-filter: var(--jk-blur);
  transition: var(--jk-transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.jk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--jk-accent-glow), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.jk-card:hover {
  background: var(--jk-surface-hover);
  border-color: var(--jk-accent);
  box-shadow: 0 12px 32px -10px var(--jk-accent-glow);
}

.jk-card:hover::before {
  opacity: 1;
}

.jk-btn-primary {
  background: var(--jk-accent);
  color: #06090e;
  border: 1px solid var(--jk-accent);
  border-radius: calc(var(--jk-radius) * 0.7);
  font-weight: 700;
  transition: var(--jk-transition);
  box-shadow: 0 4px 20px var(--jk-accent-glow);
}

.jk-btn-primary:hover {
  background: var(--jk-accent-strong);
  transform: translateY(-2px);
}

/* احترام إعدادات تقليل الحركة في نظام التشغيل */
@media (prefers-reduced-motion: reduce) {
  /* canvas stays visible; the engine slows its animation */
  .jk-card { transform: none !important; transition: none !important; }
}

/* Theme 01: Waves — luxury editorial: warm rounded cards, deep golden shadow */
[data-jk-theme="waves"] {
  --jk-bg-base: #090c10;
  --jk-surface: linear-gradient(145deg, rgba(22, 28, 38, 0.85), rgba(12, 16, 22, 0.92));
  --jk-surface-hover: linear-gradient(145deg, rgba(30, 38, 52, 0.95), rgba(16, 21, 30, 0.98));
  --jk-border: rgba(232, 184, 92, 0.25);
  --jk-accent: #e8b85c; --jk-accent-strong: #f5ca73;
  --jk-accent-glow: rgba(232, 184, 92, 0.25);
  --jk-radius: 18px; --jk-blur: blur(12px);
}
[data-jk-theme="waves"] .jk-card {
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(232, 184, 92, 0.22);
}

/* Theme 02: Cyber HUD — tactical: chamfered corners, scanlines, hard edges */
[data-jk-theme="hud"] {
  --jk-bg-base: #03060a;
  --jk-surface: repeating-linear-gradient(0deg, rgba(245, 158, 11, 0.035) 0px, rgba(245, 158, 11, 0.035) 1px, transparent 1px, transparent 4px), rgba(8, 16, 26, 0.92);
  --jk-surface-hover: rgba(16, 28, 42, 0.98);
  --jk-border: rgba(245, 158, 11, 0.5);
  --jk-accent: #f59e0b; --jk-accent-strong: #fbbf24;
  --jk-accent-glow: rgba(245, 158, 11, 0.35);
  --jk-radius: 0px; --jk-blur: blur(4px);
}
[data-jk-theme="hud"] .jk-card {
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  border-inline-start: 4px solid var(--jk-accent);
}
[data-jk-theme="hud"] .jk-card::after {
  content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 14px; height: 14px;
  border-top: 2px solid var(--jk-accent); border-inline-end: 2px solid var(--jk-accent); pointer-events: none;
}

/* Theme 03: Liquid Glass — VisionOS-style: large radius, strong frosted blur, top highlight */
[data-jk-theme="glass"] {
  --jk-bg-base: #060a12;
  --jk-surface: rgba(255, 255, 255, 0.06);
  --jk-surface-hover: rgba(255, 255, 255, 0.11);
  --jk-border: rgba(255, 255, 255, 0.22);
  --jk-accent: #38bdf8; --jk-accent-strong: #bae6fd;
  --jk-accent-glow: rgba(56, 189, 248, 0.32);
  --jk-radius: 28px; --jk-blur: blur(32px) saturate(160%);
}
[data-jk-theme="glass"] .jk-card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}

/* Theme 04: 3D Core — tactile blocks: thick bottom edge that reads as physical depth */
[data-jk-theme="core3d"] {
  --jk-bg-base: #08090d;
  --jk-surface: #11141d; --jk-surface-hover: #171b27;
  --jk-border: rgba(234, 179, 8, 0.3);
  --jk-accent: #eab308; --jk-accent-strong: #fde047;
  --jk-accent-glow: rgba(234, 179, 8, 0.3);
  --jk-radius: 10px; --jk-blur: none;
}
[data-jk-theme="core3d"] .jk-card {
  border-bottom: 5px solid var(--jk-accent);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.55);
}
[data-jk-theme="core3d"] .jk-card:hover {
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.65), 0 0 30px var(--jk-accent-glow);
}

/* Theme 05: Neural AI — synaptic: neon top edge and double glow */
[data-jk-theme="neural"] {
  --jk-bg-base: #040914;
  --jk-surface: rgba(8, 18, 36, 0.84); --jk-surface-hover: rgba(12, 28, 54, 0.95);
  --jk-border: rgba(56, 189, 248, 0.35);
  --jk-accent: #0ea5e9; --jk-accent-strong: #7dd3fc;
  --jk-accent-glow: rgba(14, 165, 233, 0.4);
  --jk-radius: 16px; --jk-blur: blur(14px);
}
[data-jk-theme="neural"] .jk-card {
  border-top: 2px solid var(--jk-accent-strong);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.14), inset 0 0 20px rgba(14, 165, 233, 0.09);
}

/* Theme 06: Cosmic Nebula — iridescent gradient border on a deep-space fill */
[data-jk-theme="nebula"] {
  --jk-bg-base: #080410;
  --jk-surface: rgba(20, 10, 36, 0.82); --jk-surface-hover: rgba(30, 15, 54, 0.94);
  --jk-border: rgba(232, 121, 249, 0.4);
  --jk-accent: #d946ef; --jk-accent-strong: #f5d0fe;
  --jk-accent-glow: rgba(217, 70, 239, 0.38);
  --jk-radius: 24px; --jk-blur: blur(20px);
}
[data-jk-theme="nebula"] .jk-card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(18, 9, 32, 0.88), rgba(18, 9, 32, 0.88)) padding-box,
    linear-gradient(135deg, #e879f9, #38bdf8) border-box;
}
[data-jk-theme="nebula"] .jk-card:hover {
  border-color: transparent;
  background:
    linear-gradient(rgba(30, 15, 54, 0.94), rgba(30, 15, 54, 0.94)) padding-box,
    linear-gradient(135deg, #e879f9, #38bdf8) border-box;
}

/* Theme 07: Matrix Hologram — transparent wireframe projection, dashed frame, inner glow */
[data-jk-theme="holo"] {
  --jk-bg-base: #020a08;
  --jk-surface: rgba(4, 24, 18, 0.35); --jk-surface-hover: rgba(6, 38, 28, 0.55);
  --jk-border: rgba(16, 185, 129, 0.6);
  --jk-accent: #10b981; --jk-accent-strong: #6ee7b7;
  --jk-accent-glow: rgba(16, 185, 129, 0.42);
  --jk-radius: 2px; --jk-blur: blur(4px);
}
[data-jk-theme="holo"] .jk-card {
  border: 1px dashed rgba(16, 185, 129, 0.65);
  box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.14);
}

/* JARKOS Platform Bridge: transparent layers so the canvas shows through */
header, section, main, footer { background: transparent !important; position: relative; z-index: 1; }
nav { position: sticky; z-index: 50; }
