/* ═══════════════════════════════════════════════════════════
   Kem Deth — Portfolio  |  style.css
   Theme : Dark Hacker — deep forest green + neon lime
   Fonts : Ancizar Serif · Inter · Iosevka Charon Mono
═══════════════════════════════════════════════════════════ */

/* ─── 0. RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  --neon: #22ff6e;
  --neon-dim: #0fbe4f;
  --neon-glow: rgba(34, 255, 110, 0.18);
  --bg: #050e08;
  --bg-alt: #07140a;
  --card-bg: rgba(9, 22, 12, 0.75);
  --card-border: rgba(34, 255, 110, 0.11);
  --text: #dff0e4;
  --text-muted: rgba(223, 240, 228, 0.52);
  --text-code: #7effa9;
  --header-bg: rgba(5, 14, 8, 0.9);
  --input-bg: rgba(12, 28, 16, 0.85);
  --input-border: rgba(34, 255, 110, 0.2);

  --font-s: "Ancizar Serif", serif;
  --font-d: "Inter", sans-serif;
  --font-m: "Iosevka Charon Mono", monospace;

  --max-w: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --section-pad: clamp(4.5rem, 8vw, 7.5rem);
  --header-h: 64px;
  --scroll-offset: 80px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --neon: #0a7a32;
  --neon-dim: #0a5e27;
  --neon-glow: rgba(10, 122, 50, 0.12);
  --bg: #f2f9f4;
  --bg-alt: #e6f2ea;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(10, 122, 50, 0.16);
  --text: #0b1e0f;
  --text-muted: rgba(11, 30, 15, 0.58);
  --text-code: #0a7a32;
  --header-bg: rgba(242, 249, 244, 0.94);
  --input-bg: rgba(255, 255, 255, 0.97);
  --input-border: rgba(10, 122, 50, 0.22);
}

/* ─── 2. BASE ───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, 80px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-d);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
svg {
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--neon);
  color: #050e08;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
}

/* ─── 3. SECTION SHELL ─────────────────────────────────── */
section {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
section.visible {
  opacity: 1;
  transform: none;
}
section.alt {
  background: var(--bg-alt);
}

.si {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 5vw, 3rem);
}

.sh {
  margin-bottom: 2.75rem;
  text-align: center;
}
.s-label {
  font-family: var(--font-m);
  font-size: 0.78rem;
  color: var(--neon);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.55rem;
}
.s-title {
  font-family: var(--font-s);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

/* ─── 4. CARDS ─────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.65rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
}
.card:hover {
  border-color: rgba(34, 255, 110, 0.26);
  box-shadow: 0 8px 32px rgba(34, 255, 110, 0.07);
  transform: translateY(-2px);
}
[data-theme="light"] .card {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 8px 28px rgba(10, 122, 50, 0.12);
}

/* ─── 5. BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-d);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-warm {
  background: var(--neon);
  color: #050e08;
}
.btn-warm:hover {
  background: #5dffaa;
  color: #050e08;
  box-shadow: 0 0 22px var(--neon-glow);
  transform: translateY(-2px);
}
.btn-out {
  border: 1.5px solid var(--neon);
  color: var(--neon);
}
.btn-out:hover {
  background: var(--neon-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1.5px solid var(--card-border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-2px);
}

/* ─── 6. HEADER / NAV ──────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(34, 255, 110, 0.2);
}
[data-theme="light"] #site-header.scrolled {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}

/* ── Logo image (replaces SVG badge + text in header) ── */
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(34, 255, 110, 0.4);
  box-shadow: 0 0 10px rgba(34, 255, 110, 0.18);
  transition:
    box-shadow 0.25s,
    transform 0.25s var(--ease);
  flex-shrink: 0;
}
.logo:hover .logo-img {
  box-shadow: 0 0 18px rgba(34, 255, 110, 0.35);
  transform: scale(1.06);
}
[data-theme="light"] .logo-img {
  border-color: rgba(10, 122, 50, 0.45);
  box-shadow: 0 0 10px rgba(10, 122, 50, 0.2);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ── Logo word — used in footer only ── */
.logo-word {
  font-family: var(--font-s);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
/* Neon accent on "Deth" in the nav logo */
.logo-accent {
  color: var(--neon);
}
/* Nav logo slightly larger than footer */
nav .logo-word {
  font-size: 1.18rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-d);
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.38rem 0.7rem;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition:
    left 0.25s var(--ease),
    right 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 0.7rem;
  right: 0.7rem;
}
.nav-links a.active {
  color: var(--neon);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.6rem;
}
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.25s var(--spring);
}
[data-theme="dark"] .theme-btn {
  background: rgba(34, 255, 110, 0.1);
  border-color: rgba(34, 255, 110, 0.3);
  color: var(--neon);
}
[data-theme="dark"] .theme-btn:hover {
  background: rgba(34, 255, 110, 0.2);
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(34, 255, 110, 0.25);
}
[data-theme="light"] .theme-btn {
  background: var(--neon);
  border-color: var(--neon);
  color: #050e08;
}
[data-theme="light"] .theme-btn:hover {
  background: var(--neon-dim);
  border-color: var(--neon-dim);
  box-shadow: 0 0 12px rgba(10, 122, 50, 0.25);
}
.theme-btn--active {
  transform: rotate(20deg) scale(1.12);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--card-border);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.menu-btn:hover {
  color: var(--neon);
  border-color: var(--neon);
}

/* ─── 7. BANNER ────────────────────────────────────────── */
.avail-banner {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 900;
  background: linear-gradient(
    90deg,
    rgba(10, 154, 64, 0.16),
    rgba(34, 255, 110, 0.09)
  );
  border-bottom: 1px solid rgba(34, 255, 110, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1.25rem;
}
.avail-banner.hidden {
  display: none;
}
.avail-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  font-size: 0.8rem;
  white-space: nowrap;
}
.avail-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.avail-banner-text {
  color: var(--text);
  flex: 1;
}
.avail-banner-text strong {
  color: var(--neon);
}
.avail-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--neon);
  color: #050e08;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  transition:
    opacity 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}
.avail-banner-cta:hover {
  opacity: 0.85;
  transform: translateX(2px);
}
.avail-banner-close {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.avail-banner-close:hover {
  color: var(--text);
}

/* ─── 8. HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  pointer-events: none;
  z-index: 0;
}
.blob1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(34, 255, 110, 0.13) 0%,
    transparent 70%
  );
  top: -100px;
  left: -80px;
}
.blob2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(10, 154, 64, 0.1) 0%,
    transparent 70%
  );
  bottom: 60px;
  right: -60px;
}
.blob3 {
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle,
    rgba(34, 255, 110, 0.07) 0%,
    transparent 70%
  );
  top: 40%;
  left: 42%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  width: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.profile-wrap {
  position: relative;
  width: 260px;
  height: 340px;
}
.profile-ring {
  position: absolute;
  inset: -7px;
  border-radius: 140px;
  background: conic-gradient(
    var(--neon) 0deg,
    transparent 200deg,
    var(--neon) 360deg
  );
  animation: spin 8s linear infinite;
  opacity: 0.55;
}
.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 140px;
  background: radial-gradient(
    ellipse at 50% 60%,
    var(--neon-glow) 0%,
    transparent 70%
  );
  animation: pulse 3s ease-in-out infinite;
}
.profile-img {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 345px;
  border-radius: 140px;
  object-fit: cover;
  object-position: center top;
  image-rendering: -webkit-optimize-contrast;
  border: 3px solid rgba(34, 255, 110, 0.32);
  box-shadow:
    0 0 0 6px rgba(34, 255, 110, 0.06),
    0 0 40px rgba(34, 255, 110, 0.16),
    0 16px 40px rgba(0, 0, 0, 0.5);
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease);
}
.profile-img:hover {
  transform: scale(1.025);
  box-shadow:
    0 0 0 8px rgba(34, 255, 110, 0.1),
    0 0 60px rgba(34, 255, 110, 0.26),
    0 20px 48px rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .profile-img {
  box-shadow:
    0 0 0 5px rgba(10, 122, 50, 0.1),
    0 0 28px rgba(10, 122, 50, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-code-snippet {
  background: rgba(4, 12, 6, 0.88);
  border: 1px solid rgba(34, 255, 110, 0.15);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: var(--font-m);
  font-size: 0.7rem;
  line-height: 1.85;
  width: 100%;
  text-align: left;
  color: rgba(180, 210, 190, 0.72);
}
[data-theme="light"] .hero-code-snippet {
  background: rgba(6, 18, 10, 0.92);
}
.hcs-line {
  display: block;
}
.hcs-k {
  color: #ff7bbd;
}
.hcs-v {
  color: #7effa9;
}
.hcs-s {
  color: #ffd166;
}

.hero-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-m);
  font-size: 0.73rem;
  color: var(--neon);
  background: rgba(34, 255, 110, 0.08);
  border: 1px solid rgba(34, 255, 110, 0.18);
  padding: 0.32rem 0.82rem;
  border-radius: 100px;
  width: fit-content;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  font-family: var(--font-s);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.022em;
}
h1 em {
  font-style: normal;
  color: var(--neon);
  position: relative;
}
h1 em::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), transparent);
  border-radius: 2px;
}

/* ── Hero name letter animation ── */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: charReveal 0.45s var(--ease) forwards;
}
@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-oneliner {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.72;
}

.tagline {
  font-family: var(--font-m);
  font-size: 0.93rem;
  color: var(--neon);
  min-height: 1.6em;
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--neon);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.hs-num {
  font-family: var(--font-s);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--neon);
  line-height: 1;
}
.hs-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.hs-divider {
  width: 1px;
  height: 34px;
  background: var(--card-border);
  flex-shrink: 0;
}
.hero-btns {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ─── 9. ABOUT ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.about-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.about-card h3 {
  font-family: var(--font-s);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.about-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 0.72rem;
}
.about-card p:last-child {
  margin-bottom: 0;
}

.edu-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.edu-head h4 {
  font-family: var(--font-s);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon);
}
.edu p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.2rem;
}
.edu p strong {
  color: var(--text);
}
.certs {
  margin-top: 1.15rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.95rem;
}
.certs-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.ci {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.42rem;
}
.ci svg {
  color: var(--neon);
  flex-shrink: 0;
}

.about-photo-col {
  position: relative;
}
.about-photo-wrap {
  position: sticky;
  top: calc(var(--scroll-offset) + 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  border: 1px solid var(--card-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(34, 255, 110, 0.09);
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease);
  display: block;
  margin: 0 auto;
}
.about-photo:hover {
  transform: scale(1.025);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(34, 255, 110, 0.16);
}
[data-theme="light"] .about-photo {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(10, 122, 50, 0.09);
}
.about-photo-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 85%,
    var(--neon-glow),
    transparent 70%
  );
  border-radius: var(--radius);
}
.about-photo-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card-bg);
  border: 1px solid rgba(34, 255, 110, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--neon);
  margin-top: 0.8rem;
  backdrop-filter: blur(10px);
}
.about-photo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse 2s ease-in-out infinite;
}

/* ─── 10. JOURNEY ──────────────────────────────────────── */
.tl {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  padding-left: 1.5rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon), transparent);
}
.tl-item {
  position: relative;
  padding-left: 1.2rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.78rem;
  top: 1.7rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--neon-glow);
}
.tl-date {
  font-family: var(--font-m);
  font-size: 0.73rem;
  color: var(--neon);
  display: block;
  margin-bottom: 0.3rem;
}
.tl-title {
  font-family: var(--font-s);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.18rem;
}
.tl-org {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.6rem;
  font-style: italic;
}
.tl-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 0.8rem;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.tl-tag {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--neon);
  background: rgba(34, 255, 110, 0.07);
  border: 1px solid rgba(34, 255, 110, 0.15);
  padding: 0.18rem 0.52rem;
  border-radius: 100px;
}
[data-theme="light"] .tl-item::before {
  border-color: var(--bg-alt);
}

/* ─── 11. SKILLS ────────────────────────────────────────── */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.sk-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.sk-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 255, 110, 0.09);
  border: 1px solid rgba(34, 255, 110, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  flex-shrink: 0;
}
.sk-head h3 {
  font-family: var(--font-s);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
.sk-row {
  margin-bottom: 0.95rem;
}
.sk-row:last-child {
  margin-bottom: 0;
}
.sk-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.32rem;
}
.sk-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sk-pct {
  font-family: var(--font-m);
  font-size: 0.72rem;
  color: var(--neon);
}
.sk-track {
  height: 5px;
  background: rgba(34, 255, 110, 0.09);
  border-radius: 100px;
  overflow: hidden;
}
.sk-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  border-radius: 100px;
  transition: width 1.1s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 8px var(--neon-glow);
}
.sk-soft-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(34, 255, 110, 0.04);
  border: 1px solid var(--card-border);
  padding: 0.38rem 0.75rem;
  border-radius: 100px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.pill:hover {
  color: var(--neon);
  border-color: rgba(34, 255, 110, 0.3);
  background: rgba(34, 255, 110, 0.07);
}
.pill svg {
  color: var(--neon);
}

/* ─── 12. PROJECTS ──────────────────────────────────────── */
.pj-carousel-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.pj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  backdrop-filter: blur(10px);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.25s var(--spring);
}
.pj-nav:hover:not(:disabled) {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--neon-glow);
  transform: translateY(-50%) scale(1.1);
}
.pj-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pj-nav-prev {
  left: 0.5rem;
}
.pj-nav-next {
  right: 0.5rem;
}

.pj-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding: 1rem 3.5rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}
.pj-track::-webkit-scrollbar {
  display: none;
}
.pj-track:active {
  cursor: grabbing;
}
.pj-card {
  flex: 0 0 min(680px, calc(100vw - 7rem));
  width: min(680px, calc(100vw - 7rem));
  scroll-snap-align: center;
  opacity: 0.45;
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
  transform: scale(0.95);
  position: relative;
}
.pj-card.pj-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 3;
}
.pj-card.pj-peek-left,
.pj-card.pj-peek-right {
  opacity: 0.4;
  pointer-events: none;
  transform: scale(0.96);
}
.pj-card.pj-hidden {
  opacity: 0.25;
  transform: scale(0.93);
}
/* Remove old 3D animation classes — replaced by scroll */
.pj-card.pj-zoom-out {
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.2s ease;
}
.pj-card.pj-zoom-in {
  animation: zoomIn 0.38s var(--spring) forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.93);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pj-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  aspect-ratio: 16/8;
}
.pj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.5s var(--ease);
}
.pj-card:hover .pj-img-wrap img {
  transform: scale(1.04);
}
.pj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(5, 14, 8, 0.85) 100%
  );
}
.pj-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-family: var(--font-m);
  font-size: 0.68rem;
  padding: 0.22rem 0.62rem;
  border-radius: 100px;
  background: rgba(9, 22, 12, 0.85);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.pj-badge-live {
  color: var(--neon);
  border-color: rgba(34, 255, 110, 0.3);
}

.pj-body {
  padding: 1.4rem;
}
.pj-body h3 {
  font-family: var(--font-s);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.pj-featured-tag {
  font-family: var(--font-m);
  font-size: 0.63rem;
  color: var(--neon);
  background: rgba(34, 255, 110, 0.09);
  border: 1px solid rgba(34, 255, 110, 0.2);
  padding: 0.13rem 0.48rem;
  border-radius: 100px;
  font-weight: 400;
}
.pj-body > p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 0.8rem;
}
.pj-ch {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(34, 255, 110, 0.05);
  border-left: 2px solid var(--neon);
  padding: 0.48rem 0.72rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.8rem;
}
.pj-ch strong {
  color: var(--neon);
}

.ttags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.95rem;
}
.ttag {
  font-family: var(--font-m);
  font-size: 0.66rem;
  color: var(--text-muted);
  background: rgba(34, 255, 110, 0.04);
  border: 1px solid var(--card-border);
  padding: 0.18rem 0.52rem;
  border-radius: 100px;
}
.pj-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.pj-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 7px;
  transition: all 0.2s var(--ease);
}
.pj-live {
  background: var(--neon);
  color: #050e08;
}
[data-theme="light"] .pj-live,
[data-theme="light"] .pj-live:hover {
  color: #fff;
  background: var(--neon-dim);
  box-shadow: 0 0 18px rgba(10, 122, 50, 0.25);
}
.pj-code {
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}
.pj-code:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--neon-glow);
}

.pj-dots {
  display: flex;
  justify-content: center;
  gap: 0.48rem;
  margin-top: 1.5rem;
}
.pj-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--card-border);
  transition:
    background 0.2s,
    width 0.3s var(--spring);
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  background-clip: content-box;
  -webkit-background-clip: content-box;
}
.pj-dot.active {
  background: var(--neon);
  width: 24px;
}

/* ─── 13. TESTIMONIALS ─────────────────────────────────── */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.ts-card {
  position: relative;
}
.ts-q {
  font-family: var(--font-s);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
  opacity: 0.22;
  margin-bottom: -0.4rem;
}
.ts-stars {
  display: flex;
  gap: 0.12rem;
  margin-bottom: 0.8rem;
}
.ts-star {
  color: #ffd166;
  font-size: 0.88rem;
}
.ts-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.ts-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ts-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-dim), var(--neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-s);
  font-size: 0.88rem;
  font-weight: 800;
  color: #050e08;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(34, 255, 110, 0.35);
  box-shadow: 0 0 14px rgba(34, 255, 110, 0.15);
}
.ts-author {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.ts-role {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: block;
}

/* ─── 14. CONTACT ──────────────────────────────────────── */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: stretch;
}
.ct-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-top: 0.6rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.ct-info {
  display: flex;
  flex-direction: column;
}
.ct-info .avail {
  margin-top: 0.7rem;
}
.cl {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  margin-bottom: 0.7rem;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.cl:hover {
  border-color: var(--neon);
  transform: translateX(4px);
}
.cl-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(34, 255, 110, 0.08);
  border: 1px solid rgba(34, 255, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.cl-text strong {
  font-size: 0.83rem;
  color: var(--text);
}
.cl-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.avail {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 255, 110, 0.2);
  background: rgba(34, 255, 110, 0.04);
  margin-top: 0.45rem;
}
.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  margin-top: 3px;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.avail-text strong {
  font-size: 0.83rem;
  color: var(--neon);
  display: block;
  margin-bottom: 0.18rem;
}
.avail-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.ct-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.65rem;
  backdrop-filter: blur(14px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.fg label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.fg input,
.fg textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
  font-family: var(--font-d);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}
.fg input:focus,
.fg textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(34, 255, 110, 0.1);
}
.fg input:-webkit-autofill,
.fg input:-webkit-autofill:hover,
.fg input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg-solid, #0c1c10) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: var(--input-border);
  transition: background-color 9999s ease-in-out 0s;
}
[data-theme="light"] .fg input:-webkit-autofill,
[data-theme="light"] .fg input:-webkit-autofill:hover,
[data-theme="light"] .fg input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f5fbf7 inset;
  -webkit-text-fill-color: #0b1e0f;
}
.fg textarea {
  resize: vertical;
  min-height: 128px;
}
.sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--neon);
  color: #050e08;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-d);
  font-size: 0.93rem;
  font-weight: 700;
  transition: all 0.22s var(--ease);
  width: 100%;
}
.sub-btn:hover:not(:disabled) {
  opacity: 0.82;
  box-shadow: 0 0 24px var(--neon-glow);
  transform: translateY(-1px);
}
.sub-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}
.f-msg {
  display: none;
  padding: 0.62rem 0.88rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}
.f-msg.ok {
  background: rgba(34, 255, 110, 0.09);
  border: 1px solid rgba(34, 255, 110, 0.28);
  color: var(--neon);
}
.f-msg.err {
  background: rgba(255, 80, 80, 0.09);
  border: 1px solid rgba(255, 80, 80, 0.28);
  color: #ff6b6b;
}

/* ─── 15. FOOTER ────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo {
  display: inline-flex;
  margin-bottom: 0.9rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.2rem;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 0.55rem;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.22s var(--spring);
}
.footer-social-btn:hover {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--neon-glow);
  transform: translateY(-3px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-col-title {
  font-family: var(--font-s);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  width: 100%;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition:
    color 0.2s,
    transform 0.2s var(--ease);
  display: inline-flex;
  width: fit-content;
}
.footer-links a:hover {
  color: var(--neon);
  transform: translateX(4px);
}
.footer-contact-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}
.footer-cv-btn {
  font-size: 0.8rem;
  padding: 0.52rem 1rem;
  margin-top: 0.8rem;
}

/* ─── FOOTER STATUS CARD ───────────────────────────────── */
.footer-status-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
}
.fsc-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.85rem;
}
.fsc-row svg {
  color: var(--neon);
  flex-shrink: 0;
}
.fsc-divider {
  height: 1px;
  background: var(--card-border);
  margin: 0;
}
.fsc-label {
  display: block;
  font-family: var(--font-m);
  font-size: 0.63rem;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 0.18rem;
}
.fsc-value {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.fsc-value--green {
  color: var(--neon);
}
.fsc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--neon-glow);
}

/* Bottom bar */
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--neon);
  transition:
    opacity 0.2s,
    text-shadow 0.2s;
}
.footer-bottom a:hover {
  opacity: 0.8;
  text-shadow: 0 0 12px var(--neon-glow);
}
.footer-bottom-right {
  text-align: right;
}
.footer-heart {
  color: #ff6b6b;
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.25);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.18);
  }
  56% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-tagline {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
  .footer-bottom-right {
    text-align: center;
  }
}

/* ─── 16. BACK TO TOP ───────────────────────────────────── */
.b2t {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: auto;
  height: 44px;
  padding: 0 1rem;
  border-radius: 100px;
  background: var(--neon);
  color: #050e08;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--spring),
    box-shadow 0.3s;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(34, 255, 110, 0.35);
}
.b2t::after {
  content: "Top";
}
.b2t.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.b2t:hover {
  box-shadow: 0 8px 28px rgba(34, 255, 110, 0.5);
  transform: translateY(-3px) !important;
}

/* ─── 17. KEYFRAMES ─────────────────────────────────────── */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── 18. MOBILE MENU ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-actions {
    margin-left: auto;
    gap: 0.65rem;
  }
  .menu-btn {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 0.9rem;
    display: none;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.93rem;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-links a::after {
    display: none;
  }
}

/* ─── 19. RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 250px 1fr;
    gap: 2.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr 240px;
  }
  .sk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ts-grid .ts-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --section-pad: clamp(3rem, 7vw, 5rem);
  }
  .avail-banner {
    padding: 0.36rem 0.85rem;
  }
  .avail-banner-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
  }
  .avail-banner-dot {
    flex-shrink: 0;
  }
  .avail-banner-text {
    font-size: 0.7rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .avail-banner-text .hide-xs {
    display: none;
  }
  .avail-banner-cta {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .avail-banner-close {
    font-size: 1rem;
    flex-shrink: 0;
  }
  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: flex-start;
    padding-top: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.8rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .hero-photo-col {
    order: -1;
    align-items: center;
  }
  .profile-wrap {
    width: 200px;
    height: 265px;
  }
  .profile-img {
    width: 200px;
    height: 265px;
    border-radius: 105px;
  }
  .profile-ring,
  .profile-glow {
    border-radius: 105px;
  }
  .hero-code-snippet {
    max-width: 260px;
    font-size: 0.65rem;
    padding: 0.55rem 0.85rem;
  }
  .hero-badge {
    margin: 0 auto;
    font-size: 0.68rem;
  }
  .hero-oneliner {
    margin: 0 auto;
    font-size: 0.92rem;
  }
  h1 em::after {
    display: none;
  }
  .hero-stats {
    justify-content: center;
    gap: 0.75rem;
  }
  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .hero-btns .btn {
    font-size: 0.83rem;
    padding: 0.62rem 1.1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-photo-col {
    order: -1;
  }
  .about-photo-wrap {
    position: static;
    align-items: center;
  }
  .about-photo {
    max-width: 200px;
    border-radius: var(--radius);
  }
  .tl {
    padding-left: 1.2rem;
  }
  .tl-item {
    padding-left: 0.8rem;
  }
  .tl-item::before {
    left: -1.55rem;
  }
  .sk-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .ts-grid {
    grid-template-columns: 1fr;
  }
  .ts-grid .ts-card:last-child {
    grid-column: unset;
    max-width: none;
  }
  .pj-carousel-wrap {
    padding: 0;
  }
  .pj-track {
    padding: 0.75rem 2.5rem 1.25rem;
    gap: 1rem;
  }
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .fg input,
  .fg textarea {
    padding: 0.82rem 0.95rem;
    font-size: 0.9rem;
  }
  .sub-btn {
    padding: 0.92rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 2.75rem;
  }
  .avail-banner-cta {
    display: none;
  }
  .avail-banner-text .hide-sm {
    display: none;
  }
  h1 {
    font-size: 2rem;
  }
  .s-title {
    font-size: 1.65rem;
  }
  .hero-stats {
    gap: 0.55rem;
  }
  .hs-num {
    font-size: 1.15rem;
  }
  .hs-label {
    font-size: 0.64rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
  .about-photo {
    max-width: 170px;
  }
  .tl-title {
    font-size: 0.98rem;
  }
  .tl-desc {
    font-size: 0.82rem;
  }
  .tl-tag {
    font-size: 0.63rem;
  }
  .pj-carousel-wrap {
    padding: 0;
  }
  .pj-track {
    padding: 0.75rem 2rem 1.25rem;
    gap: 0.85rem;
  }
  .pj-card {
    flex: 0 0 calc(100vw - 4.5rem);
    width: calc(100vw - 4.5rem);
  }
  .pj-card.pj-peek-left,
  .pj-card.pj-peek-right {
    opacity: 0.4;
    transform: scale(0.96);
    display: block;
  }
  .pj-nav-prev {
    left: 0.2rem;
  }
  .pj-nav-next {
    right: 0.2rem;
  }
  .pj-body {
    padding: 1rem;
  }
  .pj-body h3 {
    font-size: 1.05rem;
  }
  .pj-dots {
    gap: 0.8rem;
    margin-top: 1.8rem;
  }
  .cl {
    padding: 0.65rem 0.8rem;
    gap: 0.6rem;
  }
  .cl-ico {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }
  .cl-text strong {
    font-size: 0.78rem;
  }
  .cl-text span {
    font-size: 0.7rem;
  }
  footer p {
    font-size: 0.73rem;
    line-height: 1.75;
  }
  .b2t {
    bottom: 1.1rem;
    right: 1.1rem;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }
  .b2t::after {
    display: none;
  }
}

@media (max-width: 375px) {
  :root {
    --section-pad: 2.25rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  .s-title {
    font-size: 1.5rem;
  }
  .profile-wrap {
    width: 160px;
    height: 210px;
  }
  .profile-img {
    width: 160px;
    height: 210px;
    border-radius: 85px;
  }
  .profile-ring,
  .profile-glow {
    border-radius: 85px;
  }
  .hero-code-snippet {
    font-size: 0.6rem;
    padding: 0.45rem 0.7rem;
  }
  .hero-badge {
    font-size: 0.63rem;
    padding: 0.28rem 0.65rem;
  }
  .hs-divider {
    display: none;
  }
  .sk-head h3 {
    font-size: 0.88rem;
  }
  .sk-name {
    font-size: 0.75rem;
  }
  .ct-form {
    padding: 1.1rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --max-w: 1320px;
  }
}

/* ─── LIGHT MODE BUTTON TEXT FIXES ─────────────────────── */
[data-theme="light"] .btn-warm {
  color: #fff;
}
[data-theme="light"] .btn-warm:hover {
  background: var(--neon-dim);
  color: #fff;
}
[data-theme="light"] .avail-banner-cta {
  color: #fff;
}
[data-theme="light"] .sub-btn,
[data-theme="light"] .sub-btn:hover:not(:disabled) {
  color: #fff;
}
[data-theme="light"] .pj-live,
[data-theme="light"] .pj-live:hover {
  color: #fff;
}
[data-theme="light"] .b2t {
  color: #fff;
}

/* ─── AI CHAT WIDGET ────────────────────────────────────── */
.ai-fab {
  position: fixed;
  bottom: calc(1.75rem + 44px + 0.6rem);
  right: 1.75rem;
  left: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--neon);
  color: #050e08;
  border: none;
  padding: 0 1.1rem 0 0.9rem;
  height: 46px;
  border-radius: 100px;
  font-family: var(--font-d);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 255, 110, 0.4);
  transition:
    transform 0.3s var(--spring),
    box-shadow 0.3s,
    background 0.2s;
  white-space: nowrap;
}
[data-theme="light"] .ai-fab {
  color: #fff;
}
.ai-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(34, 255, 110, 0.55);
}
.ai-fab.open {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: none;
}
.ai-fab.open .ai-fab-label {
  display: none;
}
.ai-fab.open .ai-fab-ping {
  display: none;
}
.ai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-fab-icon--close {
  display: none;
}
.ai-fab.open .ai-fab-icon--open {
  display: none;
}
.ai-fab.open .ai-fab-icon--close {
  display: flex;
}
.ai-fab-ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  border: 2px solid var(--neon);
  animation: pingPulse 2s ease-in-out infinite;
}
@keyframes pingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.ai-widget {
  position: fixed;
  bottom: calc(1.75rem + 44px + 0.6rem + 46px + 0.6rem);
  right: 1.75rem;
  left: auto;
  width: 370px;
  height: 560px;
  z-index: 901;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--bg);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 255, 110, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--spring);
}
.ai-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
.ai-widget-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ai-widget-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-dim), var(--neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-m);
  font-size: 0.6rem;
  font-weight: 600;
  color: #050e08;
  box-shadow: 0 0 12px var(--neon-glow);
  flex-shrink: 0;
}
.ai-widget-title {
  font-family: var(--font-s);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.ai-widget-sub {
  font-family: var(--font-m);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.ai-widget-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.ai-widget-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  background: none;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.ai-widget-close:hover {
  color: var(--neon);
  border-color: var(--neon);
}
.ai-widget-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--bg);
}

@media (max-width: 480px) {
  .ai-fab {
    bottom: calc(1.1rem + 40px + 0.55rem);
    right: 1.1rem;
    left: auto;
    height: 42px;
    font-size: 0.78rem;
    padding: 0 0.9rem 0 0.75rem;
  }
  .ai-widget {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: calc(1.1rem + 40px + 0.55rem + 42px + 0.55rem);
    height: 70dvh;
  }
}
