.projects-page {
  max-width: 1000px;
}


.projects-page .hero {
  height: auto;
  margin-bottom: 22px;
}

.projects-page .hero-box {
  max-width: 620px;
}

.projects-intro {
  margin-bottom: 24px;
}

.projects-intro p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}


.project-section {
  margin-bottom: 22px;
}

.project-section h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}


.project {
  margin: 0;
}

.project h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.project p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.86;
}


.project-code {
  border-left: 2px solid rgba(120,255,120,0.16);
  padding-left: 16px;
}

.project-code h3 code {
  font-family: monospace;
  font-size: 1rem;
}


.github-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(120,255,120,0.18);
  background: rgba(0,0,0,0.25);
  font-size: 0.9rem;
}

.github-card a {
  color: #9eff9e;
}

.repo-name {
  font-family: monospace;
  margin-bottom: 6px;
}

.repo-name a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.repo-name a:hover {
  opacity: 1;
  text-decoration: underline;
}

.repo-desc {
  opacity: 0.75;
  margin-bottom: 8px;
}

.repo-meta {
  opacity: 0.58;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.repo-toggle {
  background: none;
  border: none;
  color: #7fcf98;
  font-family: monospace;
  cursor: pointer;
  padding: 0;
}

.repo-toggle:hover {
  color: #9eff9e;
}

.repo-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.repo-content.open {
  max-height: 900px;
}

.repo-file {
  background: rgba(0,0,0,0.35);
  border-left: 2px solid rgba(120,255,120,0.24);
  padding: 1rem;
  font-size: 0.8rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 420px;
  margin-top: 8px;
}

.repo-file::after {
  content: "_";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.project-wood img {
  width: 100%;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid rgba(120,255,120,0.14);
}


.run-stats {
  padding-left: 18px;
  margin: 12px 0;
  opacity: 0.82;
}

.run-stats li {
  margin-bottom: 4px;
}

.yt-thumb {
  display: block;
  margin-top: 16px;
  text-decoration: none;
  opacity: 0.9;
}

.yt-thumb img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(120,255,120,0.14);
}

.yt-thumb-label {
  display: inline-block;
  margin-top: 8px;
  opacity: 0.68;
  color: #9eff9e;
}


@media (max-width: 900px) {
  .projects-page {
    max-width: none;
  }

  .projects-page .hero {
    height: auto;
    min-height: 0;
    padding: 20px 0;
  }

  .projects-page .hero-box {
    max-width: 100%;
    padding: 22px;
  }

  .projects-intro {
    margin-bottom: 18px;
  }

  .project-section {
    margin-bottom: 18px;
  }

  .project-code {
    padding-left: 12px;
  }

  
  .projects-page .hero-nav {
    display: flex;
  }
}


@media (min-width: 901px) {
  .projects-page .hero-nav {
    display: none;
  }
}