:root {
  --bg: #0b0d10;
  --bg-elev: #12161b;
  --bg-card: #161b22;
  --border: #232a33;
  --text: #e6edf3;
  --text-dim: #9ba9b8;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --radius: 12px;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.08), transparent 40%);
}

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

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(11, 13, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.nav nav { display: flex; gap: 1.75rem; }
.nav nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--text); }

/* HERO */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #9ba9b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

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

.lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 540px;
}

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #6a4ce6;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.hero-decor pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-dim);
  overflow-x: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.hero-decor code { color: var(--accent-2); }

/* SECTIONS */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}
.about-grid p { color: var(--text-dim); margin-bottom: 1rem; }
.about-grid strong { color: var(--text); }

.skills {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.skills li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.skills li:last-child { border-bottom: none; }
.skills li::before { content: "▸ "; color: var(--accent); }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--bg-elev);
  object-fit: cover;
}

.card h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-live {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* PROJECTS */
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.link:hover { color: var(--accent-2); }

/* CONTACT */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s;
}
.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-value {
  color: var(--text);
  font-size: 0.95rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  .hero-decor { display: none; }
  .nav { padding: 1rem 1.5rem; }
  .nav nav { gap: 1rem; }
  .nav nav a { font-size: 0.85rem; }
  .section { padding: 3rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}