:root {
  --bg: #0b1220;
  --bg-soft: #101a2f;
  --card: rgba(16, 26, 47, 0.86);
  --card-strong: rgba(14, 22, 39, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e7eefb;
  --muted: #9fb0cd;
  --accent: #60a5fa;
  --accent-2: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 22%),
    linear-gradient(180deg, #09101d 0%, #0b1220 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(8, 13, 24, 0.74);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(96, 165, 250, 0.08);
  color: #bfdbfe;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 0.8rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy {
  padding: 2.25rem;
}

.hero-copy p {
  font-size: 1.05rem;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: white;
}

.btn-secondary {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.hero-side {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(17,26,46,0.92), rgba(10,16,30,0.98));
}

.status-card,
.detail-box,
.metric {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.status-card,
.metric,
.detail-box,
.project-shell,
.details {
  padding: 1rem;
}

.status-card h3,
.detail-box strong {
  margin-bottom: 0.45rem;
}

.status-card p,
.metric span,
.detail-box p,
.detail-box ul {
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

section {
  padding: 1.2rem 0 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-head p {
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.project-type {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.tag-row,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag,
.skill-pill {
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.tag {
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
}

.skill-pill {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.details {
  padding: 1.5rem;
}

.detail-grid,
.meta-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-box ul {
  margin: 0;
  padding-left: 1rem;
}

.timeline {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.timeline-item {
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 3px solid rgba(96,165,250,0.55);
  background: rgba(255,255,255,0.03);
  border-radius: 0 16px 16px 0;
}

.timeline-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.project-hero {
  padding: 4rem 0 2rem;
}

.project-shell {
  padding: 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #bfdbfe;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.muted { color: var(--muted); }
.accent { color: #bfdbfe; }

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .detail-grid,
  .meta-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 3.5rem; }
  .hero-copy,
  .hero-side,
  .details,
  .project-shell {
    padding: 1.2rem;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card,
.project-card h3,
.project-card p,
.project-card .tag-row,
.project-card .project-type {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(20, 31, 54, 0.96);
}

.project-card:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 3px;
}
