:root {
  --bg: #0b0c10;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --link: #7c3aed;
  --border: #1f2933;
  --font-main: "Sora", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.08), transparent 26%),
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: auto, auto, 22px 22px;
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(900px, 92vw);
  margin: 60px auto 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 48px;
  padding: 12px 18px;
  background: rgba(17, 19, 27, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.nav a {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: #ffd700;
  background: rgba(255, 255, 255, 0.04);
}

.nav a.active {
  color: #ffd700;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

main section {
  margin: 36px 0;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

h3 {
  margin-top: 12px;
}

p {
  margin: 0 0 12px;
  max-width: 72ch;
}

.muted {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 12px 0 8px;
  list-style: disc;
  max-width: 72ch;
}

.list li {
  border: none;
  padding: 0;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.toolbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tool span {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.tool--link:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: clamp(26px, 4vw, 32px);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.card-skill {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
  min-height: 120px;
  text-align: center;
}

.card-skill .label {
  font-weight: 700;
  font-size: 15px;
}

.card-skill .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cert-card {
  display: grid;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cert-card img {
  width: 120px;
  margin: 0 auto;
}

.cert-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Projects grid */
.projects-hero {
  text-align: center;
  margin: 24px 0 12px;
}

.pills {
  display: inline-flex;
  gap: 10px;
  margin: 16px 0 28px;
}

.pill-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.pill-btn.active {
  background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.45), rgba(124, 58, 237, 0.15));
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.project-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  min-height: 160px;
  display: grid;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.project-icon {
  font-size: 22px;
}

.project-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

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

.project-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 540px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    gap: 12px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
