:root {
  --bg: #0f1720;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent1: linear-gradient(135deg,#7c3aed,#06b6d4);
  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);
  --radius: 16px;
  color-scheme: dark;
  --mono: 'Segoe UI Mono',SFMono-Regular,Menlo,monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,'Helvetica Neue',Arial;
  background: 
    radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.12), transparent),
    radial-gradient(900px 400px at 90% 90%, rgba(6,182,212,0.08), transparent),
    var(--bg);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 32px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 64px;
  background: linear-gradient(135deg,#7c3aed,#06b6d4);
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar:hover {
  transform: scale(1.05);
}

.brand h1 {
  font-size: 20px;
  margin: 0;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.controls, .btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.05);
}

.btn.ghost {
  background: transparent;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 24px; /* added spacing between sections */
}

.card:last-child {
  margin-bottom: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.about .bio {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 14px;
}

.stat-list {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.stat {
  background: var(--glass-2);
  padding: 12px;
  border-radius: 12px;
  flex: 1;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat:hover {
  transform: scale(1.05);
}

.stat h3 {
  margin: 0;
  font-size: 20px;
}

.stat p {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 14px;
}

.project {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.project h4 {
  margin: 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 4px;
}

footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hero {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero .title {
  font-size: 26px;
  margin: 0;
}

.hero .subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.copy {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255,255,255,0.02);
  padding: 8px;
  border-radius: 10px;
}

.copy-container {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

a.link {
  color: inherit;
  text-decoration: none;
}

.accent {
  background: linear-gradient(90deg,#7c3aed,#06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 40;
}

.modal.open {
  display: grid;
  animation: fadeIn 0.25s ease;
}

.modal .panel {
  width: min(720px, 92%);
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  transform: scale(0.9);
  opacity: 0;
  animation: scaleIn 0.25s forwards;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}

@keyframes scaleIn {
  to {transform: scale(1);opacity:1;}
}

@media (max-width: 920px) {
  .grid {grid-template-columns: 1fr;}
  .avatar {width: 56px; height: 56px;}
}
