/* Nerd Mode: projects as repository cards, certifications as a terminal listing.
   Loaded after styles.css; uses the same navy / mint palette. */

/* ───────── Projects ───────── */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
#projects .projects-group {
  grid-column: 1 / -1;
  margin: .9rem 0 -.2rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--slate);
  letter-spacing: .02em;
}
#projects .projects-group:first-child { margin-top: 0; }

#projects .project-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.15rem 1.3rem 1.05rem;
  background-color: rgba(17, 34, 64, .6);
  border: 1px solid rgba(100, 255, 218, .08);
  border-left: 1px solid rgba(100, 255, 218, .08);
  border-radius: 6px;
  box-shadow: 0 10px 30px -18px rgba(2, 12, 27, .8);
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
#projects .project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 255, 218, .28);
  background-color: rgba(17, 34, 64, .85);
  box-shadow: 0 16px 30px -18px rgba(2, 12, 27, .9);
}
#projects .project-card.featured { grid-column: 1 / -1; }
#projects .project-card.featured .project-title { font-size: 1.3rem; }
#projects .project-card.featured .project-description { max-width: 72ch; }

#projects .project-path {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--neon-blue);
  overflow-wrap: anywhere;
}
#projects .project-path i { margin-right: .35rem; opacity: .85; }
#projects .project-status { color: var(--slate); }

#projects .project-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--lightest-slate);
}
#projects .project-description {
  margin: 0;
  flex-grow: 1;
  color: var(--slate);
  font-size: .94rem;
  line-height: 1.6;
}
#projects .project-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-top: .55rem;
  border-top: 1px dashed rgba(100, 255, 218, .1);
}
#projects .project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#projects .project-tech-list li {
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--light-slate);
}
#projects .project-tech-list li::before { content: none; }
#projects .project-card:hover .project-tech-list li { transform: none; }
#projects .project-links { display: flex; gap: .9rem; }
#projects .project-links a {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--neon-blue);
  text-decoration: none;
}
#projects .project-links a:hover { color: var(--white); transform: none; }
#projects .project-links a i { margin-right: .25rem; font-size: .72rem; }

/* ───────── Certifications: same list language as Research ───────── */
#certifications .certifications-timeline { display: block; margin-top: 1.5rem; }
.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#certifications .certification-item {
  position: relative;
  display: block;
  margin: 0;
  padding: .85rem 0 .85rem 1.4rem;
  border-bottom: 1px solid rgba(100, 255, 218, .08);
  opacity: 1;
  transform: none;
  animation: none;
  transition: border-color .3s ease;
}
#certifications .certification-item::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: .85rem;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.5;
}
#certifications .certification-item:hover { border-color: rgba(100, 255, 218, .3); }
#certifications .certification-date {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--slate);
}
#certifications .certification-title {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--lightest-slate);
  transition: color .3s ease;
}
#certifications .certification-item:hover .certification-title { color: var(--neon-blue); }

/* ───────── Scrollbar: thin terminal rail ───────── */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 255, 218, .35) #020c1b;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #020c1b; border-left: 1px solid rgba(100, 255, 218, .06); }
::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, .28);
  border: 3px solid #020c1b;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(100, 255, 218, .55); }
::-webkit-scrollbar-thumb:active { background: #64ffda; }
::-webkit-scrollbar-corner { background: #020c1b; }
::selection { background: rgba(100, 255, 218, .25); color: #e6f1ff; }
