/* ===== Base / Tokens ===== */
:root {
  --bg: #0f1117;
  --bg-alt: #161922;
  --surface: #1c2029;
  --text: #e7e9ee;
  --text-dim: #a0a6b4;
  --accent: #6c8cff;
  --accent-2: #8a6cff;
  --border: #272c38;
  --radius: 16px;
  --container: 1080px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 8px 24px -10px rgba(108, 140, 255, 0.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(108, 140, 255, 0.75); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(108,140,255,0.08); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(108,140,255,0.22), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(108,140,255,0.1);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

/* ===== Stats ===== */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 620px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text { font-size: 1.08rem; color: var(--text-dim); }
.about-text strong { color: var(--text); }
.skills h3 { font-size: 1rem; margin-bottom: 16px; }
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.skill-tags li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== Work ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card-thumb {
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.card-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(108,140,255,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.18s ease;
}
.card-link:hover { color: var(--accent); }

/* ===== Contact ===== */
.contact-inner { text-align: center; max-width: 620px; }
.contact-inner .section-eyebrow,
.contact-inner .section-title { margin-left: auto; margin-right: auto; }
.contact-text { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 30px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p { color: var(--text-dim); font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats { gap: 32px; }
}
