:root {
  --blue-900: #0b2a4a;
  --blue-700: #134a88;
  --blue-600: #1659a8;
  --blue-200: #e6f0fb;
  --ink: #112033;
  --ink-soft: #2a3b52;
  --edge: rgba(8, 31, 63, 0.08);
  --sidebar-w: 300px;
  --radius-lg: 16px;
  --shadow-strong: 0 14px 30px rgba(6, 32, 68, 0.18);
  --shadow-soft: 0 10px 20px rgba(6, 32, 68, 0.12);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Segoe UI, Arial, Helvetica, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: #ffffff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.78)), url("../img/work.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: translateZ(0);
}

.logo {
  height: 60px;
  width: auto;
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 6px 0 22px rgba(6, 32, 68, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 18px 18px 24px 18px;
  border-right: 1px solid var(--edge);
  backdrop-filter: saturate(130%) blur(6px);
}

.sidebar::before {
  content: "";
  position: absolute;
  right: -28px;
  top: 0;
  width: 28px;
  height: 100%;
  background: radial-gradient(40px 240px at left center, rgba(19, 74, 136, 0.25), transparent 60%);
  filter: blur(6px);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  margin-top: 6px
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(6, 32, 68, 0.12);
  border: 1px solid var(--edge);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--blue-200);
  color: var(--blue-900);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 32, 68, 0.14);
}

.nav-link[aria-current="true"] {
  background: linear-gradient(180deg, #e8f1ff 0%, #ffffff 100%);
  color: var(--blue-700);
  border-color: rgba(22, 89, 168, 0.35);
}

.content {
  padding: 28px;
  padding-left: calc(var(--sidebar-w) + 28px);
  max-width: 1280px;
  margin-right: auto;
}

.section {
  margin: 0 auto 56px auto
}

.hero {
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  background: #ffffffcc;
  box-shadow: var(--shadow-strong);
  backdrop-filter: saturate(120%) blur(2px);
}

.hero-inner {
  display: grid;
  gap: 14px;
  max-width: 760px
}

.subhead {
  color: var(--ink-soft);
  line-height: 1.5
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px
}

.section-lead {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: large;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}

.card:focus {
  outline: 2px solid rgba(22, 89, 168, 0.45);
  outline-offset: 2px
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(6, 32, 68, 0.16);
  border-color: rgba(22, 89, 168, 0.25);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  box-shadow: 0 10px 22px rgba(6, 32, 68, 0.16);
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(180deg, var(--blue-600), #0f56a4);
  color: #ffffff
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(6, 32, 68, 0.22)
}

.btn.ghost {
  background: #ffffff;
  color: var(--blue-700);
  border-color: rgba(22, 89, 168, 0.35)
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: var(--blue-200);
  transform: translateY(-1px)
}

.glow-pulse {
  animation: glowfade 1.4s ease-out forwards;
}

@keyframes glowfade {
  0% {
    box-shadow: 0 0 0 rgba(22, 89, 168, 0);
    background: #ffffff;
    border-color: rgba(22, 89, 168, 0.35)
  }

  20% {
    box-shadow: 0 0 0 0 rgba(22, 89, 168, 0.0), 0 0 28px rgba(22, 89, 168, 0.55);
    background: #f5faff
  }

  60% {
    box-shadow: 0 0 0 0 rgba(22, 89, 168, 0.0), 0 0 18px rgba(22, 89, 168, 0.35);
    background: #ffffff
  }

  100% {
    box-shadow: var(--shadow-soft);
    background: #ffffff;
    border-color: var(--edge)
  }
}

.site-footer {
  border-top: 1px solid var(--edge);
  padding: 22px 28px 22px 320px;
  background: #ffffffcc;
  box-shadow: 0 -8px 22px rgba(6, 32, 68, 0.06);
  backdrop-filter: saturate(120%) blur(2px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  font-weight: 600
}

@media (max-width: 960px) {
  :root {
    --sidebar-w: 260px
  }
}

@media (max-width: 740px) {
  .sidebar {
    height: auto;
    width: 100%;
    left: 0;
    right: 0;
    border-right: none;
    border-bottom: 1px solid var(--edge);
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(6, 32, 68, 0.12);
  }

  .sidebar::before {
    right: 0;
    top: 100%;
    width: 100%;
    height: 20px;
    background: radial-gradient(200px 20px at 50% -10px, rgba(19, 74, 136, 0.22), transparent 70%);
  }

  .nav-list {
    flex-direction: row;
    gap: 10px;
    margin-left: auto;
    overflow: auto;
    scrollbar-width: none
  }

  .nav-list::-webkit-scrollbar {
    display: none
  }

  .brand-title {
    display: none
  }

  .content {
    padding: 18px;
    padding-top: calc(60px + 22px);
    padding-left: 18px;
    margin: 0 auto
  }
}