/* ============================================================
   ANDROID DEV PORTFOLIO — liquid-glass design system
   ============================================================ */

:root {
  --bg: #060807;
  --bg-2: #0a0f0c;
  --ink: #f2f7f3;
  --muted: #93a89b;
  --accent: #3ddc84;
  --teal: #2dd4bf;
  --mint: #a7f3d0;
  --accent-dim: #1f8f52;
  --grad: linear-gradient(92deg, #3ddc84 0%, #2dd4bf 55%, #a7f3d0 100%);

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-solid: rgba(15, 22, 18, 0.5);
  --glass-blur: blur(22px) saturate(160%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-trap: inset 0 -12px 24px rgba(0, 0, 0, 0.18);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  --mono: "JetBrains Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
  --mask-radius: 92px;

  /* ---------- Spacing scale (4px basis) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ---------- Type scale (fluid) ---------- */
  --fs-display: clamp(2.6rem, 5.2vw, 4.4rem);
  --fs-title: clamp(1.9rem, 3.6vw, 2.7rem);
  --fs-section: clamp(1.5rem, 2.6vw, 2rem);
  --fs-h3: clamp(1.06rem, 1.6vw, 1.18rem);
  --fs-card-body: clamp(0.86rem, 1.2vw, 0.94rem);
  --fs-body: clamp(0.94rem, 1.3vw, 1.04rem);
  --fs-small: clamp(0.84rem, 1vw, 0.9rem);
  --fs-mono: 0.62rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.custom-cursor {
  cursor: none;
}

@media (hover: none), (max-width: 900px) {
  body {
    cursor: auto;
  }
}

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

img {
  user-select: none;
  -webkit-user-drag: none;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Glass base ---------- */
.glass {
  background: var(--glass-bg), var(--glass-solid);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-trap), var(--glass-shadow);
}
.glass-soft {
  background: var(--glass-bg), rgba(12, 18, 15, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight);
}

/* ============================================================
   BACKGROUND — aurora + grid
   ============================================================ */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.blob-1 {
  width: 55vw;
  height: 55vw;
  left: -12vw;
  top: -18vh;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.28), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 48vw;
  height: 48vw;
  right: -14vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 42vw;
  height: 42vw;
  left: 28vw;
  bottom: -24vh;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 65%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to { transform: translate3d(5%, 6%, 0) scale(1.15); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

/* ============================================================
   CURSOR + PROGRESS
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(61, 220, 132, 0.7);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-active {
  width: 74px;
  height: 74px;
  background: rgba(61, 220, 132, 0.12);
}
@media (hover: none), (max-width: 900px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 9998;
  box-shadow: 0 0 14px rgba(61, 220, 132, 0.6);
}

/* ============================================================
   SHELL + NAV
   ============================================================ */
.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vh, 132px);
  padding: 14px clamp(16px, 5vw, 44px) clamp(44px, 6vh, 64px);
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vh, 132px);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 9999px;
  padding: 10px 12px 10px 18px;
}
.nav.scrolled {
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  color: var(--accent);
  display: inline-flex;
  filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.5));
}
.logo-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--mono);
  font-size: 0.8em;
}

.nav-links {
  display: flex;
  gap: 6px;
}
.nav-pill {
  position: relative;
  padding: 9px 16px;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.nav-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.nav-pill.active {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--grad);
  color: #04130a;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(61, 220, 132, 0.35);
  transition: box-shadow 0.3s ease;
}
.nav-cta:hover {
  box-shadow: 0 12px 34px rgba(61, 220, 132, 0.5);
}
.cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06210f;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  border-radius: 0 0 24px 24px;
  border-top: none;
  transform: translateY(-108%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 104px 20px 28px;
}
.mobile-menu.is-open {
  transform: none;
}
.mob-link {
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.mob-link:hover {
  background: rgba(61, 220, 132, 0.1);
  color: var(--accent);
}
.mob-cta {
  margin-top: 10px;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad);
  color: #04130a;
  box-shadow: 0 12px 32px rgba(61, 220, 132, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 16px 44px rgba(61, 220, 132, 0.5);
}
.btn-ghost {
  background: var(--glass-bg), rgba(12, 18, 15, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(61, 220, 132, 0.45);
  box-shadow: var(--glass-highlight);
}

/* ============================================================
   HERO — 3-column: text left, image center, info right
   ============================================================ */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px) 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-height: calc(100vh - 140px);
  min-height: calc(100dvh - 140px);
  padding-top: clamp(20px, 4vh, 50px);
}

/* ---------- Left: title + CTAs ---------- */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  align-items: flex-start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.62rem;
  color: var(--muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero-title {
  font-size: var(--fs-display);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.line-accent {
  color: var(--ink);
}
.line-accent i {
  font-style: normal;
}

.hero-subtitle {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 36ch;
}

/* Tagline with rotating typewriter word */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.typer-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 1.1em;
}
.typer {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(61, 220, 132, 0.35);
}
.typer-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 6px;
  background: var(--accent);
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* scroll cue under left column */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  margin-top: 10px;
  animation: cuePulse 2.4s ease-in-out infinite;
}
.cue-line {
  width: 1px;
  height: 32px;
  background: var(--grad);
  border-radius: 2px;
}
@keyframes cuePulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ---------- Center: image ---------- */
.hero-center {
  display: flex;
  justify-content: center;
}

.hero-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.orbit-frame {
  position: absolute;
  inset: -22px;
  border: 1.5px dashed rgba(61, 220, 132, 0.28);
  border-radius: 9999px;
  animation: spin 48s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.visual-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at 50% 45%, rgba(61, 220, 132, 0.2), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 90px rgba(0, 0, 0, 0.5);
}
@media (hover: hover) {
  .hero-visual {
    cursor: none;
  }
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mask-layer {
  z-index: 2;
}
.hero-visual[data-hover] .mask-layer {
  -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent calc(var(--mask-radius) * 0.55), rgba(0, 0, 0, 0.45) calc(var(--mask-radius) * 0.8), #000 calc(var(--mask-radius) * 0.97), #000);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent calc(var(--mask-radius) * 0.55), rgba(0, 0, 0, 0.45) calc(var(--mask-radius) * 0.8), #000 calc(var(--mask-radius) * 0.97), #000);
}

/* floating chips */
.float-chip {
  position: absolute;
  z-index: 5;
  padding: 7px 13px;
  border-radius: 9999px;
  font-size: 0.58rem;
  color: var(--ink);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip-1 { top: 12%; left: -18%; }
.chip-2 { top: 48%; right: -22%; animation-delay: -2s; }
.chip-3 { bottom: 10%; left: -14%; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.trailer-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: 9999px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s;
}
.trailer-pill:hover {
  border-color: rgba(61, 220, 132, 0.5);
}
.play-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #04130a;
}
.play-ic svg {
  margin-left: 1px;
}
.trailer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 0.72rem;
  font-weight: 600;
}
.trailer-text .mono {
  font-size: 0.5rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.trailer-time {
  font-size: 0.62rem;
  color: var(--muted);
}

.hero-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9999px;
  font-size: 0.52rem;
  color: var(--muted);
}
.hero-status .sep {
  color: var(--accent-dim);
}

/* ---------- Right: stats + chips ---------- */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  align-items: flex-end;
}

.hero-stats-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-end;
}
.stat-v {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.stat-num {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1;
}
.stat .star {
  color: var(--mint);
  -webkit-text-fill-color: var(--mint);
}
.stat-lab {
  font-size: 0.56rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.hero-chips-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: flex-end;
  max-width: 200px;
}
.chip-right {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: color 0.3s, border-color 0.3s;
}
.chip-right:hover {
  color: var(--accent);
  border-color: rgba(61, 220, 132, 0.35);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.section-tag {
  font-size: clamp(0.66rem, 0.9vw, 0.75rem);
  line-height: 1.4;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(61, 220, 132, 0.14), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(61, 220, 132, 0.3);
  box-shadow: var(--glass-highlight);
  padding: 8px 17px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.section-title {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.8;
  padding: clamp(22px, 3vw, 36px);
  background: var(--glass-bg), rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-trap);
}
.about-body strong {
  color: var(--ink);
  font-weight: 600;
}

.about-panel {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: clamp(18px, 2.4vw, 28px);
  gap: 0;
}
.kp-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.kp-row:last-child {
  border-bottom: none;
}
.kp-key {
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.kp-row .ok {
  color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.chip {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s;
}
.chip:hover {
  color: var(--accent);
  border-color: rgba(61, 220, 132, 0.4);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.card {
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 220, 132, 0.35);
  box-shadow: var(--glass-highlight), var(--glass-trap), 0 30px 70px rgba(0, 0, 0, 0.5);
}
.card-ic {
  font-size: 0.66rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(61, 220, 132, 0.16), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(61, 220, 132, 0.35);
  width: fit-content;
  padding: 5px 9px;
  border-radius: 10px;
  margin-bottom: var(--sp-1);
  box-shadow: var(--glass-highlight);
}
.card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card p {
  font-size: var(--fs-card-body);
  color: var(--muted);
  line-height: 1.7;
}

.bars-panel {
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.bars-title {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.bar-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}
.bar-top .mono {
  font-size: 0.66rem;
  color: var(--accent);
}
.bar {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.5);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
  padding-left: clamp(22px, 4vw, 44px);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent-dim), transparent);
}
.tl-item {
  position: relative;
}
.tl-dot {
  position: absolute;
  left: calc(clamp(22px, 4vw, 44px) * -1 + 1px);
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15), 0 0 12px rgba(61, 220, 132, 0.4);
  transform: translateX(-50%);
}
.tl-card {
  border-radius: 20px;
  padding: clamp(18px, 2.6vw, 26px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s;
}
.tl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 220, 132, 0.35);
}
.tl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tl-role {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.tl-date {
  font-size: 0.62rem;
  color: var(--accent);
}
.tl-company-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
}
.tl-logo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 600 0.64rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: #e4f2e9;
  background: var(--lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
}
.tl-company {
  font-size: 0.74rem;
  font-weight: 600;
  color: #e4f2e9;
  letter-spacing: 0.06em;
}
.tl-company-dot {
  color: var(--accent);
  font-style: normal;
}
.tl-company-loc {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.tl-card p {
  font-size: var(--fs-card-body);
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
}

/* ============================================================
   WORK / PROJECTS
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}
.card-project {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.thumb {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.thumb-1 {
  background: radial-gradient(circle at 30% 20%, rgba(61, 220, 132, 0.28), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(45, 212, 191, 0.22), transparent 55%), #0c130f;
}
.thumb-2 {
  background: radial-gradient(circle at 65% 25%, rgba(45, 212, 191, 0.28), transparent 55%),
    radial-gradient(circle at 25% 85%, rgba(34, 197, 94, 0.24), transparent 55%), #0c130f;
}
.thumb-3 {
  background: radial-gradient(circle at 40% 30%, rgba(34, 197, 94, 0.26), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(61, 220, 132, 0.2), transparent 55%), #0c130f;
}
.thumb-glyph {
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.thumb-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 9999px;
  color: var(--muted);
  background: rgba(8, 12, 10, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
}
.ps-chip {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(8, 12, 10, 0.72);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 6px 11px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.ps-chip:hover {
  border-color: var(--accent);
  background: rgba(8, 12, 10, 0.92);
  transform: translateY(-1px);
}
.ps-chip.ps-chip-unpublished {
  color: var(--muted);
  border-style: dashed;
  cursor: default;
}
.ps-chip.ps-chip-unpublished:hover {
  border-color: var(--glass-border);
  background: rgba(8, 12, 10, 0.72);
  transform: none;
}
.ps-chip .ps-chip-arrow {
  display: inline-flex;
  transition: transform 0.3s;
}
.ps-chip:hover .ps-chip-arrow {
  transform: translate(1px, -1px);
}
.proj-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(18px, 2.4vw, 24px);
}
.proj-body h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.proj-body p {
  font-size: var(--fs-card-body);
  color: var(--muted);
  line-height: 1.7;
}
.proj-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
}
.proj-link {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}
.proj-link:hover {
  opacity: 0.7;
}

/* ============================================================
   PLAY STORE — CARD ICON + INFO
   ============================================================ */
.proj-icon {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
  overflow: hidden;
}
.proj-icon-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.proj-icon-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(140%);
  transform: scale(1.3);
  opacity: 0.6;
}
.proj-icon-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(6, 10, 8, 0.6) 100%);
}
.proj-icon-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-icon-img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  background: rgba(8, 11, 9, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.3s;
}
.card-project:hover .proj-icon-img {
  transform: scale(1.08);
}
.proj-store-info,
.proj-downloads-info {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 44%;
  font-size: 0.66rem;
  line-height: 1.3;
  pointer-events: none;
}
.proj-store-info {
  left: 14px;
  align-items: flex-start;
  text-align: left;
}
.proj-downloads-info {
  right: 14px;
  align-items: flex-end;
  text-align: right;
}
.proj-store-info:empty,
.proj-downloads-info:empty {
  display: none;
}
.proj-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}
.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.star {
  width: 14px;
  height: 14px;
  flex: none;
  display: block;
}
.proj-rating-count {
  color: rgba(228, 242, 233, 0.72);
  white-space: nowrap;
  font-size: 0.64rem;
}
.proj-downloads {
  color: #e4f2e9;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.proj-downloads-label {
  color: rgba(228, 242, 233, 0.55);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .proj-store-info,
  .proj-downloads-info {
    max-width: 38%;
  }
  .proj-rating-count,
  .proj-downloads-label {
    display: none;
  }
  .star {
    width: 11px;
    height: 11px;
  }
  .proj-rating {
    font-size: 0.74rem;
  }
  .proj-downloads {
    font-size: 0.9rem;
  }
}

/* ============================================================
   PLAY STORE — MODAL SCREENSHOTS + STATS
   ============================================================ */
.modal-screenshots {
  flex-shrink: 0;
}
.modal-ss-title {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.screenshots-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.screenshots-scroll::-webkit-scrollbar {
  height: 4px;
}
.screenshots-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}
.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
.screenshot-img {
  height: 200px;
  width: auto;
  min-width: 100px;
  border-radius: 12px;
  object-fit: cover;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.modal-store-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}
.modal-rating .stars {
  color: var(--accent);
  letter-spacing: 1px;
}
.review-count {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.7;
}
.modal-downloads {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-panel {
  border-radius: 32px;
  padding: clamp(40px, 6vw, 80px) clamp(22px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-6);
}
.contact-title {
  font-size: var(--fs-title);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-sub {
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: min(100%, 540px);
  margin-top: var(--sp-2);
}
.field-row {
  display: flex;
  gap: var(--sp-3);
}
.field-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field-input::placeholder {
  color: rgba(147, 168, 155, 0.7);
}
.field-input:focus {
  border-color: rgba(61, 220, 132, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.12);
}
.field-input.field-error {
  border-color: rgba(248, 113, 113, 0.75);
  background: rgba(248, 113, 113, 0.06);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
  animation: fieldShake 0.35s;
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
.field-area {
  resize: vertical;
  min-height: 96px;
}
.contact-form .btn {
  margin-top: var(--sp-2);
}
.sent-note {
  font-size: 0.78rem;
  color: var(--accent);
  min-height: 1.1em;
}
.form-note.is-error {
  color: #f87171;
}
.form-note:empty {
  min-height: 0;
}

.contact-alternate {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.contact-alternate a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(61, 220, 132, 0.4);
  transition: border-color 0.3s;
}
.contact-alternate a:hover {
  border-color: var(--accent);
}

.contact-social {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.social-link:hover {
  color: var(--accent);
  border-color: rgba(61, 220, 132, 0.45);
  transform: translateY(-2px);
}
.social-link svg {
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
}
.foot-links {
  display: flex;
  gap: 18px;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.foot-links a:hover {
  color: var(--accent);
}
.back-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, border-color 0.3s, transform 0.3s;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  border-color: rgba(61, 220, 132, 0.5);
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL REVEAL (JS adds .in-view)
   ============================================================ */
[data-scroll] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   VIEW ALL BUTTON
   ============================================================ */
.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   PROJECTS OVERLAY
   ============================================================ */
.projects-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.projects-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 7, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.overlay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: 88vh;
  max-height: min(88dvh, 92svh);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.projects-overlay.is-open .overlay-panel {
  transform: translateY(0);
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  flex-shrink: 0;
}
.overlay-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.overlay-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.overlay-close:hover {
  border-color: rgba(61, 220, 132, 0.5);
  transform: rotate(90deg);
}

/* ---------- Filter pills ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 28px 18px;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filter-pill:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-pill.active {
  color: #04130a;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(61, 220, 132, 0.3);
}

/* ---------- Overlay grid ---------- */
.overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
  padding: 0 28px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 220, 132, 0.25) transparent;
}
.overlay-grid::-webkit-scrollbar { width: 6px; }
.overlay-grid::-webkit-scrollbar-track { background: transparent; }
.overlay-grid::-webkit-scrollbar-thumb {
  background: rgba(61, 220, 132, 0.25);
  border-radius: 9999px;
}

.overlay-grid .card-project {
  cursor: pointer;
}
.overlay-grid .card-project:hover {
  border-color: rgba(61, 220, 132, 0.4);
}

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 7, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 640px;
  max-height: 88vh;
  max-height: min(88dvh, 92svh);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(18px);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.project-modal.is-open .modal-panel {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  flex-shrink: 0;
}
.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 9999px;
  transition: color 0.3s, background 0.3s;
}
.modal-back:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.modal-category {
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.modal-close-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s;
}
.modal-close-x:hover {
  border-color: rgba(61, 220, 132, 0.5);
}

.modal-body {
  padding: 0 26px calc(30px + env(safe-area-inset-bottom));
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.modal-thumb {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-glyph {
  font-size: 3.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-proj-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-proj-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.modal-tags {
  margin-top: 2px;
}

.modal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal-links .btn {
  font-size: 0.78rem;
  padding: 12px 22px;
  gap: 8px;
}

/* ============================================================
   EFFECTS PACK — glow, grain, marquee, shimmer, spotlight,
   particles, timeline progress, cascades
   ============================================================ */

/* ---------- Ambient cursor glow (desktop only) ---------- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.09), rgba(45, 212, 191, 0.04) 45%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(var(--gx, 50vw), var(--gy, 30vh));
  will-change: transform;
}
@media (hover: none), (max-width: 900px) {
  .ambient-glow {
    display: none;
  }
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -60%;
  width: 220%;
  height: 220%;
  pointer-events: none;
  z-index: 4000;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  animation: grainShift 1.1s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Tech marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  margin-block: calc(var(--sp-6) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollX 28s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-half {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.mq-item {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.mq-star {
  color: var(--accent);
  font-size: 0.7rem;
}
@keyframes scrollX {
  to { transform: translateX(-50%); }
}

/* ---------- Hero title: char split + gradient shimmer ---------- */
.hero-title {
  position: relative;
  overflow: hidden;
}
.hero-title .ch {
  display: inline-block;
  white-space: pre;
  will-change: transform;
}
.hero-title .line-accent {
  position: relative;
  background: linear-gradient(100deg, #3ddc84 15%, #a7f3d0 38%, #2dd4bf 55%, #3ddc84 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shineTxt 7s linear infinite, accentGlow 3.6s ease-in-out infinite;
}
@keyframes shineTxt {
  to { background-position: 220% center; }
}

/* Breathing neon halo behind the accent line */
@keyframes accentGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(61, 220, 132, 0.18)); }
  50% { filter: drop-shadow(0 0 16px rgba(61, 220, 132, 0.42)); }
}

/* Slow signal-sweep across the whole headline */
.hero-title::after {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -30%;
  width: 60%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(61, 220, 132, 0.14) 35%, rgba(167, 243, 208, 0.2) 50%, rgba(45, 212, 191, 0.14) 65%, transparent);
  transform: skewX(-18deg);
  mix-blend-mode: screen;
  border-radius: 8px;
  animation: heroScan 4.8s ease-in-out infinite;
}
@keyframes heroScan {
  0%, 82% { left: -30%; opacity: 0; }
  86% { opacity: 1; }
  98%, 100% { left: 115%; opacity: 0; }
}

/* Blue fade: underline draws in, the "screen" reveals */
.hi-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.07em;
  height: 0.09em;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--accent));
  background-size: 200% auto;
  box-shadow: 0 0 16px rgba(61, 220, 132, 0.5), 0 0 4px rgba(45, 212, 191, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  animation: hiDraw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards, shineTxt 6s linear 1.7s infinite;
  pointer-events: none;
}
@keyframes hiDraw {
  to { transform: scaleX(1); }
}

/* ---------- Button shine sweep ---------- */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover::after {
  left: 135%;
}

/* ---------- Card cursor spotlight ---------- */
.card.tilt,
.card-project.tilt,
.tl-card.tilt {
  position: relative;
}
.card.tilt::before,
.card-project.tilt::before,
.tl-card.tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 220, 132, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.card.tilt:hover::before,
.card-project.tilt:hover::before,
.tl-card.tilt:hover::before {
  opacity: 1;
}
.card.tilt > *,
.card-project.tilt > *,
.tl-card.tilt > * {
  position: relative;
  z-index: 1;
}

/* ---------- Hero particles ---------- */
.hero {
  position: relative;
}
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-left,
.hero-center,
.hero-right {
  position: relative;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatP linear infinite;
}
@keyframes floatP {
  0% { transform: translateY(14px); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-46px); opacity: 0; }
}

/* ---------- Timeline scroll progress ---------- */
.tl-progress {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--teal));
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.55);
  transform-origin: top;
  transform: scaleY(var(--tlp, 0));
}
.tl-dot {
  transition: background 0.4s, box-shadow 0.4s;
}
.tl-item.in-view .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.18), 0 0 18px rgba(61, 220, 132, 0.65);
}

/* ---------- Skill bar shimmer ---------- */
.bar-fill {
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: barShimmer 2.8s ease-in-out infinite;
}
@keyframes barShimmer {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

/* ---------- Overlay card cascade ---------- */
.projects-overlay.is-open .overlay-grid .card-project {
  animation: cardIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
}

/* ---------- Filter fade transition ---------- */
.overlay-grid {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.overlay-grid.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- Sliding nav indicator ---------- */
.nav-links {
  position: relative;
}
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.35);
  box-shadow: var(--glass-highlight);
  opacity: 0;
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
  pointer-events: none;
}
.nav-indicator.on {
  opacity: 1;
}

/* ---------- Modal content stagger ---------- */
.project-modal.is-open .modal-body > * {
  animation: modalIn 0.4s ease backwards;
}
.project-modal.is-open .modal-body > *:nth-child(2) { animation-delay: 0.05s; }
.project-modal.is-open .modal-body > *:nth-child(3) { animation-delay: 0.1s; }
.project-modal.is-open .modal-body > *:nth-child(4) { animation-delay: 0.15s; }
.project-modal.is-open .modal-body > *:nth-child(5) { animation-delay: 0.2s; }
.project-modal.is-open .modal-body > *:nth-child(6) { animation-delay: 0.25s; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1400px) {
  .site-shell {
    max-width: 1260px;
  }
  .hero-visual-wrap {
    width: min(96%, 640px);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .mobile-menu {
    display: flex;
  }
  .hero-stats {
    grid-template-columns: repeat(2, auto);
    gap: 18px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  /* Stack the hero below tablet — the 3-column split leaves ~170px side
     columns where the display title clips. */
  .hero {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    min-height: auto;
    padding-top: 28px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
    gap: var(--sp-5);
  }
  .hero-title {
    align-items: center;
    font-size: clamp(2.4rem, 12.5vw, 3.4rem);
    line-height: 1.02;
  }
  .hero-subtitle {
    font-size: 0.94rem;
    text-align: center;
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-center {
    justify-content: center;
  }
  .hero-visual-wrap {
    width: min(72%, 380px);
  }
  .hero-visual {
    border-radius: 16px;
  }
  .orbit-frame {
    inset: -14px;
  }
  .float-chip {
    font-size: 0.54rem;
    padding: 5px 10px;
  }
  .chip-1 { left: -6px; }
  .chip-2 { right: -8px; }
  .chip-3 { display: none; }
  .trailer-pill {
    left: 8px;
    bottom: 8px;
    padding: 7px 11px;
    gap: 8px;
  }
  .trailer-time,
  .hero-status {
    display: none;
  }
  .hero-right {
    align-items: center;
    gap: var(--sp-6);
  }
  .hero-stats-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 6vw, 40px);
    align-items: flex-start;
  }
  .stat-v {
    align-items: center;
    text-align: center;
  }
  .hero-chips-right {
    justify-content: center;
    max-width: 90%;
  }
  .scroll-cue {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 78px;
  }
  .site-shell {
    gap: 84px;
    padding: 12px 12px 44px;
  }
  .hero-visual-wrap {
    width: min(85%, 340px);
  }
  .section {
    gap: var(--sp-6);
    scroll-margin-top: 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .overlay-panel {
    max-height: 92vh;
    max-height: min(92dvh, 96svh);
    border-radius: 20px 20px 0 0;
  }
  .overlay-header,
  .filter-bar,
  .overlay-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
  .overlay-grid {
    grid-template-columns: 1fr;
  }
  .modal-panel {
    width: 96%;
    max-height: 92vh;
    max-height: min(92dvh, 96svh);
    border-radius: 20px;
  }
  .modal-body {
    padding: 0 18px calc(22px + env(safe-area-inset-bottom));
  }
  .modal-thumb {
    height: 140px;
  }
  .field-row {
    flex-direction: column;
  }
  .tl-row {
    flex-direction: column;
    gap: 2px;
  }
  .foot {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .foot-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 0.9rem;
  }
  .nav-cta {
    display: none;
  }
  .hero-visual {
    height: min(56vh, 380px);
    height: min(56dvh, 380px);
  }
  .hero-title {
    font-size: clamp(2.1rem, 13vw, 2.6rem);
  }
  .contact-social {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile: drop heavy backdrop-filter on full-screen layers.
   Android Chrome re-rasterizes backdrop blur on fixed panels, which can
   visually rescale/shink the whole page when an overlay opens. */
@media (hover: none), (max-width: 640px) {
  .overlay-backdrop {
    background: rgba(6, 8, 7, 0.88);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .modal-backdrop {
    background: rgba(6, 8, 7, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .overlay-panel,
  .modal-panel {
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
      #0b100d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .overlay-panel::before,
  .modal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: var(--glass-highlight);
  }
  /* Perf: stop autoplaying decoration + full-screen blur on touch/low-power.
     These are the main culprits behind janky scroll ("stuck" feeling). */
  .grain {
    display: none;
  }
  .blob-1,
  .blob-2,
  .blob-3 {
    animation: none;
  }
  .glass,
  .glass-soft,
  .proj-store-info {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav.scrolled {
    background: rgba(15, 22, 18, 0.92);
  }
}

/* Mobile screenshot sizing */
@media (max-width: 640px) {
  .screenshot-img {
    height: 160px;
    min-width: 80px;
  }
  .modal-store-stats {
    gap: 10px;
  }
  .modal-rating {
    font-size: 0.8rem;
  }
}

/* Short / landscape */
@media (max-height: 560px) and (min-width: 641px) {
  .hero {
    gap: 18px;
  }
  .hero-visual-wrap {
    width: min(60%, 460px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .blob,
  .orbit-frame,
  .float-chip,
  .status-dot,
  .scroll-cue,
  .scroll-progress,
  .grain,
  .marquee-track,
  .hero-title .line-accent,
  .hi-underline,
  .bar-fill::after,
  .particle {
    animation: none !important;
  }
  .hero-title .line-accent,
  .hi-underline {
    transform: none;
    text-shadow: none;
    clip-path: none;
  }
  .grain,
  .particles,
  .ambient-glow {
    display: none !important;
  }
  .hero-title::after {
    animation: none !important;
    display: none;
  }
  .btn-primary::after,
  .card.tilt::before,
  .card-project.tilt::before,
  .tl-card.tilt::before {
    display: none !important;
  }
  [data-scroll] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PROJECTS PAGE — all-projects catalog
   ============================================================ */
#project-grid .card-project,
.projects-page .card-project {
  cursor: pointer;
}
.projects-page .site-shell {
  gap: clamp(44px, 7vh, 80px);
}
.projects-page main {
  gap: 0;
}
.projects-page .filter-bar {
  padding: 0;
  margin-top: -22px;
}
.projects-page .filter-pill {
  font-size: 0.66rem;
}
.projects-page .card-project.is-hidden {
  display: none;
}
.projects-page .project-grid {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.projects-page .project-grid.is-switching {
  opacity: 0;
  transform: translateY(8px);
}
.projects-page #back-home {
  white-space: nowrap;
}
@media (max-width: 380px) {
  .projects-page #back-home span {
    display: none;
  }
  .projects-page #back-home {
    width: 42px;
    height: 42px;
    padding: 0;
  }
}