:root {
  --primary: #0f2747;
  --primary-dark: #0a1b31;
  --accent: #2f5d8a;
  --accent-soft: #eaf1f8;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #d9e2ec;
  --text: #142333;
  --muted: #5b6b7d;
  --shadow: 0 18px 45px rgba(15, 39, 71, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 39, 71, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.96rem;
}

.site-nav a:hover {
  color: var(--primary);
}

.hero-banner {
  position: relative;
  padding: 1.6rem 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-banner-image {
  position: relative;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 226, 236, 0.95);
}

.hero-banner-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 39, 71, 0.78) 0%, rgba(15, 39, 71, 0.58) 34%, rgba(15, 39, 71, 0.10) 70%, rgba(15, 39, 71, 0.04) 100%);
}

.hero-banner-content {
  position: relative;
  margin-top: -320px;
  padding-bottom: 2.4rem;
}

.hero-card {
  width: min(100%, 560px);
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 226, 236, 0.98);
  box-shadow: 0 24px 50px rgba(15, 39, 71, 0.12);
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 93, 138, 0.16);
  background: rgba(234, 241, 248, 0.9);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 1rem 0 0.85rem;
  color: var(--primary);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-metric {
  color: var(--text);
}

.hero-metric strong {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 39, 71, 0.16);
}

.button-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--border);
}

.quick-stats {
  padding-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card,
.project-card,
.about-card,
.profile-info-card,
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 1rem 1.05rem;
}

.stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.section {
  padding: 3.5rem 0 0;
}

.section-header {
  margin-bottom: 1.35rem;
}

.section-header-tight {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0.7rem 0 0.35rem;
  color: var(--primary);
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  max-width: 54rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.project-card {
  grid-column: span 4;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card-wide {
  grid-column: span 6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid rgba(47, 93, 138, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card h3,
.contact-card h3,
.profile-info-card h3 {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.project-card p,
.contact-card p,
.about-card p,
.profile-info-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.project-card ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--text);
}

.project-card li + li {
  margin-top: 0.42rem;
}

.project-links,
.skill-list,
.footer-links,
.contact-grid,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.project-links {
  margin-top: auto;
  padding-top: 1rem;
}

.project-links a,
.contact-card a,
.footer-links a,
.profile-links a {
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
}

.about-card,
.profile-info-card {
  padding: 1.5rem;
  height: 100%;
}

.profile-info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-profile-label,
.profile-info-heading {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-focus {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: -0.2rem;
}

.profile-info-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}

.profile-info-item {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.profile-info-text {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.skill-list {
  margin-top: 1rem;
}

.contact-grid {
  gap: 1rem;
}

.contact-card {
  flex: 1 1 280px;
  padding: 1.35rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.footer-shell p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-banner-image img {
    height: 360px;
  }

  .hero-banner-content {
    margin-top: -250px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-wide {
    grid-column: span 12;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: auto;
    padding: 0.9rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .hero-banner {
    padding-top: 1rem;
  }

  .hero-banner-image img {
    height: 280px;
  }

  .hero-banner-overlay {
    background: linear-gradient(180deg, rgba(15, 39, 71, 0.62) 0%, rgba(15, 39, 71, 0.28) 45%, rgba(15, 39, 71, 0.08) 100%);
  }

  .hero-banner-content {
    margin-top: -110px;
    padding-bottom: 1.8rem;
  }

  .hero-card {
    width: 100%;
    padding: 1.2rem;
  }

  .hero-card h1 {
    font-size: 2.4rem;
    max-width: 100%;
  }

  .section {
    padding-top: 3rem;
  }

  .footer-shell {
    flex-direction: column;
  }
/* ===== GLOBAL NAV (SHARED ACROSS ALL REPOS) ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: #0f2747;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2747, #2f5d8a);
  color: #fff;
  font-size: 1rem;
}

.brand-text {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: #5b6b7d;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #0f2747;
  background: #f4f8fc;
}

.nav-link-active {
  background: #eaf1f8;
  color: #0f2747;
  font-weight: 800;
}

@media (max-width: 760px) {
  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .site-nav {
    gap: 0.5rem;
  }
}
