/* ========================================
1. TOKENS & BASE STYLES
========================================
*/
:root {
  /* Color Palette */
  --bg-page: #070607;
  --bg-panel: #0f0f11;
  --brand-purple: #45235a;
  --brand-purple-light: #6e3fa0;
  --accent-gold: #d4af37;
  --text-muted: #a6a6a6;
  --text-body: #e6e6e6;
  --glass-tint: rgba(255, 255, 255, 0.03);
  --focus-ring: rgba(212, 175, 55, 0.25);
  --hover-soft: rgba(110, 63, 160, 0.12);

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --space-unit: 8px;
  --space-xs: calc(0.5 * var(--space-unit)); /* 4px */
  --space-sm: var(--space-unit); /* 8px */
  --space-md: calc(2 * var(--space-unit)); /* 16px */
  --space-lg: calc(4 * var(--space-unit)); /* 32px */
  --space-xl: calc(8 * var(--space-unit)); /* 64px */

  /* Radii */
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-pill: 28px;

  /* Motion */
  --motion-fast: 180ms;
  --motion-medium: 360ms;
  --motion-slow: 600ms;
  --easing: cubic-bezier(0.2, 0.9, 0.26, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--space-xl) + var(--space-md));
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  overflow-x: hidden;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}
.skip-to-content:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--accent-gold);
  color: var(--bg-page);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  width: auto;
  height: auto;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-body);
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  max-width: 75ch;
  color: var(--text-muted);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--motion-fast) ease;
}
a:hover {
  color: white;
}

/* ========================================
2. LAYOUT
========================================
*/
.global-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

#galaxy-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      ellipse at 70% 30%,
      rgba(110, 63, 160, 0.15),
      var(--bg-page) 70%
    ),
    radial-gradient(
      ellipse at 30% 70%,
      rgba(212, 175, 55, 0.05),
      var(--bg-page) 60%
    ),
    var(--bg-page);
}

.main-header {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--space-lg));
  max-width: 850px;
  z-index: 1000;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: box-shadow var(--motion-medium) var(--easing);
}

.main-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-25deg);
  animation: sheen 4s infinite linear;
}

.main-header.scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

#hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  min-height: 95vh;
  padding-top: var(--space-xl);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--space-xl));
}

.main-footer {
  text-align: center;
  padding: var(--space-lg) 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

@media (max-width: 1024px) {
  .main-header .main-nav,
  .main-header .btn-secondary {
    display: none;
  }
  .main-header .hamburger-menu {
    display: flex;
  }
}

@media (max-width: 992px) {
  .main-header {
    max-width: 550px;
  }
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
    min-height: 0; /* Remove viewport dependency */
    padding: 140px 0 60px; /* Set explicit, balanced padding */
  }
  .hero-text {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-portrait {
    grid-row: 1;
    margin-top: 0; /* Remove conflicting margin */
    width: clamp(180px, 50vw, 250px); /* Responsive image sizing */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  /* REVISED: Reduce container padding on mobile to prevent overflow */
  .global-container {
    padding: 0 var(--space-md);
  }
  .cta-group {
    flex-direction: row;
    width: 100%;
    max-width: 400px;
  }
  .cta-group .btn {
    flex: 1;
  }
}

/* NEW: Added breakpoint for small mobile screens to refine layout */
@media (max-width: 480px) {
  #hero {
    padding-top: 120px; /* Further reduce top padding */
    gap: var(--space-sm); /* Reduce gap between elements */
  }

  h1 {
    font-size: clamp(2rem, 7vw + 0.5rem, 2.8rem); /* Fine-tune heading for small screens */
  }

  .hero-text .subtitle {
    font-size: 1.1rem;
    max-width: 35ch;
  }

  /* Stack CTA buttons vertically for a better fit */
  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    align-items: center;
  }

  .cta-group .btn {
    width: 100%;
  }
}

/* ========================================
3. COMPONENTS
========================================
*/
.brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}
.brand-logo a {
  text-decoration: none;
  color: inherit;
}
.brand-logo span {
  color: var(--accent-gold);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-body);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--motion-medium) ease;
}
.main-nav a[aria-current="page"]::after {
  opacity: 1;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger-menu span {
  width: 24px;
  height: 2px;
  background: var(--text-body);
  border-radius: 10px;
  transition: all 0.3s linear;
}
.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 6, 7, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-menu ul {
  list-style: none;
  text-align: center;
}
.mobile-nav-menu li {
  margin: var(--space-lg) 0;
}
.mobile-nav-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-body);
}
.mobile-nav-menu .btn {
  margin-top: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--easing),
    box-shadow var(--motion-fast) var(--easing),
    background-color var(--motion-fast) var(--easing);
}
.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-page);
  border: 2px solid var(--accent-gold);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  color: var(--bg-page);
}
.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}
.btn-secondary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-page);
  transform: translateY(-4px);
}

.hero-text .highlight {
  color: var(--brand-purple-light);
}
.hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: var(--space-md) 0;
  max-width: 45ch;
}
.hero-text .micro-line {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-bottom: var(--space-lg);
}
.cta-group {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  justify-self: center;
  transition: transform var(--motion-medium) var(--easing);
}
.hero-portrait:hover {
  transform: scale(1.03);
}
.hero-portrait .portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold); /* MODIFIED BORDER */
  transition: box-shadow var(--motion-fast) var(--easing);
}
.hero-portrait:hover .portrait-img {
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
}

.profile-card {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  border: 2px solid var(--accent-gold);
}
.profile-card h3 {
  font-size: 1.25rem;
  text-align: center;
}
.profile-card .tagline {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: -8px;
}
.profile-card hr {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: var(--space-sm) 0;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
}
.contact-list li svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.contact-list a {
  color: var(--text-body);
  word-break: normal;
}
.contact-list a:hover {
  color: var(--accent-gold);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-sm) 0;
}
.social-links a {
  color: var(--text-muted);
}
.social-links a:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}
.social-links svg {
  width: 24px;
  height: 24px;
}

.content-section {
  padding-bottom: var(--space-lg);
}
.content-section h2 {
  margin-bottom: var(--space-lg);
}
.content-section h3 {
  margin: var(--space-lg) 0 var(--space-md) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}
.tool-badge {
  background-color: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: transform var(--motion-fast) var(--easing),
    box-shadow var(--motion-fast) var(--easing);
}
.tool-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.tool-badge i {
  font-size: 24px;
  line-height: 1;
}

/* NEW: Interests Section styles */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.interest-tag {
  background: var(--glass-tint);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--motion-fast) var(--easing),
    box-shadow var(--motion-fast) var(--easing);
}
.interest-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--focus-ring);
  background: rgba(110, 63, 160, 0.12);
}

.timeline {
  position: relative;
  padding-left: var(--space-lg);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand-purple-light);
  border: 2px solid var(--bg-page);
}
.timeline-item h3 {
  font-size: 1.1rem;
}
.timeline-item .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.project-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--motion-medium) var(--easing),
    box-shadow var(--motion-medium) var(--easing);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--brand-purple-light);
}
.project-card h3 {
  font-size: 1.25rem;
  margin: 0;
}
.project-card .description {
  margin: var(--space-sm) 0 var(--space-md) 0;
  flex-grow: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.project-tags .tag {
  background: rgba(110, 63, 160, 0.2);
  color: var(--brand-purple-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.project-links {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
}
.project-links a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  transition: background-color var(--motion-fast) ease;
}
.cert-item:hover {
  background-color: var(--hover-soft);
}
.cert-item .cert-title {
  font-weight: 500;
  color: var(--text-body);
  margin: 0;
}
.cert-item .cert-issuer {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.final-cta {
  text-align: center;
  background: var(--bg-panel);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md); /* REDUCED SPACING */
}
.contact-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  max-width: 15ch;
  margin: 0;
}
.contact-heading .highlight {
  color: var(--brand-purple-light);
}
.contact-email-block {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-top: var(--space-sm); /* ADJUSTED SPACING */
  position: relative;
}
.contact-email-block a:hover {
  color: white;
}
.copy-email-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: 4px;
}
.copy-email-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.copy-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-gold);
  color: var(--bg-page);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-fast) ease,
    visibility var(--motion-fast) ease;
}
.copy-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm); /* REDUCED SPACING */
}
.contact-socials .label {
  color: var(--text-muted);
  margin: 0;
}
.contact-socials .social-icons {
  display: flex;
  gap: var(--space-md);
}
.social-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: background-color var(--motion-fast) ease,
    color var(--motion-fast) ease;
}
.social-icon-circle:hover {
  background-color: var(--brand-purple);
  color: white;
}
.social-icon-circle svg {
  width: 22px;
  height: 22px;
}

/* NEW: Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--glass-tint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 300ms var(--easing), transform 300ms var(--easing),
    background-color 300ms ease, color 300ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-gold);
  color: var(--bg-page);
}

/* Hide on desktop */
@media (min-width: 768px) {
  .back-to-top {
    display: none;
  }
}

/* ========================================
4. ANIMATIONS & UTILITIES
========================================
*/
/* NEW: Page Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-page);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 400ms ease-out 300ms, visibility 400ms ease-out 300ms;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  animation: pulse 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes sheen {
  100% {
    left: 150%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--motion-medium) var(--easing),
    transform var(--motion-medium) var(--easing);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#hero h1 {
  transition-delay: 200ms;
}
#hero .subtitle {
  transition-delay: 400ms;
}
#hero .micro-line {
  transition-delay: 500ms;
}
#hero .cta-group {
  transition-delay: 600ms;
}
#hero .hero-portrait {
  transition: opacity var(--motion-slow) var(--easing),
    transform var(--motion-slow) var(--easing);
  transition-delay: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.stealth-link {
  color: inherit;
  text-decoration: none;
}
.stealth-link:hover,
.stealth-link:active,
.stealth-link:visited {
  color: inherit;
  text-decoration: none;
}
/* ========================================
5. 404 ERROR PAGE STYLES (REVISED)
========================================
*/
.error-main-container {
  /* This flex-grow is essential for the sticky footer fix to work */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  z-index: 1;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 25vw, 12rem);
  color: rgba(110, 63, 160, 0.25);
  line-height: 1;
  margin-bottom: var(--space-sm); /* Adjusted for better spacing */
  font-weight: 700;
}

.error-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--text-body);
  /* This removes the negative margin that caused the text overlap */
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.error-description {
  color: var(--text-muted);
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}