/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Optional: make headings even bigger and nicer */
  h1 { font-size: 2.6rem; margin: 2rem 0 1rem; }
  h2 { font-size: 2.0rem; margin: 2rem 0 1rem; }
  h3 { font-size: 1.5rem; margin: 1.5rem 0 0.8rem; }
  
  /* Header/Nav */
  header {
    background-color: #1e1e1e;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
  }
  
  a {
    color: #89b4fa;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
  }
  
  a:hover {
    color: #ffffff;
  }
  
  /* Main content */
  main {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
  }
  
  h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 15px;
  }
  
  p {
    margin-bottom: 15px;
  }
  
  /* Images: Easy positioning with classes */
  img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }
  
  .float-left {
    float: left;
    margin: 0 15px 15px 0;
  }
  
  .float-right {
    float: right;
    margin: 0 0 15px 15px;
  }
  
  .center {
    display: block;
    margin: 0 auto;
  }
  
  /* Footer */
  footer {
    text-align: center;
    margin-top: 20px;
    color: #888888;
    font-size: 0.9em;
  }
  
  /* LaTeX rendering tweaks */
  .mathjax-wrapper {
    color: #e0e0e0;
  }

  .container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 20px;
    align-self: start;
  }

  .main-content {
    flex: 1;
    min-width: 0;
  }

  /* Mobile: stack vertically */
  @media (max-width: 900px) {
    .container { flex-direction: column; }
    .sidebar { position: static; flex: 1; }
  }

  @media (min-width: 1200px) {
    .sidebar {
      flex: 0 0 320px;   /* extra wide sidebar only on big screens */
    }
    .container {
      max-width: 1400px; /* lets everything breathe */
      gap: 60px;
    }
  }

  /* Sidebar styling */
  .profile-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .sidebar h1 { font-size: 1.8rem; margin: 0 0 8px; }
  .sidebar .title { color: #bb86fc; font-weight: 500; }
  .sidebar-nav a {
    display: block;
    padding: 8px 0;
    color: #64b5f6;
  }
  .sidebar-nav a:hover { color: white; }