:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #f7f8fb;

  --text: #111827;     /* near-black */
  --muted: #4b5563;    /* gray */
  --line: rgba(17, 24, 39, 0.12); /* light border */

  --accent: #2563eb;   /* blue link/button */
  --accentText: #ffffff;

  --radius: 16px;
}

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

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* light, subtle background (no dark gradients) */
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(900px 500px at 90% 10%, rgba(99, 102, 241, 0.06), transparent),
    var(--bg);

  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header: change from dark translucent to light */
.site-header {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}

.nav a {
  margin-left: 14px;
  color: var(--muted);
  font-weight: 600;
}
.nav a[aria-current="page"] { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 34px 0 10px 0;
}

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

h1 { font-size: 44px; margin: 0 0 6px 0; line-height: 1.1; }
.subtitle { font-size: 18px; color: var(--muted); margin: 0 0 10px 0; }
.meta { margin: 0 0 14px 0; color: var(--muted); }
.dot { margin: 0 8px; color: var(--line); }

.section { padding: 24px 0; }
.section h2 { margin: 0 0 12px 0; font-size: 24px; }
.section h1 { margin-top: 6px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}

/* Cards: white + subtle shadow */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.hero-card h2 { margin-top: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.bullets { margin: 10px 0 0 18px; color: var(--text); }
.small { font-size: 13px; }
.muted { color: var(--muted); }

.tag-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.04);
  padding: 5px 10px;
  border-radius: 999px;
}

.hero-photo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.profile-pic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

/* On small screens, center it nicely */
@media (max-width: 860px) {
  .hero-photo {
    justify-content: flex-start;
  }
  .profile-pic {
    width: 200px;
    height: 200px;
  }
}

/* Buttons: blue primary, light ghost */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accentText);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.30);
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.03); }

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

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.project-card h3 { margin: 0; font-size: 18px; }
.project-summary { color: var(--muted); margin: 10px 0 0 0; min-height: 44px; }
.project-links { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link { font-weight: 700; }

/* Filters / inputs: white background */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.pill {
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}
.pill:hover { filter: brightness(1.02); }
.pill-active { border-color: rgba(37, 99, 235, 0.45); }

/* Footer: light */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.80);
}

.edu-row { display: flex; justify-content: space-between; gap: 12px; }

.pdf-frame iframe {
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
