:root {
  --bg: #050814;
  --bg-elevated: #0b1020;
  --bg-alt: #070b18;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --accent-strong: rgba(129, 140, 248, 0.45);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, var(--bg) 42%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding-left: 1.25rem;
}

p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 3.3vw, 3rem);
}

h2 {
  font-size: clamp(1.7rem, 2.1vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0 4.5rem;
}

.section-alt {
  background: radial-gradient(circle at top left, #111827 0, #020617 45%);
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% 0%,
    rgba(79, 70, 229, 0.12),
    transparent 55%
  );
  opacity: 0.8;
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-inner > h2 {
  margin-bottom: 0.3rem;
}

.section-intro {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 3.5rem;
  align-items: flex-start;
}

.prose {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.8rem;
}

.projects-grid {
  margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skills-grid {
  margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.95),
      rgba(17, 24, 39, 0.96)
    ),
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(18px);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.pill-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
}

.pill-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
    circle at top left,
    rgba(79, 70, 229, 0.16),
    rgba(15, 23, 42, 0.96)
  );
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: #a5b4fc;
}

.text-link::after {
  content: "↗";
  margin-left: 0.3rem;
  font-size: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease,
    background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #e5e7eb;
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.7);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(165, 180, 252, 0.8);
  color: #e5e7eb;
}

.btn + .btn {
  margin-left: 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, #6366f1, #4f46e5);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.65);
}

.nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.nav a {
  position: relative;
  padding: 0.15rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #6366f1, #a5b4fc);
  transition: width 150ms ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 3.5rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 530px;
}

.hero-actions {
  margin-top: 1.6rem;
  margin-bottom: 1.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  color: #a5b4fc;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.profile-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.22), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.16), transparent 55%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-photo {
  width: 86px;
  height: 86px;
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid rgba(248, 250, 252, 0.88);
  margin-bottom: 1.1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.95);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta h2 {
  font-size: 1.2rem;
}

.profile-meta p {
  margin-bottom: 0.5rem;
}

.profile-meta p:nth-of-type(1) {
  color: #c7d2fe;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-tagline {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.profile-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.9rem;
}

.profile-links a {
  font-size: 0.83rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.timeline {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.8rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: radial-gradient(circle at top left, #020617, #020617);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.timeline-meta h3 {
  font-size: 1rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: #c7d2fe;
}

.timeline-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-body ul {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.timeline-body li + li {
  margin-top: 0.25rem;
}

.edu-block {
  margin-bottom: 1.2rem;
}

.edu-block h3 {
  font-size: 1rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.4rem 0 1.6rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #e5e7eb;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    justify-content: flex-start;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    padding-inline: 1.2rem;
  }

  .nav {
    gap: 1.1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.8rem 0 3.2rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .container {
    padding-inline: 1.1rem;
  }

  .header-inner {
    padding-inline: 1.1rem;
  }

  .nav {
    display: none;
  }

  .profile-card {
    max-width: 100%;
  }

  .btn + .btn {
    margin-left: 0.6rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

