:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-400: #4ade80;
  --green-500: #22c55e;
}

html {
  height: 100%;
  background-color: var(--slate-50);
  color: var(--slate-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

body {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: var(--slate-50);
  color: var(--slate-900);
}

/* Global Container Utility */
.container-max {
  width: 100%;
  max-width: 80rem;
  /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Accessibility Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Modern Header with Glassmorphism */
.layout-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.95);
  /* slate-900 with high opacity */
  border-bottom: 1px solid var(--slate-800);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  /* Elongated header height */
}

.brand-container {
  display: flex;
  align-items: center;
}

.logo-link {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--blue-400);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
}

.logo-link:hover {
  color: var(--blue-300);
  transform: translateY(-1px);
}

.logo-span {
  color: #ffffff;
  transition: color 0.2s ease;
}

.logo-link:hover .logo-span {
  color: var(--slate-200);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-300);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--blue-400);
  background-color: rgba(59, 130, 246, 0.08);
}

.nav-link.active {
  color: var(--blue-400);
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Nav Divider */
.nav-divider {
  height: 1.25rem;
  width: 1px;
  background-color: var(--slate-700);
  opacity: 0.7;
}

/* Social Actions */
.social-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--slate-400);
}

.social-link {
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.social-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Layout Main Content Wrapper */
.layout-main {
  flex-grow: 1;
}

/* Footer layout */
.layout-footer {
  border-top: 1px solid var(--slate-200);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 auto;
}

.footer-link {
  color: var(--blue-500);
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--blue-400);
}

/* Status Indicator */
.status-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-500);
  animation: pulse-animation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-text {
  font-size: 10px;
  color: var(--slate-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes pulse-animation {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* Layout and general styles */
.homepage-container {
  max-width: 72rem;
  /* 1152px - max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-top: 3rem;
  /* py-12 */
  padding-bottom: 3rem;
  padding-left: 1rem;
  /* px-4 */
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .homepage-container {
    padding-left: 1.5rem;
    /* sm:px-6 */
    padding-right: 1.5rem;
  }
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  /* rounded-3xl */
  background-color: #0f172a;
  /* bg-slate-900 */
  color: #ffffff;
  /* text-white */
  padding: 2rem;
  /* p-8 */
  margin-bottom: 4rem;
  /* mb-16 */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* shadow-2xl */
  border: 1px solid #1e293b;
  /* border-slate-800 */
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4rem;
    /* md:p-16 */
  }
}

.hero-radial-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1), transparent 50%);
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title-highlight {
  color: #3b82f6;
}

.hero-description {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: #cbd5e1;
  font-weight: 300;
  line-height: 1.625;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: #3b82f6;
}

.btn-secondary {
  background-color: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
}

.btn-secondary:hover {
  background-color: #334155;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  border-radius: 9999px;
  filter: blur(8px);
  opacity: 0.25;
  transition: opacity 1s, filter 1s;
}

.logo-wrapper:hover .logo-glow {
  opacity: 0.4;
  filter: blur(12px);
  transition: opacity 0.2s, filter 0.2s;
}

.logo-container {
  position: relative;
  background-color: #020617;
  padding: clamp(0.5rem, 1.5vw, 1.5rem);
  border-radius: 9999px;
  border: 1px solid #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  height: clamp(5rem, 16vw, 16rem);
  width: clamp(5rem, 16vw, 16rem);
  object-fit: contain;
  border-radius: 9999px;
}

/* Pillars Section Styles */
.pillars-section {
  margin-bottom: 5rem;
  /* mb-20 */
  scroll-margin-top: 1.5rem;
  /* scroll-mt-6 */
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  /* mb-8 */
  padding-left: 0.5rem;
  /* px-2 */
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-subtitle {
  font-size: 0.75rem;
  /* text-xs */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* tracking-widest */
  color: #2563eb;
  /* text-blue-600 */
  margin-bottom: 0.5rem;
  /* mb-2 */
}

.section-title {
  font-size: 1.875rem;
  /* text-3xl */
  font-weight: 900;
  /* font-black */
  color: #0f172a;
  /* text-slate-900 */
  margin: 0;
}

.section-description {
  color: #64748b;
  /* text-slate-500 */
  font-size: 0.875rem;
  /* text-sm */
  max-width: 28rem;
  /* max-w-md */
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .section-description {
    margin-top: 0;
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* gap-6 */
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pillar-card {
  padding: 1.5rem;
  /* p-6 */
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  /* border-slate-100 */
  border-radius: 1rem;
  /* rounded-2xl */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  /* shadow-sm */
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  text-decoration: none;
}

.pillar-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  /* hover:shadow-xl */
  transform: translateY(-0.25rem);
  /* hover:-translate-y-1 */
}

.pillar-icon-wrapper {
  width: 2.5rem;
  /* w-10 */
  height: 2.5rem;
  /* h-10 */
  border-radius: 0.75rem;
  /* rounded-xl */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  /* mb-4 */
  transition: all 0.3s;
}

.pillar-icon {
  width: 1.25rem;
  /* w-5 */
  height: 1.25rem;
  /* h-5 */
}

.pillar-title {
  font-size: 1.125rem;
  /* text-lg */
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.pillar-text {
  color: #64748b;
  font-size: 0.75rem;
  /* text-xs */
  line-height: 1.625;
  margin: 0;
}

.pillar-link {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.pillar-card:hover .pillar-link {
  transform: translateX(0.25rem);
}

/* Pillar Specifics */
.pillar-blog:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.pillar-blog .pillar-icon-wrapper {
  background-color: #eff6ff;
  color: #2563eb;
}

.pillar-blog:hover .pillar-icon-wrapper {
  background-color: #2563eb;
  color: #ffffff;
}

.pillar-blog .pillar-link {
  color: #2563eb;
}

.pillar-how-to:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.pillar-how-to .pillar-icon-wrapper {
  background-color: #ecfdf5;
  color: #059669;
}

.pillar-how-to:hover .pillar-icon-wrapper {
  background-color: #059669;
  color: #ffffff;
}

.pillar-how-to .pillar-link {
  color: #059669;
}

.pillar-learning:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.pillar-learning .pillar-icon-wrapper {
  background-color: #faf5ff;
  color: #9333ea;
}

.pillar-learning:hover .pillar-icon-wrapper {
  background-color: #9333ea;
  color: #ffffff;
}

.pillar-learning .pillar-link {
  color: #9333ea;
}

.pillar-textbooks:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.pillar-textbooks .pillar-icon-wrapper {
  background-color: #fff7ed;
  color: #ea580c;
}

.pillar-textbooks:hover .pillar-icon-wrapper {
  background-color: #ea580c;
  color: #ffffff;
}

.pillar-textbooks .pillar-link {
  color: #ea580c;
}

/* Zettelkasten Banner Styles */
.zettelkasten-banner {
  margin-top: 1.5rem;
  display: block;
  padding: 1.5rem;
  background: linear-gradient(to right, #f8fafc, rgba(241, 245, 249, 0.5));
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.zettelkasten-banner:hover {
  border-color: rgba(236, 72, 153, 0.3);
}

.banner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .banner-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background-color: #fdf2f8;
  color: #db2777;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.zettelkasten-banner:hover .banner-icon-wrapper {
  background-color: #db2777;
  color: #ffffff;
}

.banner-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.banner-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  transition: color 0.3s;
}

.zettelkasten-banner:hover .banner-title {
  color: #db2777;
}

.banner-text {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.125rem;
  margin-bottom: 0;
}

.banner-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #db2777;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.zettelkasten-banner:hover .banner-link {
  transform: translateX(0.25rem);
}

/* Operational Environments Styles */
.environments-section {
  margin-bottom: 5rem;
}

.environments-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.environments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .environments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.env-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.env-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.env-card-blur {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  filter: blur(24px);
  transition: background-color 0.3s;
}

.env-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.env-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.env-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.env-card-text {
  font-size: 0.75rem;
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.env-card-link {
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.env-card-link-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  transition: transform 0.3s;
}

.env-card:hover .env-card-link-icon {
  transform: translateX(0.25rem);
}

.env-card-dark {
  background-color: #020617;
  border: 1px solid #0f172a;
}

.env-card-dark:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.env-card-dark .env-card-blur {
  background-color: rgba(59, 130, 246, 0.1);
}

.env-card-dark:hover .env-card-blur {
  background-color: rgba(59, 130, 246, 0.2);
}

.env-card-dark .env-icon-wrapper {
  background-color: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.env-card-dark:hover .env-icon-wrapper {
  background-color: #3b82f6;
  color: #ffffff;
}

.env-card-dark .env-card-title {
  color: #ffffff;
}

.env-card-dark .env-card-text {
  color: #94a3b8;
}

.env-card-dark .env-card-link {
  color: #60a5fa;
}

.env-card-light {
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
}

.env-card-light:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.env-card-light .env-card-blur {
  background-color: rgba(100, 116, 139, 0.05);
}

.env-card-light:hover .env-card-blur {
  background-color: rgba(59, 130, 246, 0.05);
}

.env-card-light .env-icon-wrapper {
  background-color: #eff6ff;
  color: #2563eb;
}

.env-card-light:hover .env-icon-wrapper {
  background-color: #2563eb;
  color: #ffffff;
}

.env-card-light .env-card-title {
  color: #0f172a;
}

.env-card-light .env-card-text {
  color: #64748b;
}

.env-card-light .env-card-link {
  color: #2563eb;
}

/* Credentials Section Styles */
.credentials-section {
  margin-top: 5rem;
}

.credentials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.credentials-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cred-card {
  padding: 1.25rem;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.cred-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cred-img-wrapper {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #f8fafc;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.cred-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cred-info {
  min-width: 0;
}

.cred-issuer {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.125rem 0;
}

.cred-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.875rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.cred-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
}

.status-dot-emerald {
  width: 0.375rem;
  height: 0.375rem;
  background-color: #10b981;
  border-radius: 50%;
}

.cred-itil:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.cred-itil:hover .cred-name {
  color: #059669;
}

.status-active {
  background-color: #ecfdf5;
  color: #047857;
}

.cred-google:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.google-badge-bg {
  background-color: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.05);
}

.cred-google:hover .cred-img-wrapper {
  background-color: #dbeafe;
}

.cred-google:hover .cred-name {
  color: #2563eb;
}

.status-issued {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* Around the Web Section Styles */
.web-presence-section {
  margin-top: 6rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 4rem;
}

.web-presence-wrapper {
  display: block;
}

@media (min-width: 768px) {
  .web-presence-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.web-presence-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.web-presence-description {
  color: #64748b;
  font-size: 0.75rem;
  max-width: 28rem;
  margin: 0;
}

.web-presence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .web-presence-links {
    margin-top: 0;
  }
}

.social-btn {
  padding: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-btn:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.social-btn-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #475569;
  transition: color 0.3s;
}

.gitlab-btn:hover {
  border-color: #f97316;
}

.gitlab-btn:hover .social-btn-icon {
  color: #f97316;
}

.github-btn:hover {
  border-color: #0f172a;
}

.github-btn:hover .social-btn-icon {
  color: #0f172a;
}

.linkedin-btn:hover {
  border-color: #2563eb;
}

.linkedin-btn:hover .social-btn-icon {
  color: #2563eb;
}

.mastodon-btn:hover {
  border-color: #9333ea;
}

.mastodon-btn:hover .social-btn-icon {
  color: #9333ea;
}

.bluesky-btn:hover {
  border-color: #60a5fa;
}

.bluesky-btn:hover .social-btn-icon {
  color: #60a5fa;
}

.tech-tags-footer {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Homelab-Specific styles */
.homelab-dashboard {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 80vh;
}

.glow-orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(120px);
  pointer-events: none;
}

.orb-1 {
  top: 0;
  left: 25%;
  background-color: rgba(37, 99, 235, 0.2);
}

.orb-2 {
  bottom: 25%;
  right: 25%;
  background-color: rgba(147, 51, 234, 0.2);
}

.glow-orb-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(2, 6, 23, 0.5);
  pointer-events: none;
}

.homelab-container {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.homelab-header {
  margin-bottom: 3rem;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.ping-container {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.ping-wave {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #4ade80;
  opacity: 0.75;
}

.ping-core {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 0.5rem;
  width: 0.5rem;
  background-color: #22c55e;
}

.homelab-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  margin: 0;
}

@media (min-width: 768px) {
  .homelab-title {
    font-size: 3.75rem;
  }
}

.homelab-title-highlight {
  color: #3b82f6;
}

.homelab-subtitle {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

.code-highlight {
  color: #60a5fa;
  font-family: monospace;
}

.homelab-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.homelab-section {
  margin-bottom: 3rem;
}

.topology-container {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nodes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .nodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nodes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.node-card {
  background-color: #0f172a;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.node-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.node-card:hover .node-card-glow {
  opacity: 1;
}

.node-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  position: relative;
}

.node-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.node-name {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
}

.node-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.node-specs {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.node-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background-color: #1e293b;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.node-card-blue {
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.node-card-blue .node-card-glow {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
}

.node-card-blue .node-type {
  color: #60a5fa;
}

.node-card-blue .node-tag {
  color: #93c5fd;
}

.node-card-slate {
  border: 1px solid #1e293b;
  transition: border-color 0.3s;
}

.node-card-slate:hover {
  border-color: #334155;
}

.node-card-slate .node-card-glow {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, transparent 100%);
}

.node-card-slate .node-type {
  color: #64748b;
}

.node-card-slate .node-tag {
  color: #94a3b8;
}

.node-card-emerald {
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.node-card-emerald .node-card-glow {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

.node-card-emerald .node-type {
  color: #34d399;
}

.node-card-emerald .node-tag {
  color: #6ee7b7;
}

.util-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .util-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.util-card {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.util-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #cbd5e1;
}

.util-val {
  font-size: 0.75rem;
  font-family: monospace;
}

.util-val-blue {
  color: #60a5fa;
}

.util-val-purple {
  color: #c084fc;
}

.util-val-emerald {
  color: #34d399;
}

.util-progress-bar {
  width: 100%;
  background-color: #1e293b;
  border-radius: 9999px;
  height: 0.625rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.util-progress-fill {
  height: 0.625rem;
  border-radius: 9999px;
}

.util-fill-blue {
  background-color: #3b82f6;
}

.util-fill-purple {
  background-color: #a855f7;
}

.util-fill-emerald {
  background-color: #10b981;
}

.util-footer {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  text-align: right;
  margin: 0;
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-0.25rem);
}

.service-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover .service-card-glow {
  opacity: 0.1;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.service-dot-wrapper {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.service-card-icon {
  width: 1rem;
  height: 1rem;
  color: #64748b;
  transition: color 0.3s;
}

.service-card:hover .service-card-icon {
  color: #ffffff;
}

.service-name {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.025em;
  margin: 0;
}

.service-url {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0.25rem 0 0 0;
  transition: color 0.3s;
}

.service-card:hover .service-url {
  color: #cbd5e1;
}

.service-purple-indigo .service-card-glow {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.service-purple-indigo .service-dot {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.service-orange-red .service-card-glow {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.service-orange-red .service-dot {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.service-yellow-orange .service-card-glow {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.service-yellow-orange .service-dot {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.service-cyan-blue .service-card-glow {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.service-cyan-blue .service-dot {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.service-emerald-teal .service-card-glow {
  background: linear-gradient(135deg, #34d399, #14b8a6);
}

.service-emerald-teal .service-dot {
  background: linear-gradient(135deg, #34d399, #14b8a6);
}

.service-amber-yellow .service-card-glow {
  background: linear-gradient(135deg, #fbbf24, #ca8a04);
}

.service-amber-yellow .service-dot {
  background: linear-gradient(135deg, #fbbf24, #ca8a04);
}

.service-rose-pink .service-card-glow {
  background: linear-gradient(135deg, #fb7185, #ec4899);
}

.service-rose-pink .service-dot {
  background: linear-gradient(135deg, #fb7185, #ec4899);
}

.service-blue-indigo .service-card-glow {
  background: linear-gradient(135deg, #60a5fa, #4f46e5);
}

.service-blue-indigo .service-dot {
  background: linear-gradient(135deg, #60a5fa, #4f46e5);
}

.service-green-emerald .service-card-glow {
  background: linear-gradient(135deg, #4ade80, #059669);
}

.service-green-emerald .service-dot {
  background: linear-gradient(135deg, #4ade80, #059669);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  margin-left: 1.25rem;
  transform: translateX(-50%);
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #1e293b 15%, #1e293b 85%, transparent);
}

@media (min-width: 768px) {
  .timeline::before {
    margin-left: auto;
    margin-right: auto;
    transform: translateX(0);
  }
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .timeline-item {
    justify-content: normal;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
  }
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid #1e293b;
  background-color: #0f172a;
  color: #64748b;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 10;
}

@media (min-width: 768px) {
  .timeline-icon {
    order: 1;
  }

  .timeline-item:nth-child(odd) .timeline-icon {
    transform: translateX(-50%);
  }

  .timeline-item:nth-child(even) .timeline-icon {
    transform: translateX(50%);
  }
}

.timeline-item.is-active .timeline-icon {
  color: #34d399;
  border-color: #10b981;
}

.timeline-icon-svg {
  width: 1rem;
  height: 1rem;
}

.timeline-content {
  width: calc(100% - 4rem);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background-color: rgba(15, 23, 42, 0.5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .timeline-content {
    width: calc(50% - 2.5rem);
  }
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-weight: 700;
  color: #ffffff;
}

.timeline-time {
  font-family: monospace;
  font-size: 10px;
  color: #64748b;
}

.timeline-item.is-active .timeline-time {
  color: #34d399;
}

.timeline-body {
  color: #94a3b8;
  font-size: 0.875rem;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .operations-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.operation-stat-card {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(30, 41, 59, 0.5);
  text-align: center;
}

.stat-label {
  font-size: 9px;
  font-family: monospace;
  color: #475569;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0;
}

.terminal-container {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e293b;
  background-color: rgba(15, 23, 42, 0.5);
}

.terminal-dots {
  display: flex;
  gap: 0.375rem;
}

.terminal-dots .dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.red-dot {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.amber-dot {
  background-color: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.green-dot {
  background-color: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.terminal-title {
  font-size: 10px;
  font-family: monospace;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-body-content {
  padding: 2.5rem;
  text-align: center;
}

.terminal-response {
  margin-bottom: 2rem;
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.terminal-placeholder {
  color: #64748b;
  font-family: monospace;
  font-size: 0.875rem;
  font-style: italic;
  margin: 0;
}

.terminal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s;
  background-color: #dc2626;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.terminal-btn:hover {
  background-color: #ef4444;
}

.terminal-btn:active {
  transform: scale(0.95);
}

.btn-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

/* Zettelkasten Graph styles */
.graph-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: calc(100vh - 12rem);
  min-height: 500px;
  margin-top: 30px;
}

@media (min-width: 1024px) {
  .graph-layout {
    flex-direction: row;
  }
}

.sidebar-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #0f172a;
  color: #f1f5f9;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #1e293b;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .sidebar-panel {
    width: 24rem;
  }
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #60a5fa;
  margin: 0;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  outline: none;
  transition: all 0.3s;
}

.search-input::placeholder {
  color: #64748b;
}

.search-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #3b82f6;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-clear-icon {
  width: 1rem;
  height: 1rem;
  color: #64748b;
  transition: color 0.3s;
}

.search-clear-btn:hover .search-clear-icon {
  color: #ffffff;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  max-height: 8rem;
  overflow-y: auto;
  padding: 0.25rem;
  background-color: #020617;
  border-radius: 0.5rem;
  border: 1px solid #1e293b;
  box-sizing: border-box;
  width: 100%;
}

.tags-placeholder {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  padding: 0.5rem;
}

.tag-pill {
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.375rem;
  background-color: #1e293b;
  color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.tag-pill:hover {
  background-color: #334155;
}

.tag-pill.active {
  background-color: #3b82f6;
  color: #ffffff;
}

.details-panel-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.node-details-box {
  padding: 1rem;
  background-color: rgba(2, 6, 23, 0.8);
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  transition: all 0.3s;
}

.node-details-placeholder {
  color: #64748b;
  font-size: 0.75rem;
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.physics-settings {
  margin-top: auto;
  border-top: 1px solid #1e293b;
  padding-top: 0.75rem;
}

.physics-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.physics-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.physics-settings[open] .physics-arrow {
  transform: rotate(180deg);
}

.physics-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.physics-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-input {
  width: 6rem;
  accent-color: #3b82f6;
}

.graph-container {
  flex-grow: 1;
  position: relative;
  background-color: #020617;
  border-radius: 1rem;
  border: 1px solid #1e293b;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.graph-canvas:active {
  cursor: grabbing;
}

.error-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(2, 6, 23, 0.9);
  z-index: 20;
  padding: 1.5rem;
  text-align: center;
}

.error-overlay:not(.hidden) {
  display: flex;
}

.error-box {
  max-width: 28rem;
  padding: 1.5rem;
  background-color: #0f172a;
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.error-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(127, 29, 29, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.error-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #f87171;
}

.error-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.error-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  line-height: 1.625;
}

.error-hint {
  font-size: 10px;
  color: #64748b;
  margin-top: 1rem;
  border-top: 1px solid #1e293b;
  padding-top: 0.75rem;
}

.code-light {
  color: #e2e8f0;
}

.legend-box {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dot-blue {
  background-color: #3b82f6;
}

.dot-indigo {
  background-color: #818cf8;
}

.dot-emerald {
  background-color: #34d399;
}

.reset-zoom-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.25rem 0.625rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reset-zoom-btn:hover {
  background-color: #334155;
}

/* D3 generated details markup styling */
.tag-badge {
  padding: 0.125rem 0.375rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 700;
}

.tag-none {
  color: #64748b;
  font-style: italic;
  font-size: 10px;
}

.connection-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  text-align: left;
  background-color: #0f172a;
  border: 1px solid #1e293b;
  color: #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  box-sizing: border-box;
}

.connection-btn:hover {
  border-color: #3b82f6;
  color: #ffffff;
}

.connection-arrow {
  font-size: 10px;
  color: #64748b;
}

.connection-none {
  color: #64748b;
  font-style: italic;
  font-size: 0.75rem;
}

.selected-node-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selected-node-label {
  font-size: 10px;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.selected-node-title {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin: 0.125rem 0 0 0;
}

.selected-node-filename {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  margin: 0.125rem 0 0 0;
}

.selected-node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.selected-node-connections {
  border-top: 1px solid #1e293b;
  padding-top: 0.75rem;
}

.connections-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.connections-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-height: 8rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}