:root {
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(30, 41, 59, 0.88);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.25);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --card: rgba(15, 23, 42, 0.82);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 28rem),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px min(7vw, 88px);
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 800; letter-spacing: -0.03em; font-size: 20px; }
.nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }

.section { padding: 84px min(7vw, 88px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 74px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.04em; }
h1 { font-size: clamp(42px, 7vw, 78px); max-width: 980px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 25px; margin-top: 10px; }
p { color: var(--muted); line-height: 1.75; }
.hero-desc { font-size: 18px; max-width: 760px; margin: 24px 0 0; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.button.primary { background: var(--accent); color: #082f49; border-color: transparent; }
.button.primary:hover { background: #7dd3fc; }
.button.secondary:hover { border-color: var(--accent); color: white; }

.hero-card, .about-card, .contact-card, .project-card, .skill-grid > div {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 28px;
}
.hero-card { padding: 30px; }
.hero-card ul { padding-left: 20px; color: var(--muted); line-height: 2; }
.status-dot { width: 12px; height: 12px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 26px #22c55e; margin-bottom: 22px; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card { padding: 26px; transition: transform 0.18s ease, border-color 0.18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.55); }
.project-card.featured { background: linear-gradient(135deg, rgba(14, 165, 233, 0.20), rgba(15, 23, 42, 0.90)); }
.project-meta { color: var(--accent); font-size: 13px; font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-row span {
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.project-link { color: #7dd3fc; font-weight: 800; }
.project-link.muted { color: #64748b; }

.split-section { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 38px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skill-grid > div { padding: 22px; }
.skill-grid strong { color: white; }
.skill-grid p { margin-bottom: 0; }
.about-card, .contact-card { margin: 0 min(7vw, 88px) 36px; padding: 34px; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.contact-links a { border: 1px solid var(--line); padding: 10px 13px; border-radius: 999px; color: #dbeafe; }
.contact-links a:hover { border-color: var(--accent); }
.site-footer { padding: 34px min(7vw, 88px); color: var(--muted); border-top: 1px solid var(--line); }
.page-watermark {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 20;
  opacity: 0.32;
  pointer-events: none;
  font-size: 12px;
  color: #e2e8f0;
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; gap: 14px; flex-direction: column; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .project-grid, .skill-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 22px; }
  .about-card, .contact-card { margin: 0 22px 28px; }
}
