* {
    box-sizing: border-box;
  }
  
  :root {
    --primary-color: #B1040E;
    --text-color: #333;
    --bg-color: #fff;
    --link-color: #B1040E;
    --hover-color: #8B0000;
    --transition-speed: 0.3s;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --text-color: #f0f0f0;
      --bg-color: #1a1a1a;
      --link-color: #ff6b6b;
      --hover-color: #ff8585;
    }
  }
  
  body {
    font-family: 'Source Code Pro', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    margin: 0;
    padding: 0;
  }
  
  h1, h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color var(--transition-speed);
  }
  
  h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  p {
    margin-bottom: 1.5rem;
  }
  
  a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
  }
  
  a:hover {
    color: var(--hover-color);
  }
  
  a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--hover-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
  }
  
  a:hover::after {
    transform: scaleX(1);
  }
  
  .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .logo {
    color: var(--text-color) !important;
    text-decoration: none;
  }
  
  .logo img {
    max-width: 150px;
    width: 100%;
  }
  
  li {
    margin-top: .5em;
    margin-bottom: .5em;
  }
  
  img {
    max-width: 100%;
  }
  
  :not(a) > code {
    border-radius: 3px;
    background-color: var(--dark-grey);
    padding: 0 4px 1px 4px;
  }
  
  code.hljs {
    padding: 1.5em;
  }
  
  pre {
    white-space: pre-wrap;
  }
  
  /* Highlight.js styles */
  .hljs-comment,.hljs-quote{color:#969896}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#d54e53}.hljs-number,.hljs-built_in,.hljs-builtin-name,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#e78c45}.hljs-attribute{color:#e7c547}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#b9ca4a}.hljs-title,.hljs-section{color:#7aa6da}.hljs-keyword,.hljs-selector-tag{color:#c397d8}.hljs{display:block;overflow-x:auto;background:black;color:#eaeaea;padding:.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}
  
  .nav-menu {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
  }
  
  .nav-menu a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .profile-image {
    max-width: 200px;
    height: auto;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed);
  }
  
  .profile-image:hover {
    transform: scale(1.05);
  }
  
  .social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .social-links li {
    margin: 0;
  }
  
  .theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-speed);
  }
  
  .theme-toggle:hover {
    transform: rotate(180deg);
  }
  
  @media (max-width: 768px) {
    .content {
      padding: 1rem;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.5rem;
    }
    
    .nav-menu {
      flex-direction: column;
    }
    
    .nav-menu a {
      width: 100%;
      text-align: center;
    }
  }