/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #0b1020;
  --panel: #0f172a;
  --panel-2: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --border: #1f2937;
}
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -20%, #1e293b 0%, rgba(30,41,59,0) 60%),
              radial-gradient(1000px 600px at 90% 0%, #0b132b 0%, rgba(11,19,43,0) 60%),
              var(--bg);
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.6)); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.header-inner { padding: 28px 0; display: flex; align-items: center; }
.id-block h1 { margin: 0; font-size: 2.1rem; letter-spacing: -0.02em; }
.subtitle { margin: 6px 0 2px; font-weight: 600; color: var(--text); opacity: 0.95; }
.meta { margin: 0 0 10px; color: var(--muted); }
.links a { margin-right: 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.links a:hover { border-color: var(--accent); color: var(--accent); }

main section { padding: 44px 0; border-bottom: 1px solid var(--border); }
h2 { font-size: 1.55rem; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { margin: 0 0 10px; font-size: 1.05rem; }

.card {
  background: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(17,24,39,0.7));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(96,165,250,0.5); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.skills-grid ul { margin: 0; padding-left: 18px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.badges { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: .8rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  background: rgba(2,6,23,0.6);
}
.card .links { margin-top: 10px; display: flex; gap: 12px; }
.card .links a { text-decoration: none; border-bottom: 1px solid transparent; color: var(--text); }
.card .links a:hover { border-color: var(--accent); color: var(--accent); }

.header-container{
  display:flex;
  align-items:center;
  gap:20px;
}

.profile-photo{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:50%;
  border:3px solid #ffffff;
  box-shadow:0 4px 15px rgba(0,0,0,.25);
}

/* tighten spacing inside the text block so it looks balanced */
.header-text h1{ margin:0 }
.header-text .subtitle{ margin:6px 0 2px }
.header-text .meta{ margin:0 0 10px }


.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.note h3 { margin-bottom: 6px; }

.role + .role { margin-top: 20px; }
.tenure { font-weight: 500; color: var(--muted); font-size: .95rem; }

.education-list { margin: 0; padding-left: 18px; color: var(--text); }
.education-list strong { color: var(--text); }

.site-footer { padding: 24px 0; background: linear-gradient(180deg, rgba(15,23,42,0.6), rgba(15,23,42,0.9)); border-top: 1px solid var(--border); }
.site-footer p { margin: 0; text-align: center; color: var(--muted); }

@media (max-width: 600px) {
  .id-block h1 { font-size: 1.7rem; }
}