/* ============================================================
   LUKÁŠ SCHEJBAL — PORTFOLIO STYLES
   Inspired by landonorris.com design language
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #1c1c1c;
  --accent:      #c5f135;
  --accent-dim:  rgba(197, 241, 53, 0.09);
  --accent-line: rgba(197, 241, 53, 0.22);
  --text:        #efefef;
  --text-muted:  #5e5e5e;
  --border:      rgba(255, 255, 255, 0.07);
  --radius:      10px;
  --max-w:       1200px;
  --gap:         2rem;
  --ease:        cubic-bezier(0.65, 0.05, 0, 1);
  --dur:         0.75s;
}

/* ── LIGHT THEME ────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f5f5f0;
  --surface:     #eaeae4;
  --surface-2:   #dededb;
  --accent:      #7ab800;
  --accent-dim:  rgba(122, 184, 0, 0.09);
  --accent-line: rgba(122, 184, 0, 0.28);
  --text:        #111111;
  --text-muted:  #777777;
  --border:      rgba(0, 0, 0, 0.08);
}
[data-theme="light"] header.hero,
[data-theme="light"] section,
[data-theme="light"] section.about,
[data-theme="light"] section.skills,
[data-theme="light"] section.services,
[data-theme="light"] section.certs { background: rgba(245,245,240,0.40); }
[data-theme="light"] .timeline__item { background: var(--bg); }
[data-theme="light"] .about__current { background: var(--bg); }
[data-theme="light"] .project-card { background: var(--bg); }
[data-theme="light"] .cert-card { background: var(--bg); }

[data-theme="light"] #particleNetwork { opacity: 1; }
[data-theme="light"] .nav.scrolled { background: rgba(245,245,240,0.93); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
[data-theme="light"] .nav__menu { background: rgba(245,245,240,0.99); }
[data-theme="light"] .nav__hamburger-bar { background: var(--text); }
[data-theme="light"] .terminal { background: #1e1e1e; border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .hero__photo-card { background: transparent; }
[data-theme="light"] .hero__stat { background: rgba(245,245,240,0.88); }
[data-theme="light"] .hero__stat:hover { background: rgba(234,234,228,0.97); }
[data-theme="light"] .hero__photo-overlay { background: rgba(0,0,0,0.1); }

/* theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { height: 100%; overflow: hidden; }

/* Hide scrollbar */
::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }

p { text-wrap: pretty; }

/* ── CANVAS ─────────────────────────────────────────────── */
#particleNetwork {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  position: relative;
  z-index: 1;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav__cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
.nav__menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav__menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav__menu a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__lang {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.38rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  transition: all 0.25s;
}
.nav__lang:hover { border-color: var(--accent); color: var(--accent); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
  pointer-events: none;
}
.nav__hamburger.open .nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.open .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Close button inside mobile menu */
.nav__menu-close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}
.nav__menu-close:hover { color: var(--accent); }
@media (max-width: 768px) {
  .nav__menu-close { display: block; }
}

/* Overlay behind open mobile menu */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99;
  -webkit-tap-highlight-color: transparent;
}
.nav__overlay.active { display: block; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}
.hero__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__name {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.25rem;
}
.hero__name span { color: var(--accent); }
.hero__subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
  min-height: 1.5em;
}
.typing-cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.hero__tag {
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.25s, color 0.25s;
  cursor: default;
}
.hero__tag:hover { border-color: var(--accent); color: var(--accent); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  border: none;
}
.btn--primary {
  background: var(--accent);
  color: #080808;
}
.btn--primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn--ghost::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235e5e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.2s;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ghost:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c5f135' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 999;
  background: transparent;
  pointer-events: none;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(197,241,53,0.6);
}

/* ── SECTION COUNTER ─────────────────────────────────────── */
.section-counter {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 200;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.section-counter__cur {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
@keyframes counter-flip {
  0%   { opacity: 1; transform: translateY(0); }
  40%  { opacity: 0; transform: translateY(-6px); }
  60%  { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.section-counter__cur.flip {
  animation: counter-flip 0.35s ease both;
}
.section-counter__sep {
  color: var(--text-muted);
  opacity: 0.4;
}
.section-counter__tot {
  color: var(--text-muted);
  opacity: 0.5;
}
@media (max-width: 600px) {
  .section-counter { display: none; }
}

/* ── PAGE REVEAL ────────────────────────────────────────── */
/* Pre-promote layers so GPU is ready before animation starts */
.nav,
.hero__label,
.hero__name,
.hero__subtitle,
.hero__tags,
.hero__cta,
.hero__photo-card {
  will-change: transform, opacity;
}

/* Initial hidden state — set before .loaded */
.nav {
  opacity: 0;
  transform: translateY(-20px);
}
.hero__label,
.hero__name,
.hero__subtitle,
.hero__tags,
.hero__cta {
  opacity: 0;
  transform: translateY(28px);
}
.hero__photo-card {
  opacity: 0;
  transform: translateX(36px);
}

/* Revealed state — single easing, delay drives stagger */
.nav,
.hero__label,
.hero__name,
.hero__subtitle,
.hero__tags,
.hero__cta,
.hero__photo-card {
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.loaded .nav          { opacity: 1; transform: none; transition-delay: 0.05s; }
body.loaded .hero__label  { opacity: 1; transform: none; transition-delay: 0.15s; }
body.loaded .hero__name   { opacity: 1; transform: none; transition-delay: 0.25s; }
body.loaded .hero__photo-card { opacity: 1; transform: none; transition-delay: 0.30s; }
body.loaded .hero__subtitle   { opacity: 1; transform: none; transition-delay: 0.35s; }
body.loaded .hero__tags       { opacity: 1; transform: none; transition-delay: 0.44s; }
body.loaded .hero__cta        { opacity: 1; transform: none; transition-delay: 0.52s; }

/* After reveal, clear will-change to free GPU memory */
body.reveal-done .nav,
body.reveal-done .hero__label,
body.reveal-done .hero__name,
body.reveal-done .hero__subtitle,
body.reveal-done .hero__tags,
body.reveal-done .hero__cta,
body.reveal-done .hero__photo-card {
  will-change: auto;
}

/* ── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(197,241,53,0.3);
  background: rgba(8,8,8,0.85);
  color: #c5f135;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: rgba(197,241,53,0.12);
  border-color: rgba(197,241,53,0.6);
}
[data-theme="light"] .scroll-top {
  background: rgba(245,245,240,0.9);
  color: rgb(60,110,0);
  border-color: rgba(80,140,0,0.3);
}
[data-theme="light"] .scroll-top:hover {
  background: rgba(80,140,0,0.08);
  border-color: rgba(80,140,0,0.6);
}

/* ── LOADING SCREEN ─────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.loading-screen--done {
  opacity: 0;
  pointer-events: none;
}
.loading-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.loading-screen__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: #f5f5f0;
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 4ch;
}
.loading-screen__cursor {
  color: #c5f135;
  animation: cursorBlink 0.7s step-end infinite;
}
.loading-screen__cursor--static {
  animation: none;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.loading-screen__bar-wrap {
  width: min(220px, 55vw);
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loading-screen__bar-fill {
  height: 100%;
  width: 0%;
  background: #c5f135;
  border-radius: 2px;
  transition: width 0.12s linear;
}

/* ── HERO PHOTO CARD ────────────────────────────────────── */
.hero__photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  background: transparent;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform var(--dur) var(--ease);
}
.hero__photo-card:hover .hero__photo {
  transform: scale(1.03);
}
.hero__photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.hero__stat {
  background: rgba(8, 8, 8, 0.88);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background 0.25s;
}
.hero__stat:hover { background: rgba(8, 8, 8, 0.95); }
.hero__stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.hero__stat-accent { color: var(--accent); }
.hero__stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

/* ── TERMINAL ───────────────────────────────────────────── */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}
.terminal__bar {
  background: var(--surface-2);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__title {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.terminal__body {
  padding: 1.5rem;
  font-size: 0.8rem;
  line-height: 2;
}
.terminal__prompt { color: var(--accent); }
.terminal__path   { color: #5c9cf5; }
.terminal__cmd    { color: #febc2e; }
.terminal__out    { color: #888; display: block; padding-left: 0.5rem; }
.terminal__cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes lang-fade {
  0%   { opacity: 1; }
  35%  { opacity: 0; }
  65%  { opacity: 0; }
  100% { opacity: 1; }
}
.lang-switching [data-translate],
.lang-switching [data-translate-placeholder] {
  animation: lang-fade 0.6s ease both;
}

/* ── STAGGER CHILDREN ───────────────────────────────────── */
/* Slide from right — small inline elements */
.about__info-item,
.about__tag,
.stagger-item {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade up — large cards */
.timeline__item,
.project-card,
.cert-card,
.skills__category {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.item--in {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ── SCROLL HINT ────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: float 2.2s ease-in-out infinite;
}
.scroll-hint::after { content: '↓'; font-size: 1rem; color: var(--accent); }

/* ── KEYBOARD HINT ──────────────────────────────────────── */
.kb-hint {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.kb-hint.hidden { opacity: 0; }
.kb-hint__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1;
}
.kb-hint__text { margin-left: 0.2rem; }
.kb-hint__key--mobile { display: none; }
@media (max-width: 768px) {
  .nav-dot::before { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  /* touch device — show swipe indicator, hide keyboard keys */
  .kb-hint__key--desk   { display: none; }
  .kb-hint__key--mobile {
    display: inline-flex;
    font-size: 0.9rem;
    width: auto;
    border: none;
    background: none;
    color: var(--accent);
    padding: 0 0.1rem;
    animation: swipe-hint 1.4s ease-in-out infinite;
  }
}
@keyframes swipe-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(-4px); opacity: 0.5; }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── FULLPAGE SLIDES ─────────────────────────────────────── */
.slides-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

header.hero,
section {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.78);
  /* top padding = nav height, bottom padding small */
  padding: 5rem var(--gap) 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.75s var(--ease);
  will-change: transform;
  /* make content fit inside viewport */
  box-sizing: border-box;
  height: 100%;
}

/* section background colors */
section.about     { background: rgba(17,17,17,0.78); }
section.skills    { background: rgba(17,17,17,0.78); }
section.services  { background: rgba(17,17,17,0.78); }
section.certs     { background: rgba(17,17,17,0.78); }

header.hero.slide--active,
section.slide--active {
  transform: translateX(0);
}
header.hero.slide--prev,
section.slide--prev {
  transform: translateX(-100%);
}

/* ── NAV DOTS ────────────────────────────────────────────── */
.nav-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 150;
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
  position: relative;
}
.nav-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.5);
}
.nav-dot:hover { border-color: var(--accent); }
.nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.22;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-dot:hover::before {
  opacity: 0.55;
}
.nav-dot.active::before {
  color: var(--accent);
  opacity: 0.75;
}

.section__header { margin-bottom: 1.25rem; }
.section__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section__label::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__text {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}
[data-theme="light"] .about__text { background: rgba(245,245,240,0.95); }
.about__text p {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
  font-size: 0.88rem;
}
.about__info { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.about__info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.about__info-key { color: var(--text-muted); }
.about__info-val { color: var(--text); font-weight: 500; }
.about__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.about__tag {
  padding: 0.28rem 0.8rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 500;
}
.about__photo-wrap {
  display: flex;
  align-self: flex-start;
  justify-content: center;
}
.about__photo {
  width: 100%;
  max-width: 310px;
  display: block;
  border-radius: var(--radius);
  filter: grayscale(15%);
  transition: filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 12px 12px 0 0 rgba(197, 241, 53, 0.25);
}
.about__photo:hover {
  filter: grayscale(0%);
  box-shadow: 12px 12px 0 0 rgba(197, 241, 53, 0.45);
}
.about__photo-frame { display: none; }

/* ── CURRENTLY WORKING ON ────────────────────────────────── */
.about__current {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}
.about__current-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.about__current-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
}
.about__current-live::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.4; }
  80%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.about__current-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.about__current-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about__current-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.about__current-item:last-child { border-bottom: none; padding-bottom: 0; }
.about__current-item:first-child { padding-top: 0; }
.about__current-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.about__current-icon--product {
  background: rgba(197,241,53,0.12);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.about__current-icon--finance {
  background: rgba(99,179,237,0.1);
  color: #63b3ed;
  border: 1px solid rgba(99,179,237,0.2);
}
.about__current-icon--security {
  background: rgba(236,153,75,0.1);
  color: #ec994b;
  border: 1px solid rgba(236,153,75,0.2);
}
.about__current-icon--web {
  background: rgba(154,104,239,0.1);
  color: #9a68ef;
  border: 1px solid rgba(154,104,239,0.2);
  font-size: 0.6rem;
}
.about__current-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.about__current-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── EXPERIENCE / VISUAL TIMELINE ───────────────────────── */
.vtimeline {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}
.vtimeline__track {
  position: relative;
  width: 2px;
  margin-right: 2rem;
  flex-shrink: 0;
}
.vtimeline__line {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.vtimeline__line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #c5f135 0%, rgba(197,241,53,0.3) 100%);
  border-radius: 2px;
  transition: height 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.vtimeline__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.vtimeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.vtimeline__dot {
  position: absolute;
  left: -2.6rem;
  top: 1.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  z-index: 1;
}
.vtimeline__item:hover .vtimeline__dot,
.vtimeline__item.active .vtimeline__dot {
  border-color: #c5f135;
  background: #c5f135;
  transform: scale(1.3);
}
.vtimeline__card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s ease, box-shadow 0.3s;
}
.vtimeline__card:hover {
  border-color: rgba(197,241,53,0.3);
  transform: translateX(5px);
  box-shadow: -4px 0 0 0 rgba(197,241,53,0.4);
}
.vtimeline__item.active .vtimeline__card {
  border-color: rgba(197,241,53,0.4);
  box-shadow: -4px 0 0 0 rgba(197,241,53,0.5);
}
.vtimeline__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.vtimeline__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #c5f135;
  letter-spacing: 0.06em;
}
.vtimeline__company {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.vtimeline__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.vtimeline__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease, margin 0.4s ease;
  opacity: 0;
  margin-bottom: 0;
}
.vtimeline__item.active .vtimeline__desc {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 0.75rem;
}
.vtimeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1) 0.05s, opacity 0.4s ease 0.05s;
}
.vtimeline__item.active .vtimeline__tags {
  max-height: 80px;
  opacity: 1;
}
.vtimeline__tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}
[data-theme="light"] .vtimeline__item .vtimeline__dot { background: var(--bg); }
[data-theme="light"] .vtimeline__item:hover .vtimeline__dot,
[data-theme="light"] .vtimeline__item.active .vtimeline__dot { background: var(--accent); }
[data-theme="light"] .vtimeline__card { background: var(--bg); }
[data-theme="light"] .vtimeline__tags span { background: rgba(0,0,0,0.04); }
[data-theme="light"] .vtimeline__date { color: rgb(60,110,0); }
[data-theme="light"] .vtimeline__line-fill { background: linear-gradient(180deg, rgb(80,140,0) 0%, rgba(80,140,0,0.2) 100%); }
@media (max-width: 600px) {
  .vtimeline__track { margin-right: 1.25rem; }
}

/* ── SKILLS ─────────────────────────────────────────────── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.skills__category-title {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.skill {
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.skill:hover { background: rgba(197, 241, 53, 0.04); }
.skill__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.skill__name { font-size: 0.78rem; font-weight: 500; }
.skill__level { font-size: 0.65rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
/* Skill bar tooltip */
.skill__track-wrap {
  position: relative;
}
.skill__tooltip {
  position: absolute;
  top: -28px;
  left: var(--tt-left, 50%);
  transform: translateX(-50%);
  background: #c5f135;
  color: #080808;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.skill__tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #c5f135;
}
.skill:hover .skill__tooltip { opacity: 1; }
[data-theme="light"] .skill__tooltip { background: rgb(60,110,0); color: #fff; }
[data-theme="light"] .skill__tooltip::after { border-top-color: rgb(60,110,0); }
.skill__track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── PROJECTS ───────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.project-card:hover::before { transform: scaleX(1); }
.project-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 0.4rem;
}
.project-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.project-card__desc {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.project-card__tag {
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.project-card__link {
  font-size: 0.76rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: gap 0.25s var(--ease);
}
.project-card__link::after { content: '→'; }
.project-card__link:hover { gap: 0.65rem; }

/* ── SERVICES ───────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover {
  border-color: rgba(197,241,53,0.35);
  transform: translateY(-3px);
}
.service-card--featured {
  border-color: rgba(197,241,53,0.25);
  background: color-mix(in srgb, var(--surface) 90%, rgba(197,241,53,1) 10%);
}
.service-card--featured:hover {
  border-color: rgba(197,241,53,0.55);
}
.service-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5f135;
  background: rgba(197,241,53,0.1);
  border: 1px solid rgba(197,241,53,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(197,241,53,0.08);
  border: 1px solid rgba(197,241,53,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5f135;
  flex-shrink: 0;
}
.service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.service-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.service-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.service-card__tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}
[data-theme="light"] .service-card {
  background: rgba(245,245,240,0.95);
}
[data-theme="light"] .service-card--featured {
  background: color-mix(in srgb, rgba(245,245,240,0.95) 90%, rgba(80,140,0,1) 10%);
  border-color: rgba(80,140,0,0.2);
}
[data-theme="light"] .service-card__icon {
  background: rgba(80,140,0,0.08);
  border-color: rgba(80,140,0,0.15);
  color: rgb(80,140,0);
}
[data-theme="light"] .service-card__badge {
  color: rgb(60,110,0);
  background: rgba(80,140,0,0.08);
  border-color: rgba(80,140,0,0.2);
}
[data-theme="light"] .service-card__tags li {
  background: rgba(0,0,0,0.04);
}

/* ── CERTIFICATIONS ─────────────────────────────────────── */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.cert-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.cert-card__code {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.cert-card__issuer { font-weight: 600; font-size: 0.78rem; margin-bottom: 0.2rem; }
.cert-card__desc { font-size: 0.7rem; color: var(--text-muted); }

/* ── CONTACT ────────────────────────────────────────────── */
.contact__inner { max-width: 960px; margin: 0 auto; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__left { text-align: left; }
.contact__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.contact__heading span { color: var(--accent); }
.contact__sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-size: 0.9rem;
}
.contact__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── CONTACT FORM ───────────────────────────────────────── */
.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: 0.35rem; }
.form__label {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form__input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form__input:focus { border-color: var(--accent); }
.form__input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form__textarea { resize: vertical; min-height: 110px; }
.form__submit { align-self: flex-start; margin-top: 0.25rem; }
.form__status {
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.5rem 0;
}
.form__status--ok  { color: var(--accent); }
.form__status--err { color: #ff5e5e; }

/* ── PROJECT FILTER ─────────────────────────────────────── */
.proj-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.proj-filter__btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.proj-filter__btn:hover { border-color: var(--accent); color: var(--accent); }
.proj-filter__btn.active { background: var(--accent); border-color: var(--accent); color: #080808; font-weight: 600; }
.contact__footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── MODAL ──────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  will-change: opacity;
}
.modal.active { display: flex; animation: modalBgIn 0.25s ease; }
.modal__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 860px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  will-change: transform, opacity;
  scrollbar-width: thin;
  scrollbar-color: rgba(197,241,53,0.45) rgba(255,255,255,0.06);
}
.modal__box::-webkit-scrollbar { width: 6px; }
.modal__box::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 6px; }
.modal__box::-webkit-scrollbar-thumb { background: rgba(197,241,53,0.45); border-radius: 6px; }
.modal__box::-webkit-scrollbar-thumb:hover { background: rgba(197,241,53,0.7); }
.modal__close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--accent); }
.modal__title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.modal__body { color: var(--text-muted); line-height: 1.8; font-size: 0.92rem; }
.modal__body p { margin-bottom: 1rem; }
.modal__body h4 { color: var(--text); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 1.5rem 0 0.6rem; }
.modal__body ul { margin: 0 0 1rem 1.5rem; }
.modal__body li { margin-bottom: 0.4rem; }
.modal__screenshot {
  width: 100%;
  border-radius: 6px;
  margin: 0.75rem 0;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s;
}
.modal__screenshot:hover { transform: scale(1.01); }

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.97);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 95%; max-height: 92vh; border-radius: 6px; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes modalIn  {
  0%   { opacity: 0; transform: translateY(32px) scale(0.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalBgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* ── Tablet (960px) ── */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about__current { position: static; }
  .about__photo-wrap { order: -1; }
  .about__photo { max-width: 240px; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (768px) — main breakpoint ── */
@media (max-width: 768px) {

  /* NAV */
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 75vw; max-width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(8,8,8,0.98);
    border-left: 1px solid var(--border);
    padding: 5.5rem 2rem 2rem;
    gap: 1.25rem;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.65,0.05,0,1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  [data-theme="light"] .nav__menu { background: rgba(245,245,240,0.99); }
  .nav__menu.open { right: 0; }
  .nav__menu a { font-size: 1rem; letter-spacing: 0.06em; }
  .nav__hamburger { display: flex; }

  /* ALL SECTIONS — start from top, no centering that clips content */
  header.hero, section {
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  /* HERO */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }
  .hero__right { order: -1; }
  .hero__photo-card {
    aspect-ratio: unset;
    height: 220px;
    max-height: 220px;
    margin-bottom: 1.25rem;
  }
  .hero__photo { object-position: center 15%; }
  .hero__photo-overlay { display: none; }
  .hero__label { margin-bottom: 0.6rem; font-size: 0.65rem; }
  .hero__name { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 0.75rem; }
  .hero__subtitle { margin-bottom: 1rem; font-size: 0.88rem; }
  .hero__tags { display: none; }
  .hero__cta { flex-wrap: wrap; gap: 0.5rem; }
  .scroll-hint { display: none; }

  /* ABOUT */
  .about__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .about__current { position: static; }

  /* SKILLS */
  .skills__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* PROJECTS */
  .projects__grid { grid-template-columns: 1fr; }

  /* SERVICES */
  .services__grid { grid-template-columns: 1fr; }

  /* CERTS */
  .certs__grid { grid-template-columns: repeat(2, 1fr); }

  /* FOOTER */
  .footer__inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── Small mobile (480px) ── */
@media (max-width: 480px) {
  :root { --gap: 1.25rem; }
  .hero__name { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero__cta { flex-direction: column; }
  .btn { text-align: center; width: 100%; justify-content: center; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .section__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(17,17,17,0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  transform: translateY(0);
  transition: transform 0.4s var(--ease), opacity 0.4s ease;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner__text { flex: 1; }
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.cookie-banner__text a:hover { opacity: 1; }
.cookie-banner__btn {
  background: var(--accent);
  color: #080808;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.2s;
}
.cookie-banner__btn:hover { filter: brightness(1.1); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; }
  .cookie-banner__btn { width: 100%; text-align: center; }
}
