/* ============================================================
   MIATTOCODE.IT — Main Stylesheet v2.0
   Design: Cinematic Dark · Code meets Craftsmanship
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,300&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,600&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --ink:   #05080d;
  --ink2:  #090d14;
  --ink3:  #0e1420;
  --ink4:  #141c2b;
  --ink5:  #1a2438;

  --cyan:    #00c8e8;
  --cyan2:   #38d9f5;
  --cyan3:   #7ee8fa;
  --gold:    #e8a830;
  --gold2:   #f5c050;
  --green:   #1fd68c;
  --violet:  #8b5cf6;
  --rose:    #f43f5e;
  --amber:   #f59e0b;

  --t0: #f0f4f8;
  --t1: #c9d6e3;
  --t2: #7a92a8;
  --t3: #3d5068;
  --t4: #1e2d3d;

  --b0: rgba(0,200,232,.18);
  --b1: rgba(255,255,255,.06);
  --b2: rgba(255,255,255,.03);

  --sans:  'Outfit', system-ui, sans-serif;
  --mono:  'JetBrains Mono', monospace;
  --serif: 'Playfair Display', Georgia, serif;

  --r4:  4px;
  --r6:  6px;
  --r8:  8px;
  --r12: 12px;

  --shadow-sm: 0 4px 16px rgba(0,0,0,.35);
  --shadow:    0 16px 48px rgba(0,0,0,.5);
  --shadow-lg: 0 32px 80px rgba(0,0,0,.6);

  --trans: .2s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--cyan2); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink2); }
::-webkit-scrollbar-thumb { background: var(--t4); border-radius: 2px; }

/* ── PROGRESS BAR ───────────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  z-index: 1000; width: 0; transition: width .12s;
  pointer-events: none;
}

/* ── TOPBAR (data/ora + RSS) ─────────────────────────────────── */
.topbar {
  background: var(--ink2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  padding: 0 2rem;
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  height: 36px; display: flex; align-items: center;
}
.topbar-inner {
  max-width: 1340px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: .65rem; color: var(--t3);
}
.topbar-clock {
  display: flex; align-items: center; gap: 8px;
}
.clock-date { color: var(--t2); }
.clock-time {
  color: var(--cyan);
  background: rgba(0,200,232,.06);
  border: 1px solid rgba(0,200,232,.12);
  padding: 1px 8px; border-radius: 3px;
  font-weight: 500; letter-spacing: .04em;
}
.topbar-sep { width: 1px; height: 14px; background: var(--b1); }
.topbar-location {
  display: flex; align-items: center; gap: 5px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-link {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .62rem;
  color: var(--t3); transition: color var(--trans);
  padding: 3px 8px; border-radius: 3px;
}
.topbar-link:hover { color: var(--cyan); background: rgba(0,200,232,.06); }
.rss-btn {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .62rem; font-weight: 700;
  color: var(--amber); background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.18);
  padding: 3px 10px; border-radius: 3px;
  transition: all var(--trans); cursor: pointer;
}
.rss-btn:hover { background: rgba(245,158,11,.14); color: var(--gold2); }
.rss-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 500;
  padding: 0 2rem;
  background: rgba(5,8,13,.88);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--b1);
  transition: all .3s;
}
.navbar.scrolled {
  background: rgba(5,8,13,.97);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  border-bottom-color: rgba(0,200,232,.1);
}
.nav-inner {
  max-width: 1340px; margin: 0 auto;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between;
}

/* Logo SVG */
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.logo-svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-wordmark {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-main {
  font-family: var(--mono); font-size: .95rem; font-weight: 700;
  color: var(--t0); letter-spacing: -.01em;
}
.logo-main span { color: var(--cyan); }
.logo-sub {
  font-size: .58rem; color: var(--t3); letter-spacing: .12em;
  text-transform: uppercase; margin-top: 2px;
}

/* Nav menu */
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: var(--r6);
  font-size: .82rem; font-weight: 500; color: var(--t2);
  text-decoration: none; transition: all var(--trans);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--t0); background: var(--b1); }
.nav-link .chevron { font-size: .55rem; transition: transform .2s; }
.nav-item:hover .chevron { transform: rotate(180deg); }
.nav-link.active { color: var(--cyan); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px; background: var(--ink3);
  border: 1px solid var(--b1); border-radius: var(--r12);
  padding: 6px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  z-index: 700;
}
.nav-item:hover .dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dd-section {
  padding: 7px 10px 4px;
  font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--t3);
}
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r6);
  font-size: .82rem; color: var(--t2);
  text-decoration: none; transition: all .15s;
}
.dd-item:hover { background: var(--b1); color: var(--t0); }
.dd-icon {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.dd-label { font-weight: 500; display: block; line-height: 1.3; }
.dd-sub   { font-size: .68rem; color: var(--t3); }
.dd-sep   { height: 1px; background: var(--b1); margin: 4px 0; }

/* Nav CTA */
.nav-cta {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--r6);
  background: var(--cyan); color: var(--ink);
  font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: all .22s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--cyan2); transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,200,232,.3); color: var(--ink);
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--t2); transition: all .25s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 490;
  background: rgba(5,8,13,.98); flex-direction: column;
  padding: 110px 2rem 2rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 1rem; font-weight: 500; color: var(--t2);
  border-bottom: 1px solid var(--b1); transition: color var(--trans);
}
.mobile-menu a:hover { color: var(--cyan); }
.mm-section {
  padding: 18px 0 6px;
  font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--t3);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 130px 2rem 5rem;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,200,232,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,232,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 60% 45%, transparent 20%, rgba(5,8,13,.75) 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1340px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 5rem; align-items: center;
}
.hero-available {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; color: var(--green);
  letter-spacing: .05em; margin-bottom: 1.5rem;
}
.hero-available::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(31,214,140,.5); }
  50%      { box-shadow: 0 0 0 9px rgba(31,214,140,0); }
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -.03em; color: var(--t0); margin-bottom: .7rem;
}
.hero h1 .h-cyan   { color: var(--cyan); }
.hero h1 .h-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero-role {
  font-family: var(--mono); font-size: .82rem; color: var(--t2);
  letter-spacing: .04em; margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-role::before { content: '//'; color: var(--t3); }
.hero-desc {
  font-size: .98rem; color: var(--t2); line-height: 1.9;
  max-width: 480px; margin-bottom: 2.5rem;
}
.hero-desc strong { color: var(--t0); font-weight: 600; }
.hero-desc span   { color: var(--cyan2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r6);
  background: var(--cyan); color: var(--ink);
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: all .22s;
}
.btn-primary:hover {
  background: var(--cyan2); transform: translateY(-2px); color: var(--ink);
  box-shadow: 0 10px 32px rgba(0,200,232,.35);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r6);
  border: 1px solid var(--b0); color: var(--t1);
  font-weight: 500; font-size: .88rem; text-decoration: none;
  transition: all .22s;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-stats {
  display: flex; gap: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--b1); flex-wrap: wrap;
}
.h-stat .n {
  font-family: var(--mono); font-size: 1.8rem; font-weight: 700;
  color: var(--cyan); display: block; line-height: 1;
}
.h-stat .l {
  font-size: .65rem; color: var(--t3); letter-spacing: .06em;
  text-transform: uppercase; margin-top: 5px;
}

/* Editor card */
.hero-editor {
  position: relative;
}
.editor-window {
  background: var(--ink2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r12); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,200,232,.05);
}
.editor-titlebar {
  background: var(--ink3); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--b1);
}
.win-btn { width: 11px; height: 11px; border-radius: 50%; }
.editor-tabs { display: flex; gap: 2px; margin-left: 10px; }
.etab {
  font-family: var(--mono); font-size: .65rem;
  padding: 3px 10px; border-radius: 4px; color: var(--t3);
}
.etab.act { background: var(--ink2); color: var(--cyan2); }
.editor-body {
  padding: 16px 16px 16px 0;
  font-family: var(--mono); font-size: .77rem; line-height: 1.95;
  overflow: hidden;
}
.code-ln {
  display: flex; align-items: baseline;
}
.ln { display: inline-block; min-width: 38px; text-align: right;
  padding-right: 14px; color: var(--t3); font-size: .65rem;
  user-select: none; border-right: 1px solid var(--b2); margin-right: 14px; flex-shrink: 0; }
.kw { color: #7ee8fa; } .fn { color: #d2a8ff; } .cl { color: #ffa657; }
.st { color: #a5d6ff; } .cm { color: var(--t3); } .nu { color: #f9c74f; }
.va { color: var(--t1); } .op { color: #ff7b72; } .pr { color: var(--gold); }
.bl { color: var(--t3); }
.cursor-blink {
  display: inline-block; width: 8px; height: 14px;
  background: var(--cyan); vertical-align: text-bottom;
  animation: cblink 1s step-end infinite;
}
@keyframes cblink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── SECTIONS COMMON ─────────────────────────────────────────── */
.section { padding: 100px 2rem; }
.section-inner { max-width: 1340px; margin: 0 auto; }
.sec-header { margin-bottom: 4rem; }
.sec-eye {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  color: var(--cyan); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: .8rem; display: flex; align-items: center; gap: 10px;
}
.sec-eye::before { content: '//'; color: var(--t3); }
.sec-title {
  font-size: clamp(1.9rem, 3vw, 2.9rem); font-weight: 700;
  letter-spacing: -.025em; color: var(--t0); line-height: 1.12;
}
.sec-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.sec-desc { font-size: .95rem; color: var(--t2); max-width: 540px; line-height: 1.9; margin-top: .8rem; }

/* ── ABOUT / CHI SONO ───────────────────────────────────────── */
.about-bg { background: var(--ink2); border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; margin-top: 3.5rem; }
.about-lead {
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; color: var(--t1); line-height: 1.7;
  margin-bottom: 1.8rem; padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--b1);
}
.about-text p {
  font-size: .95rem; color: var(--t2); line-height: 1.95;
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--t0); font-weight: 600; }
.about-text p .hi { color: var(--cyan); }

/* Timeline */
.timeline { margin-top: 2.5rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px; bottom: 0;
  width: 1px; background: linear-gradient(var(--cyan), transparent);
}
.tl-item {
  display: flex; gap: 22px; margin-bottom: 1.6rem; position: relative;
}
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink3); border: 1px solid var(--b0);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-family: var(--mono); color: var(--cyan);
  flex-shrink: 0; z-index: 1;
}
.tl-body { padding-top: 4px; }
.tl-year { font-family: var(--mono); font-size: .68rem; color: var(--cyan); font-weight: 600; }
.tl-text { font-size: .84rem; color: var(--t2); line-height: 1.7; margin-top: 2px; }
.tl-text strong { color: var(--t0); }

/* Tech stack */
.tech-group { margin-top: 2rem; }
.tech-label {
  font-family: var(--mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 10px;
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tpill {
  font-family: var(--mono); font-size: .7rem;
  padding: 4px 11px; border-radius: 4px;
  background: var(--ink3); color: var(--t2);
  border: 1px solid var(--b1); transition: all var(--trans);
}
.tpill:hover { color: var(--cyan); border-color: var(--b0); }
.tpill.hl { color: var(--gold); border-color: rgba(232,168,48,.22); background: rgba(232,168,48,.06); }

/* Terminal */
.terminal-box {
  background: var(--ink); border: 1px solid var(--b1);
  border-radius: var(--r12); overflow: hidden; box-shadow: var(--shadow);
}
.term-top {
  background: var(--ink3); padding: 10px 16px;
  display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--b1);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.t-title { font-family: var(--mono); font-size: .65rem; color: var(--t3); margin-left: 6px; }
.term-body { padding: 18px 20px; font-family: var(--mono); font-size: .78rem; line-height: 2.15; }
.tp { color: var(--green); } .tc { color: var(--cyan2); }
.tk { color: var(--gold); }  .tv { color: var(--t1); }
.td { color: var(--t3); }    .te { color: var(--rose); }

/* ── COMPETENZE ─────────────────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--b1);
  border: 1px solid var(--b1); border-radius: var(--r12);
  overflow: hidden; margin-top: 3.5rem;
}
.skill-card {
  background: var(--ink2); padding: 28px 22px;
  transition: background var(--trans); position: relative;
}
.skill-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--sk-grad, var(--cyan)); opacity: 0; transition: opacity var(--trans);
}
.skill-card:hover { background: var(--ink3); }
.skill-card:hover::after { opacity: 1; }
.sk-icon {
  width: 44px; height: 44px; border-radius: var(--r8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 14px;
}
.sk-name { font-size: .95rem; font-weight: 700; color: var(--t0); margin-bottom: 6px; }
.sk-desc { font-size: .78rem; color: var(--t2); line-height: 1.75; margin-bottom: 14px; }
.sk-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.stag {
  font-family: var(--mono); font-size: .58rem; color: var(--t3);
  background: var(--b2); border: 1px solid var(--b1);
  padding: 2px 7px; border-radius: 3px;
}
.sk-bar-wrap { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.sbar-row { display: flex; align-items: center; gap: 8px; }
.sbar-lbl { font-family: var(--mono); font-size: .62rem; color: var(--t2); width: 70px; flex-shrink: 0; }
.sbar-track { flex: 1; height: 2px; background: var(--b1); border-radius: 1px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 1px; width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.sbar-pct { font-family: var(--mono); font-size: .58rem; color: var(--t3); width: 28px; text-align: right; }

/* ── PROJECTS ───────────────────────────────────────────────── */
.projects-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 6px 16px; border-radius: 20px;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  border: 1px solid var(--b1); background: transparent;
  color: var(--t2); cursor: pointer; transition: all var(--trans);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,200,232,.06); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.proj-card {
  background: var(--ink2); border: 1px solid var(--b1);
  border-radius: var(--r12); overflow: hidden;
  transition: all .25s; display: flex; flex-direction: column;
}
.proj-card:hover {
  border-color: var(--b0); transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(0,200,232,.1);
}
.proj-card.featured { grid-column: span 2; }
.pcard-top { padding: 22px 22px 0; }
.proj-type-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.proj-icon-box {
  width: 42px; height: 42px; border-radius: var(--r8);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.proj-status {
  font-family: var(--mono); font-size: .6rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; letter-spacing: .05em;
}
.st-live   { background: rgba(31,214,140,.1);  color: var(--green);  border: 1px solid rgba(31,214,140,.2); }
.st-saas   { background: rgba(0,200,232,.1);   color: var(--cyan);   border: 1px solid var(--b0); }
.st-wip    { background: rgba(245,158,11,.1);  color: var(--amber);  border: 1px solid rgba(245,158,11,.2); }
.proj-title { font-size: 1.1rem; font-weight: 700; color: var(--t0); margin-bottom: 8px; }
.proj-desc  { font-size: .83rem; color: var(--t2); line-height: 1.8; margin-bottom: 14px; }
.proj-tags  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.ptag {
  font-family: var(--mono); font-size: .58rem; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
}
.pt-php   { background: rgba(139,92,246,.1); color: #a78bfa; border: 1px solid rgba(139,92,246,.18); }
.pt-mysql { background: rgba(232,168,48,.1); color: var(--gold2); border: 1px solid rgba(232,168,48,.18); }
.pt-mssql { background: rgba(0,120,215,.12); color: #60aaff; border: 1px solid rgba(0,120,215,.2); }
.pt-js    { background: rgba(249,199,79,.1); color: #f9c74f; border: 1px solid rgba(249,199,79,.2); }
.pt-saas  { background: rgba(31,214,140,.1); color: var(--green); border: 1px solid rgba(31,214,140,.2); }
.pt-html  { background: rgba(244,63,94,.1);  color: var(--rose); border: 1px solid rgba(244,63,94,.2); }
.pt-asp   { background: rgba(0,120,215,.1);  color: #60aaff; border: 1px solid rgba(0,120,215,.18); }
.pcard-footer {
  margin-top: auto; padding: 14px 22px;
  border-top: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}
.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .72rem; color: var(--cyan);
  text-decoration: none; transition: gap var(--trans);
}
.proj-link:hover { gap: 10px; }
.proj-meta { font-family: var(--mono); font-size: .63rem; color: var(--t3); }

/* ── REMOTE ASSISTANCE ─────────────────────────────────────── */
.remote-bg { background: var(--ink2); border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1); }
.remote-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 3.5rem;
}
.remote-card {
  background: var(--ink3); border: 1px solid var(--b1);
  border-radius: var(--r12); padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: all var(--trans);
  position: relative; overflow: hidden;
}
.remote-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rc-color, var(--cyan)); opacity: 0; transition: opacity var(--trans);
}
.remote-card:hover { transform: translateY(-4px); border-color: var(--b0); }
.remote-card:hover::before { opacity: 1; }
.remote-card.recommended {
  border-color: rgba(0,200,232,.3);
  box-shadow: 0 0 0 1px rgba(0,200,232,.1), 0 16px 40px rgba(0,0,0,.3);
}
.rc-badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: .55rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; letter-spacing: .06em;
  background: rgba(0,200,232,.1); color: var(--cyan);
  border: 1px solid var(--b0);
}
.rc-logo {
  width: 56px; height: 56px; border-radius: var(--r8); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: var(--ink4);
  border: 1px solid var(--b1);
}
.rc-name { font-size: 1rem; font-weight: 700; color: var(--t0); margin-bottom: 6px; }
.rc-desc { font-size: .78rem; color: var(--t2); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.rc-features { list-style: none; width: 100%; margin-bottom: 18px; }
.rc-features li {
  font-size: .72rem; color: var(--t2); padding: 4px 0;
  border-bottom: 1px solid var(--b2);
  display: flex; align-items: center; gap: 6px;
}
.rc-features li::before { content: '·'; color: var(--cyan); }
.btn-download {
  width: 100%; padding: 10px;
  background: rgba(0,200,232,.08);
  border: 1px solid var(--b0);
  border-radius: var(--r6); color: var(--cyan);
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  cursor: pointer; transition: all var(--trans);
  text-decoration: none; display: flex; align-items: center;
  justify-content: center; gap: 7px; letter-spacing: .04em;
}
.btn-download:hover { background: var(--cyan); color: var(--ink); }
.btn-download.alt { background: transparent; border-color: var(--b1); color: var(--t2); }
.btn-download.alt:hover { border-color: var(--b0); color: var(--cyan); background: rgba(0,200,232,.06); }

/* ── RSS / NEWS ─────────────────────────────────────────────── */
.rss-sources { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.rss-source-btn {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--b1); background: transparent;
  color: var(--t2); cursor: pointer; transition: all var(--trans);
}
.rss-source-btn:hover, .rss-source-btn.active { border-color: var(--amber); color: var(--amber); background: rgba(245,158,11,.06); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  background: var(--ink2); border: 1px solid var(--b1);
  border-radius: var(--r8); padding: 20px;
  transition: all var(--trans); cursor: pointer;
  text-decoration: none; display: block;
}
.news-card:hover { border-color: var(--b0); transform: translateY(-3px); }
.news-source {
  font-family: var(--mono); font-size: .6rem; font-weight: 700;
  color: var(--amber); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
}
.news-title { font-size: .88rem; font-weight: 600; color: var(--t0); line-height: 1.5; margin-bottom: 8px; }
.news-date { font-family: var(--mono); font-size: .62rem; color: var(--t3); }
.news-loading { text-align: center; padding: 3rem; color: var(--t3); font-family: var(--mono); font-size: .82rem; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-bg { background: var(--ink2); border-top: 1px solid var(--b1); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; margin-top: 3.5rem; }
.c-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--b1);
}
.c-icon {
  width: 38px; height: 38px; border-radius: var(--r8);
  background: var(--ink3); border: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.c-label {
  font-family: var(--mono); font-size: .6rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3); display: block; margin-bottom: 4px;
}
.c-val { font-size: .88rem; color: var(--t1); }
.c-val a { color: var(--cyan); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-label {
  display: block; font-family: var(--mono); font-size: .62rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 6px;
}
.form-ctrl {
  width: 100%; background: var(--ink3);
  border: 1px solid var(--b1); border-radius: var(--r6);
  padding: 11px 14px; color: var(--t1);
  font-family: var(--sans); font-size: .88rem; outline: none;
  transition: border-color var(--trans);
}
.form-ctrl:focus {
  border-color: rgba(0,200,232,.4);
  box-shadow: 0 0 0 3px rgba(0,200,232,.06);
}
.form-ctrl option { background: var(--ink3); }
textarea.form-ctrl { resize: vertical; min-height: 110px; line-height: 1.6; }
.btn-send {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--cyan), #0094b0);
  color: var(--ink); font-family: var(--sans); font-size: .9rem; font-weight: 700;
  border: none; border-radius: var(--r6); cursor: pointer;
  transition: all .22s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-send:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0,200,232,.3); }
.flash { padding: 10px 14px; border-radius: var(--r6); margin-bottom: 12px; font-size: .84rem; }
.flash-ok  { background: rgba(31,214,140,.08); border: 1px solid rgba(31,214,140,.25); color: var(--green); }
.flash-err { background: rgba(244,63,94,.08);  border: 1px solid rgba(244,63,94,.25);  color: var(--rose); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink2); border-top: 1px solid var(--b1);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.fb-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem;
}
.fb-name {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: var(--t0);
}
.fb-name span { color: var(--cyan); }
.fb-tagline { font-size: .82rem; color: var(--t3); line-height: 1.8; margin-bottom: 1.2rem; }
.fb-address { font-family: var(--mono); font-size: .7rem; color: var(--t3); line-height: 1.9; }
.fc-title {
  font-family: var(--mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 14px;
}
.fc-link {
  display: block; font-size: .82rem; color: var(--t2);
  text-decoration: none; margin-bottom: 8px; transition: color var(--trans);
}
.fc-link:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1340px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-family: var(--mono); font-size: .65rem; color: var(--t3); }
.footer-piva { font-family: var(--mono); font-size: .62rem; color: var(--t3); }

/* ── UTILITIES ──────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.vis { opacity: 1; transform: translateY(0); }

.sep { height: 1px; max-width: 1340px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--b0), transparent); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card.featured { grid-column: span 1; }
  .remote-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .navbar { top: 0; }
  .hero { padding-top: 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-editor { display: none; }
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 70px 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .remote-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .remote-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
}
