:root {
  --bg: #050716;
  --bg-elevated: #0b1020;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.18);
  --accent-strong: #8b5cf6;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

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

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: -40vh 0 auto;
  background:
    radial-gradient(circle at 20% 0, rgba(79, 70, 229, 0.45), transparent 60%),
    radial-gradient(circle at 80% 0, rgba(8, 47, 73, 0.6), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 18px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.4), transparent 70%);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: rgba(148, 163, 184, 0.5);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  margin-top: 8px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-name {
  font-size: clamp(2.25rem, 3.2vw, 2.7rem);
  font-weight: 800;
}

.hero-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-tagline {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.featured-card {
  margin-top: 8px;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.featured-label-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
}

.pill-featured {
  border-color: rgba(248, 250, 252, 0.6);
  background: rgba(15, 23, 42, 0.8);
}

.pill-status {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.featured-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
}

.featured-text {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ecfeff;
  box-shadow: 0 16px 40px rgba(55, 48, 163, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(55, 48, 163, 0.9);
}

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

.btn-ghost:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.95);
}

.featured-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.featured-meta li + li {
  margin-top: 2px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.stat-card {
  padding: 14px 14px 12px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.4), transparent 70%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.stat-label {
  margin: 0 0 3px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.stat-mini-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-pill {
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
}

.section {
  margin-top: 48px;
  padding: 0 4px;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.section-header p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.projects-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.project-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
}

.project-card--placeholder {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
}

.project-card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.project-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.project-toggle {
  width: 100%;
  padding: 6px 2px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: inherit;
}

.project-toggle-text {
  text-align: left;
}

.chevron {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  position: relative;
  flex-shrink: 0;
}

.chevron::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-right: 2px solid rgba(148, 163, 184, 0.9);
  border-bottom: 2px solid rgba(148, 163, 184, 0.9);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.project-details {
  margin: 8px 0 8px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.project-details li + li {
  margin-top: 2px;
}

.project-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.project-links a:hover {
  text-decoration: none;
}

.project-link-live {
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ecfeff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 32px rgba(55, 48, 163, 0.55);
}

.project-link-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(55, 48, 163, 0.75);
}

.project-link-code {
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 600;
  border-color: rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.75);
  color: #dbeafe;
}

.project-link-code:hover {
  color: #eff6ff;
  background: rgba(15, 23, 42, 0.95);
}

.placeholder-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}

.project-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.project-card.is-open .project-panel {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

.project-card.is-open .chevron::before {
  transform: rotate(225deg);
}

.section-about {
  margin-top: 36px;
}

.about-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 18px;
  font-size: 0.97rem;
  color: var(--text-muted);
}

.subheading {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.skills-list {
  margin: 0;
  padding-left: 18px;
}

.skills-list li + li {
  margin-top: 3px;
}

.site-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 14px;
  }
  .hero {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .projects-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header {
    padding-inline: 4px;
  }
  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }
}

