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

:root {
  --color-bg: #0f1117;
  --color-surface: #1a1d2e;
  --color-accent: #6c63ff;
  --color-accent-light: #a89dff;
  --color-text: #e2e8f0;
  --color-muted: #8892a4;
  --color-border: #2d3148;
  --font: 'Inter', system-ui, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: #fff; }

/* ── Nav ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.75);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* ── Hero ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  color: var(--color-accent-light);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 40%, var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Blobs */
.hero-decoration { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #ff6584;
  bottom: -80px;
  right: -80px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #7b73ff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

/* ── Sections ──────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--color-surface);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 40px;
  background: var(--color-accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ── About ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.skills h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.skill-list li {
  color: var(--color-text);
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}

.skill-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ── Projects ──────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.15);
}

.project-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(108, 99, 255, 0.12);
  color: var(--color-accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-top: 0.25rem;
}

/* ── Contact ──────────────────────────────────── */
.contact-box {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-box p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-links a:hover { color: var(--color-text); }

/* ── Footer ──────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer a { color: var(--color-muted); }
.footer a:hover { color: var(--color-text); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

  .section { padding: 4rem 1.5rem; }
}
