:root {
  --navy: #0f2a44;
  --navy-deep: #0a1f33;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #38bdf8;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --gold: #f59e0b;
  --rose: #e11d48;
  --ink: #172033;
  --muted: #5c667a;
  --line: #d9e2ef;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --surface-blue: #eef5ff;
  --success: #15803d;
  --warning: #b45309;
  --shadow: 0 18px 45px rgba(15, 42, 68, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 45%, #ffffff 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

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

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(100% - 2rem, var(--container));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #ffffff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--navy);
  background: var(--surface-blue);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(90deg, #ffffff, #edf6ff);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 42, 68, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 42, 68, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 80%, transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 4.75rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.headline {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--blue-dark);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
}

.hero-summary {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 42, 68, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--blue);
  background: var(--surface-blue);
}

.btn-ghost {
  color: var(--navy);
  background: transparent;
  border-color: var(--line);
}

.btn-small {
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  color: var(--blue-dark);
  border-color: var(--line);
  background: #ffffff;
  font-size: 0.9rem;
}

.btn-case {
  align-self: flex-start;
  min-height: 40px;
  margin-top: auto;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  background: var(--navy);
  font-size: 0.9rem;
}

.btn-case:hover,
.btn-case:focus-visible {
  background: var(--blue-dark);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.98));
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4ade80;
}

.dashboard-preview {
  padding: 1.2rem;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.dashboard-label,
.dashboard-top strong,
.dashboard-grid span,
.workflow-card span {
  display: block;
}

.dashboard-label {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-top strong {
  color: var(--navy);
}

.dashboard-chip {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--success);
  background: #dcfce7;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-bars {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.dashboard-bars span {
  display: block;
  width: var(--bar-width);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.dashboard-bars span:nth-child(2) {
  background: linear-gradient(90deg, var(--teal), var(--sky));
}

.dashboard-bars span:nth-child(3) {
  background: linear-gradient(90deg, var(--gold), var(--rose));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dashboard-grid div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.metric {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
}

.dashboard-grid span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #123b5f);
}

.workflow-card span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-heading {
  max-width: 620px;
}

.section-heading-wide {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.snapshot {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.snapshot-card,
.skill-card,
.cert-card,
.case-study-template {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.snapshot-card {
  position: relative;
  padding: 1.15rem;
  overflow: hidden;
}

.snapshot-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
}

.snapshot-card > span:not(.snapshot-icon) {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.snapshot-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 0.78rem;
  font-weight: 900;
}

.snapshot-card strong {
  color: var(--navy);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}

.signal-strip div {
  padding: 0.35rem 0.65rem;
  border-left: 3px solid var(--blue);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  color: var(--navy);
}

.signal-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.content-block p {
  margin-top: 0;
  color: var(--muted);
}

.education-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.education-card h3 {
  margin-bottom: 0.5rem;
}

.education-card p {
  margin: 0.4rem 0 0;
}

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

.skill-card {
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 42, 68, 0.05);
}

.skill-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.skill-card h3 {
  margin-bottom: 0.75rem;
}

.skill-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.skill-card li + li {
  margin-top: 0.35rem;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.is-active {
  border-color: var(--blue);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  outline: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 42, 68, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 18px 42px rgba(15, 42, 68, 0.12);
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  min-height: 176px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 42, 68, 0.88), rgba(37, 99, 235, 0.84)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 22px),
    #0f2a44;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.project-visual span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 64px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(8px);
}

.project-visual small {
  display: block;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.visual-m365 {
  background: linear-gradient(135deg, #0f2a44, #2563eb);
}

.visual-iam,
.visual-entra {
  background: linear-gradient(135deg, #123b5f, #0f766e);
}

.visual-exchange {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.visual-ad {
  background: linear-gradient(135deg, #334155, #2563eb);
}

.visual-azure {
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

.visual-intune {
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.visual-support {
  background: linear-gradient(135deg, #0f2a44, #f59e0b);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
}

.project-body p {
  margin: 0;
  color: var(--muted);
}

.project-body h3 {
  margin-top: 0.15rem;
}

.project-meta,
.case-study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.category-pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-pill {
  color: var(--blue-dark);
  background: var(--surface-blue);
}

.status {
  border: 1px solid currentColor;
}

.status-progress {
  color: var(--warning);
  background: #fff7ed;
}

.status-ready {
  color: var(--blue-dark);
  background: var(--surface-blue);
}

.status-completed {
  color: var(--success);
  background: #f0fdf4;
}

.case-study-template {
  padding: 1.5rem;
}

.case-study-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.case-study-header h3 {
  margin-top: 0.55rem;
  font-size: 1.45rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.case-study-grid section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.case-study-grid p {
  margin: 0;
  color: var(--muted);
}

code {
  padding: 0.12rem 0.28rem;
  border-radius: 4px;
  background: #eef2f7;
  color: var(--navy);
  font-size: 0.92em;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cert-card {
  position: relative;
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 42, 68, 0.05);
}

.cert-card h3 {
  margin-bottom: 0.65rem;
}

.cert-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.cert-featured {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.cv-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.07)),
    #ffffff;
}

.cv-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-card a,
.contact-card span {
  display: block;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.contact-card span {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer {
  padding: 1.5rem 0;
  color: #ffffff;
  background: var(--navy);
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 1024px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .signal-strip,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.5rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-actions,
  .filter-toolbar {
    flex-direction: column;
  }

  .btn,
  .filter-btn {
    width: 100%;
  }

  .btn-case {
    align-self: stretch;
  }

  .snapshot-grid,
  .signal-strip,
  .skills-grid,
  .projects-grid,
  .case-study-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .workflow-card {
    grid-template-columns: 1fr;
  }

  .project-meta,
  .case-study-header,
  .cv-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-pill,
  .status {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
