/* ═══════════════════════════════════════════════════════════
   DOMINIK BARIČIAK — PORTFOLIO
   Apple Liquid Glass × Dark Green
═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --green:        #30d158;
  --green-bright: #4ade80;
  --green-dim:    #16a34a;
  --green-glow:   rgba(48, 209, 88, 0.35);
  --green-glow-s: rgba(48, 209, 88, 0.12);

  --bg:           #030806;
  --bg-2:         #060f09;
  --surface:      rgba(12, 28, 16, 0.55);
  --surface-h:    rgba(18, 42, 24, 0.70);
  --border:       rgba(48, 209, 88, 0.14);
  --border-h:     rgba(48, 209, 88, 0.30);

  --text:         #f0fdf4;
  --text-2:       #86efac;
  --text-3:       #4ade80;
  --text-muted:   rgba(240, 253, 244, 0.45);

  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-pill:  999px;

  --blur:         24px;
  --blur-lg:      40px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", "Consolas", monospace;

  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

.section-gap {
    height: 15vh;
    min-height: 200px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
strong { color: var(--green-bright); font-weight: 600; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 99px; }

/* ── Background orbs ─────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #16a34a 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  top: 30%; right: -180px;
  animation-delay: -6s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #065f46 0%, transparent 70%);
  bottom: 10%; left: 20%;
  animation-delay: -12s;
}
.orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #14532d 0%, transparent 70%);
  bottom: -100px; right: 10%;
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -60px) scale(1.05); }
  66%       { transform: translate(-30px, 40px) scale(0.95); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Glass primitives ────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.04) inset,
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 8px 32px rgba(0,0,0,0.5),
    0 0 60px rgba(48,209,88,0.04);
  transition: border-color 0.3s var(--ease-smooth),
              box-shadow   0.3s var(--ease-smooth),
              transform    0.3s var(--ease-spring);
}

.glass-card:hover {
  border-color: var(--border-h);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.06) inset,
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 12px 48px rgba(0,0,0,0.6),
    0 0 80px rgba(48,209,88,0.10);
  transform: translateY(-2px);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(255,255,255,0.04) inset;
  white-space: nowrap;
}

.glass-btn:hover {
  background: rgba(48,209,88,0.12);
  border-color: var(--green);
  color: var(--green-bright);
  box-shadow: 0 4px 20px rgba(48,209,88,0.25), 0 0 0 0.5px rgba(255,255,255,0.06) inset;
  transform: translateY(-1px) scale(1.02);
}

.glass-btn svg { width: 14px; height: 14px; }

.glass-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.20);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green-bright);
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.glass-tag.sm { padding: 3px 9px; font-size: 0.68rem; }

.glass-pill {
  background: rgba(6, 15, 9, 0.72);
  backdrop-filter: blur(var(--blur-lg)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.04) inset,
    0 4px 24px rgba(0,0,0,0.5);
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 18px 28px;
  transition: padding 0.3s var(--ease-smooth);
}

.navbar.scrolled { padding: 10px 28px; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  max-width: 760px;
  width: 100%;
}

.nav-logo { flex-shrink: 0; }
.logo-mark {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px var(--green-glow);
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-muted);
  transition: all 0.2s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(48, 209, 88, 0.08);
}

.nav-cta {
  padding: 8px 18px;
  font-size: 0.875rem;
  background: var(--green);
  border: none;
  color: #030806;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--green-bright);
  color: #030806;
  transform: scale(1.03);
}

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-bright);
  transition: transform 0.25s var(--ease-smooth), opacity 0.2s var(--ease-smooth);
}

.navbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Kontakt link inside mobile menu — desktop shows the pill CTA instead */
.nav-link-contact { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 28px 80px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-bright);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: pulseDot 2.2s ease infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(48,209,88,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}

.hero-name {
  margin-bottom: 22px;
}

.name-greeting {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.name-main {
  display: block;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, var(--green-bright) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-accent {
  color: var(--green-bright);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--green);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: #030806;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 0 24px rgba(48,209,88,0.35);
}

.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 40px rgba(48,209,88,0.55);
  transform: translateY(-2px) scale(1.02);
}

.btn-arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translate(2px, -2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s var(--ease-smooth);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-bright);
  background: rgba(48,209,88,0.06);
}

.hero-stats {
  display: flex;
  gap: 12px;
}

.glass-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  min-width: 80px;
}

.stat-n {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px var(--green-glow);
}

.stat-l {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  font-weight: 500;
}

/* ── Code window ─────────────────────────────────────────── */
.code-window {
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  position: relative;
}

.code-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(48,209,88,0.2), transparent 60%, rgba(48,209,88,0.08));
  pointer-events: none;
  z-index: -1;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.traffic-lights { display: flex; gap: 7px; }
.tl {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.tl-red    { background: #ff5f57; }
.tl-yellow { background: #ffbd2e; }
.tl-green  { background: #28c940; }

.code-filename {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.code-body {
  padding: 20px 22px 24px;
  position: relative;
}

.cl { display: flex; align-items: baseline; gap: 4px; min-height: 1.7em; }
.cl.i1 { padding-left: 20px; }
.cl.spacer { min-height: 0.85em; }

.ck { color: #c084fc; }
.cv { color: #60a5fa; }
.co { color: var(--text-muted); }
.cs { color: var(--text-muted); }
.ca { color: var(--green-bright); }
.cq { color: #fcd34d; }
.cn { color: #fb923c; }
.cc { color: rgba(134,239,172,0.45); font-style: italic; }

.cursor-blink {
  display: inline-block;
  color: var(--green);
  animation: blink 1.1s step-end infinite;
  font-size: 0.9rem;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Scroll hint ──────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollFade 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollLine 2.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 100px 0; position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 40%, var(--green-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 520px;
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.about-text p {
  color: rgba(240,253,244,0.7);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about-card { padding: 28px; }

.info-list { display: flex; flex-direction: column; gap: 2px; }

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }

.info-icon { font-size: 1.2rem; flex-shrink: 0; }
.info-key  { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.info-val  { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ── Projects ─────────────────────────────────────────────── */
.projects-section .section-sub { margin-bottom: 48px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* browser shell */
.browser-shell { flex: 0 0 auto; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}

.browser-lights { display: flex; gap: 6px; flex-shrink: 0; }
.bl { width: 10px; height: 10px; border-radius: 50%; }
.bl-r { background: rgba(255,95,87,0.7); }
.bl-y { background: rgba(255,189,46,0.7); }
.bl-g { background: rgba(40,201,64,0.7); }

.browser-url-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-icon { width: 9px; height: 10px; color: var(--green); opacity: 0.7; flex-shrink: 0; }
.browser-spacer { flex: 0 0 46px; }

.browser-viewport {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0a1a0d;
}

.browser-viewport iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
  border: none;
  pointer-events: none;
  display: block;
}

.viewport-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s;
  z-index: 2;
}

.viewport-overlay:hover {
  background: rgba(48, 209, 88, 0.06);
}

/* placeholder preview */
.placeholder-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}

.ph-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.ph-icon svg { width: 40px; height: 40px; opacity: 0.4; }
.ph-content span { font-size: 0.82rem; opacity: 0.6; }

/* project meta */
.project-meta {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.82rem;
  padding: 8px 16px;
}

.project-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.placeholder-card .browser-viewport {
  background: linear-gradient(135deg, rgba(48,209,88,0.04), rgba(0,0,0,0.2));
}

/* ── Skills ───────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon svg { width: 22px; height: 22px; }
.html-c   { background: rgba(227,76,38,0.15); color: #e34c26; }
.css-c    { background: rgba(21,114,182,0.15); color: #1572b6; }
.js-c     { background: rgba(247,223,30,0.15);  color: #f7df1e; }
.design-c { background: rgba(48,209,88,0.12);   color: var(--green); }

.skill-name  { font-weight: 700; font-size: 1rem; }
.skill-level { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.skill-pct {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-mono);
  text-shadow: 0 0 12px var(--green-glow-s);
}

.skill-bar-wrap { }
.skill-bar {
  height: 5px;
  background: rgba(48,209,88,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  box-shadow: 0 0 8px var(--green-glow);
  transition: width 1.2s var(--ease-spring);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-card {
  padding: 40px 48px;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-left { max-width: 500px; }
.contact-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.contact-left p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-btn {
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Bottom fog ───────────────────────────────────────────── */
.bottom-fog {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  z-index: 40;
  background: linear-gradient(to top,
    rgba(3, 8, 6, 0.95) 0%,
    rgba(3, 8, 6, 0.6) 40%,
    transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 25%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 25%, transparent 100%);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 28px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 16px var(--green-glow);
  margin-bottom: 4px;
}

.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-sub  { font-size: 0.75rem; color: rgba(240,253,244,0.25); margin-top: 4px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner         { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual        { display: flex; justify-content: center; }
  .code-window        { max-width: 480px; width: 100%; }
  .about-grid         { grid-template-columns: 1fr; }
  .projects-grid      { grid-template-columns: 1fr; }
  .skills-grid        { grid-template-columns: 1fr; }
  .contact-inner      { flex-direction: column; text-align: center; }
  .contact-left       { max-width: 100%; }
}

@media (max-width: 640px) {
  /* nav → hamburger + dropdown menu */
  .navbar           { padding: 14px 16px; }
  .navbar.scrolled  { padding: 8px 16px; }
  .nav-inner        { padding: 6px 6px 6px 16px; justify-content: space-between; }
  .nav-cta          { display: none; }
  .nav-toggle       { display: flex; }
  .nav-link-contact { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(6, 15, 9, 0.92);
    backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.04) inset, 0 16px 48px rgba(0,0,0,0.6);
  }

  .navbar.menu-open .nav-links { display: flex; }

  .nav-links a {
    display: block;
    padding: 13px 16px;
    font-size: 1rem;
    text-align: center;
    color: var(--text);
  }

  .nav-link-contact a {
    background: var(--green);
    color: #030806;
    font-weight: 600;
  }

  .nav-link-contact a:hover {
    background: var(--green-bright);
    color: #030806;
  }

  /* layout & spacing */
  .container    { padding: 0 18px; }
  .section      { padding: 64px 0; }
  .section-gap  { height: 7vh; min-height: 64px; }
  .section-sub  { margin-bottom: 40px; }

  /* hero */
  .hero         { padding: 110px 18px 72px; }
  .hero-inner   { gap: 40px; }
  .hero-badge   { margin-bottom: 20px; }
  .name-main    { font-size: clamp(2.4rem, 12vw, 2.9rem); }
  .hero-sub     { margin-bottom: 28px; }
  .hero-sub br  { display: none; }

  .hero-actions { margin-bottom: 32px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1 1 auto; justify-content: center; }

  .hero-stats   { flex-wrap: wrap; }
  .glass-stat   { flex: 1 1 0; padding: 12px 10px; min-width: 0; }

  .code-window  { font-size: 0.72rem; }
  .code-body    { padding: 16px 16px 20px; }
  .scroll-hint  { display: none; }

  /* cards */
  .about-card       { padding: 22px; }
  .browser-viewport { height: 180px; }
  .project-meta     { padding: 16px 18px 18px; }
  .skill-card       { padding: 18px 20px; }
  .contact-card     { padding: 28px 22px; }
  .footer           { padding: 36px 18px; }
}

/* very narrow phones */
@media (max-width: 380px) {
  .name-main  { font-size: 2.1rem; }
  .glass-stat { flex: 1 1 100%; }
}

/* touch devices — no sticky hover lift on cards */
@media (hover: none) {
  .glass-card:hover { transform: none; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Theme switch (fixed top-right) ──────────────────────── */
.theme-switch-wrap {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(6, 15, 9, 0.72);
  backdrop-filter: blur(var(--blur-lg)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.04) inset, 0 4px 24px rgba(0,0,0,0.45);
}

.sw-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: color 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

.sw-moon { color: var(--text-muted); opacity: 0.5; }
.sw-sun  { color: var(--text-muted); opacity: 0.35; }
[data-theme="dark"]  .sw-moon { color: var(--green); opacity: 1; }
[data-theme="light"] .sw-sun  { color: #f59e0b;      opacity: 1; }

.theme-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: rgba(48, 209, 88, 0.10);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

[data-theme="light"] .theme-switch {
  background: rgba(48, 209, 88, 0.22);
  border-color: var(--green);
}

.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 6px rgba(0,0,0,0.30), 0 0 8px var(--green-glow-s);
  transition: transform 0.35s var(--ease-spring);
}

/* track: 46px wide, thumb 16px, 4px gap each side → travel = 46-16-4-4 = 22px */
[data-theme="light"] .switch-thumb { transform: translateX(22px); }

[data-theme="light"] .theme-switch-wrap {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.06) inset, 0 4px 24px rgba(0,0,0,0.10);
}

@media (max-width: 640px) {
  /* slide below the nav so it doesn't cover the hamburger */
  .theme-switch-wrap { top: 80px; right: 16px; }
}

/* ── Nav controls ─────────────────────────────────────────── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: rgba(48, 209, 88, 0.16);
  border-color: var(--green);
  color: var(--green-bright);
}

.nav-icon-btn svg { width: 15px; height: 15px; display: block; }

.lang-toggle {
  width: auto;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

/* ── Light mode tokens ────────────────────────────────────── */
[data-theme="light"] {
  --bg:         #f0fdf4;
  --bg-2:       #f7fef8;
  --surface:    rgba(255, 255, 255, 0.65);
  --surface-h:  rgba(255, 255, 255, 0.85);
  --border:     rgba(48, 209, 88, 0.22);
  --border-h:   rgba(48, 209, 88, 0.45);
  --text:       #0a1a0d;
  --text-2:     #166534;
  --text-3:     #15803d;
  --text-muted: rgba(10, 26, 13, 0.50);
}

[data-theme="light"] body { background: var(--bg); }

[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }

[data-theme="light"] .glass-pill {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.06) inset, 0 4px 24px rgba(0,0,0,0.10);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.05) inset,
    0 1px 0 0 rgba(255,255,255,0.95) inset,
    0 8px 32px rgba(0,0,0,0.10),
    0 0 60px rgba(48,209,88,0.04);
}

[data-theme="light"] .glass-card:hover {
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.06) inset,
    0 1px 0 0 rgba(255,255,255,0.98) inset,
    0 12px 48px rgba(0,0,0,0.14),
    0 0 80px rgba(48,209,88,0.10);
}

[data-theme="light"] .glass-btn {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.05) inset;
}

[data-theme="light"] .glass-btn:hover {
  background: rgba(48,209,88,0.12);
  box-shadow: 0 4px 20px rgba(48,209,88,0.22), 0 0 0 0.5px rgba(255,255,255,0.8) inset;
}

[data-theme="light"] .glass-tag {
  background: rgba(48, 209, 88, 0.10);
}

[data-theme="light"] strong { color: var(--green-dim); }

[data-theme="light"] .name-main {
  background: linear-gradient(135deg, #0a1a0d 0%, var(--green-dim) 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .about-text p { color: rgba(10, 26, 13, 0.72); }

[data-theme="light"] .orb { opacity: 0.12; }

[data-theme="light"] .stat-n    { text-shadow: none; }
[data-theme="light"] .logo-mark { text-shadow: none; }
[data-theme="light"] .footer-logo { text-shadow: none; }
[data-theme="light"] .skill-pct  { text-shadow: none; }

/* keep code window dark in light mode */
[data-theme="light"] .code-window {
  background: rgba(6, 12, 8, 0.94);
  border-color: rgba(48, 209, 88, 0.20);
}

[data-theme="light"] .skill-bar { background: rgba(48,209,88,0.18); }

[data-theme="light"] .placeholder-view { background: rgba(48,209,88,0.07); }

[data-theme="light"] .bottom-fog {
  background: linear-gradient(to top,
    rgba(240, 253, 244, 0.97) 0%,
    rgba(240, 253, 244, 0.60) 40%,
    transparent 100%);
}

[data-theme="light"] .nav-links a { color: rgba(10, 26, 13, 0.55); }
[data-theme="light"] .nav-links a:hover {
  color: var(--text);
  background: rgba(48, 209, 88, 0.10);
}

[data-theme="light"] .nav-toggle span { background: var(--green-dim); }
[data-theme="light"] .browser-url-pill { background: rgba(0,0,0,0.07); }

@media (max-width: 640px) {
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.05) inset, 0 16px 48px rgba(0,0,0,0.10);
  }
}
