/* ═══════════════════════════════════════════════════════════════════════
   park-bit - Exact Figma "Portfolio (Community)" template replication
   ═══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:       #000000;
  --bg2:      #0A0A0A;
  --bg3:      #111111;
  --accent:   #0070f3;
  --white:    #FAFAFA;
  --muted:    #A1A1AA;
  --border:   #27272A;
  --green:    #10B981;
  --yellow:   #F59E0B;
  --blue:     #3B82F6;
  --orange:   #F97316;
  --font: 'Fira Code', 'Cascadia Code', monospace;
  --sidebar: 36px;
  --nav-h:   58px;
  --max:     1200px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Ambient Glow Background ─────────────────────────────────────────── */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 65vh;
  background: 
    radial-gradient(ellipse at 15% 0%, rgba(0, 112, 243, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 35% 0%, rgba(16, 185, 129, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 0%, rgba(239, 68, 68, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 0%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  animation: pulse-glow 12s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.7; transform: scale(1) translateY(0); }
  100% { opacity: 1; transform: scale(1.05) translateY(-20px); }
}

/* ── Accent colour helper ────────────────────────────────────────────── */
.c { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   SIDEBAR - thin left vertical line + icons
════════════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  z-index: 90;
  pointer-events: none;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  bottom: 0;
  background: var(--border);
}
.sidebar__icons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  pointer-events: all;
}
.sidebar__icons a {
  color: var(--muted);
  transition: color .2s;
  display: flex;
}
.sidebar__icons a:hover { color: var(--accent); }
.sidebar__icons svg { width: 18px; height: 18px; }

/* ════════════════════════════════════════════════════════════════════════
   NAVBAR - exact Figma style
════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 0 calc(var(--sidebar) + 20px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo: small icon + "Elias" style → we use angle brackets */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
}
.nav__logo-icon {
  width: 20px; height: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-icon span {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .88rem;
}
.nav__link {
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav__link.active, .nav__link:hover { color: var(--white); }
.nav__link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent);
}
.nav__lang {
  color: var(--muted);
  font-size: .82rem;
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 2px;
}
/* Mobile hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--muted);
  transition: .3s;
}

/* ════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT
════════════════════════════════════════════════════════════════════════ */
.page {
  padding-top: var(--nav-h);
  padding-left: var(--sidebar);
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section heading - "#label ────────────" ──────────────────────────── */
.sh {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.sh::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--border);
}
.sh .c { margin-right: 2px; }

/* ── Page title "/projects" style ────────────────────────────────────── */
.pt { font-size: 2rem; font-weight: 600; margin-bottom: 4px; }
.ps { font-size: .85rem; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════
   BUTTONS - exactly as Figma
════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: .82rem;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 0;        /* Figma uses square corners */
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--white); }
.btn--cta {
  border-color: var(--white);
  color: var(--white);
}
.btn--cta:hover { border-color: var(--accent); color: var(--accent); }
.btn--live { border-color: var(--border); }
.btn--live:hover { border-color: var(--green); color: var(--green); }

/* ════════════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

/* LEFT: text */
.hero__text h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 20px;
}
.hero__text h1 strong { color: var(--accent); font-weight: 600; }
.hero__bio {
  font-size: .88rem;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero__ctas { display: flex; gap: 16px; }

/* RIGHT: image + decorations */
.hero__img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hero__avatar {
  width: 260px;
  height: 310px;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 2;
  /* no border-radius - Figma uses a rect clip */
}
/* Geometric rectangles overlapping the photo - exact Figma */
.hero__rect1 {
  position: absolute;
  top: 24px; right: 0;
  width: 130px; height: 130px;
  border: 1px solid var(--accent);
  z-index: 1;
}
.hero__rect2 {
  position: absolute;
  top: 0; right: 30px;
  width: 90px; height: 90px;
  border: 1px solid var(--border);
  z-index: 1;
}
/* Dot grid - bottom-right of image */
.hero__dots {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  z-index: 0;
}
/* Dot grid - left side */
.hero__dots2 {
  position: absolute;
  bottom: 60px; left: -30px;
  width: 64px; height: 64px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  z-index: 0;
}
/* Status pill */
.hero__status {
  position: absolute;
  bottom: -12px;
  left: 50%; transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 3;
}
.dot-green {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   QUOTE SECTION
════════════════════════════════════════════════════════════════════════ */
.quote-sec {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
  position: relative;
}
.quote-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.quote-mark {
  font-size: 4rem;
  color: var(--muted);
  line-height: .8;
  font-family: Georgia, serif;
  opacity: .4;
  flex-shrink: 0;
}
.quote-mark--close { align-self: flex-end; }
.quote-body {
  flex: 1;
  padding: 0 20px;
}
.quote-text {
  font-size: 1rem;
  color: var(--white);
  font-style: italic;
  transition: opacity .35s;
}
.quote-author {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--muted);
  font-style: normal;
  transition: opacity .35s;
}
/* Framing rectangles in Figma style */
.quote-rect1 {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%);
  width: 120px; height: 80px;
  border: 1px solid var(--border);
}
.quote-rect2 {
  position: absolute;
  right: 90px; top: 50%;
  transform: translateY(-50%) translateY(-10px);
  width: 80px; height: 50px;
  border: 1px solid var(--border);
  opacity: .5;
}

/* ════════════════════════════════════════════════════════════════════════
   PROJECT CARDS - exact Figma layout
   Structure: [IMAGE BANNER] → [TECH TAGS] → [NAME] → [DESC] → [BTNS]
════════════════════════════════════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-grid--sm {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.proj-card {
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  transition: border-color .25s;
  overflow: hidden;
}
.proj-card:hover { border-color: var(--accent); }

/* Coloured preview banner - top of card */
.proj-card__banner {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
/* Hover overlay with gradient on banner */
.proj-card__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(30,34,40,.6) 100%);
  pointer-events: none;
  transition: opacity .3s;
}
.proj-card:hover .proj-card__banner::after {
  opacity: .6;
}

.proj-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

/* Tech tags row - appear right below banner */
.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}
.tag {
  font-size: .7rem;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.proj-card:hover .tag {
  border-color: rgba(199,120,221,.3);
  color: var(--white);
}

.proj-card__name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
}
.proj-card__desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.proj-card__btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Small project cards (no banner) */
.proj-card--sm .proj-card__body { gap: 8px; }
.proj-card--sm .proj-card__name { font-size: .88rem; }
.proj-card--sm .proj-card__desc { font-size: .78rem; }

/* ── Dynamic CSS Banners ─────────────────────────────────────────────── */
.css-banner {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.css-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 150%, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  transition: opacity 0.4s;
}
.proj-card:hover .css-banner::before {
  opacity: 0.35;
}
.css-banner__icon {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--white);
  opacity: 0.8;
  letter-spacing: -1.5px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94);
}
.proj-card:hover .css-banner__icon {
  transform: scale(1.1);
  color: var(--accent);
}
.app-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
  border-radius: 12px;
}
.app-icon--light-bg {
  background-color: #f1f1f1;
  padding: 4px;
}
.proj-card:hover .app-icon {
  transform: scale(1.15) translateY(-4px);
}
.app-icon--wide {
  width: auto;
  height: 100px;
  max-width: 90%;
  border-radius: 8px;
}
.css-banner__grid {
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: perspective(600px) rotateX(60deg) translateY(0) translateZ(-200px);
  animation: gridMove 20s linear infinite;
  opacity: 0.5;
}
@keyframes gridMove {
  0% { transform: perspective(600px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(600px) rotateX(60deg) translateY(48px) translateZ(-200px); }
}

/* ════════════════════════════════════════════════════════════════════════
   SKILLS SECTION - boxes side-by-side, exact Figma
════════════════════════════════════════════════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.skills-deco {
  position: relative;
  height: 200px;
}
.skills-deco__dots {
  position: absolute;
  top: 30px; left: 20px;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}
.skills-deco__rect1 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  border: 1px solid var(--border);
}
.skills-deco__rect2 {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 55px; height: 55px;
  border: 1px solid var(--accent);
  opacity: .5;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-box {
  border: 1px solid var(--border);
  padding: 14px 18px;
  min-width: 130px;
}
.skill-box__title {
  font-size: .75rem;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 500;
}
.skill-box ul { display: flex; flex-direction: column; gap: 5px; }
.skill-box li {
  font-size: .78rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════
   ABOUT TEASER (home)
════════════════════════════════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.about-img {
  position: relative;
  flex-shrink: 0;
}
.about-img img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(30%);
  transition: filter .4s;
}
.about-img:hover img { filter: none; }
.about-img__dots {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 72px; height: 72px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* ════════════════════════════════════════════════════════════════════════
   CONTACTS TEASER (home)
════════════════════════════════════════════════════════════════════════ */
.contacts-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.contacts-teaser__left p {
  font-size: .9rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}
.contacts-teaser__right {
  border: 1px solid var(--border);
  padding: 20px 28px;
  min-width: 220px;
}
.contacts-teaser__right p {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contacts-teaser__right strong { color: var(--white); font-weight: 500; }
.contacts-teaser__right a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
════════════════════════════════════════════════════════════════════════ */
.page-hdr {
  border-bottom: 1px solid var(--border);
  padding: 48px 40px 36px;
  max-width: var(--max);
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════════════════════════════════════════ */
.about-bio-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}
.about-bio-text { display: flex; flex-direction: column; gap: 16px; }
.about-bio-text p { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.about-bio-img {
  position: relative;
}
.about-bio-img img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
  transition: filter .4s;
}
.about-bio-img:hover img { filter: none; }
.about-bio-img__dots {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 72px; height: 72px;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}
.about-bio-img__rect {
  position: absolute;
  top: -10px; left: -10px;
  width: 50px; height: 50px;
  border: 1px solid var(--accent);
  opacity: .5;
}

/* Fun facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.fact-box {
  border: 1px solid var(--border);
  padding: 16px 20px;
  font-size: .83rem;
  color: var(--muted);
  transition: border-color .2s;
}
.fact-box:hover { border-color: var(--accent); }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-box {
  border: 1px solid var(--border);
  padding: 28px 16px;
  text-align: center;
  transition: border-color .2s;
}
.stat-box:hover { border-color: var(--accent); }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl { font-size: .76rem; color: var(--muted); }
.stats-card { border: 1px solid var(--border); padding: 40px; }

/* ════════════════════════════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info-box {
  border: 1px solid var(--border);
  padding: 24px 28px;
}
.contact-avail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-info-box p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: var(--muted);
  transition: color .2s;
}
.contact-links a:hover { color: var(--accent); }
.contact-links svg { flex-shrink: 0; color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: .78rem; color: var(--muted); }
.form-field input,
.form-field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: .84rem;
  padding: 11px 14px;
  outline: none;
  resize: vertical;
  width: 100%;
  transition: border-color .2s;
  border-radius: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #4B5563; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-submit {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font);
  font-size: .88rem;
  padding: 12px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  width: 100%;
}
.form-submit:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  margin-left: var(--sidebar);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__left p:first-child {
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer__left p:last-child {
  font-size: .76rem;
  color: var(--muted);
}
.footer__right {
  text-align: right;
}
.footer__right p:first-child {
  font-size: .78rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__right-links { display: flex; gap: 12px; justify-content: flex-end; }
.footer__right-links a {
  color: var(--muted);
  transition: color .2s;
  display: flex;
}
.footer__right-links a:hover { color: var(--accent); }
.footer__right-links svg { width: 18px; height: 18px; }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: .74rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════════════════
   SECTION SPACING
════════════════════════════════════════════════════════════════════════ */
.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 40px;
}
.sec + .sec { padding-top: 0; }

/* ════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════════════════
   SECTION VIEW-ALL ROW
════════════════════════════════════════════════════════════════════════ */
.sh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sh-row .sh { margin-bottom: 0; }
.view-all {
  font-size: .82rem;
  color: var(--muted);
  transition: color .2s;
}
.view-all:hover { color: var(--accent); }
.view-all span { display: inline-block; transition: transform .2s; }
.view-all:hover span { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .footer { margin-left: 0; padding: 24px 20px; }

  /* ── Nav ── */
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(0, 0, 0, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    gap: 2px;
  }
  .nav__links.open .nav__link {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
  .nav__links.open .nav__lang { margin-top: 8px; }
  .nav__burger { display: flex; padding: 10px; margin-right: -10px; }

  /* ── Hero ── */
  .hero { grid-template-columns: 1fr; padding: 32px 20px 56px; gap: 48px; }
  .hero__img-wrap { justify-content: center; order: -1; width: 240px; margin: 0 auto; }
  .hero__avatar { width: 220px; height: 268px; }
  .hero__bio { max-width: 100%; }
  .hero__ctas { flex-wrap: wrap; }

  /* ── Quote ── */
  .quote-sec { padding: 32px 20px; }
  .quote-rect1, .quote-rect2 { display: none; }
  .quote-mark { font-size: 2.4rem; }
  .quote-body { padding: 0 14px; }

  /* ── Project grids → 2 columns on tablet ── */
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid--sm { grid-template-columns: repeat(2, 1fr); }

  /* ── Skills / About / Contacts ── */
  .skills-layout { grid-template-columns: 1fr; }
  .skills-deco { display: none; }
  .skills-grid .skill-box { flex: 1 1 140px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-img { display: none; }
  .contacts-teaser { grid-template-columns: 1fr; }
  .contacts-teaser__right { min-width: 0; }
  .about-bio-grid { grid-template-columns: 1fr; }
  .about-bio-img { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-card { padding: 24px 18px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* ── Spacing ── */
  .sec { padding: 48px 20px; }
  .page-hdr { padding: 36px 20px 24px; }

  /* ── Prevent iOS zoom-on-focus (needs ≥16px) ── */
  .form-field input,
  .form-field textarea { font-size: 16px; }
}

@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-grid--sm { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__right { text-align: center; }
  .footer__right-links { justify-content: center; }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .quote-mark { font-size: 2rem; }
  .pt { font-size: 1.6rem; }
}

/* Center orphaned cards on last row — desktop only (above the mobile breakpoint) */
@media (min-width: 961px) {
  .proj-grid, .proj-grid--sm {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .proj-card {
    width: calc(33.333% - 14px);
  }
  .proj-card.proj-card--sm {
    width: calc(33.333% - 11px);
  }
}
