:root {
  --bg: #0b1020;
  --panel: #121a33;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --light: #f8fafc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--light);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: #fff;
}

.hero {
  background: radial-gradient(circle at top right, #1e1b4b, var(--bg));
  color: #fff;
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.tag {
  display: inline-block;
  margin: 0 0 1rem;
  background: rgba(79, 70, 229, 0.28);
  color: #dbeafe;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.hero-copy {
  color: #cbd5e1;
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-secondary {
  color: #e2e8f0;
  border: 1px solid #64748b;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 1.2rem;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-card li {
  color: #e2e8f0;
}

.hero-side {
  display: grid;
  gap: 0.9rem;
}

.profile-card {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: 1px solid rgba(199, 210, 254, 0.45);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.profile-card h3 {
  margin: 0 0 0.65rem;
  color: #ffffff;
  font-size: 1rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-links a {
  text-decoration: none;
  color: #312e81;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-links a:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #eef2ff;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0;
  margin-bottom: 1rem;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.timeline h3 {
  margin: 0;
}

.meta {
  margin: 0.35rem 0 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.timeline ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-copy {
  margin-bottom: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.project-grid a:hover {
  border-color: #a5b4fc;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-links a {
  color: #4338ca;
  text-decoration: none;
  font-weight: 600;
}

.small {
  font-size: 0.9rem;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 1.1rem 0;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav {
    display: none;
  }
}
