@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
  }

  a:hover {
    color: #dfb2d2db;
  }

  header.site-header,
  footer.site-footer {
    background-color: #1e1e1e;
    border-color: #333;
  }

  .site-title,
  .site-title:visited,
  .site-nav .page-link {
    color: #ffffff !important;
  }

  .site-nav .page-link:hover {
    color: #dfb2d2db !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
      font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .post-meta,
  .post-meta a {
    color: #aaa;
  }

  code, pre, .highlight {
    background-color: #2e2e2e;
    color: #f8f8f2;
  }
}











.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 3px solid #ca90f9; /* subtle accent underline */
  padding-bottom: 0.5rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-preview {
  background-color: var(--content-bg, #222); /* use a subtle card background */
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}

.post-preview:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.post-title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.post-title a {
  text-decoration: none;
  color: var(--link-color, #ca90f9);
}

.post-title a:hover {
  text-decoration: underline;
}

.post-date {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 1rem;
  display: block;
}

.post-excerpt {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ddd;
}
















.portfolio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0;
  margin-top: 1rem;
}

.portfolio-item {
  background-color: var(--content-bg, #222);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.7);
}

.portfolio-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.portfolio-item h3 a {
  color: var(--link-color, #ca90f9);
  text-decoration: none;
}

.portfolio-item h3 a:hover {
  text-decoration: underline;
}

.portfolio-item p {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
}

a {
  color: #ca90f9 !important;
}

@media (max-width: 768px) {
  /* The dropdown menu that appears */
  .site-nav .trigger {
    background-color: #121212 !important;
    color: #eee !important;
    padding: 1rem;
  }

  .site-nav .trigger a {
    color: #ca90f9 !important;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
  }

  .site-nav .trigger a:hover {
    text-decoration: underline;
  }

  /* Hamburger icon background fix */
  .menu-icon {
    background-color: transparent !important;
  }

  .menu-icon svg {
    fill: #ca90f9 !important;
  }

  /* Optional: Make the nav bar itself dark too */
  .site-nav {
    background-color: #121212 !important;
  }
}


hr {
  margin: 10px 0px;
}

.latest-post {
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-left: 4px solid #ca90f9;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.latest-post h3 {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
}

.latest-post h3 a {
  color: #ca90f9;
  text-decoration: none;
}

.latest-post h3 a:hover {
  text-decoration: underline;
}

.latest-post .post-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.latest-post p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.latest-post a {
  color: #ca90f9;
}
