/* ——— Light & Dark Themes ——— */
:root {
    --bg: #faf7f0;
    --text: #333;
    --nav-bg: #fff5e6;
    --link: #b88f04;
    --link-hover: #d1a32a;
  }
  .dark-mode {
    --bg: #2b2a28;
    --text: #eae2b7;
    --nav-bg: #3a3836;
    --link: #d1c48a;
    --link-hover: #f1e1a6;
  }
  
  /* ——— Base styles & responsive padding ——— */
  body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0 1rem;          /* fluid side padding */
    font-family: sans-serif;
  }
  
  /* ——— Nav: flex & wrap ——— */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--nav-bg);
    padding: .5rem 1rem;
    gap: .5rem 1rem;
  }
  nav a {
    color: var(--link);
    text-decoration: none;
  }
  nav a:hover {
    color: var(--link-hover);
  }
  button#dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
  }
  
  /* ——— Main container ——— */
  main {
    flex: 1 0 auto;
    max-width: 800px;
    margin: 1.5rem auto;
    line-height: 1.6;
  }
  
  /* ——— Flash messages ——— */
  .flashes {
    list-style: none;
    padding: .5rem;
    background: var(--link);
    color: var(--bg);
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  /* ——— Forms (full-width on all screens) ——— */
  form input,
  form textarea,
  form button {
    display: block;
    width: 100%;
    margin-bottom: .75rem;
  }
  form input,
  form textarea {
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  form button {
    background: var(--link);
    color: var(--bg);
    border: none;
    padding: .6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
  form button:hover {
    background: var(--link-hover);
  }
  
  /* ——— Slideshow: responsive with aspect-ratio ——— */
  .slideshow-container {
    position: relative;
    width: 100%;             /* fluid width */
    max-width: 600px;        /* cap at 600px */
    aspect-ratio: 3/2;       /* keeps 600×400 ratio */
    margin: 1rem auto;
    overflow: hidden;
  }
  .slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }
  .slideshow-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 .5rem;
    cursor: pointer;
  }
  #prev { left: 10px; }
  #next { right: 10px; }
  
  /* ——— Responsive tweaks ——— */
  @media (max-width: 500px) {
    nav {
      flex-direction: column;
      align-items: stretch;
    }
    nav a, nav button {
      text-align: center;
    }
  }
  .project-item {
    margin-bottom: 1.5rem;
  }
  .project-link {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--link);
  }
  .project-desc {
    margin: .25rem 0 0 1rem;
    color: var(--text);
  }
  
.projects-grid {
    display: grid;
    gap: 1.5rem;    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 1rem 0;
  }
  
  .project-card {
    background: var(--nav-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform .2s, box-shadow .2s;
  }
  
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .project-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
  }
  
  .project-card p {
    margin-bottom: 0;
  }
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 0 1rem;
  }
  a { color: var(--link); font-weight: 600; }
a:hover { color: var(--link-hover); text-decoration: underline; }
  button { cursor: pointer; }
  .dark-mode {
    --bg: #2b2a28;
    --text: #eae2b7;
    --nav-bg: #3a3836;
    --link: #d1c48a;
    --link-hover: #f1e1a6;
  }
  .dark-mode nav {
    background: var(--nav-bg);
  }
  .dark-mode form input,
  .dark-mode form textarea {
    background: var(--nav-bg);
    color: var(--text);
    border-color: #555;
  }
  .dark-mode form button {
    background: var(--link);
    color: var(--bg);
  }
  .binder-embed {
    margin: 2rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
  }
  .binder-embed h3 {
    margin: 0;
    padding: .5rem 1rem;
    background: var(--nav-bg);
    font-size: 1.2rem;
  }
  /* ——— profile picture ——— */
  .profile-square {
    width: 180px;
    height: 180px;
    object-fit: cover;
    float: left;
    margin: 0 1.5rem 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px; /* Square with subtle rounding */
  }
  
  .intro-section::after {
    content: "";
    display: table;
    clear: both;
  }
  
  .socials {
    margin: 0.5rem 0;
  }
  
  .socials a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    color: var(--link);
  }
  
  .socials a:hover {
    color: var(--link-hover);
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
  }
  
  .project-card {
    background-color: var(--card-bg, #fdf6e3);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
  }
  
  .project-card:hover {
    transform: scale(1.02);
  }
  
  .project-card h3 a {
    text-decoration: none;
    font-weight: bold;
    color: #b58900;
  }
  
  .notebook-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #268bd2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out;
  }
  
  .notebook-btn:hover {
    background-color: #006bb3;
  }
  header {
    text-align: center;
    padding-top: 1rem;
  }
  footer {
    text-align: center;
  padding: 1rem;
  background: var(--nav-bg);
  color: var(--text);
  }
  .readme-content {
    background: var(--nav-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  .readme-content h1, .readme-content h2 {
    margin-top: 1.2rem;
  }
  .project-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .btn {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
  }
  

  
  .binder {
    background-color: #2b90d9;
    color: white;
  }
  
  .btn:hover {
    opacity: 0.85;
  }
  .gradient-header,
.gradient-footer {
  height: 50px;
  width: 100%;
  background: linear-gradient(90deg, #ffe259, #f6ae2d);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.btn.github {
  background-color: #ec7019; /* Orange */
  color: black;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn.github:hover {
  background-color: #ea580c;
}
.font-size-btn {
  border: 1px solid #ccc;
  background-color: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-size-btn:hover {
  background-color: #f5f5f5;
}
.download-btn {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background-color: var(--accent-color);
  color: white;
}
.insight-box {
  background-color: #fffae6;
  border-left: 6px solid #f0c000;
  padding: 12px 18px;
  margin-top: 20px;
  font-style: italic;
  border-radius: 6px;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}





  
  
  
  
  
  

  