/* ============================================================
   Klaudia Termena — Portfolio · dark premium theme
   Palette: near-black #0a0a0f · surface #14141d
            accent gradient  #f97316 → #fb923c → #fbbf24
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-soft: #0e0e16;
  --surface: #14141d;
  --surface-2: #1a1a26;
  --border: #262633;
  --text: #f5f5f7;
  --muted: #a3a3b2;
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-3: #fbbf24;
  --teal: #2dd4bf;
  --teal-soft: rgba(45,212,191,.14);
  --grad: linear-gradient(120deg, #f97316, #fb923c 55%, #fbbf24);
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

img { max-width: 100%; display: block; }

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

/* subtle grid texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 12px rgba(251,146,60,.7);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: .95rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(249,115,22,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(251,146,60,.5); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.btn--ghost:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.btn--small { padding: .5rem 1.2rem; font-size: .85rem; }
.btn--big { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(10,10,15,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 100;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: .55rem;
}
.nav__logo b { color: var(--accent-3); font-weight: 800; }
.nav__logo-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.nav__logo-bars i { width: 4px; border-radius: 2px; background: var(--grad); display: block; animation: logoBar 2.4s ease-in-out infinite; }
.nav__logo-bars i:nth-child(1) { height: 8px; animation-delay: 0s; }
.nav__logo-bars i:nth-child(2) { height: 14px; animation-delay: .3s; }
.nav__logo-bars i:nth-child(3) { height: 18px; animation-delay: .6s; }
@keyframes logoBar { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.nav__logo-bars i { transform-origin: bottom; }

.nav__links { display: flex; gap: 1.6rem; align-items: center; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta {
  color: #fff; padding: .45rem 1.2rem; border-radius: 999px;
  background: var(--grad); font-weight: 600;
}
.nav__right { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  background: transparent; border: 0; color: var(--muted);
  font: 600 .8rem var(--font-head);
  padding: .4rem .8rem; cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button.active { background: var(--grad); color: #fff; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); display: block; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem clamp(1.2rem, 5vw, 3rem) 4rem;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__glow {
  position: absolute; z-index: 0;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  top: -20%; right: -15%;
  background: radial-gradient(circle, rgba(249,115,22,.16), transparent 65%);
  filter: blur(40px);
}
.hero__glow::after {
  content: ""; position: absolute;
  width: 70%; height: 70%; left: -80%; top: 90%;
  background: radial-gradient(circle, rgba(45,212,191,.10), transparent 65%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; text-align: center; }
.hero__eyebrow {
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.6rem;
}
.hero__sub { color: var(--muted); max-width: 640px; margin: 0 auto 2.4rem; font-size: 1.15rem; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; max-width: 780px; margin: 0 auto;
}
.stat { background: rgba(20,20,29,.85); padding: 1.3rem 1rem; }
.stat__num {
  display: block; font: 800 2rem var(--font-head);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num--text { font-size: 1.6rem; padding-top: .25rem; }
.stat__label { font-size: .78rem; color: var(--muted); line-height: 1.4; display: block; margin-top: .3rem; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--border); border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--accent-2);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

/* ---------- sections ---------- */
.section {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 4vw, 2rem);
}
.section--wide { max-width: 1280px; }
.section__head { margin-bottom: 3rem; }
.section__kicker {
  font: 700 .8rem var(--font-head); letter-spacing: .3em; color: var(--teal);
}
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; margin-top: .5rem; }
.section__sub { color: var(--muted); margin-top: .8rem; max-width: 560px; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .9s ease;
  transition-delay: var(--d, 0s);
}
.reveal--left { transform: translateX(-52px); }
.reveal--right { transform: translateX(52px); }
.reveal--pop { transform: translateY(26px) scale(.88) rotate(-1.2deg); }
.reveal--zoom { transform: scale(.9) translateY(24px); }
.reveal.visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; } }

/* animated gradient underline for section titles */
.section__head h2 { position: relative; display: inline-block; padding-bottom: .55rem; }
.section__head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0; border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(251,146,60,.55);
  transition: width 1.1s cubic-bezier(.16,1,.3,1) .35s;
}
.section__head.visible h2::after { width: 100%; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: start; }
.about__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; position: sticky; top: 6rem;
}
.about__avatar {
  width: 110px; height: 110px; margin: 0 auto 1.2rem;
  border-radius: 50%; display: grid; place-items: center;
  font: 800 2.2rem var(--font-head); color: #fff;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(251,146,60,.15), 0 8px 30px rgba(249,115,22,.35);
}
.about__card h3 { font-size: 1.3rem; }
.about__role { color: var(--accent-3); font-weight: 600; font-size: .95rem; margin-bottom: 1.2rem; }
.about__meta { list-style: none; text-align: left; color: var(--muted); font-size: .92rem; display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.about__meta li { display: flex; align-items: center; gap: .6rem; }
.meta-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-2); }
.about__meta li:nth-child(even) .meta-icon { color: var(--teal); }
.about__links { display: flex; gap: .7rem; justify-content: center; }
.about__lead { font-size: 1.3rem; font-weight: 600; font-family: var(--font-head); line-height: 1.5; margin-bottom: 1.2rem; }
.about__text p + p { margin-top: 1rem; color: var(--muted); }
.about__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
}
.chip--accent { border-color: rgba(251,146,60,.4); color: var(--accent-3); background: rgba(249,115,22,.08); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), var(--teal));
}
.timeline__item { position: relative; padding-bottom: 2.2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -2rem; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border);
}
.timeline__dot--accent { background: var(--grad); border-color: transparent; box-shadow: 0 0 16px rgba(251,146,60,.6); }
.timeline__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  transition: border-color .3s ease, transform .3s ease;
}
.timeline__card:hover { border-color: rgba(251,146,60,.45); transform: translateX(6px); }
.timeline__date { font: 600 .8rem var(--font-head); letter-spacing: .08em; color: var(--accent-3); text-transform: uppercase; }
.timeline__card h3 { margin: .4rem 0 .15rem; font-size: 1.2rem; }
.timeline__org { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.timeline__card > p:last-of-type { color: var(--muted); font-size: .95rem; }
.timeline__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.timeline__tags span {
  font-size: .78rem; padding: .25rem .75rem; border-radius: 999px;
  background: rgba(249,115,22,.1); color: var(--accent-3); border: 1px solid rgba(251,146,60,.25);
}

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.skill {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.skill:hover { transform: translateY(-6px); border-color: rgba(251,146,60,.45); box-shadow: 0 12px 32px rgba(249,115,22,.15); }
.skill--big { grid-column: span 2; text-align: left; background: linear-gradient(135deg, rgba(249,115,22,.12), var(--surface) 55%); }
.skill h3 { font-size: 1.05rem; }
.skill p { color: var(--muted); font-size: .88rem; margin-top: .4rem; }

/* ---------- icon tiles (skills + services) ---------- */
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  margin: 0 auto .85rem;
  color: var(--accent-2);
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(251,146,60,.28);
  box-shadow: inset 0 0 14px rgba(249,115,22,.07);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.icon-tile svg { width: 22px; height: 22px; }
.skill--big .icon-tile, .service .icon-tile { margin-left: 0; margin-right: 0; }
/* alternate teal tiles to weave the duotone through the grid */
.skills .skill:nth-child(even) .icon-tile,
.services .service:nth-child(even) .icon-tile {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: rgba(45,212,191,.3);
  box-shadow: inset 0 0 14px rgba(45,212,191,.08);
}
.skill:hover .icon-tile, .service:hover .icon-tile {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 20px rgba(249,115,22,.28);
}
.skills .skill:nth-child(even):hover .icon-tile,
.services .service:nth-child(even):hover .icon-tile {
  box-shadow: 0 0 20px rgba(45,212,191,.28);
}

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; text-align: left; padding: 0; color: inherit; font: inherit;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform .35s cubic-bezier(.16,1,.3,1),
    border-color .35s ease,
    box-shadow .35s ease,
    opacity .9s ease,
    filter .9s ease;
}
.project:hover, .project:focus-visible { transform: translateY(-8px); border-color: rgba(251,146,60,.5); box-shadow: 0 18px 44px rgba(249,115,22,.2); }

/* animated gradient border on hover */
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 4;
  border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.project:hover::after, .project:focus-visible::after { opacity: 1; }

.project__thumb { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.project:hover .project__thumb img { transform: scale(1.06); }
.project__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,.65), transparent 55%);
}
/* light sweep across the thumbnail */
.project__thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
}
.project:hover .project__thumb::before { transition: transform .85s ease; transform: translateX(130%); }

/* KPI badge — the number that grabs attention */
.project__kpi {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: .45rem .85rem; border-radius: 12px;
  background: rgba(10,10,15,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251,146,60,.35);
  line-height: 1.25;
}
.project__kpi b {
  display: block; font: 800 1.15rem var(--font-head);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.project__kpi span { font-size: .66rem; color: #c9c9d4; text-transform: uppercase; letter-spacing: .1em; }

/* "view dashboard" pill sliding in on hover */
.project__view {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  padding: .45rem 1rem; border-radius: 999px;
  font: 600 .8rem var(--font-head); color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 18px rgba(249,115,22,.45);
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.project:hover .project__view, .project:focus-visible .project__view { opacity: 1; transform: none; }

.project__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,15,.65); backdrop-filter: blur(6px);
  color: #fff; font-size: 1rem;
  opacity: 0; transform: scale(.8);
  transition: opacity .3s ease, transform .3s ease;
}
.project:hover .project__zoom { opacity: 1; transform: scale(1); }

/* featured (first) project — double width, hero of the section */
@media (min-width: 1025px) {
  .project--featured { grid-column: span 2; }
  .project--featured .project__thumb { aspect-ratio: 16 / 7.4; }
  .project--featured .project__body h3 { font-size: 1.3rem; }
  .project--featured .project__kpi b { font-size: 1.5rem; }
}
.project__body { padding: 1.2rem 1.4rem 1.5rem; }
.project__body h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.project__body p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.project__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.project__tags span {
  font-size: .74rem; padding: .22rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border);
}
.project__tags span.hot { background: rgba(249,115,22,.12); color: var(--accent-3); border-color: rgba(251,146,60,.3); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service:hover { transform: translateY(-6px); border-color: rgba(251,146,60,.45); background: var(--surface-2); }
.service h3 { font-size: 1rem; margin-bottom: .5rem; }
.service p { color: var(--muted); font-size: .85rem; line-height: 1.55; }

/* ---------- contact ---------- */
.contact {
  position: relative; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}
.contact__glow {
  position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45,212,191,.12), transparent 40%);
  pointer-events: none;
}
.contact h2 { position: relative; font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; margin-bottom: 1rem; }
.contact > p { position: relative; color: var(--muted); max-width: 520px; margin: 0 auto 2.2rem; }
.contact__actions { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact__note { position: relative; margin-top: 2rem !important; font-size: .85rem !important; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  max-width: 1100px; margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 2rem) 2.5rem;
  color: var(--muted); font-size: .88rem;
  border-top: 1px solid var(--border);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,8,12,.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; transition: opacity .3s ease;
}
/* CRITICAL: without this, display:flex overrides the hidden attribute and the
   invisible overlay swallows every click on the page */
.lightbox[hidden] { display: none !important; }
.lightbox.open { opacity: 1; }
.lightbox__body { max-width: min(1100px, 92vw); text-align: center; }
.lightbox__body img {
  max-height: 68vh; width: auto; max-width: 100%; margin: 0 auto;
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__body figcaption { margin-top: 1.4rem; }
.lightbox__body h3 { font-size: 1.3rem; }
.lightbox__body p { color: var(--muted); font-size: .95rem; max-width: 640px; margin: .5rem auto 0; }
.lightbox__tags { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .9rem; }
.lightbox__tags span {
  font-size: .78rem; padding: .25rem .8rem; border-radius: 999px;
  background: rgba(249,115,22,.12); color: var(--accent-3); border: 1px solid rgba(251,146,60,.3);
}
.lightbox__counter { display: inline-block; margin-top: .9rem; font: 600 .8rem var(--font-head); color: var(--muted); letter-spacing: .15em; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(249,115,22,.25); border-color: var(--accent-2); }
.lightbox__close { top: 1.4rem; right: 1.6rem; width: 44px; height: 44px; font-size: 1.1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem; }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }

/* ---------- language fade ---------- */
.lang-fade { animation: langFade .45s ease; }
@keyframes langFade { from { opacity: .25; } to { opacity: 1; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .skill--big { grid-column: span 2; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed; top: 62px; right: 0; left: 0;
    flex-direction: column; align-items: center; gap: 1.4rem;
    background: rgba(10,10,15,.97); backdrop-filter: blur(16px);
    padding: 2rem 0 2.4rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    z-index: 90;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { font-size: 1.05rem; }
  .nav__burger { display: flex; }
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; max-width: 420px; margin: 0 auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .skill--big { grid-column: span 1; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .lightbox { padding: 1rem; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .footer { justify-content: center; text-align: center; }
}
