:root {
  --bg: #070b12;
  --bg-soft: #0d1422;
  --bg-alt: #101827;
  --card: #111c2e;
  --card-2: #0f1726;
  --text: #e7edf7;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #58a6ff;
  --accent-2: #8ef0cf;
  --warning: #f2cc60;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(142, 240, 207, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo::after {
  content: " >";
  color: var(--accent-2);
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #07111f;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-image-card,
.terminal-card,
.card,
.project-card,
.stat-card,
.noc-card,
.noc-metric,
.noc-system-card,
.personal-image-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.terminal-card {
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.terminal-top span:nth-child(2) {
  background: var(--warning);
}

.terminal-top span:nth-child(3) {
  background: var(--accent-2);
}

.terminal-card pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: var(--accent-2);
  font-size: 0.88rem;
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.15;
}

.section-intro {
  color: var(--muted);
  max-width: 70ch;
}

.content-grid,
.projects-grid,
.contact-grid,
.personal-grid,
.noc-grid,
.stats-grid,
.noc-metrics-grid,
.noc-system-grid {
  display: grid;
  gap: 1.25rem;
}

.content-grid {
  grid-template-columns: 1.2fr 0.9fr;
}

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

.contact-grid,
.personal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid,
.noc-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.project-card,
.stat-card,
.noc-card,
.noc-metric,
.noc-system-card {
  padding: 1.35rem;
}

.card h3,
.project-card h3,
.noc-card h3 {
  margin-top: 0;
}

.project-card {
  position: relative;
}

.featured-project {
  border-color: rgba(142, 240, 207, 0.28);
}

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

.status-pill {
  display: inline-block;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.24);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.tags {
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.25rem 0 1rem;
}

.project-impact {
  color: var(--text);
  border-left: 3px solid var(--accent-2);
  padding-left: 0.8rem;
  margin: 1rem 0;
  font-weight: 700;
}

.clean-list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 800;
}

.stat-card h3,
.noc-metric h3 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--accent-2);
}

.stat-card p,
.noc-metric p {
  margin: 0.25rem 0;
  font-weight: 800;
  color: var(--text);
}

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

.noc-dashboard {
  background:
    radial-gradient(circle at top left, rgba(142, 240, 207, 0.08), transparent 30%),
    linear-gradient(180deg, #070b12 0%, #0d1422 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.noc-command-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.status-dot,
.mini-status {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(142, 240, 207, 0.9);
}

.mini-status.warning {
  background: var(--warning);
  box-shadow: 0 0 16px rgba(242, 204, 96, 0.9);
}

.mini-status.planned {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(88, 166, 255, 0.9);
}

.noc-system-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.noc-system-card h3 {
  margin: 0.8rem 0 0.35rem;
}

.noc-system-card p {
  color: var(--muted);
  margin: 0.2rem 0 0.6rem;
}

.noc-system-card code {
  display: inline-block;
  color: var(--accent-2);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.noc-system-card small {
  display: block;
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.noc-section {
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.08), rgba(142, 240, 207, 0.04));
}

.personal-grid {
  align-items: center;
}

.personal-image-wrap {
  padding: 1rem;
}

.personal-image {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.back-to-top {
  color: var(--muted);
}

.back-to-top:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 1050px) {
  .projects-grid,
  .stats-grid,
  .noc-metrics-grid,
  .noc-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .contact-grid,
  .personal-grid,
  .noc-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0;
    gap: 0.8rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 620px) {
  .projects-grid,
  .stats-grid,
  .noc-metrics-grid,
  .noc-system-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.mini-status.online {
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(142, 240, 207, 0.9);
}

.mini-status.warning {
  background: var(--warning);
  box-shadow: 0 0 16px rgba(242, 204, 96, 0.9);
}

.mini-status.offline {
  background: #ff5f56;
  box-shadow: 0 0 16px rgba(255, 95, 86, 0.9);
}

.noc-system-card small + small {
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.system-label {
  display: inline-block;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.22);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.system-meta {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.85rem;
}

.system-meta small {
  color: var(--muted);
}

.system-meta small:first-child {
  color: var(--accent);
  font-weight: 800;
}

.noc-proof {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-left: 3px solid var(--accent-2);
  padding-left: 0.75rem;
}

.severity-pill {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.severity-pill.healthy {
  color: var(--accent-2);
  background: rgba(142, 240, 207, 0.1);
  border: 1px solid rgba(142, 240, 207, 0.28);
}

.severity-pill.degraded {
  color: var(--warning);
  background: rgba(242, 204, 96, 0.1);
  border: 1px solid rgba(242, 204, 96, 0.28);
}

.severity-pill.critical {
  color: #ff5f56;
  background: rgba(255, 95, 86, 0.1);
  border: 1px solid rgba(255, 95, 86, 0.28);
}

.noc-alert-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.noc-alert-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.noc-alert-header h3 {
  margin: 0;
}

.noc-alert-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.noc-alert-list {
  display: grid;
  gap: 0.75rem;
}

.noc-alert {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border-left: 4px solid var(--accent-2);
  background: rgba(255, 255, 255, 0.035);
}

.noc-alert span {
  color: var(--muted);
  font-size: 0.9rem;
}

.noc-alert.healthy {
  border-left-color: var(--accent-2);
}

.noc-alert.degraded {
  border-left-color: var(--warning);
}

.noc-alert.critical {
  border-left-color: #ff5f56;
}

.noc-alert.unknown {
  border-left-color: var(--accent);
}

.metric-pop {
  animation: metricPop 0.35s ease;
}

@keyframes metricPop {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}