:root {
  --bg: #0b1020;
  --bg-alt: #f4f7fb;
  --text: #13213a;
  --light: #ffffff;
  --primary: #1f4ed8;
  --primary-dark: #1639a3;
  --muted: #5c6b86;
  --card-border: #dbe4f3;
  --shadow: 0 10px 30px rgba(13, 27, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
}

body {
  line-height: 1.6;
  padding-top: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  color: var(--light);
  background: radial-gradient(circle at top right, #2b4fca 0%, #10224f 45%, #0b1020 90%);
  padding-top: 88px;
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: auto;
  margin: 0;
  padding: 1rem max(4%, calc((100% - 1120px) / 2));
  border-radius: 0;
  background: rgba(11, 16, 32, 0.95);
  border: 0;
  border-bottom: 1px solid rgba(219, 231, 255, 0.18);
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: #dbe7ff;
  text-decoration: none;
  font-weight: 500;
}

.hero-content {
  padding: 4rem 0 1rem;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b9ccff;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  margin-bottom: 1rem;
}

.lead {
  color: #d9e3ff;
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e8efff;
  color: #10224f;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.project-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 27, 62, 0.14);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 1rem 1.1rem 1.2rem;
}

.project-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.project-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.detail-main {
  padding: calc(3rem + 88px) 0 4rem;
}

.detail-image-wrap {
  margin-bottom: 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.detail-image-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.detail-content {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.detail-content p {
  margin-bottom: 0;
}

.detail-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.card,
.highlight-box {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.footer {
  background: #0c1732;
  color: #cbd8ff;
}

.footer-inner {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: #e1e9ff;
  text-decoration: none;
}

@media (max-width: 900px) {

  .cards-3,
  .project-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .detail-main {
    padding-top: 2rem;
  }
}