:root {
  --primary: #1e3a8a;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --dark: #0f172a;
  --light: #f8fafc;
  --surface: #ffffff;
  --muted: #64748b;
  --border: rgba(59, 130, 246, 0.12);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 45%, #ffffff 100%);
  color: #1f2937;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-header .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-shell {
  padding: 5rem 0 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.project-hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-hero__content {
  padding: 2rem;
}

.project-hero__content h1 {
  color: var(--dark);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.project-hero__content .lead {
  color: #334155;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.project-hero__media {
  height: 100%;
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.96), rgba(59, 130, 246, 0.8)),
    #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-hero__media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.project-hero__placeholder {
  color: #dbeafe;
  text-align: center;
  max-width: 18rem;
}

.project-hero__placeholder strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.meta-grid,
.content-card,
.cta-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.meta-grid {
  padding: 1.25rem;
}

.meta-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
  background: #fff;
}

.meta-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.meta-card strong {
  display: block;
  color: var(--dark);
  font-size: 1rem;
}

.content-card,
.cta-card {
  padding: 1.5rem;
}

.content-card h2,
.cta-card h2 {
  color: var(--dark);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.content-card p,
.content-card li,
.cta-card p {
  color: #334155;
  line-height: 1.75;
}

.stack-list,
.project-links,
.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stack-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.project-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

@media (max-width: 767.98px) {
  .hero-shell {
    padding-top: 3.5rem;
  }

  .project-hero__content,
  .meta-grid,
  .content-card,
  .cta-card {
    padding: 1.25rem;
  }
}
