@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #171a25;
  --panel: #202432;
  --panel-2: #292d3d;
  --text: #f4f1e9;
  --muted: #9297a8;
  --accent: #f5b632;
  --line: rgba(255,255,255,.09);
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.topbar {
  width: min(var(--max), calc(100% - 48px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px "Space Grotesk"; }
.brand-mark {
  width: 34px; height: 34px; border: 1px solid var(--accent);
  display: grid; place-items: center; color: var(--accent);
  border-radius: 9px; transform: rotate(-6deg);
}
.dot { color: var(--accent); }
nav { display: flex; gap: 30px; }
nav a { color: var(--muted); font-size: 14px; transition: .25s; }
nav a:hover, nav .active { color: var(--text); }
.contact-pill {
  border: 1px solid var(--line); padding: 11px 15px; border-radius: 999px;
  font-size: 13px; transition: .25s;
}
.contact-pill:hover { border-color: var(--accent); color: var(--accent); }
.contact-pill span { color: var(--accent); margin-left: 8px; }
.section { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.hero {
  min-height: 640px; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; position: relative;
}
.eyebrow {
  color: var(--accent); text-transform: uppercase; letter-spacing: 2.4px;
  font-size: 10px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 {
  font: 700 clamp(68px, 9vw, 126px)/.82 "Space Grotesk";
  letter-spacing: -7px; margin-left: -7px;
}
.hero h1 span { color: var(--accent); }
.hero-text {
  max-width: 430px; color: var(--muted); line-height: 1.7;
  margin: 28px 0 25px; font-size: 15px;
}
.hero-actions { display: flex; gap: 10px; }
.button { padding: 13px 19px; border-radius: 4px; font-weight: 600; font-size: 13px; }
.button.primary { background: var(--accent); color: #15171e; }
.button.primary span { margin-left: 12px; }
.button.ghost { border: 1px solid var(--line); }
.socials { display: flex; gap: 9px; margin-top: 34px; }
.socials a {
  width: 30px; height: 30px; border: 1px solid var(--line);
  display: grid; place-items: center; border-radius: 50%; font-size: 10px; color: var(--muted);
}
.hero-art { height: 540px; position: relative; display: grid; place-items: center; }
.hero-grid {
  position: absolute; inset: 8% 0 5% 12%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 80%, transparent);
}
.orb {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 34% 27%, #555b6e, #252936 60%, #15171e);
  border: 1px solid #646a7b; box-shadow: 0 35px 80px rgba(0,0,0,.35);
  position: relative; z-index: 2; display: grid; place-items: center;
}
.orb-ring { position: absolute; inset: -25px; border: 1px solid rgba(245,182,50,.22); border-radius: 50%; }
.orb-letter { font: 700 150px "Space Grotesk"; color: rgba(255,255,255,.07); }
.code-card {
  position: absolute; z-index: 3; width: 250px; padding: 15px;
  background: #10131b; border: 1px solid var(--line); box-shadow: 0 25px 60px #0b0d13;
}
.card-a { top: 90px; left: 10px; transform: rotate(-7deg); }
.card-top { display: flex; gap: 5px; margin-bottom: 14px; }
.card-top span { width: 6px; height: 6px; background: #606575; border-radius: 50%; }
code { color: #bbc0cf; font: 11px/1.8 monospace; }
code b, code i { color: var(--accent); font-style: normal; }
.floating-tag {
  position: absolute; z-index: 4; width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; font: 700 13px "Space Grotesk";
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 12px 30px #0c0e14;
}
.tag-js { top: 30px; right: 95px; color: #f7d35b; }
.tag-ts { bottom: 105px; right: 30px; color: #73a5ff; }
.tag-py { bottom: 80px; left: 60px; color: #7ecf9a; }
.intro {
  padding: 115px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  border-top: 1px solid var(--line);
}
.intro h2, .section-heading h2, .skills h2, .contact h2 {
  font: 600 clamp(32px, 4vw, 52px)/1.02 "Space Grotesk";
  letter-spacing: -2px;
}
.intro-block > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; max-width: 510px; margin: 24px 0; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; }
.text-link span { margin-left: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.stats div { border-left: 1px solid var(--line); padding-left: 22px; }
.stats strong { display: block; color: var(--accent); font: 700 42px "Space Grotesk"; }
.stats span { color: var(--muted); font-size: 11px; }
.work { padding: 30px 0 125px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 45px; }
.count { color: var(--muted); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.project:first-child { grid-row: span 2; }
.project { background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border .3s; }
.project:hover { transform: translateY(-5px); border-color: rgba(245,182,50,.35); }
.project-visual { height: 300px; position: relative; overflow: hidden; }
.featured .project-visual { height: 430px; }
.plora-visual { background: linear-gradient(135deg,#363b4e,#161922); }
.dark-visual { background: #0e1118; height: 240px; }
.purple-visual { background: linear-gradient(135deg,#373548,#1d1b29); height: 240px; }
.visual-label { position: absolute; top: 18px; left: 20px; font-size: 9px; letter-spacing: 2px; color: #8d91a0; }
.window {
  position: absolute; width: 66%; height: 65%; right: 10%; bottom: 8%;
  background: #202432; border: 1px solid #596072; transform: perspective(700px) rotateY(-13deg) rotateX(4deg);
  box-shadow: -25px 25px 50px rgba(0,0,0,.4);
}
.window-bar { height: 25px; background: #171a23; padding: 9px; display: flex; gap: 4px; }
.window-bar i { width: 5px; height: 5px; border-radius: 50%; background: #6b7181; }
.window-content { padding: 28px; display: flex; flex-direction: column; gap: 7px; }
.mini-logo { color: var(--accent); font: 700 45px "Space Grotesk"; }
.window-content b { font: 22px "Space Grotesk"; }
.window-content small { color: var(--muted); }
.project-info { padding: 24px 25px 28px; }
.project-info > span { color: var(--accent); font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; }
.project-info h3 { font: 600 25px "Space Grotesk"; margin: 9px 0 7px; }
.project-info p { color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 420px; margin-bottom: 17px; }
.project-info a { color: #d9dce5; font-size: 11px; font-weight: 700; }
.terminal { position: absolute; left: 15%; top: 32%; font: 12px/2 monospace; }
.terminal b, .success { color: var(--accent); }
.muted { color: #6e7484; }
.tool-stack { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transform: rotate(-7deg); }
.tool-stack span { background: #222536; border: 1px solid var(--line); padding: 16px 13px; font: 700 13px "Space Grotesk"; box-shadow: 0 15px 30px #15141d; }
.skills { padding: 110px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; }
.skill-list { border-top: 1px solid var(--line); }
.skill {
  min-height: 75px; border-bottom: 1px solid var(--line); display: grid;
  grid-template-columns: 55px 1fr auto; align-items: center;
}
.skill span { color: var(--muted); font-size: 10px; }
.skill b { font: 600 22px "Space Grotesk"; }
.skill em { color: var(--accent); font-style: normal; font-size: 10px; }
.contact {
  padding: 110px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.contact h2 span { color: var(--accent); }
.contact-card { border-left: 1px solid var(--accent); padding: 8px 0 8px 28px; }
.contact-card p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.contact-card > a:not(.github) { display: block; font: 600 clamp(18px,2.3vw,29px) "Space Grotesk"; word-break: break-word; }
.github { display: inline-block; color: var(--accent); font-size: 12px; margin-top: 18px; }
footer {
  border-top: 1px solid var(--line); width: min(var(--max), calc(100% - 48px));
  margin: auto; padding: 25px 0; display: flex; justify-content: space-between;
  color: #777c8b; font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
}
footer a { color: var(--text); }
.cursor-glow {
  position: fixed; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(245,182,50,.035); filter: blur(40px); pointer-events: none;
  transform: translate(-50%,-50%); z-index: -1;
}
@media (max-width: 800px) {
  nav { display: none; }
  .topbar { height: 70px; }
  .hero { grid-template-columns: 1fr; padding: 70px 0; }
  .hero-art { height: 420px; margin-top: 20px; }
  .intro, .skills, .contact { grid-template-columns: 1fr; gap: 45px; }
  .stats { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .project:first-child { grid-row: auto; }
  .featured .project-visual { height: 330px; }
  footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 500px) {
  .section, .topbar, footer { width: min(100% - 30px, var(--max)); }
  .hero h1 { font-size: 65px; letter-spacing: -4px; margin-left: -4px; }
  .stats strong { font-size: 32px; }
  .stats span { font-size: 9px; }
  .hero-art { transform: scale(.86); transform-origin: top left; width: 116%; }
}
