/* =========================================================
   EHSAN DIGITAL WORLD — DESIGN SYSTEM
   ========================================================= */

:root {
  --black: #04060c;
  --navy: #0a1230;
  --navy-2: #0e1a3d;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --purple: #7c3aed;
  --violet: #a78bfa;
  --gold: #e8b464;
  --white: #f3f6fc;
  --dim: #8b93ac;
  --dimmer: #5a6280;

  --glass-bg: rgba(14, 20, 44, 0.45);
  --glass-border: rgba(120, 150, 220, 0.18);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--dim); max-width: 62ch; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--cyan); color: var(--black); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

button { font-family: inherit; cursor: pointer; }

/* ---------- background layers ---------- */
#bg-gradient {
  position: fixed; inset: 0; z-index: -3;
  background: #03050b;
}
#bg-canvas {
  position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; display: block;
}
#lightning-flash {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 60% 20%, rgba(180, 210, 255, 0.9), rgba(120,170,255,0.15) 40%, transparent 70%);
  opacity: 0;
}
html[data-theme="light"] #bg-canvas { opacity: 0.4; }
/* keep the hero text readable over the bright Earth (dark theme) */
html:not([data-theme="light"]) .hero-title,
html:not([data-theme="light"]) .hero-tagline,
html:not([data-theme="light"]) .hero-sub,
html:not([data-theme="light"]) .hero .eyebrow { filter: drop-shadow(0 2px 10px rgba(2,6,20,0.6)); }

/* ---------- geo zoom HUD cards (Earth scroll story: fly-to-country readouts) ---------- */
#geo-zoom-layer {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 clamp(20px, 6vw, 96px);
}
.geo-card {
  --geo-opacity: 0;
  width: min(300px, 84vw);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 20px 22px 18px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(2,6,20,0.45);
  will-change: opacity, transform;
}
.geo-card.is-visible { opacity: var(--geo-opacity); transform: translateY(0) scale(1); }
.geo-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.geo-card-flag { font-size: 21px; line-height: 1; filter: drop-shadow(0 0 6px rgba(0,0,0,0.4)); }
.geo-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--white); }
.geo-card-sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--cyan);
  margin: 0 0 15px; text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}
.geo-card-sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex-shrink: 0; }
.geo-stat { margin-bottom: 12px; }
.geo-stat:last-of-type { margin-bottom: 0; }
.geo-stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.geo-stat-val { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.geo-stat-track { height: 4px; border-radius: 3px; background: rgba(120,150,220,0.16); overflow: hidden; }
.geo-stat-fill { display: block; height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 1.1s cubic-bezier(0.16,1,0.3,1); }
.geo-card-note { margin: 15px 0 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--dimmer); }
@media (max-width: 760px) {
  #geo-zoom-layer { justify-content: center; padding: 0 22px 84px; align-items: flex-end; }
}

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-core { position: relative; }
.loader-ring { fill: none; stroke-width: 1.4; }
.loader-ring--1 { stroke: rgba(59,130,246,0.4); stroke-dasharray: 8 10; animation: spin 6s linear infinite; transform-origin: 60px 60px; }
.loader-ring--2 { stroke: rgba(34,211,238,0.6); stroke-dasharray: 2 260; animation: spin 2.2s linear infinite; transform-origin: 60px 60px; }
.loader-dot { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--dim);
  max-width: none;
}
.loader-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
#loaderBarFill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 0.4s ease; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(4,6,12,0.75), rgba(4,6,12,0));
  transition: background 0.3s ease;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 18px var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  background: none; border: none; color: var(--white); font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px;
}
.logo-mark {
  width: 9px; height: 9px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 2px var(--cyan);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--dim); font-size: 13.5px; font-weight: 500;
  position: relative; padding: 4px 0; transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 2px;
}
.nav-status {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.nav-toggle { display: none; background: none; border: none; width: 32px; height: 22px; flex-direction: column; justify-content: space-between; padding: 0; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; }
.nav-mobile {
  display: none; flex-direction: column; padding: 0 var(--edge) 20px; gap: 4px;
}
.nav-mobile a { color: var(--dim); text-decoration: none; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--glass-border); }

@media (max-width: 860px) {
  .nav-links, .nav-status { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-mobile { display: flex; }
}

/* =========================================================
   SHARED
   ========================================================= */
section { position: relative; padding: 110px var(--edge); max-width: var(--max-w); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cyan);
  margin-bottom: 14px; text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  color: var(--white);
  box-shadow: 0 0 0 rgba(59,130,246,0);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59,130,246,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--white); border-color: var(--glass-border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); background: rgba(34,211,238,0.06); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 18px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 100px; max-width: none;
}
.hero-content { max-width: 780px; padding: 0 var(--edge); }
.hero .eyebrow { display: block; text-align: center; }
.hero-title {
  font-size: clamp(38px, 8vw, 84px); line-height: 1.02; letter-spacing: -0.01em;
  background: linear-gradient(120deg, #ffffff 30%, #cfe0ff 55%, #9fc3ff 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline {
  font-family: var(--font-mono); color: var(--cyan); font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.12em; margin: 14px 0 22px; max-width: none;
}
.hero-sub { margin: 0 auto 40px; font-size: 17px; color: var(--dim); max-width: 56ch; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0.6; }
.scroll-cue span {
  display: block; width: 1px; height: 34px; margin: 0 auto 8px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cue-move 1.8s ease-in-out infinite;
}
@keyframes cue-move { 0% { transform: scaleY(0.3); opacity: 0.2; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.3); opacity: 0.2; } }
.scroll-cue p { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--dimmer); margin: 0; }

/* =========================================================
   STATUS STRIP
   ========================================================= */
.status-strip { padding: 34px var(--edge); max-width: none; }
.status-strip-inner {
  max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px 40px;
  justify-content: center; padding: 20px 28px; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
}
.status-item { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; }
.status-item .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-online { background: #34d399; box-shadow: 0 0 8px #34d399; }
.dot-explore { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-build { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dot-active { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.dot-learn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.s-label { color: var(--dimmer); }
.s-value { color: var(--white); font-weight: 500; }

/* =========================================================
   ORBIT
   ========================================================= */
.orbit-section { text-align: center; }
.orbit-section .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.orbit-stage {
  position: relative; width: min(640px, 90vw); height: min(640px, 90vw); margin: 0 auto;
}
.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-size: 15px;
  background: radial-gradient(circle at 35% 30%, #2a3f7a, #0a1230 70%);
  border: 1px solid rgba(120,150,220,0.35);
  box-shadow: 0 0 60px rgba(59,130,246,0.35), inset 0 0 30px rgba(124,58,237,0.25);
  z-index: 3;
}
.orbit-ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px dashed rgba(120,150,220,0.18); transform: translate(-50%, -50%); }
.orbit-ring--1 { width: 46%; height: 46%; animation: orbit-spin 40s linear infinite; }
.orbit-ring--2 { width: 70%; height: 70%; animation: orbit-spin 60s linear infinite reverse; }
.orbit-ring--3 { width: 96%; height: 96%; animation: orbit-spin 90s linear infinite; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-node {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; white-space: nowrap;
  padding: 7px 13px; border-radius: 100px; color: var(--white);
  background: rgba(14,20,44,0.6); border: 1px solid var(--glass-border); backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.orbit-node:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34,211,238,0.35); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--glass-border); }
.about-facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dimmer); margin-bottom: 4px; }
.about-facts dd { margin: 0; font-size: 14.5px; color: var(--white); }

.about-panel {
  position: relative; padding: 26px; border-radius: 18px; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
  font-family: var(--font-mono); font-size: 12.5px;
}
.panel-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--dim); }
.panel-row .ok { color: var(--cyan); }
.panel-scan {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,0.06), transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }

/* =========================================================
   MINDSET FLOW
   ========================================================= */
.mindset-flow { display: flex; flex-direction: column; align-items: center; }
.flow-chain {
  list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px;
}
.flow-chain li {
  font-family: var(--font-mono); font-size: 12.5px; padding: 10px 16px; border-radius: 10px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--white);
  position: relative;
}
.flow-chain li:not(:last-child)::after {
  content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--dimmer);
}
.flow-cross { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.flow-cross span {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 100px;
  background: linear-gradient(120deg, rgba(59,130,246,0.18), rgba(124,58,237,0.18));
  border: 1px solid rgba(120,150,220,0.3); color: var(--white);
}
.flow-note { text-align: center; max-width: 520px; }

/* =========================================================
   INTERESTS
   ========================================================= */
.interest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.interest-card {
  padding: 26px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); transition: transform 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d; will-change: transform;
}
.interest-card:hover { border-color: rgba(34,211,238,0.4); }
.interest-card h3 { font-size: 16.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.interest-card h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex-shrink: 0; }
.interest-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interest-card li {
  font-size: 12px; font-family: var(--font-mono); color: var(--dim); padding: 5px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.project-card {
  position: relative; padding: 28px; border-radius: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d; will-change: transform;
}
.project-card:hover { box-shadow: 0 18px 50px rgba(10,15,35,0.5); }
.project-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(34,211,238,0.10), transparent 70%);
}
.project-card:hover::before { opacity: 1; }
.project-index { font-family: var(--font-mono); font-size: 11px; color: var(--dimmer); letter-spacing: 0.08em; }
.project-card h3 { font-size: 19px; margin: 8px 0 6px; }
.project-label {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.label-real { background: rgba(52,211,153,0.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.3); }
.label-learning { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.label-concept { background: rgba(167,139,250,0.12); color: #d9c9ff; border: 1px solid rgba(167,139,250,0.3); }
.label-ai { background: rgba(232,180,100,0.12); color: var(--gold); border: 1px solid rgba(232,180,100,0.3); }
.project-tech { font-family: var(--font-mono); font-size: 11.5px; color: var(--cyan); margin-bottom: 10px; }
.project-desc { font-size: 14px; margin-bottom: 14px; }
.project-features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project-features li {
  font-size: 11.5px; font-family: var(--font-mono); color: var(--dim); padding: 4px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.project-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: var(--dimmer); }

/* =========================================================
   PROBLEM SOLVER
   ========================================================= */
.trace-flow { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trace-node {
  font-family: var(--font-mono); font-size: 12.5px; padding: 13px 20px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--white);
}
.trace-node--accent {
  background: linear-gradient(120deg, rgba(59,130,246,0.25), rgba(124,58,237,0.25));
  border-color: rgba(34,211,238,0.5); color: var(--cyan); font-weight: 600;
}

/* =========================================================
   INFRASTRUCTURE
   ========================================================= */
.infra-diagram { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; }
.infra-layer {
  font-family: var(--font-mono); font-size: 13px; padding: 14px 20px; border-radius: 12px; text-align: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border); cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.infra-layer:hover, .infra-layer:focus-visible, .infra-layer.active {
  border-color: var(--cyan); background: rgba(34,211,238,0.08); transform: translateX(6px);
}
.infra-tooltip {
  text-align: center; margin: 26px auto 0; max-width: 480px; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); min-height: 40px;
}
.infra-cross { text-align: center; margin-top: 10px; font-size: 12.5px; color: var(--dimmer); letter-spacing: 0.04em; }

/* =========================================================
   JOURNEY (experience list)
   ========================================================= */
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.journey-list li { padding: 26px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.journey-list h3 { font-size: 17px; margin-bottom: 6px; }
.journey-list .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--cyan); margin-bottom: 10px; }

/* =========================================================
   BUSINESS FLOW
   ========================================================= */
.business-flow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.business-flow span {
  font-family: var(--font-mono); font-size: 12.5px; padding: 11px 18px; border-radius: 100px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.business-flow-end { background: linear-gradient(120deg, rgba(59,130,246,0.25), rgba(124,58,237,0.25)); border-color: rgba(34,211,238,0.5); color: var(--cyan); font-weight: 600; }

/* =========================================================
   VISION PATH
   ========================================================= */
.vision-path { position: relative; display: flex; flex-direction: column; gap: 0; max-width: 460px; margin: 0 auto; }
.vision-path::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--cyan));
}
.vision-step { position: relative; padding: 18px 0 18px 40px; }
.vision-step::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--navy-2); border: 2px solid var(--blue);
}
.vision-step--now::before { border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.vision-step--future::before { border-color: var(--gold); box-shadow: 0 0 16px var(--gold); background: var(--gold); }
.vision-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--dimmer); letter-spacing: 0.1em; }
.vision-step h3 { font-size: 16px; margin: 2px 0 0; }
.vision-step--future h3 { color: var(--gold); }

/* =========================================================
   AI IDENTITY
   ========================================================= */
.ai-identity {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px;
}
.ai-identity-visual { position: relative; aspect-ratio: 1; border-radius: 50%; transition: filter 0.6s ease, transform 0.6s ease; }
#aiCoreCanvas { width: 100%; height: 100%; }
.ai-identity.ai-bright .ai-identity-visual { filter: drop-shadow(0 0 40px rgba(124,58,237,0.5)) brightness(1.15); transform: scale(1.04); }
.ai-identity-copy h2 { font-size: clamp(28px, 4vw, 40px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; padding-bottom: 60px; }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact h2 { font-size: clamp(30px, 5vw, 46px); }
.contact-sub { margin: 0 auto 34px; }
.contact-card {
  padding: 28px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  margin-bottom: 30px; display: flex; flex-direction: column; gap: 6px;
}
.contact-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.contact-line { text-decoration: none; color: var(--cyan); font-family: var(--font-mono); font-size: 14px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { text-align: center; padding: 50px var(--edge) 40px; border-top: 1px solid var(--glass-border); }
.footer-name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 10px; }
.footer-line { font-size: 13.5px; color: var(--dim); margin-bottom: 14px; }
.footer-copy { font-size: 12px; color: var(--dimmer); margin: 0; }

/* =========================================================
   TERMINAL EASTER EGG
   ========================================================= */
.terminal-overlay {
  position: fixed; inset: 0; z-index: 998; display: none; align-items: center; justify-content: center;
  background: rgba(2,4,10,0.8); backdrop-filter: blur(6px); padding: 20px;
}
.terminal-overlay.open { display: flex; }
.terminal-box { width: min(480px, 100%); border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-border); background: #060a16; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.terminal-head { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0b1226; }
.terminal-head span:not(#terminalClose) { width: 10px; height: 10px; border-radius: 50%; background: #3a4160; }
.terminal-head span:nth-child(1) { background: #ef4444; }
.terminal-head span:nth-child(2) { background: #eab308; }
.terminal-head span:nth-child(3) { background: #22c55e; }
#terminalClose { margin-left: auto; background: none; border: none; color: var(--dim); font-size: 13px; }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 13px; color: #7ef7c0; min-height: 180px; line-height: 1.8; }

/* =========================================================
   SOUND TOGGLE
   ========================================================= */
.sound-toggle {
  position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .ai-identity { grid-template-columns: 1fr; text-align: center; }
  .ai-identity-visual { max-width: 280px; margin: 0 auto; }
  section { padding: 80px var(--edge); }
}
@media (max-width: 520px) {
  .flow-chain li:not(:last-child)::after { display: none; }
  .about-facts { grid-template-columns: 1fr; }
}

/* =========================================================
   LIGHT THEME OVERRIDE
   ========================================================= */
html[data-theme="light"] {
  --black: #f4f7fc;
  --navy: #eef2fb;
  --navy-2: #e6ecfa;
  --white: #0b1230;
  --dim: #4a5170;
  --dimmer: #7580a0;
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: rgba(60,90,160,0.16);
}
html[data-theme="light"] body { background: var(--black); }
html[data-theme="light"] #bg-gradient {
  background:
    radial-gradient(ellipse 900px 600px at 78% 8%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 15% 30%, rgba(59,130,246,0.10), transparent 60%),
    linear-gradient(180deg, #f4f7fc 0%, #eef2fb 40%, #eaf0fc 100%);
}
html[data-theme="light"] .hero-title { background: linear-gradient(120deg, #0b1230 30%, #21306e 55%, #2952c9 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .nav { background: linear-gradient(180deg, rgba(244,247,252,0.85), rgba(244,247,252,0)); }
html[data-theme="light"] .loader-text, html[data-theme="light"] .terminal-body { color: var(--white); }
html[data-theme="light"] #loader { background: var(--black); }
html[data-theme="light"] .flow-chain li::after,
html[data-theme="light"] .flow-note,
html[data-theme="light"] .footer-line,
html[data-theme="light"] .project-desc { color: var(--dim); }

/* =========================================================
   THEME TOGGLE
   ========================================================= */
.theme-toggle {
  position: fixed; bottom: 22px; right: 76px; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--white);
}

/* =========================================================
   BACK TO TOP (bottom icon dock)
   ========================================================= */
.back-to-top {
  position: fixed; bottom: 22px; right: 130px; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--white);
  opacity: 0; transform: translateY(10px) scale(0.85); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* =========================================================
   ICON FILL EFFECT — colour rises bottom -> top on click
   (applies to theme-toggle, sound-toggle, back-to-top, mail CTA)
   ========================================================= */
.icon-fill-btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.icon-fill-btn::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 0%;
  background: linear-gradient(0deg, var(--blue) 0%, var(--cyan) 55%, var(--violet) 100%);
  z-index: 0; transition: height 0.65s cubic-bezier(.22,.9,.25,1);
  pointer-events: none;
}
.icon-fill-btn > * { position: relative; z-index: 1; transition: color 0.3s ease, filter 0.3s ease; }
.icon-fill-btn.filled::before { height: 115%; }
.icon-fill-btn.filled {
  box-shadow: 0 0 26px rgba(34,211,238,0.6), 0 0 4px rgba(124,58,237,0.5);
  border-color: var(--cyan); transform: translateY(-3px) scale(1.05);
}
.icon-fill-btn.filled > * { color: #04060c; filter: drop-shadow(0 0 4px rgba(255,255,255,0.6)); }

/* nav "Contact" — auto-email CTA */
.nav-links a.nav-email-cta, .nav-mobile a.nav-email-cta {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-email-cta .bolt-icon { width: 12px; height: 12px; flex-shrink: 0; }
.nav-links a.nav-email-cta {
  padding: 6px 14px; border-radius: 100px; color: var(--white);
  background: linear-gradient(120deg, rgba(59,130,246,0.18), rgba(124,58,237,0.18));
  border: 1px solid rgba(34,211,238,0.35); transition: all 0.3s ease;
}
.nav-links a.nav-email-cta:hover { box-shadow: 0 0 18px rgba(34,211,238,0.4); transform: translateY(-1px); }
.nav-links a.nav-email-cta::after { display: none; }

/* =========================================================
   TOAST
   ========================================================= */
.toast-stack { position: fixed; bottom: 78px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--black);
  background: linear-gradient(120deg, var(--cyan), var(--blue)); padding: 10px 16px; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(34,211,238,0.35); opacity: 0; transform: translateY(8px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* =========================================================
   CURIOSITY SECTION
   ========================================================= */
.curiosity { text-align: center; }
.curiosity .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.curiosity-stage { position: relative; width: min(680px, 92vw); height: min(520px, 80vw); margin: 0 auto; }
.curiosity-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 118px; height: 118px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.05em;
  background: radial-gradient(circle at 35% 30%, #3a2f7a, #0a1230 70%);
  border: 1px solid rgba(167,139,250,0.4);
  box-shadow: 0 0 60px rgba(124,58,237,0.4), inset 0 0 30px rgba(34,211,238,0.2);
  z-index: 3; animation: curiosity-pulse 3.2s ease-in-out infinite;
}
@keyframes curiosity-pulse { 0%,100% { box-shadow: 0 0 60px rgba(124,58,237,0.35), inset 0 0 30px rgba(34,211,238,0.18); } 50% { box-shadow: 0 0 90px rgba(124,58,237,0.55), inset 0 0 40px rgba(34,211,238,0.3); } }
.curiosity-word {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; white-space: nowrap; color: var(--white);
  padding: 10px 18px; border-radius: 100px; background: rgba(14,20,44,0.6); border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px); cursor: pointer; animation: curiosity-float 6s ease-in-out infinite;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.curiosity-word:hover, .curiosity-word:focus-visible {
  border-color: var(--violet); box-shadow: 0 0 22px rgba(167,139,250,0.45); transform: translate(-50%, -50%) scale(1.08);
}
@keyframes curiosity-float { 0%,100% { margin-top: 0px; } 50% { margin-top: -10px; } }
.curiosity-line { position: absolute; top: 50%; left: 50%; height: 1px; background: linear-gradient(90deg, rgba(167,139,250,0.4), transparent); transform-origin: left center; z-index: 1; pointer-events: none; }
.curiosity-note { max-width: 480px; margin: 26px auto 0; font-family: var(--font-mono); font-size: 13px; color: var(--violet); min-height: 40px; }

/* =========================================================
   DIGITAL EXPLORER CARD
   ========================================================= */
.explorer-wrap { margin-top: 48px; display: flex; justify-content: center; }
.explorer-card {
  max-width: 620px; width: 100%; padding: 30px; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(59,130,246,0.08), rgba(124,58,237,0.10)), var(--glass-bg);
  border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
}
.explorer-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(34,211,238,0.05) 0 1px, transparent 1px 34px),
                     repeating-linear-gradient(0deg, rgba(34,211,238,0.05) 0 1px, transparent 1px 34px);
}
.explorer-tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--gold); border: 1px solid rgba(232,180,100,0.35); background: rgba(232,180,100,0.1); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; position: relative; }
.explorer-card h3 { font-size: 19px; margin-bottom: 10px; position: relative; }
.explorer-card p { position: relative; margin-bottom: 0; }
.explorer-menu { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.explorer-menu span { font-family: var(--font-mono); font-size: 11px; color: var(--dim); padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }

/* =========================================================
   AI BUSINESS FLOW (enhanced)
   ========================================================= */
.business-flow { position: relative; }
.business-flow span { position: relative; }
.business-flow-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); top: 50%; left: -20px; opacity: 0; }

/* =========================================================
   PROJECT DETAIL MODAL
   ========================================================= */
.project-modal-overlay {
  position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  background: rgba(2,4,10,0.82); backdrop-filter: blur(8px); padding: 24px;
  opacity: 0; transition: opacity 0.35s ease;
}
.project-modal-overlay.open { display: flex; }
.project-modal-overlay.show { opacity: 1; }
.project-modal {
  width: min(620px, 100%); max-height: 84vh; overflow-y: auto; border-radius: 22px; padding: 36px;
  background: linear-gradient(160deg, rgba(14,20,44,0.9), rgba(8,12,28,0.94));
  border: 1px solid var(--glass-border); box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  transform: scale(0.92) translateY(16px); transition: transform 0.4s cubic-bezier(.2,.9,.3,1.2);
}
.project-modal-overlay.show .project-modal { transform: scale(1) translateY(0); }
.project-modal-close { position: sticky; top: 0; float: right; background: none; border: none; color: var(--dim); font-size: 20px; margin-bottom: -10px; }
.project-modal h3 { font-size: 24px; margin-top: 8px; }
.project-modal .project-desc { font-size: 15px; }
.project-modal-back { margin-top: 26px; }

/* =========================================================
   AI BRAIN PANEL
   ========================================================= */
.ai-brain-hit { position: fixed; z-index: 55; cursor: pointer; }
.ai-panel-overlay {
  position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  background: rgba(2,4,10,0.82); backdrop-filter: blur(8px); padding: 24px;
  opacity: 0; transition: opacity 0.3s ease;
}
.ai-panel-overlay.open { display: flex; }
.ai-panel-overlay.show { opacity: 1; }
.ai-panel {
  width: min(420px, 100%); padding: 30px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(14,20,44,0.92), rgba(8,12,28,0.96));
  border: 1px solid rgba(124,58,237,0.35); box-shadow: 0 0 80px rgba(124,58,237,0.25);
  transform: scale(0.9); transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2);
}
.ai-panel-overlay.show .ai-panel { transform: scale(1); }
.ai-panel .eyebrow { justify-content: center; text-align: center; }
.ai-panel-close { margin-top: 18px; }

/* =========================================================
   ABOUT PHOTO FRAME
   ========================================================= */
.about-photo-wrap { display: flex; justify-content: center; margin-top: 26px; }
.about-photo-frame {
  position: relative; width: 220px; height: 220px; border-radius: 50%; padding: 6px;
  background: conic-gradient(from 0deg, var(--blue), var(--cyan), var(--purple), var(--blue));
  animation: frame-spin 14s linear infinite;
}
@keyframes frame-spin { to { transform: rotate(360deg); } }
.about-photo-frame img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 4px solid var(--black); animation: frame-spin-reverse 14s linear infinite;
}
@keyframes frame-spin-reverse { to { transform: rotate(-360deg); } }
.about-photo-orbit-tag {
  position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--white);
  background: rgba(14,20,44,0.75); border: 1px solid var(--glass-border); padding: 5px 10px; border-radius: 100px;
  animation: frame-spin-reverse 14s linear infinite;
}

/* =========================================================
   HERO — TWO COLUMN + PHOTO SHOWCASE
   ========================================================= */
.hero-grid {
  display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 40px;
  max-width: 1180px; margin: 0 auto; padding: 0 var(--edge); width: 100%;
}
.hero .hero-content { text-align: center; padding: 0; max-width: 720px; }
.hero .eyebrow { text-align: center; }

.hero-photo-stage { position: relative; width: min(380px, 80vw); height: min(380px, 80vw); margin: 0 auto; transition: transform 0.3s ease-out; }
.hero-photo-glow {
  position: absolute; inset: -20%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.28), rgba(124,58,237,0.14) 45%, transparent 72%);
  filter: blur(6px); animation: hero-glow-pulse 4.5s ease-in-out infinite;
}
@keyframes hero-glow-pulse { 0%,100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.hero-photo-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(120,150,220,0.25); }
.hero-photo-ring--1 { inset: -14px; border-style: dashed; animation: orbit-spin 50s linear infinite; }
.hero-photo-ring--2 { inset: -30px; border-color: rgba(34,211,238,0.15); animation: orbit-spin 80s linear infinite reverse; }
.hero-photo-frame {
  position: relative; width: 100%; height: 100%; border-radius: 50%; padding: 5px; z-index: 2;
  background: conic-gradient(from 0deg, var(--blue), var(--cyan), var(--purple), var(--blue));
  box-shadow: 0 0 60px rgba(59,130,246,0.35), 0 0 120px rgba(124,58,237,0.18);
}
.hero-photo-frame img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 5px solid var(--black);
}
.hero-tech-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--white); white-space: nowrap;
  padding: 6px 12px; border-radius: 100px; background: rgba(14,20,44,0.65); border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px); z-index: 3; animation: curiosity-float 7s ease-in-out infinite;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .hero-content { text-align: center; margin: 0 auto; }
  .hero .eyebrow { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo-stage { order: -1; margin-bottom: 20px; }
}

/* =========================================================
   BACKGROUND ATMOSPHERE — floating tech objects
   ========================================================= */
.bg-atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-float {
  position: absolute; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: rgba(180,205,255,0.5);
  background: rgba(10,16,36,0.35); border: 1px solid rgba(120,150,220,0.14); border-radius: 10px;
  padding: 9px 13px; backdrop-filter: blur(3px); opacity: 0.55; white-space: pre; will-change: transform;
}
.bg-float.chart { color: rgba(160,220,255,0.55); }
.bg-float.symbol { font-size: 22px; padding: 6px 10px; color: rgba(120,150,220,0.35); border: none; background: none; backdrop-filter: none; }
@keyframes bg-drift-a { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(14px,-22px) rotate(2deg); } }
@keyframes bg-drift-b { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-18px,16px) rotate(-2deg); } }
@keyframes bg-drift-c { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,20px); } }

/* =========================================================
   LAPTOP / SOFTWARE WORKSTATION SECTION
   ========================================================= */
.workstation { text-align: center; }
.workstation .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.laptop-stage { position: relative; width: min(560px, 92vw); margin: 40px auto 0; perspective: 1400px; }
.laptop-3d {
  position: relative; margin: 0 auto; width: min(420px, 80vw); transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-10deg); animation: laptop-float 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}
@keyframes laptop-float { 0%,100% { transform: rotateX(8deg) rotateY(-10deg) translateY(0); } 50% { transform: rotateX(6deg) rotateY(-8deg) translateY(-10px); } }
.laptop-screen {
  width: 100%; aspect-ratio: 16/10.5; border-radius: 12px 12px 4px 4px; padding: 12px;
  background: linear-gradient(160deg, #0c1330, #060a1c); border: 2px solid rgba(120,150,220,0.35);
  box-shadow: 0 0 60px rgba(59,130,246,0.3), inset 0 0 30px rgba(34,211,238,0.08);
}
.laptop-screen-inner { width: 100%; height: 100%; border-radius: 6px; background: #04060f; border: 1px solid rgba(34,211,238,0.15); padding: 14px; text-align: left; font-family: var(--font-mono); font-size: 11px; color: #7ef7c0; overflow: hidden; }
.laptop-screen-inner .line { opacity: 0.85; margin-bottom: 5px; white-space: nowrap; }
.laptop-screen-inner .dim { color: var(--dim); }
.laptop-base {
  width: 112%; margin-left: -6%; height: 14px; margin-top: -2px; border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #141b3d, #0a0f26); border: 1px solid rgba(120,150,220,0.25); border-top: none;
  transform: rotateX(55deg); transform-origin: top;
}
.laptop-orbit-label {
  position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--white);
  padding: 7px 14px; border-radius: 100px; background: rgba(14,20,44,0.7); border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px); animation: curiosity-float 6.5s ease-in-out infinite;
}
.laptop-preview-tag { display: inline-block; margin-top: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dimmer); }

/* =========================================================
   PROJECT BROWSER — filters, search, counts
   ========================================================= */
.project-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filter-btn {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; padding: 8px 15px; border-radius: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); color: var(--dim); transition: all 0.25s ease;
}
.project-filter-btn:hover { color: var(--white); border-color: rgba(34,211,238,0.4); }
.project-filter-btn.active { color: var(--black); background: linear-gradient(120deg, var(--cyan), var(--blue)); border-color: transparent; font-weight: 600; }
.project-search { position: relative; }
.project-search input {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--white); background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: 100px; padding: 9px 16px 9px 34px; min-width: 200px;
  outline: none; transition: border-color 0.25s ease;
}
.project-search input:focus { border-color: var(--cyan); }
.project-search::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dimmer); font-size: 14px; }
.project-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--dimmer); margin-bottom: 20px; }
.project-count b { color: var(--cyan); font-weight: 600; }
.project-card.filtered-out { display: none; }
.project-empty { text-align: center; padding: 40px 20px; font-family: var(--font-mono); font-size: 13px; color: var(--dimmer); display: none; }
.project-empty.show { display: block; }
.project-thumb {
  height: 130px; border-radius: 12px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(124,58,237,0.14));
  border: 1px solid rgba(120,150,220,0.18); display: flex; align-items: center; justify-content: center;
}
.project-thumb::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, rgba(34,211,238,0.08) 0 1px, transparent 1px 22px),
                     repeating-linear-gradient(0deg, rgba(34,211,238,0.08) 0 1px, transparent 1px 22px);
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb::before { transform: scale(1.06); }
.project-thumb span { position: relative; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.project-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-file-chip {
  display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.project-file-chip .ficon { font-size: 12px; }
.project-modal-thumb { height: 200px; border-radius: 14px; margin: 16px 0; }

/* =========================================================
   AI PANEL — realistic system readout
   ========================================================= */
.ai-panel { text-align: left; }
.ai-panel .eyebrow { text-align: left; justify-content: flex-start; }
.ai-panel-readout {
  margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: rgba(4,8,20,0.7);
  border: 1px solid rgba(124,58,237,0.25); font-family: var(--font-mono); font-size: 12px; color: #a9f7d0;
  min-height: 118px;
}
.ai-panel-readout .row { display: flex; justify-content: space-between; padding: 4px 0; opacity: 0; animation: ai-line-in 0.4s ease forwards; }
.ai-panel-readout .row span:first-child { color: var(--dim); }
@keyframes ai-line-in { to { opacity: 1; } }
.ai-panel-readout .cursor-blink { display: inline-block; width: 6px; height: 12px; background: var(--cyan); margin-left: 2px; animation: cue-move 1s steps(1) infinite; }

/* =========================================================
   VISION / ROADMAP — upgraded timeline
   ========================================================= */
.vision-path { max-width: 620px; }
.vision-step {
  position: relative; padding: 22px 24px 22px 54px; border-radius: 16px; margin-bottom: 4px;
  background: transparent; transition: background 0.3s ease;
}
.vision-step:hover { background: rgba(34,211,238,0.04); }
.vision-path::before { left: 13px; }
.vision-step::before {
  left: 8px; top: 26px; width: 13px; height: 13px; z-index: 2;
  box-shadow: 0 0 0 4px var(--black);
}
.vision-step--now::before { animation: vision-pulse-ring 2.4s ease-in-out infinite; }
@keyframes vision-pulse-ring { 0%,100% { box-shadow: 0 0 0 4px var(--black), 0 0 0 0 rgba(34,211,238,0.5); } 50% { box-shadow: 0 0 0 4px var(--black), 0 0 0 8px rgba(34,211,238,0); } }
.vision-step-icon {
  position: absolute; left: 54px; top: -6px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em;
  color: var(--dimmer);
}
.vision-progress-wrap { max-width: 620px; margin: 0 auto 36px; }
.vision-progress-bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.vision-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 4px; transition: width 1.2s ease; }
.vision-progress-label { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--dimmer); letter-spacing: 0.08em; }

/* =========================================================
   MY WORKSPACE — live project upload & showcase
   ========================================================= */
.workspace-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 30px;
  border-radius: 14px; background: rgba(232,180,100,0.07); border: 1px solid rgba(232,180,100,0.25);
  font-size: 12.5px; color: var(--dim);
}
.workspace-banner .wb-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.workspace-banner b { color: var(--gold); }
.workspace-banner a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.workspace-toolbar {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-radius: 18px; margin-bottom: 22px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
}
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ws-owner-btn { font-size: 12.5px; padding: 10px 16px; }
.ws-owner-btn.is-owner { border-color: rgba(52,211,153,0.4); color: #6ee7b7; }
.ws-storage { min-width: 220px; flex: 1 1 240px; max-width: 320px; }
.ws-storage-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.ws-storage-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 4px; transition: width 0.5s ease, background 0.5s ease; }
.ws-storage-fill.warn { background: linear-gradient(90deg, var(--gold), #f59e0b); }
.ws-storage-fill.full { background: linear-gradient(90deg, #f87171, #ef4444); }
.ws-storage-label { margin: 7px 0 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--dimmer); letter-spacing: 0.04em; }

.ws-dropzone {
  border: 1.5px dashed var(--glass-border); border-radius: 18px; padding: 34px 20px; text-align: center;
  margin-bottom: 22px; transition: border-color 0.25s ease, background 0.25s ease; cursor: pointer;
}
.ws-dropzone:hover, .ws-dropzone.dragover { border-color: var(--cyan); background: rgba(34,211,238,0.05); }
.ws-dropzone .wsd-icon { font-size: 26px; margin-bottom: 10px; }
.ws-dropzone p { margin: 0; font-size: 13px; }
.ws-dropzone .wsd-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--dimmer); margin-top: 6px; }

.ws-toolbar-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ws-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-filter-btn {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; padding: 8px 15px; border-radius: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); color: var(--dim); transition: all 0.25s ease;
}
.ws-filter-btn:hover { color: var(--white); border-color: rgba(34,211,238,0.4); }
.ws-filter-btn.active { color: var(--black); background: linear-gradient(120deg, var(--cyan), var(--blue)); border-color: transparent; font-weight: 600; }
.ws-search input {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--white); background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: 100px; padding: 9px 16px; min-width: 200px; outline: none;
  transition: border-color 0.25s ease;
}
.ws-search input:focus { border-color: var(--cyan); }

.ws-empty { text-align: center; padding: 60px 20px; border-radius: 18px; background: rgba(255,255,255,0.015); border: 1px dashed var(--glass-border); }
.ws-empty.hide { display: none; }
.ws-empty-icon { font-size: 30px; margin-bottom: 12px; opacity: 0.7; }
.ws-empty h3 { font-size: 17px; margin-bottom: 8px; }
.ws-empty p { max-width: 44ch; margin: 0 auto; font-size: 13px; }

.ws-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ws-grid.hide { display: none; }
.ws-card {
  position: relative; border-radius: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ws-card:hover { box-shadow: 0 18px 50px rgba(10,15,35,0.5); transform: translateY(-3px); }
.ws-card.filtered-out { display: none; }
.ws-preview {
  height: 168px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(124,58,237,0.14));
  border-bottom: 1px solid var(--glass-border);
}
.ws-preview img, .ws-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-preview iframe { width: 100%; height: 100%; border: 0; background: #fff; pointer-events: none; }
.ws-preview .ws-icon-fallback { font-size: 34px; opacity: 0.85; }
.ws-preview .ws-type-badge {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 100px; background: rgba(4,6,12,0.65); border: 1px solid rgba(255,255,255,0.15); color: var(--white);
  backdrop-filter: blur(4px);
}
.ws-preview .ws-xlsx-table { width: 100%; height: 100%; font-family: var(--font-mono); font-size: 9px; color: #cfe0ff; padding: 8px; overflow: hidden; }
.ws-preview .ws-xlsx-table table { width: 100%; border-collapse: collapse; }
.ws-preview .ws-xlsx-table td { border: 1px solid rgba(255,255,255,0.12); padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.ws-body { padding: 22px 24px 24px; }
.ws-body h3 { font-size: 17px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.ws-edit-title { background: none; border: none; color: var(--dimmer); font-size: 12px; padding: 2px; }
.ws-edit-title:hover { color: var(--cyan); }
.ws-meta-row { font-family: var(--font-mono); font-size: 10.5px; color: var(--dimmer); margin-bottom: 10px; letter-spacing: 0.03em; }
.ws-desc { font-size: 13px; margin-bottom: 12px; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ws-tag {
  font-size: 10.5px; font-family: var(--font-mono); color: var(--dim); padding: 4px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.ws-tag-add {
  font-size: 10.5px; font-family: var(--font-mono); color: var(--dimmer); padding: 4px 9px; border-radius: 6px;
  background: transparent; border: 1px dashed var(--glass-border); cursor: pointer;
}
.ws-tag-add:hover { color: var(--cyan); border-color: var(--cyan); }
.ws-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ws-file-chip {
  display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.ws-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-actions-row .btn { padding: 8px 14px; font-size: 12px; }
.ws-btn-danger { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.3); color: #fca5a5; }
.ws-btn-danger:hover { background: rgba(248,113,113,0.16); border-color: #f87171; }
.ws-owner-only { display: none; }
body.ws-owner-mode .ws-owner-only { display: inline-flex; }
.ws-add-only { display: none; }
body.ws-owner-mode .ws-add-only { display: block; }
body.ws-owner-mode #wsAddBtn { display: inline-flex; }

.ws-modal-preview { height: 260px; border-radius: 14px; margin: 16px 0; }
.ws-modal-preview img, .ws-modal-preview video { width: 100%; height: 100%; object-fit: contain; background: #04060c; border-radius: 14px; }
.ws-modal-preview iframe { width: 100%; height: 100%; border-radius: 14px; border: 0; background: #fff; }

@media (max-width: 640px) {
  .workspace-toolbar { flex-direction: column; align-items: stretch; }
  .ws-storage { max-width: none; }
}


/* =========================================================
   CINEMATIC SCROLL SCENES
   ========================================================= */
#scene-surface {
  background-attachment: fixed !important;
  image-rendering: high-quality;
}
#scene-space {
  background-attachment: fixed !important;
}
#scene-universe {
  background: radial-gradient(ellipse 120% 100% at 50% 50%, #050012 0%, #020008 60%, #000 100%);
}

/* Digital scrolling grid background — gives pages that "digital universe" feel */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background-image:
    linear-gradient(rgba(34,211,238,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-scroll 18s linear infinite;
  opacity: 0.6;
}
@keyframes grid-scroll {
  0%   { background-position: 0 0,   0 0; }
  100% { background-position: 0 60px, 60px 0; }
}

/* Extra country card column */
#geo-right-col .geo-card {
  margin: 0;
}

/* Universe scene headline glow */
#universe-headline {
  text-shadow: 0 0 80px rgba(34,211,238,0.3), 0 0 160px rgba(124,58,237,0.2);
}

/* scene-surface: parallax zoom feel */
#scene-surface {
  transform-origin: center center;
}


/* ---------- country name labels (zoom-dependent) ---------- */
#country-labels{position:fixed;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.c-lbl{position:absolute;left:0;top:0;opacity:0;white-space:nowrap;will-change:transform,opacity;
  font:600 10px/1 var(--font-mono,ui-monospace,monospace);letter-spacing:.26em;text-transform:uppercase;
  color:rgba(236,246,255,.96);text-shadow:0 0 8px rgba(0,10,30,.95),0 1px 2px rgba(0,0,0,.85)}
.c-lbl::before{content:"";display:block;width:3px;height:3px;margin:0 auto 6px;border-radius:50%;background:#8fdcff;box-shadow:0 0 6px #8fdcff}
.c-lbl.t1{font-size:12px}.c-lbl.t3{font-size:9px;letter-spacing:.2em;color:rgba(214,232,255,.88)}
@media (max-width:700px){.c-lbl{font-size:8px}.c-lbl.t1{font-size:9.5px}.c-lbl.t3{display:none}}

/* Make bg-canvas transition smooth */
#bg-canvas {
  transition: opacity 0.8s ease;
}
