.apphub-header {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.apphub-header h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent-blue);
}

.apphub-header p {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 8vw 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(30px) saturate(120%);
  padding: 2rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-thumb {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
  flex-shrink: 0;
}

.project-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-details h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-green);
}

.project-details p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 70ch;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--accent-blue);
  color: var(--bg);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.repo-link {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: bold;
  text-decoration: none;
}

.repo-link:hover {
  text-decoration: none;
  color: var(--accent-green);
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-details p {
    max-width: 100%;
  }
}

.floating-back-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--accent-blue);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.2s ease;
}

.floating-back-button:hover {
  background: rgba(30, 30, 46, 0.6);
  transform: translateY(-3px);
}

/* Scrollbar styling */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--accent-blue);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

body {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg);
}

.repo-link {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-peach);
  color: black;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  margin-top: 0.5rem;
}
.repo-link:hover {
  background: var(--accent-green);
  color: var(--bg);
  border-color: var(--accent-green);
}