/* /styles/components.css */
/* Dark Theme Components - GitHub + Neon Style */

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

#header.scrolled {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-accent);
}

#header nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.logo-icon {
  height: 28px;
  width: 28px;
  filter: brightness(0) invert(1);
}

.logo-text {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-mono);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-link.active {
  color: var(--neon-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 80px) 0 80px;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-title .text-gradient {
  display: block;
  margin-top: var(--space-xs);
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--neon-cyan);
  color: var(--color-black);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

/* Project List - GitHub Repo Style */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.project-repo {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.project-repo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--neon-cyan);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-repo:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
  transform: translateX(4px);
}

.project-repo:hover::before {
  opacity: 1;
}

.project-repo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.project-repo-info {
  flex: 1;
}

.project-repo-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.project-repo-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.project-repo-icon i {
  font-size: 1.25rem;
}

.project-repo-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  margin: 0;
}

.project-repo-subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
}

.project-repo-badges {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.repo-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

.repo-badge-research {
  background: rgba(88, 166, 255, 0.1);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.repo-badge-implementation {
  background: rgba(63, 185, 80, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.repo-badge-production {
  background: rgba(210, 153, 34, 0.1);
  border-color: #d29922;
  color: #ffa657;
}

.repo-badge-prototype {
  background: rgba(188, 140, 255, 0.1);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

.repo-badge-tool {
  background: rgba(255, 126, 182, 0.1);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.project-repo-impact {
  color: var(--neon-cyan);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.project-repo-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.project-repo-meta {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-secondary);
}

.project-repo-topics {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  flex: 1;
}

.repo-topic {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.repo-topic:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.project-repo-links {
  display: flex;
  gap: var(--space-sm);
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-fast);
}

.repo-link:hover {
  background: var(--bg-secondary);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.repo-link i {
  font-size: 0.875rem;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-primary);
  color: var(--text-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 32px;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-description {
  color: var(--text-tertiary);
  line-height: 1.7;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.footer-main-site {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--neon-cyan);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-mono);
  transition: color var(--transition-fast);
}

.footer-main-site:hover {
  color: var(--primary-light);
}

.footer-title {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav a {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}