/* Global layout & typography */

* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f8;
    color: #111827;
  }
  
  /* White card container around the content */
  
  .page {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 32px 32px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  }
  
  /* Header & hero */
  
  header {
    text-align: center;
    margin-bottom: 32px;
  }
  
  h1 {
    font-size: 36px;
    margin-bottom: 8px;
  }
  
  header p {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 20px;
  }
  
  /* Profile photo */
  
  .profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 12px auto 20px;
    border: 3px solid #c7d2fe;
  }
  
  /* Navigation buttons */
  
  nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  
  nav a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background-color: #e0e7ff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  }
  
  nav a:hover {
    background-color: #c7d2fe;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
  }
  
  /* Sections */
  
  main {
    margin-top: 24px;
  }
  
  section {
    margin-bottom: 32px;
  }
  
  h2 {
    font-size: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
  }
  
  p {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2933;
  }
  
  ul {
    padding-left: 20px;
    margin: 8px 0 0;
  }
  
  /* Projects page cards */
  
  .project-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background-color: #f9fafb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }
  
  .project-card h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 18px;
  }
  
  .project-card p {
    margin-bottom: 6px;
  }
  
  .project-card ul {
    margin: 0;
    padding-left: 18px;
  }
  
  /* Small screen tweaks */
  
  @media (max-width: 640px) {
    .page {
      margin: 16px auto 40px;
      padding: 20px 16px 28px;
      border-radius: 12px;
    }
  
    h1 {
      font-size: 28px;
    }
  
    header p {
      font-size: 15px;
    }
  }
  
  /* ------------ DARK MODE ---------------- */
  
  body.dark {
    background: #0f172a;
    color: #e2e8f0;
  }
  
  .dark .page {
    background: #1e293b;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  }
  
  .dark h1,
  .dark h2,
  .dark h3 {
    color: #f1f5f9;
  }
  
  .dark p,
  .dark li {
    color: #e2e8f0;
  }
  
  /* Make project cards darker in dark mode so text is readable */
  .dark .project-card {
    background-color: #020617;  /* very dark card */
    border-color: #1f2937;
  }
  
  /* Keep nav buttons readable in dark mode */
  
  .dark nav a {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .dark nav a:hover {
    background-color: #475569;
  }
  
  /* Theme toggle button */
  
  .theme-toggle {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #e2e8f0;
    color: #1e293b;
    font-size: 14px;
  }
  
  .dark .theme-toggle {
    background: #334155;
    color: #e2e8f0;
  }
  
  
  
  
  
  
  
  