:root {
  --bg: #0b0d12;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --text: #edf2ff;
  --muted: #a6b0c6;
  --accent: #72f6c8;
  --accent2: #6aa8ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92vw); margin: 0 auto; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 300px at 12% -10%, rgba(114,246,200,.18), transparent 70%),
    radial-gradient(700px 360px at 90% 0%, rgba(106,168,255,.18), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  opacity: .8;
}

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 8px; position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.brand { font-weight: 700; letter-spacing: .3px; }
.lang-toggle { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

.hero { margin-top: 38px; padding: 38px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--muted); max-width: 760px; font-size: 1.05rem; line-height: 1.7; }
.hero-actions { margin-top: 16px; }

.btn { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: rgba(0,255,0,.2); transition: width .3s ease; z-index: 0; }
.btn:hover::before { width: 100%; }
.btn > * { position: relative; z-index: 1; }

.projects { margin-top: 38px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.filters { display: inline-flex; gap: 8px; }
.filter-btn { border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.filter-btn.is-active { color: var(--text); border-color: rgba(114,246,200,.45); box-shadow: 0 0 0 1px rgba(114,246,200,.15) inset; }

.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.project { padding: 22px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.project::before { content: ''; position: absolute; inset: -1px; background: radial-gradient(500px 200px at 0% 0%, rgba(149,79,255,.25), transparent 60%), radial-gradient(500px 200px at 100% 100%, rgba(45,185,255,.22), transparent 60%); opacity: .75; z-index: 0; }
.project > * { position: relative; z-index: 1; }
.project:hover { transform: translateY(-4px); border-color: rgba(114,246,200,.45); box-shadow: 0 16px 38px rgba(0,0,0,.35); }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.project h3 { margin: 0; font-size: 1.22rem; }
.project p { color: var(--muted); line-height: 1.6; min-height: 52px; }
.status { color: var(--accent); font-size: .82rem; border: 1px solid rgba(114,246,200,.35); border-radius: 999px; padding: 2px 8px; }
.status.inactive { color: #ffd27a; border-color: rgba(255, 210, 122, .45); }
.actions { display: flex; gap: 8px; margin-top: 10px; }
.action { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: rgba(255,255,255,.02); display: inline-flex; align-items: center; gap: 8px; }
.action i { font-size: 1rem; }
.action.icon { width: 40px; text-align: center; justify-content: center; }

.card { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.glass { backdrop-filter: blur(12px); }
.footer { color: var(--muted); padding: 28px 0 48px; }

.reveal { opacity: 0; transform: translateY(20px); animation: reveal .7s ease forwards; }
.reveal:nth-of-type(2) { animation-delay: .12s; }
.reveal:nth-of-type(3) { animation-delay: .2s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .hero { padding: 24px; }
  .filters { width: 100%; }
  .filter-btn { flex: 1; }
}

.stack{margin-top:3rem;max-width:1100px;margin-left:auto;margin-right:auto;}
.stack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;}
.stack-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background .25s ease,opacity .25s ease;cursor:pointer;position:relative;overflow:hidden;opacity:0;transform:translateY(10px);}
.stack-card::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.015);opacity:0;transition:.25s ease;pointer-events:none;}
.stack-card:hover{transform:translateY(-4px);border-color:rgba(0,255,0,.25);box-shadow:0 10px 30px rgba(0,0,0,.25);background:rgba(255,255,255,.03);}
.stack-card:hover::before{opacity:1;}
.stack-card.show{opacity:1;transform:translateY(0);}
.stack-card h3{font-size:16px;margin-bottom:4px;opacity:.85;letter-spacing:-.02em;}
.stack-items{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.stack-item{padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);font-size:13px;transition:transform .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;opacity:.9;}
.stack-item:hover{transform:scale(1.04);border-color:rgba(0,255,0,.25);background:rgba(0,255,0,.05);opacity:1;}
.stack:hover .stack-card{opacity:.85;}
.stack:hover .stack-card:hover{opacity:1;}
.stack h2{letter-spacing:-.02em;}
.stack-item.core{opacity:1;}
.stack-item.tool{opacity:.85;}
.stack-item.infra{opacity:.7;filter:saturate(.85);}

.adv-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; }
.adv-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); transition: .25s ease; position: relative; overflow: hidden; }
.adv-card i { font-size: 22px; margin-bottom: 8px; display: inline-block; transition: .25s ease; }
.adv-card h3 { margin: 6px 0; font-size: 16px; }
.adv-card p { font-size: 13px; opacity: .8; }
.adv-card::before { content: ""; position: absolute; inset: 0; background: rgba(0,255,0,.08); opacity: 0; transition: .25s ease; }
.adv-card:hover::before { opacity: 1; }
.adv-card:hover { transform: translateY(-4px); border-color: rgba(0,255,0,.4); }
.adv-card:hover i { transform: scale(1.15); }