@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Geist Mono', monospace;
  background-color: #f7f7fb;
  color: black;
  line-height: 1.5;
}

/* Layout Container */
.container {
  min-height: 100vh;
  max-width: 50rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: justify;
}

/* Header & Navigation */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.top-navigation {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.top-navigation .nav-item a {
  color: #2563eb;
  text-decoration: none;
}

.top-navigation .nav-item a.active {
  color: black;
  font-weight: bold;
  text-decoration-line: underline;
  text-decoration-style: wavy;
}

/* Section: Header (optional) */
.header {
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.header h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #868687;
}

/* Section: Content */
.content {
  margin: 0;
  padding-top: 0;
}
h3 {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.3rem;

}



.content p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #2e2e2e;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.1rem;
}

.social-icons img {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.9;

}

/* About Section (if used elsewhere) */
.about-sections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-section h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Social Links Footer */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-item::after {
  content: "/";
}

.social-item:last-child::after {
  content: "";
}

.social-item img {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

.social-item a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
}

/* Blog Table */
#blog-table {
  margin-top: 2rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

#blog-count {
  text-align: end;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #333;
}

.blog-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-weight: bold;
  border-bottom: 1px dashed #aaa;
  padding-bottom: 0.5rem;
  color: #222;
}

.blog-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  color: #444;
}

.blog-row span a {
  color: blue;
  display: block;
  text-decoration: none;
  text-align: justify;
  text-underline-offset: 2px;
}

.blog-row span a:hover {
  font-weight: bold;
}

/* Blog & Project (if reused elsewhere) */
.blog-posts,
.projects {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post h4,
.project h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#blog-filters button {
  padding: 0.2rem 0.5rem;
  background-color: #eaeaea;
  border: none;
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
}

#blog-filters button.active {
  background-color: blue;
  color: white;
}


/* work.html */
.portfolio-section {
  margin-top: 3rem;
}

section h3 {
  font-size: 1.1rem;
}

.section-separator {
  border: none;
  border-top:2.7px dashed #999;
  margin: 2rem auto;
  opacity: 0.5;
  width: 15%;
  }


.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.project-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin: .8rem;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.project-card img {
  width: 170px;
  height: 90px;
  object-fit:cover;
  border-radius: 4px;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* .project-card-link:hover .project-card {
  border: 1.85px #2563eb solid;
  transition: border .09s ease;
} */

.project-details {
  flex: 1;
}

.project-details h4 {
  color: rgb(62, 63, 63);
  text-decoration: none;
  font-size: .9rem;

}

.project-details p {
  font-size: 0.7rem;
  color: #4f4f51;
  padding-right: .5rem;
  padding-top: .2rem;
  margin-bottom: .3rem;
  text-align: left;

}

.tags span {
  text-align: left;
}

.tags span {
  font-size: 0.75rem;
  background-color: #f0f0f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.open-report {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.report-link {
  font-size: 0.75rem;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.project-card-link:hover .report-link {
  text-decoration: underline;
}


.subsection-nav {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 0.1rem;
  border-bottom: none;
}

.subsection-nav a {
  /* all: unset; */
  cursor: pointer;
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px dashed #2563eb;
  padding-bottom: 2px;  
  font-size: 0.9rem;

}

.subsection-nav a:hover {
  /* border-bottom: 2px solid #2563eb; */
  background-color: #2563eb;
  color: whitesmoke;
}

.divider::after {
  content: " /";
  color: black;
  text-decoration: none;
}

.divider:last-child::after {
  content: "";
}

.experience-card, .other-links-section {
  font-size: 0.9rem;
}
.experience-card h4{
  margin-top: 1rem;
  margin-bottom: .2rem; 
  /* text-align: left; */
}

   .experience-header a, .freelance-section a, .academics-section a, .other-links-section a{
  color: #2563eb;
  text-decoration: none;
  font-size: inherit;
  font-weight: bold;
  }
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-position {
  font-weight: bold;
  font-size: 1rem;
  color: #111;
}

.experience-meta {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

 

.other-links-section a {
  font-size: .9rem;
  /* font-weight: bold; */
}

 

 

/* Responsive Styles */

@media (max-width: 767px) {
  * {
    font-size: large;
  }

  .top-navigation {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .container {
    padding: 2rem;
  }

  .blog-row span a {
    text-align: left !important;
  }

  #blog-table,
  .blog-row,
  .blog-row span,
  .blog-row span a {
    font-size: 0.85rem !important;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card img {
    width: 100%;
    height: auto;
  }

  .tags {
    margin-top: 0.75rem;
    text-align: left;
  }

  .project-details {
    width: 100%;
  }
 .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .report-link {
    align-self: flex-start;
  }
  .experience-header h4, span {
    font-size: medium;
  }

  .experience-header {
    gap: 0;
    margin-bottom: .5rem;
  }
  .experience-section h3{
    margin-bottom: 0;
  }
  .experience-meta p {
    font-size: smaller;
  }

}
  