/* ============ Mahadi Hasan Tusher — Personal Brand Site ============ */

:root {
  --bg: #06060c;
  --bg-2: #0a0a14;
  --bg-3: #11111e;
  --surface: rgba(12, 16, 28, 0.55);
  --surface-2: rgba(18, 22, 36, 0.7);
  --text: rgba(255, 255, 255, 0.94);
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(0, 240, 255, 0.18);

  /* Multi-color palette */
  --accent: #00f0ff;     /* cyan */
  --accent-2: #a855f7;   /* purple */
  --accent-3: #ff2e63;   /* hot pink */
  --accent-4: #39ff14;   /* electric lime */
  --accent-5: #ffae00;   /* solar orange */
  --accent-6: #ff00d4;   /* magenta */
  --accent-7: #4d7cff;   /* electric blue */

  --glow: 0 0 36px rgba(0, 240, 255, 0.32);
  --glow-purple: 0 0 36px rgba(168, 85, 247, 0.32);
  --glow-pink: 0 0 36px rgba(255, 46, 99, 0.32);
  --shadow-card: 0 12px 40px -12px rgba(0, 240, 255, 0.18), 0 0 0 1px var(--line-2) inset;
  --radius: 14px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---- Per-page accent themes ---- */
.theme-cyan   { --theme: #00f0ff; --theme-2: #a855f7; }
.theme-purple { --theme: #a855f7; --theme-2: #ff00d4; }
.theme-pink   { --theme: #ff2e63; --theme-2: #ffae00; }
.theme-lime   { --theme: #39ff14; --theme-2: #00f0ff; }
.theme-orange { --theme: #ffae00; --theme-2: #ff2e63; }
.theme-blue   { --theme: #4d7cff; --theme-2: #ff00d4; }
.theme-magenta{ --theme: #ff00d4; --theme-2: #ffae00; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  min-height: 100vh;
}

/* Aurora floating orbs background — animated, multi-color */
.orbs {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: orbFloat 22s ease-in-out infinite;
}
.orb.o1 { width: 540px; height: 540px; background: #00f0ff; top: -10%; left: -8%; animation-delay: 0s; }
.orb.o2 { width: 460px; height: 460px; background: #a855f7; top: 20%; right: -8%; animation-delay: -6s; animation-duration: 28s; }
.orb.o3 { width: 380px; height: 380px; background: #ff2e63; top: 55%; left: 10%; animation-delay: -12s; animation-duration: 24s; }
.orb.o4 { width: 420px; height: 420px; background: #ffae00; bottom: -10%; right: 20%; animation-delay: -3s; animation-duration: 30s; opacity: 0.4; }
.orb.o5 { width: 320px; height: 320px; background: #39ff14; top: 70%; right: 40%; animation-delay: -18s; animation-duration: 26s; opacity: 0.32; }
.orb.o6 { width: 360px; height: 360px; background: #ff00d4; top: 30%; left: 40%; animation-delay: -9s; animation-duration: 32s; opacity: 0.32; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(80px, -60px) scale(1.1); }
  50%      { transform: translate(-40px, 100px) scale(0.95); }
  75%      { transform: translate(-100px, -40px) scale(1.05); }
}
::selection { background: rgba(0, 240, 255, 0.35); color: white; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- Global grid background overlay ---- */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.scanline {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ---- Layout ---- */
.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 6, 12, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,240,255,0.18), rgba(168,85,247,0.18));
  border: 1px solid var(--line-2);
  box-shadow: var(--glow);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 11px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 90deg, transparent 180deg, var(--accent-2) 270deg, transparent 360deg);
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
}
.brand-name { font-weight: 600; color: var(--text); }
.brand-name span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,240,255,0.18), rgba(168,85,247,0.18));
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.nav-burger { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(6,6,12,0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 2px;
  }
  .nav-links.open a { padding: 14px; font-size: 15px; }
}

/* ---- Typography ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: clamp(17px, 1.4vw, 20px); }
p { line-height: 1.65; color: var(--text-2); margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); max-width: 64ch; }

/* Gradient & glitch text */
.grad-text {
  background: linear-gradient(95deg, #ffffff 0%, var(--accent) 45%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.outline-text {
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06060c;
  box-shadow: 0 8px 30px -8px rgba(0,240,255,0.55), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(0,240,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.3); }
.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(0,240,255,0.06); border-color: var(--accent); box-shadow: 0 0 24px rgba(0,240,255,0.18); }
.btn .ic { display: inline-flex; }

/* magnetic */
.magnet { display: inline-block; transition: transform 0.18s ease; }

/* ---- Cards / glass ---- */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  position: relative;
}
.glass.accent { border-color: var(--line-2); }
.glass-hover { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.glass-hover:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

/* corner ticks for cyber cards */
.tick-card { position: relative; }
.tick-card::before, .tick-card::after,
.tick-card > .t1, .tick-card > .t2 {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  opacity: 0.7;
}
.tick-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tick-card::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.tick-card > .t1 { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.tick-card > .t2 { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(0,240,255,0.08);
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.chip.purple { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.2); color: var(--accent-2); }
.chip.pink { background: rgba(255,46,99,0.08); border-color: rgba(255,46,99,0.2); color: var(--accent-3); }
.chip.green { background: rgba(57,255,20,0.08); border-color: rgba(57,255,20,0.2); color: var(--accent-4); }
.chip.gray { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text-2); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-4); box-shadow: 0 0 8px var(--accent-4); display: inline-block; }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* ---- Hero specific ---- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero h1 { margin-bottom: 18px; }
.hero-sub {
  margin-top: 22px;
  max-width: 56ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-3d {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-3d-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(0,240,255,0.06), transparent 65%);
  pointer-events: none;
}
.hero-3d-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; gap: 8px;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}
.stat .v { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); font-family: var(--font-display); }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }

/* ---- Marquee ---- */
.marquee {
  --speed: 38s;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll var(--speed) linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee-item svg { opacity: 0.7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- Service cards grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.service-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.service-card:hover::after { opacity: 1; }
.service-card .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,240,255,0.16), rgba(168,85,247,0.16));
  border: 1px solid var(--line-2);
  color: var(--accent);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; font-size: 20px; }

/* ---- Section header ---- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}
.section-head .lead { margin-top: 16px; }

/* ---- Footer ---- */
.footer {
  margin-top: auto;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: rgba(4, 4, 10, 0.6);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--text-2); font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ---- Page transitions ---- */
.page {
  animation: pageIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes pageIn {
  0% { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---- Course cards ---- */
.course-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.course-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(0,240,255,0.18), rgba(168,85,247,0.18));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.course-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.course-thumb .tag { position: absolute; top: 12px; left: 12px; }
.course-thumb .price { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(6,6,12,0.7); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.course-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: white;
}
.course-thumb .play .disc {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(6,6,12,0.7);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 0 30px rgba(0,240,255,0.4);
}
.course-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.course-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 9px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}
.tl-item { position: relative; padding: 8px 0 32px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 14px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.tl-year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.tl-title { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.tl-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* ---- Pricing ---- */
.price-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
  gap: 16px;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,240,255,0.06), rgba(168,85,247,0.06));
  box-shadow: var(--glow);
}
.price-card .tier { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.price-card .amt { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.price-card .amt span { font-size: 14px; color: var(--text-3); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { flex: 0 0 16px; margin-top: 3px; color: var(--accent); }

/* ---- Code-like terminal block ---- */
.term {
  font-family: var(--font-mono);
  background: rgba(2, 4, 10, 0.7);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  overflow: hidden;
  position: relative;
}
.term-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }
.term-title { font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); margin-left: 8px; text-transform: uppercase; }
.term .prompt { color: var(--accent); }
.term .ok { color: var(--accent-4); }
.term .warn { color: var(--accent-3); }
.term .muted { color: var(--text-3); }

/* ---- Skill bars ---- */
.skill { margin-bottom: 16px; }
.skill-head { display: flex; justify-content: space-between; font-size: 13px; font-family: var(--font-mono); color: var(--text-2); margin-bottom: 6px; }
.skill-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; box-shadow: 0 0 12px rgba(0,240,255,0.4); }

/* ---- Testimonials ---- */
.testimonial {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.testimonial .quote { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #06060c;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line-2);
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  cursor: pointer;
}
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; }
.faq-a { color: var(--text-2); font-size: 14.5px; line-height: 1.65; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin-top 0.3s ease; }
.faq-item.open .faq-a { max-height: 220px; margin-top: 10px; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ---- Form ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,240,255,0.1);
  background: rgba(0,240,255,0.04);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---- Portfolio ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.portfolio-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.portfolio-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.12));
  overflow: hidden;
}
.portfolio-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.portfolio-meta { padding: 16px 18px; }
.portfolio-meta .ttl { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.portfolio-meta .typ { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }

/* utilities */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.spacer-sm { height: 24px; }
.spacer { height: 48px; }
.spacer-lg { height: 80px; }

/* ---- Dashboard preview ---- */
.dash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
}
@media (max-width: 720px) { .dash { grid-template-columns: 1fr; } .dash-side { display: none; } }
.dash-side { border-right: 1px solid var(--line); padding: 16px; background: rgba(2,4,10,0.5); }
.dash-logo { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.dash-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-side li { font-size: 13px; padding: 8px 10px; border-radius: 6px; color: var(--text-2); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.dash-side li.on { background: rgba(0,240,255,0.08); color: var(--accent); }
.dash-side li:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.dash-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .dash-row { grid-template-columns: 1fr; } }
.dash-tile { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.dash-tile .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }
.dash-tile .v { font-size: 24px; font-weight: 600; color: var(--text); }
.dash-tile .s { font-size: 11px; color: var(--accent-4); font-family: var(--font-mono); }

.progress { height: 5px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Blog */
.blog-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.blog-card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(168,85,247,0.15));
  border-radius: 10px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.blog-card .thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.blog-card h3 { font-size: 22px; margin: 8px 0; }
.blog-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; display: flex; gap: 14px; }
@media (max-width: 720px) { .blog-card { grid-template-columns: 1fr; } }

/* World map */
.worldmap { width: 100%; aspect-ratio: 2/1; position: relative; }
.worldmap svg { width: 100%; height: 100%; }
.worldmap .ping {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: translate(-50%, -50%);
}
.worldmap .ping::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Cursor ring */
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  mix-blend-mode: difference;
  opacity: 0.7;
}
.cursor-ring.over { width: 56px; height: 56px; background: rgba(0,240,255,0.1); }
@media (max-width: 980px) { .cursor-ring { display: none; } }

/* Toast / form success */
.success {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(57,255,20,0.3);
  background: rgba(57,255,20,0.06);
  color: var(--accent-4);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* big text decorative */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* hash-link table */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; font-family: var(--font-mono); font-size: 13px; }
.kv .k { color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.kv .v { color: var(--text); }

/* ============================================ */
/* === MULTI-COLOR + 3D + MOTION ENHANCEMENTS === */
/* ============================================ */

/* Multi-color animated gradient text */
.grad-text {
  background: linear-gradient(95deg, #ffffff 0%, #00f0ff 30%, #a855f7 55%, #ff00d4 80%, #ffae00 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.grad-text-2 {
  background: linear-gradient(95deg, #ff2e63 0%, #ffae00 40%, #39ff14 70%, #00f0ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 10s ease-in-out infinite;
}

/* Shimmer hero headline pass */
.shimmer-text {
  position: relative;
  background: linear-gradient(95deg, #ffffff 0%, #ffffff 40%, #00f0ff 50%, #ffffff 60%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerPass 6s linear infinite;
}
@keyframes shimmerPass {
  0%   { background-position: -120% 0; }
  100% { background-position: 120% 0; }
}

/* Animated rotating conic border (cyber halo) */
.halo {
  position: relative;
  isolation: isolate;
}
.halo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg),
    #00f0ff 0deg, transparent 60deg,
    #a855f7 120deg, transparent 180deg,
    #ff00d4 240deg, transparent 300deg, #00f0ff 360deg);
  filter: blur(8px);
  opacity: 0.45;
  z-index: -1;
  animation: haloSpin 8s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes haloSpin { to { --ang: 360deg; } }

/* Animated card border traveling along the perimeter */
.border-run {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  isolation: isolate;
}
.border-run::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg),
    transparent 0deg, #00f0ff 30deg, #a855f7 60deg,
    transparent 90deg, transparent 270deg, #ff2e63 300deg, #ffae00 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: haloSpin 6s linear infinite;
  pointer-events: none;
}

/* 3D Tilt card */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.tilt-inner { transform: translateZ(30px); }
.tilt-deep  { transform: translateZ(60px); }
.tilt-shadow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(0,240,255,0.18) 0%, transparent 40%);
  opacity: var(--shine, 0);
  transition: opacity 0.2s ease;
  mix-blend-mode: screen;
}

/* Floating bobbing animation (cards, icons) */
.float { animation: float 6s ease-in-out infinite; }
.float.fast { animation-duration: 4s; }
.float.slow { animation-duration: 8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Continuous color cycle (for chips/borders) */
.color-cycle { animation: colorCycle 8s linear infinite; }
@keyframes colorCycle {
  0%   { color: #00f0ff; border-color: rgba(0,240,255,0.4); box-shadow: 0 0 12px rgba(0,240,255,0.4); }
  25%  { color: #a855f7; border-color: rgba(168,85,247,0.4); box-shadow: 0 0 12px rgba(168,85,247,0.4); }
  50%  { color: #ff2e63; border-color: rgba(255,46,99,0.4); box-shadow: 0 0 12px rgba(255,46,99,0.4); }
  75%  { color: #ffae00; border-color: rgba(255,174,0,0.4); box-shadow: 0 0 12px rgba(255,174,0,0.4); }
  100% { color: #00f0ff; border-color: rgba(0,240,255,0.4); box-shadow: 0 0 12px rgba(0,240,255,0.4); }
}

/* Animated grid bg — subtle drift */
.grid-bg {
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 64px 64px; }
}

/* Per-page accent overrides — when a .theme-X is on .page */
.theme-cyan    .eyebrow, .theme-cyan    .nav-links a.active { color: #00f0ff; }
.theme-purple  .eyebrow, .theme-purple  .nav-links a.active { color: #a855f7; }
.theme-pink    .eyebrow, .theme-pink    .nav-links a.active { color: #ff2e63; }
.theme-lime    .eyebrow, .theme-lime    .nav-links a.active { color: #39ff14; }
.theme-orange  .eyebrow, .theme-orange  .nav-links a.active { color: #ffae00; }
.theme-blue    .eyebrow, .theme-blue    .nav-links a.active { color: #4d7cff; }
.theme-magenta .eyebrow, .theme-magenta .nav-links a.active { color: #ff00d4; }
.theme-cyan    .eyebrow::before { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; }
.theme-purple  .eyebrow::before { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.theme-pink    .eyebrow::before { background: #ff2e63; box-shadow: 0 0 8px #ff2e63; }
.theme-lime    .eyebrow::before { background: #39ff14; box-shadow: 0 0 8px #39ff14; }
.theme-orange  .eyebrow::before { background: #ffae00; box-shadow: 0 0 8px #ffae00; }
.theme-blue    .eyebrow::before { background: #4d7cff; box-shadow: 0 0 8px #4d7cff; }
.theme-magenta .eyebrow::before { background: #ff00d4; box-shadow: 0 0 8px #ff00d4; }

/* Stat cards — rainbow rotation */
.stat:nth-child(1) .v { color: #00f0ff; }
.stat:nth-child(2) .v { color: #a855f7; }
.stat:nth-child(3) .v { color: #ff2e63; }
.stat:nth-child(4) .v { color: #ffae00; }

/* Service-card icon rainbow rotation */
.grid-3 .service-card:nth-child(3n+1) .ico,
.grid-4 .service-card:nth-child(4n+1) .ico { background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(168,85,247,0.2)); color: #00f0ff; border-color: rgba(0,240,255,0.3); }
.grid-3 .service-card:nth-child(3n+2) .ico,
.grid-4 .service-card:nth-child(4n+2) .ico { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(255,46,99,0.2)); color: #a855f7; border-color: rgba(168,85,247,0.3); }
.grid-3 .service-card:nth-child(3n+3) .ico,
.grid-4 .service-card:nth-child(4n+3) .ico { background: linear-gradient(135deg, rgba(255,46,99,0.2), rgba(255,174,0,0.2)); color: #ff2e63; border-color: rgba(255,46,99,0.3); }
.grid-4 .service-card:nth-child(4n+4) .ico { background: linear-gradient(135deg, rgba(255,174,0,0.2), rgba(57,255,20,0.2)); color: #ffae00; border-color: rgba(255,174,0,0.3); }

/* Chip rainbow auto-cycle */
.grid-3 .chip:nth-child(5n+1), .row .chip:nth-child(5n+1) { background: rgba(0,240,255,0.08); border-color: rgba(0,240,255,0.2); color: #00f0ff; }
.grid-3 .chip:nth-child(5n+2), .row .chip:nth-child(5n+2) { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.2); color: #a855f7; }
.grid-3 .chip:nth-child(5n+3), .row .chip:nth-child(5n+3) { background: rgba(255,46,99,0.08); border-color: rgba(255,46,99,0.2); color: #ff2e63; }
.grid-3 .chip:nth-child(5n+4), .row .chip:nth-child(5n+4) { background: rgba(255,174,0,0.08); border-color: rgba(255,174,0,0.2); color: #ffae00; }
.grid-3 .chip:nth-child(5n+5), .row .chip:nth-child(5n+5) { background: rgba(57,255,20,0.08); border-color: rgba(57,255,20,0.2); color: #39ff14; }

/* Course-card thumb tint rotation */
.course-card:nth-child(4n+1) .course-thumb { background: linear-gradient(135deg, rgba(0,240,255,0.22), rgba(168,85,247,0.22)); }
.course-card:nth-child(4n+2) .course-thumb { background: linear-gradient(135deg, rgba(255,46,99,0.22), rgba(255,174,0,0.22)); }
.course-card:nth-child(4n+3) .course-thumb { background: linear-gradient(135deg, rgba(57,255,20,0.18), rgba(0,240,255,0.22)); }
.course-card:nth-child(4n+4) .course-thumb { background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(255,0,212,0.22)); }

/* Portfolio thumb tint rotation */
.portfolio-card:nth-child(6n+1) .portfolio-thumb { background: linear-gradient(135deg, rgba(0,240,255,0.18), rgba(168,85,247,0.18)); }
.portfolio-card:nth-child(6n+2) .portfolio-thumb { background: linear-gradient(135deg, rgba(255,46,99,0.18), rgba(255,174,0,0.18)); }
.portfolio-card:nth-child(6n+3) .portfolio-thumb { background: linear-gradient(135deg, rgba(57,255,20,0.16), rgba(0,240,255,0.18)); }
.portfolio-card:nth-child(6n+4) .portfolio-thumb { background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(255,0,212,0.18)); }
.portfolio-card:nth-child(6n+5) .portfolio-thumb { background: linear-gradient(135deg, rgba(255,174,0,0.18), rgba(255,46,99,0.18)); }
.portfolio-card:nth-child(6n+6) .portfolio-thumb { background: linear-gradient(135deg, rgba(77,124,255,0.2), rgba(0,240,255,0.18)); }

/* Timeline dot rainbow */
.tl-item:nth-child(7n+1)::before { border-color: #00f0ff; box-shadow: 0 0 12px #00f0ff; }
.tl-item:nth-child(7n+2)::before { border-color: #a855f7; box-shadow: 0 0 12px #a855f7; }
.tl-item:nth-child(7n+3)::before { border-color: #ff2e63; box-shadow: 0 0 12px #ff2e63; }
.tl-item:nth-child(7n+4)::before { border-color: #ffae00; box-shadow: 0 0 12px #ffae00; }
.tl-item:nth-child(7n+5)::before { border-color: #39ff14; box-shadow: 0 0 12px #39ff14; }
.tl-item:nth-child(7n+6)::before { border-color: #ff00d4; box-shadow: 0 0 12px #ff00d4; }
.tl-item:nth-child(7n+7)::before { border-color: #4d7cff; box-shadow: 0 0 12px #4d7cff; }

/* Animated scroll-progress strip top */
.scroll-prog {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #a855f7, #ff00d4, #ffae00);
  z-index: 70;
  transform-origin: 0 0;
  transition: transform 0.05s linear;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* Hero 3D label glow */
.hero-3d-label .dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* Glowing dot rainbow */
.dot.rainbow {
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  animation: dotCycle 4s linear infinite;
}
@keyframes dotCycle {
  0%   { background: #00f0ff; box-shadow: 0 0 12px #00f0ff; }
  33%  { background: #a855f7; box-shadow: 0 0 12px #a855f7; }
  66%  { background: #ff2e63; box-shadow: 0 0 12px #ff2e63; }
  100% { background: #00f0ff; box-shadow: 0 0 12px #00f0ff; }
}

/* SVG circuitry decoration */
.circuit {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
}
.circuit path {
  stroke-dasharray: 4 8;
  animation: dashFlow 4s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -120; }
}

/* Type entrance — letter stagger */
.split-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(-90deg);
  animation: letterIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  transform-origin: bottom;
}
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Floating UI cards — perspective row */
.float-cards {
  perspective: 1200px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-card {
  position: absolute;
  padding: 14px 16px;
  background: rgba(8,10,18,0.85);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6);
  animation: floatCard 8s ease-in-out infinite;
}
.float-card .row { gap: 8px; }
.float-card .lbl { color: var(--text-3); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.float-card .val { color: var(--accent); font-weight: 600; font-size: 14px; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
  50%      { transform: translateY(-14px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
}

/* Section corner ornaments — animated circuit lines */
.corner-ornament {
  position: absolute;
  width: 120px; height: 120px;
  opacity: 0.5;
  pointer-events: none;
}
.corner-ornament.tl { top: 12px; left: 12px; }
.corner-ornament.br { bottom: 12px; right: 12px; transform: rotate(180deg); }

/* Reveal mask — slide reveal */
.reveal-mask {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.6s ease, clip-path 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-mask.in { opacity: 1; clip-path: inset(0 0 0 0); }

/* Slow drift for grid bg toggle on a "high motion" mode */
@media (prefers-reduced-motion: reduce) {
  .orb, .float, .grid-bg, .grad-text, .shimmer-text, .halo::before, .border-run::before,
  .color-cycle, .float-card, .circuit path, .dot.rainbow, .marquee-track {
    animation: none !important;
  }
}
