/* ============ 1mxtushar.online — 3D portfolio ============ */
:root {
  --bg: #050816;
  --bg-2: #090d20;
  --yellow: #ffd60a;
  --yellow-soft: #ffdf3d;
  --violet: #915eff;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --ink: #f5f8fc;
  --muted: #a3b3cc;
  --dim: #64748f;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-2: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: #0a0a0a; }

img, svg { display: block; }
img, video, canvas { max-width: 100%; }
a { color: inherit; }

.container { width: min(1160px, 92%); margin: 0 auto; }
section { position: relative; padding: 110px 0; }

/* ---------- Ambient 3D layers ---------- */
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); } 75% { transform: translate(-1%, 2%); } 100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 5, 0.55) 100%);
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; background: var(--yellow); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(255, 214, 10, 0.45);
  transform: translate(-50%, -50%); transition: width 0.25s, height 0.25s, border-color 0.25s;
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 30px; border-radius: 999px; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-solid {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-soft));
  color: #0d0d0d; box-shadow: 0 8px 32px rgba(255, 214, 10, 0.28);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 214, 10, 0.4); }
.btn-glass {
  background: var(--glass-bg); border-color: var(--glass-border); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-glass:hover { transform: translateY(-3px); background: var(--glass-bg-2); border-color: rgba(255, 214, 10, 0.4); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- Nav ---------- */
.site-nav { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; }
.nav-pill {
  width: min(1160px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 22px; border-radius: 999px;
  background: rgba(9, 13, 32, 0.62); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.brand small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--dim); letter-spacing: 0.08em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; color: #0d0d0d;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-soft));
  box-shadow: 0 4px 18px rgba(255, 214, 10, 0.4);
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none; object-fit: cover;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-item {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  padding: 10px 15px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center 42%, transparent 30%, rgba(5, 8, 22, 0.55) 78%),
    linear-gradient(to bottom, rgba(5, 8, 22, 0.62), rgba(5, 8, 22, 0.25) 38%, rgba(5, 8, 22, 0.35) 62%, rgba(5, 8, 22, 0.88));
}
/* Flipped black-hole spilling from the top edge */
.hero-hole {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: clamp(240px, 46vh, 480px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 42%, transparent 97%);
  mask-image: linear-gradient(to bottom, black 42%, transparent 97%);
}
.hero-hole video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  transform: scaleY(-1); opacity: 0.95;
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 220px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-kicker {
  display: inline-block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.display-xl {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.2rem); line-height: 1.02; letter-spacing: -0.02em;
  text-shadow: 0 6px 60px rgba(0, 0, 0, 0.6);
}
.display-xl .accent {
  background: linear-gradient(120deg, var(--yellow) 20%, var(--yellow-soft) 60%, #ff9d0a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 214, 10, 0.35));
}
.hero-role { margin-top: 20px; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--muted); font-weight: 500; }
.hero-role b { color: var(--ink); font-weight: 700; }
.hero-tagline { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 1.05rem; }
.hero-tagline strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.stat-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px;
  background: rgba(9, 13, 32, 0.55); border: 1px solid var(--glass-border); border-radius: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 0.86rem; color: var(--muted);
}
.stat-chip b {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--yellow);
  background: rgba(255, 214, 10, 0.1); border: 1px solid rgba(255, 214, 10, 0.25);
  padding: 6px 12px; border-radius: 10px;
}
.scroll-hint { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--dim); border-radius: 14px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--yellow); border-radius: 4px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { top: 8px; opacity: 1; } 60% { top: 20px; opacity: 0; } 100% { top: 8px; opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(9, 13, 32, 0.5); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em; color: var(--muted); padding-right: 12px; white-space: nowrap; }
.marquee-track i { color: var(--yellow); font-style: normal; margin: 0 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--yellow); vertical-align: middle; margin-right: 12px; border-radius: 2px; }
.section-head h2, .about-copy h2, .contact-panel h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin-bottom: 16px;
}
h2 .dot { color: var(--yellow); }
.section-head p, .about-copy p, .contact-panel .lede { color: var(--muted); font-size: 1.04rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.svc-card {
  border-radius: var(--r-lg); padding: 1.5px;
  background: linear-gradient(150deg, rgba(255, 214, 10, 0.55), rgba(145, 94, 255, 0.35) 45%, rgba(255, 255, 255, 0.06));
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d; will-change: transform;
}
.svc-card:hover { box-shadow: 0 24px 70px rgba(145, 94, 255, 0.22); }
.svc-inner {
  background: rgba(8, 11, 26, 0.94); border-radius: calc(var(--r-lg) - 1.5px);
  padding: 30px 26px; height: 100%;
}
.svc-canvas { width: 84px; height: 84px; margin-bottom: 20px; }
.svc-inner h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.svc-inner p { color: var(--muted); font-size: 0.94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: 0.78rem; font-weight: 600; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22); padding: 4px 12px; border-radius: 999px; }

/* ---------- Content protection ---------- */
html { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; -moz-user-select: text; user-select: text; }

/* ---------- Work / demos ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.demo-card {
  border-radius: var(--r-lg); overflow: hidden; padding: 1.5px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d; will-change: transform;
}
.demo-card:hover { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 214, 10, 0.25); }
.demo-thumb { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; border-radius: calc(var(--r-lg) - 1.5px) calc(var(--r-lg) - 1.5px) 0 0; background: linear-gradient(135deg, #1a1440, #3b1d5e 70%, #6b2f8f); }
.demo-thumb .initial, .demo-thumb .thumb-initial { font-family: var(--font-display); font-size: 4.4rem; font-weight: 700; color: rgba(255, 255, 255, 0.28); }
.demo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.demo-thumb.t0 { background: linear-gradient(135deg, #7c4a21, #c98a2d 55%, #f2c14e); }
.demo-thumb.t1 { background: linear-gradient(135deg, #101010, #3a2f12 60%, #c1941f); }
.demo-thumb.t2 { background: linear-gradient(135deg, #0b3b3b, #14707a 60%, #3ec1c9); }
.demo-thumb.t3 { background: linear-gradient(135deg, #2b0d0d, #7a1a1a 60%, #e04a35); }
.demo-thumb.t4 { background: linear-gradient(135deg, #3b1d5e, #7a2f8f 60%, #e06ba7); }
.demo-thumb.t5 { background: linear-gradient(135deg, #0d2b4e, #1a5a8f 60%, #3ea9c9); }
.demos-more-wrap { text-align: center; margin-top: 34px; }
.demo-count { color: var(--yellow); font-weight: 700; }
.demos-all-section { padding: 20px 0 90px; }
.demos-toolbar { max-width: 520px; margin: 34px auto 0; }
.demos-toolbar input {
  width: 100%; padding: 15px 22px; font-size: 1rem; font-family: var(--font-body);
  color: #fff; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.demos-toolbar input::placeholder { color: var(--muted); }
.demos-toolbar input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.15); }
.niche-pills { display: flex; gap: 10px; overflow-x: auto; padding: 22px 4px 6px; scrollbar-width: thin; }
.niche-pill {
  flex: 0 0 auto; padding: 9px 18px; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; cursor: pointer;
  transition: all 0.22s var(--ease);
}
.niche-pill:hover { color: #fff; border-color: rgba(255, 214, 10, 0.5); }
.niche-pill.active { color: #0a0a12; background: var(--yellow); border-color: var(--yellow); }
.demos-result-line { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.demos-result-line b { color: var(--yellow); }
.cat-pill {
  position: absolute; top: 14px; left: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.thumb-cafe   { background: linear-gradient(135deg, #7c4a21, #c98a2d 55%, #f2c14e); }
.thumb-salon  { background: linear-gradient(135deg, #101010, #3a2f12 60%, #c1941f); }
.thumb-clinic { background: linear-gradient(135deg, #0b3b3b, #14707a 60%, #3ec1c9); }
.thumb-gym    { background: linear-gradient(135deg, #2b0d0d, #7a1a1a 60%, #e04a35); }
.thumb-zoca   { background: linear-gradient(135deg, #3b1d5e, #7a2f8f 60%, #e06ba7); }
.demo-body { padding: 24px 24px 26px; background: rgba(8, 11, 26, 0.94); border-radius: 0 0 calc(var(--r-lg) - 1.5px) calc(var(--r-lg) - 1.5px); }
.demo-body h3 { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; margin-bottom: 8px; }
.demo-body .loc { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 0.84rem; margin-bottom: 10px; }
.demo-body .loc svg { width: 15px; height: 15px; stroke: var(--yellow); }
.demo-body .desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.work-note { text-align: center; margin-top: 40px; color: var(--muted); }
.work-note a { color: var(--yellow); font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-copy p { margin-bottom: 16px; }
.about-copy strong { color: var(--ink); }
.stack-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.stack-chips li { font-size: 0.84rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; border: 1px solid; background: rgba(255, 255, 255, 0.03); }
.stack-chips .c-yellow { color: var(--yellow); border-color: rgba(255, 214, 10, 0.3); }
.stack-chips .c-cyan   { color: var(--cyan); border-color: rgba(34, 211, 238, 0.3); }
.stack-chips .c-pink   { color: var(--pink); border-color: rgba(244, 114, 182, 0.3); }
.stack-chips .c-violet { color: var(--violet); border-color: rgba(145, 94, 255, 0.35); }
.mono-card {
  border-radius: var(--r-lg); padding: 1.5px; text-align: center;
  background: linear-gradient(150deg, rgba(255, 214, 10, 0.6), rgba(145, 94, 255, 0.4), rgba(255, 255, 255, 0.06));
  transform-style: preserve-3d; will-change: transform; transition: transform 0.35s var(--ease);
}
.mono-card .mono {
  display: block; font-family: var(--font-display); font-size: 5rem; font-weight: 700;
  padding: 54px 30px 8px; color: var(--ink);
  background: linear-gradient(135deg, rgba(8,11,26,0.96), rgba(20,16,40,0.96));
  border-radius: calc(var(--r-lg) - 1.5px) calc(var(--r-lg) - 1.5px) 0 0;
}
.mono-card .handle { display: block; color: var(--yellow); font-weight: 600; padding-bottom: 6px; background: rgba(13, 14, 30, 0.96); }
.mono-card .role { display: block; color: var(--dim); font-size: 0.85rem; padding-bottom: 34px; background: rgba(13, 14, 30, 0.96); border-radius: 0 0 calc(var(--r-lg) - 1.5px) calc(var(--r-lg) - 1.5px); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
  border-radius: var(--r-lg); padding: 1.5px; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d; will-change: transform;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(255, 214, 10, 0.65), rgba(145, 94, 255, 0.4), rgba(255, 214, 10, 0.12));
  box-shadow: 0 20px 70px rgba(255, 214, 10, 0.14);
}
.price-inner { background: rgba(8, 11, 26, 0.95); border-radius: calc(var(--r-lg) - 1.5px); padding: 36px 30px; height: 100%; display: flex; flex-direction: column; }
.popular-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--yellow-soft)); color: #0d0d0d;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 20px rgba(255, 214, 10, 0.4);
}
.price-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.price { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; margin: 12px 0 4px; }
.price small { font-size: 1.4rem; color: var(--yellow); vertical-align: top; }
.price-sub { color: var(--dim); font-size: 0.9rem; margin-bottom: 24px; }
.price-inner ul { list-style: none; margin-bottom: 30px; flex: 1; }
.price-inner li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; color: var(--muted); font-size: 0.94rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.price-inner li svg { width: 18px; height: 18px; stroke: var(--yellow); flex: none; margin-top: 3px; }
.price-inner .btn { justify-content: center; }
.pricing-note { text-align: center; margin-top: 36px; color: var(--dim); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-panel .lede { margin-bottom: 30px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.contact-meta { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 0.94rem; margin-bottom: 26px; }
.contact-meta .fine { color: var(--dim); font-size: 0.84rem; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border); transition: 0.25s;
}
.social-row a svg { width: 20px; height: 20px; fill: var(--muted); transition: 0.25s; }
.social-row a:hover { border-color: var(--yellow); transform: translateY(-3px); }
.social-row a:hover svg { fill: var(--yellow); }
.earth-wrap { position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.earth-wrap::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 94, 255, 0.22), rgba(255, 214, 10, 0.08) 55%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
#earth-canvas { width: min(420px, 100%); height: 420px; position: relative; z-index: 1; }
.earth-caption { color: var(--dim); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--glass-border); padding: 34px 0; background: rgba(5, 8, 22, 0.7); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 0.88rem; }
.footer-inner .craft b { color: var(--yellow); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Cursive notes ---------- */
.cursive-note {
  font-family: "Caveat", cursive; font-size: 1.45rem; font-weight: 600;
  color: var(--yellow); margin-top: 16px; transform: rotate(-1.5deg);
  text-shadow: 0 2px 18px rgba(255, 214, 10, 0.35);
}
.cursive-note.center { text-align: center; }

/* ---------- Nav glow edge ---------- */
.nav-pill {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 214, 10, 0.07),
    inset 0 0 22px rgba(145, 94, 255, 0.06);
}

/* ---------- Tech constellation ---------- */
.about-visual { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.constellation {
  position: relative; width: min(520px, 92vw); aspect-ratio: 1;
}
.constellation .core {
  position: absolute; top: 50%; left: 50%; width: 88px; height: 88px;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #0d0d0d;
  background: radial-gradient(circle at 35% 32%, #ffdf3d, #ffd60a 55%, #c78d02);
  box-shadow: 0 0 46px rgba(255, 214, 10, 0.5), 0 0 110px rgba(145, 94, 255, 0.28);
  z-index: 2;
}
.orbit {
  position: absolute; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 50%;
  animation: orbit-spin var(--dur, 30s) linear infinite;
}
.orbit.o1 { inset: 2%; }
.orbit.o2 { inset: 14%; animation-direction: reverse; }
.orbit.o3 { inset: 26%; }
.orbit.o4 { inset: 38%; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.sat-pos { position: absolute; inset: 0; transform: rotate(var(--off, 0deg)); }
.sat {
  position: absolute; top: -17px; left: 50%;
  font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  border: 1px solid; background: rgba(8, 11, 26, 0.94); white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  animation: sat-upright var(--dur, 30s) linear infinite;
}
.orbit.o2 .sat { animation-direction: reverse; }
.orbit.o4 .sat { animation-direction: reverse; }
@keyframes sat-upright {
  from { transform: rotate(calc(var(--off, 0deg) * -1)); }
  to { transform: rotate(calc(var(--off, 0deg) * -1 - 360deg)); }
}
.sat.c-yellow { color: var(--yellow); border-color: rgba(255, 214, 10, 0.35); }
.sat.c-cyan   { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); }
.sat.c-pink   { color: var(--pink); border-color: rgba(244, 114, 182, 0.35); }
.sat.c-violet { color: var(--violet); border-color: rgba(145, 94, 255, 0.4); }

/* ---------- Skills page ---------- */
.nav-item.active { color: var(--yellow); background: rgba(255, 214, 10, 0.08); }
.skills-hero { padding: 168px 0 30px; text-align: center; }
.skills-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin: 14px 0 18px; }
.skills-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.skills-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.skills-stats .stat {
  min-width: 130px; padding: 18px 22px; border-radius: 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.skills-stats .stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--yellow); }
.skills-stats .stat span { font-size: 0.8rem; color: var(--muted); }
.skills-cats-section { padding: 30px 0 90px; }
.skill-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 26px; }
.skill-cat {
  border-radius: 22px; padding: 26px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid transparent;
  transition: transform 0.3s, border-color 0.3s;
}
.skill-cat:hover { transform: translateY(-4px); }
.skill-cat:nth-child(4n+1):hover { border-top-color: var(--yellow); }
.skill-cat:nth-child(4n+2):hover { border-top-color: var(--cyan); }
.skill-cat:nth-child(4n+3):hover { border-top-color: var(--pink); }
.skill-cat:nth-child(4n+4):hover { border-top-color: var(--violet); }
.cat-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.cat-kicker.c-yellow { color: var(--yellow); }
.cat-kicker.c-cyan { color: var(--cyan); }
.cat-kicker.c-pink { color: var(--pink); }
.cat-kicker.c-violet { color: var(--violet); }
.skill-cat h3 { font-size: 1.25rem; margin: 8px 0 16px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips span {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: default;
}
.skill-chips span:hover { transform: translateY(-2px); color: var(--ink); border-color: rgba(255, 255, 255, 0.25); }
.skill-chips span.core { color: var(--yellow); border-color: rgba(255, 214, 10, 0.35); font-weight: 600; }
.skills-cta {
  margin: 64px auto 0; max-width: 640px; text-align: center;
  padding: 44px 32px; border-radius: 26px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.skills-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.skills-cta p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Full skills cloud ---------- */
.skills-cloud {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 940px; margin: 36px auto 0;
}
.skills-cloud span {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: default;
}
.skills-cloud span:hover {
  color: var(--yellow); border-color: rgba(255, 214, 10, 0.45);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .earth-wrap { min-height: 340px; }
  #earth-canvas { height: 340px; }
  section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: rgba(9, 13, 32, 0.97); border: 1px solid var(--glass-border); border-radius: 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-item { text-align: center; }
  .nav-toggle { display: block; }
  .display-xl { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  /* keep rotating constellation chips inside the viewport */
  .constellation { width: min(320px, 78vw); }
  .sat { font-size: 0.68rem; padding: 5px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
