/* Variables */
:root {
    --bg: #f9fafb;
    --text: #1f2933;
    --card: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
  }
  
  body.dark {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #1e293b;
    --border: #334155;
    --muted: #94a3b8;
  }

  body.dark .item img {
    background: #f9fafb;
  }
  
  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
  }
  
  /* Navbar */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
  }
  
  #theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  /* Header */
  .header {
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    border: 4px solid var(--border);
    margin-bottom: 1rem;
    padding: 0;
    background: none;
  }
  
  
  .subtitle {
    color: var(--muted);
  }
  
  /* Main */
  .container {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
  }
  
  section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 90px; /* height of navbar + small buffer */
  }   
  
  h2 {
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
  }
  
  /* Cards */
  .item {
    display: flex;
    gap: 1rem;
    background: var(--card);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }
  
  .item img {
    width: 60px;
    height: 60px;
    padding: 6px;
  
    display: block;
    box-sizing: border-box;
  
    object-fit: contain;
    object-position: center;
  
    background: #f9fafb;
    border-radius: 8px;

    max-width: 100%;
    max-height: 100%;
  }
  
  .muted {
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  ul {
    list-style: none;
  }
  
  ul li {
    padding: 0.5rem 0;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }
  
    .item {
      flex-direction: column;
      text-align: center;
    }
  
    .item img {
      margin: auto;
    }
  }
  
  .reference-link {
    margin-top: 0.75rem;
  }
  
  .reference-link a {
    font-size: 0.85rem;
    color: var(--link);
    font-weight: 500;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  
  .reference-link a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
  }
  
  .bulleted {
    list-style-type: disc;
    padding-left: 1.5rem;
  }
  
  .item-content {
    width: 100%;
  }
  
  .item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .item-title-row h3 {
    margin: 0;
  }
  
  .duration {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    font-style: italic;
  }
