/* Global */
:root {
  --bg: #030712;
  --card: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e9edf5;
  --muted: #b5bed1;
  --accent: #5de0e6;
  --accent-2: #7f5af0;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 10% 20%, #0f1c3f 0%, transparent 40%),
    radial-gradient(120% 120% at 90% 10%, #1a3b4d 0%, transparent 35%),
    radial-gradient(120% 120% at 80% 80%, #221a4d 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0a0c14;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  margin: 0;
  font-weight: 700;
}

.brand-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 14px;
  font-weight: 600;
}

.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.35s ease, transform 0.25s ease, border 0.35s ease, box-shadow 0.35s ease;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 20% 20%, rgba(93, 224, 230, 0.3), transparent 55%),
    radial-gradient(120% 120% at 80% 20%, rgba(127, 90, 240, 0.3), transparent 55%),
    rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  z-index: -1;
  filter: blur(0px);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(93, 224, 230, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.nav a:hover::before {
  opacity: 1;
  transform: scale(1.02);
  filter: blur(0.5px);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
}

.section-header {
  margin-bottom: 16px;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 6px;
}

h1,
h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.lede {
  color: var(--muted);
  margin: 0 0 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0c14;
  border: none;
}

.btn.ghost {
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(93, 224, 230, 0.2);
  /* accent bloom */
  border-color: rgba(255, 255, 255, 0.3);
}

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

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.pill-row.wrap {
  margin-top: 6px;
}

/* Hero */
.hero {
  margin: 26px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.stat-value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  max-width: 320px;
  margin: 0 auto;
}

.profile-img {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

.profile-meta {
  margin-top: 12px;
}

.meta-title {
  margin: 0;
  font-weight: 700;
}

.meta-desc {
  margin: 4px 0 0;
  color: var(--muted);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mini-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.mini-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-title {
  margin: 6px 0 4px;
  font-weight: 700;
}

.mini-desc {
  margin: 0;
  color: var(--muted);
}

/* Layout blocks */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  color: var(--muted);
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pill-group {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.pill-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.feature-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.feature-desc {
  margin: 0;
  color: var(--muted);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.project-label {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.project-title {
  margin: 6px 0 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.project-desc {
  margin: 0 0 10px;
  color: var(--muted);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.project-list {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.project-list li {
  line-height: 1.4;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.timeline-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.timeline-year {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.timeline-desc {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: center;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Footer */
.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .page {
    padding: 18px 16px 48px;
  }
}