/* =========================================================
   Boburzhon — Premium Portfolio
   Liquid Glass design system — light/dark themes
========================================================= */

:root {
  /* ---- dark theme (default) ---- */
  --bg-base: #050507;
  --bg-base-2: #0a0b10;
  --canvas-tint-1: #12141d;
  --canvas-tint-2: #10131a;

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;

  --accent: #0a84ff;
  --accent-light: #64d2ff;
  --accent-soft: rgba(10, 132, 255, 0.35);

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 40%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --spotlight: rgba(255, 255, 255, 0.16);

  --hairline: rgba(255, 255, 255, 0.1);
  --overlay-strong: rgba(14, 14, 18, 0.6);
  --overlay-full: rgba(8, 8, 10, 0.85);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);

  --hero-title-grad-1: #ffffff;
  --hero-title-grad-2: #b9c2cf;

  --orb-grad-1: rgba(255, 255, 255, 0.16);
  --orb-grad-2: rgba(255, 255, 255, 0.02);
  --orb-border: rgba(255, 255, 255, 0.14);

  --blob-a: rgba(10, 132, 255, 0.55);
  --blob-b: rgba(100, 210, 255, 0.4);
  --blob-c: rgba(150, 160, 255, 0.32);
  --blob-opacity: 0.55;

  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 76px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg-base: #f4f6f9;
  --bg-base-2: #eef1f6;
  --canvas-tint-1: #ffffff;
  --canvas-tint-2: #e9eef5;

  --text-primary: #1d1d1f;
  --text-secondary: #555a61;
  --text-tertiary: #86868b;

  --accent: #0a84ff;
  --accent-light: #0091ff;
  --accent-soft: rgba(10, 132, 255, 0.22);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.7), transparent 45%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 20px 45px -22px rgba(30, 41, 59, 0.28);
  --spotlight: rgba(255, 255, 255, 0.55);

  --hairline: rgba(20, 22, 30, 0.09);
  --overlay-strong: rgba(255, 255, 255, 0.65);
  --overlay-full: rgba(248, 249, 252, 0.9);
  --scrollbar-thumb: rgba(20, 22, 30, 0.16);

  --hero-title-grad-1: #1d1d1f;
  --hero-title-grad-2: #3d6d9e;

  --orb-grad-1: rgba(255, 255, 255, 0.9);
  --orb-grad-2: rgba(255, 255, 255, 0.3);
  --orb-border: rgba(255, 255, 255, 0.9);

  --blob-a: rgba(10, 132, 255, 0.28);
  --blob-b: rgba(100, 195, 255, 0.24);
  --blob-c: rgba(150, 180, 255, 0.2);
  --blob-opacity: 0.65;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent-soft); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid var(--bg-base);
}

/* =========================================================
   Preloader
========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s, filter 0.8s var(--ease-out);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; filter: blur(12px); pointer-events: none; }
.preloader-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent-light), transparent 40%);
  opacity: 0.5;
  filter: blur(2px);
  animation: rotate-ring 2.4s linear infinite;
}
@keyframes rotate-ring { to { transform: rotate(360deg); } }
.preloader-mark {
  position: relative;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--orb-grad-1), var(--orb-grad-2));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  animation: pulse-mark 1.4s var(--ease-soft) infinite;
}
@keyframes pulse-mark {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(10,132,255,0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px 6px rgba(10,132,255,0.25); }
}

/* =========================================================
   Cursor glow
========================================================= */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.16), rgba(100,210,255,0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  transform: translate3d(-500px, -500px, 0);
  transition: opacity 0.4s ease;
  will-change: transform;
}
:root[data-theme="light"] .cursor-glow { mix-blend-mode: multiply; }
@media (hover: none) { .cursor-glow { display: none; } }

/* =========================================================
   Background canvas
========================================================= */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, var(--canvas-tint-1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, var(--canvas-tint-2) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
  transition: background 0.5s ease;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
}
.blob-a {
  width: 620px; height: 620px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, var(--blob-a), transparent 70%);
  animation: drift-a 26s ease-in-out infinite;
}
.blob-b {
  width: 560px; height: 560px;
  top: 40%; right: -180px;
  background: radial-gradient(circle, var(--blob-b), transparent 70%);
  animation: drift-b 32s ease-in-out infinite;
}
.blob-c {
  width: 500px; height: 500px;
  bottom: -160px; left: 30%;
  background: radial-gradient(circle, var(--blob-c), transparent 70%);
  animation: drift-c 30s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -40px) scale(1.1); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.05); }
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: 0.015; }

/* =========================================================
   Glass utility
========================================================= */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-highlight);
  pointer-events: none;
}

/* Cursor-reactive spotlight for tilt cards */
.card-tilt {
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx) var(--my), var(--spotlight), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-tilt:hover::after { opacity: 1; }

/* =========================================================
   Reveal on scroll
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Layout helpers
========================================================= */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 32px;
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: var(--text-primary);
}
.section-sub {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* =========================================================
   Buttons — elegant, static hover (no magnetic movement)
========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn-small { padding: 11px 22px; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(180deg, #2ba2ff, var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(10, 132, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px -6px rgba(10, 132, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.btn-glass {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  color: var(--text-primary);
}
.btn-glass:hover {
  background: var(--overlay-strong);
  transform: translateY(-3px);
}

/* =========================================================
   Navigation
========================================================= */
.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  transition: top 0.4s var(--ease-out);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1140px;
  padding: 12px 14px 12px 26px;
  border-radius: 999px;
  transition: padding 0.4s var(--ease-out), background 0.4s ease;
}
.nav.is-scrolled .nav-inner {
  background: var(--overlay-strong);
  padding-top: 9px;
  padding-bottom: 9px;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: auto;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.is-active { color: var(--text-primary); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-light);
}
.nav-cta { flex-shrink: 0; }

/* ---- Utility controls (lang / theme / settings) ---- */
.nav-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.util-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  transition: background 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease;
  flex-shrink: 0;
}
.util-btn:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.util-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.lang-switch, .theme-switch, .anim-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-switch.is-compact { font-size: 0.72rem; }
.lang-opt, .theme-opt, .anim-opt {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.3s var(--ease-out), color 0.3s ease;
  white-space: nowrap;
}
.lang-switch.is-compact .lang-opt { padding: 6px 10px; }
.lang-opt.is-active, .theme-opt.is-active, .anim-opt.is-active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--overlay-full);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s, background 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-utils { display: flex; align-items: center; gap: 14px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.mobile-menu a { font-size: 1.6rem; font-weight: 600; color: var(--text-primary); }

/* =========================================================
   Settings panel
========================================================= */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.settings-overlay.is-open { opacity: 1; visibility: visible; }

.settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 601;
  width: min(380px, calc(100vw - 48px));
  padding: 28px;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
}
.settings-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.settings-header h3 { font-size: 1.15rem; font-weight: 700; }
.settings-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.settings-close svg { width: 14px; height: 14px; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.94rem;
  font-weight: 500;
}
.settings-row:first-of-type { border-top: none; }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  z-index: 1;
  overflow: hidden;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--orb-grad-1), var(--orb-grad-2));
  border: 1px solid var(--orb-border);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: float-orb 9s var(--ease-soft) infinite;
  will-change: transform;
}
.orb-1 { width: 130px; height: 130px; top: 16%; left: 12%; animation-delay: 0s; }
.orb-2 { width: 90px; height: 90px; top: 24%; right: 14%; animation-delay: 1.2s; }
.orb-3 { width: 60px; height: 60px; bottom: 22%; left: 20%; animation-delay: 2.4s; }
.orb-4 { width: 170px; height: 170px; bottom: 10%; right: 10%; animation-delay: 0.8s; }
@keyframes float-orb {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(10px); }
}

.hero-content { max-width: 760px; }
.hero-title {
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 18px 0 22px;
  background: linear-gradient(180deg, var(--hero-title-grad-1) 30%, var(--hero-title-grad-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue-dot {
  width: 22px;
  height: 36px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  position: relative;
}
.scroll-cue-dot::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent-light);
  animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* =========================================================
   About
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-visual-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(10,132,255,0.3), transparent 70%);
  filter: blur(30px);
}
.avatar-orb {
  width: 42%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(160deg, var(--orb-grad-1), var(--orb-grad-2));
  border: 1px solid var(--orb-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 30px 60px -20px rgba(0,0,0,0.4);
}
.badge-float {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52,199,89,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}
.about-text .lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.about-text p { color: var(--text-secondary); margin-bottom: 16px; }
.about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--text-primary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.about-points li:last-child { border-bottom: none; }
.point-icon {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  width: 32px;
}

/* =========================================================
   Skills
========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-card {
  padding: 34px 30px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--accent-soft); }
.skill-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,132,255,0.14);
  color: var(--accent-light);
  margin-bottom: 22px;
}
.skill-icon svg { width: 24px; height: 24px; }
.skill-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.skill-card p { color: var(--text-secondary); font-size: 0.94rem; }

/* =========================================================
   Tech stack
========================================================= */
.stack-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.stack-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}
.stack-tab:hover { color: var(--text-primary); }
.stack-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stack-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease, box-shadow 0.3s ease;
}
.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(10,132,255,0.4);
  border-color: rgba(100,210,255,0.4);
}
.chip.is-hidden {
  display: none;
}

/* =========================================================
   Projects
========================================================= */
.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 28px;
}
.project-feature-visual {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), transparent);
}
.mock-window {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20,20,26,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-screen { padding: 22px; }
.mock-hero {
  height: 90px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(120deg, rgba(10,132,255,0.5), rgba(100,210,255,0.25));
}
.mock-row { display: flex; gap: 10px; }
.mock-card {
  flex: 1;
  height: 60px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.project-feature-body { padding: 48px 52px 48px 8px; display: flex; flex-direction: column; justify-content: center; }
.tag-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(10,132,255,0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.project-feature-body h3 { font-size: 1.9rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.project-feature-body p { color: var(--text-secondary); margin-bottom: 24px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tech-tags li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 999px;
}
.project-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card { padding: 34px; display: flex; flex-direction: column; }
.project-card-visual {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  background: rgba(10,132,255,0.12);
  margin-bottom: 22px;
}
.project-card-visual svg { width: 26px; height: 26px; }
.project-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.project-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 22px; flex-grow: 1; }
.project-soon {
  border-style: dashed;
  border-color: var(--hairline);
  align-items: flex-start;
  justify-content: center;
  opacity: 0.75;
}
.soon-visual { background: rgba(255,255,255,0.06); color: var(--text-tertiary); }

/* =========================================================
   Services
========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  padding: 30px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent-soft); }
.service-index {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* =========================================================
   Contact
========================================================= */
.contact-panel {
  padding: 72px 56px;
  text-align: center;
}
.contact-panel .eyebrow { margin-bottom: 14px; }
.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.contact-panel > p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 48px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.contact-link:hover { transform: translateY(-4px); border-color: rgba(100,210,255,0.4); }
.contact-link-wide { grid-column: span 1; }
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: 0.78rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { display: block; font-size: 0.96rem; font-weight: 500; margin-top: 2px; word-break: break-word; }

/* =========================================================
   Footer
========================================================= */
.footer { position: relative; z-index: 1; padding: 40px 32px 60px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.footer-inner p { color: var(--text-tertiary); font-size: 0.85rem; }
.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.back-to-top:hover { transform: translateY(-4px); border-color: rgba(100,210,255,0.4); }
.back-to-top svg { width: 18px; height: 18px; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-utils { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { justify-content: space-between; padding: 12px 18px; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 340px; margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature-body { padding: 8px 40px 48px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 110px 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 48px 26px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .orb-4, .orb-2 { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .mobile-menu a { font-size: 1.3rem; }
  .mobile-menu { gap: 32px; }
  .settings-panel { padding: 22px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 3rem; }
  .nav-inner { padding: 10px 14px; }
  .section-head h2 { font-size: 1.7rem; }
}

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

/* Manual "Animations: Off" preference (Settings panel) */
html[data-animations="off"] *,
html[data-animations="off"] *::before,
html[data-animations="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
