
:root {
  --bg: #0b0f17;
  --surface: #111827;
  --surface-2: #151d2c;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255,255,255,.10);
  --accent: #7c3aed;
  --accent2: #22d3ee;
  --green: #34d399;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(124,58,237,.15), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(34,211,238,.08), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.skip-link {
  position: fixed; left: 20px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 20px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  z-index: 10;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11,15,23,.72);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.08em;
}
.brand-logo { width:28px; height:28px; display:block; object-fit:contain; }
.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent2);
}
.nav { display:flex; gap: 28px; color: var(--muted); font-size: 14px; }
.nav a { position:relative; transition:color .2s ease; }
.nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-8px; height:2px; background:var(--accent2); transition:right .2s ease; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { right:0; }
.menu-toggle { display:none; }

.section { max-width:1180px; margin:0 auto; padding:110px 28px; }
.hero {
  min-height: calc(100vh - 88px);
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items:center;
  gap:70px;
  padding-top:70px;
}
.eyebrow,.section-label,.project-kicker {
  font-size:12px;
  letter-spacing:.18em;
  font-weight:700;
  color: var(--accent2);
}
.eyebrow { display:flex; align-items:center; gap:8px; }
.eyebrow-dot { width:7px; height:7px; border-radius:50%; background:var(--accent2); box-shadow:0 0 14px var(--accent2); }
h1,h2,h3 { font-family:"Space Grotesk",sans-serif; margin-top:0; }
h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height:.96;
  letter-spacing:-.055em;
  margin:22px 0 28px;
}
h2 {
  font-size: clamp(2.3rem,4vw,4rem);
  line-height:1.02;
  letter-spacing:-.04em;
  margin:14px 0 0;
}
.gradient-text {
  display:block;
  background: linear-gradient(90deg,#fff 0%,#a78bfa 45%,#67e8f9 100%);
  -webkit-background-clip:text;
  color:transparent;
}
.hero-text { max-width:720px; color:#cbd5e1; font-size:18px; }
.hero-actions { display:flex; gap:14px; margin:34px 0 26px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 20px; border-radius:999px;
  background:var(--text); color:#0b0f17;
  font-weight:700; transition:.2s ease;
}
.btn:hover { transform:translateY(-2px); }
.btn-secondary {
  background:transparent; color:var(--text);
  border:1px solid var(--line);
}
.btn-small { padding:10px 16px; font-size:13px; }
.hero-meta {
  display:flex; gap:24px; flex-wrap:wrap;
  color:var(--muted); font-size:13px;
}
.meta-icon { color:var(--accent2); margin-right:6px; }
.dot {
  display:inline-block; width:8px; height:8px;
  background:var(--green); border-radius:50%; margin-right:7px;
}
.hero-card {
  padding:1px;
  border-radius:26px;
  background: linear-gradient(135deg,rgba(124,58,237,.8),rgba(34,211,238,.4),rgba(255,255,255,.05));
}
.terminal {
  background:rgba(8,12,19,.95);
  border-radius:25px; overflow:hidden;
  box-shadow:0 40px 90px rgba(0,0,0,.45);
}
.terminal-bar {
  display:flex; gap:7px; padding:16px 18px;
  border-bottom:1px solid var(--line);
}
.terminal-bar span { width:10px;height:10px;border-radius:50%;background:#334155; }
.terminal pre {
  margin:0; padding:26px; overflow:auto;
  font-size:13px; color:#dbeafe; line-height:1.7;
}
.muted {color:#64748b}.purple{color:#c084fc}.green{color:#6ee7b7}

.split-section {
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap:80px;
  border-top:1px solid var(--line);
}
.about-copy { font-size:20px; color:#cbd5e1; max-width:720px; }
.about-copy p:first-child { margin-top:0; }

.section-heading {
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:40px; margin-bottom:42px;
}
.section-heading > p { color:var(--muted); max-width:420px; margin:0; }
.projects-grid {
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:20px;
}
.project-card {
  min-height:380px;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:30px; border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01));
  border-radius:var(--radius);
  transition:.25s ease;
  position:relative; overflow:hidden;
}
.project-card::before { content:""; position:absolute; width:160px; height:160px; right:-80px; top:-80px; border-radius:50%; background:rgba(124,58,237,.14); filter:blur(8px); transition:transform .3s ease; }
.project-card-cyan::before { background:rgba(34,211,238,.12); }
.project-card:hover::before { transform:scale(1.5); }
.project-card:hover { transform:translateY(-5px); border-color:rgba(255,255,255,.2); }
.project-card.featured { min-height:470px; }
.project-card h3 { font-size:42px; margin:8px 0 16px; }
.project-card p { color:#aebccd; max-width:580px; }
.project-top { display:flex; justify-content:space-between; }
.project-number { color:#64748b; font-size:13px; }
.status {
  padding:6px 10px; border:1px solid rgba(52,211,153,.3);
  background:rgba(52,211,153,.08); color:#6ee7b7;
  border-radius:999px; font-size:10px; letter-spacing:.1em;
}
.status.subtle { border-color:var(--line); color:#cbd5e1; background:transparent; }
.tags { display:flex; gap:8px; flex-wrap:wrap; }
.tags span {
  border:1px solid var(--line); padding:7px 10px;
  border-radius:999px; color:#94a3b8; font-size:11px;
}
.skills-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.skill-card {
  border-top:1px solid var(--line);
  padding:24px 10px 24px 0;
}
.skill-card > span { color:#64748b; font-size:12px; }
.skill-card h3 { margin:22px 0 10px; font-size:24px; }
.skill-card p { color:var(--muted); font-size:14px; }

.philosophy {
  text-align:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.quote-mark {
  font-family:Georgia,serif;
  font-size:90px; line-height:.7; color:#334155;
}
blockquote {
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(2rem,4.8vw,4.6rem);
  line-height:1.08;
  letter-spacing:-.04em;
  margin:30px auto;
  max-width:1050px;
}
blockquote span { color:#a78bfa; }
.quote-sign { color:var(--muted); }

.contact { padding-top:140px; padding-bottom:140px; }
.contact h2 { max-width:780px; margin-bottom:24px; }
.contact p { color:var(--muted); max-width:600px; }
.contact-email {
  display:inline-flex; gap:14px; align-items:center;
  font-family:"Space Grotesk"; font-size:clamp(1.4rem,3vw,2.5rem);
  margin-top:24px; border-bottom:1px solid var(--line);
  padding-bottom:8px;
}
.contact-email:hover { color:#a78bfa; }

footer {
  max-width:1180px; margin:0 auto;
  padding:30px 28px 50px;
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  color:#64748b; font-size:13px;
  border-top:1px solid var(--line);
}
.blog-page { min-height: calc(100vh - 88px); display:flex; align-items:center; }
.blog-hero { width:100%; max-width:850px; padding-top:90px; padding-bottom:120px; }
.blog-hero h1 { max-width:760px; }
.blog-intro { color:#cbd5e1; font-size:18px; max-width:650px; }
.coming-soon-card {
  margin-top:42px; padding:28px; max-width:720px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(124,58,237,.14),rgba(34,211,238,.06));
  box-shadow:0 24px 70px rgba(0,0,0,.2);
}
.coming-soon-card h2 { font-size:clamp(1.8rem,3vw,2.6rem); margin-bottom:12px; }
.coming-soon-card p { color:var(--muted); margin:0; }
.blog-back { margin-top:28px; }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}

@media (max-width: 900px) {
  .menu-toggle { display:flex; flex-direction:column; gap:5px; padding:8px; border:1px solid var(--line); border-radius:10px; background:transparent; cursor:pointer; }
  .menu-toggle > span:not(.sr-only) { width:18px; height:2px; background:var(--text); border-radius:2px; }
  .nav { display:none; position:absolute; top:76px; left:20px; right:20px; padding:12px; flex-direction:column; gap:0; border:1px solid var(--line); border-radius:16px; background:rgba(17,24,39,.96); box-shadow:0 20px 50px rgba(0,0,0,.3); }
  .nav.is-open { display:flex; }
  .nav a { padding:12px 10px; }
  .nav a::after { display:none; }
  .hero,.split-section { grid-template-columns:1fr; }
  .hero { gap:42px; }
  .projects-grid { grid-template-columns:1fr; }
  .skills-grid { grid-template-columns:repeat(2,1fr); }
  .section-heading { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 560px) {
  .topbar .btn-small { display:none; }
  .section { padding:80px 20px; }
  .topbar { padding:20px; }
  h1 { font-size:3.7rem; }
  .skills-grid { grid-template-columns:1fr; }
  .hero-meta { flex-direction:column; gap:8px; }
  .project-card,.project-card.featured { min-height:400px; padding:24px; }
}
