/* =========================
   RESET + THEME
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --panel2: #111827;
  --border: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accentSoft: rgba(56, 189, 248, .14);
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(56, 189, 248, .12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(48, 186, 245, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 86px 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

/* =========================
   NAV
========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, .75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language pill */
.pill {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

.pill:hover {
  border-color: rgba(56, 189, 248, .6);
  background: var(--accentSoft);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #04131b;
  text-decoration: none;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(56, 189, 248, .18);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, .65);
}

.btn-ghost:hover {
  background: var(--accentSoft);
  box-shadow: none;
}

.btn-sm {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .88rem;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 92px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  align-items: start;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accentSoft);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, .25);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin-top: 14px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
}

.stat .k {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.stat .v {
  margin-top: 4px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* =========================
   CARDS
========================= */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: none;
}

.profile {
  position: sticky;
  top: 92px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #04131b;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 14px;
}

.p-name {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.p-role {
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.p-links {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.p-links a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
}

.p-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
}

/* =========================
   ABOUT LAYOUT
========================= */
.two {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* =========================
   PROJECT GRID
========================= */
.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.project {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, .35);
  box-shadow: var(--shadow);
}

.project p {
  color: var(--muted);
  font-size: .96rem;
}

.tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accentSoft);
  border: 1px solid rgba(56, 189, 248, .25);
  color: var(--accent);
  font-weight: 800;
  font-size: .75rem;
}

.link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 900;
}

/* =========================
   SKILLS
========================= */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  font-weight: 800;
  font-size: .92rem;
}

/* =========================
   FOOTER
========================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  background: rgba(0, 0, 0, .12);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .profile {
    position: static;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }
}