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

/* Theme */
:root {
  --bg: #050505;
  --fg: #e6edf3;
  --accent: #00b4ff;
  --card-bg: rgba(20,20,25,0.7);
  --border: #2f2f2f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  overflow-x: hidden;
}

/* Starfield */
#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(circle, #06070a, #000);
}

/* Header */
header { padding: 6rem 1rem 3rem; }
.avatar {
  width: 160px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent);
  margin-bottom: 1rem;
}

h1 {
  color: var(--fg);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.prompt { color: var(--accent); }
.name { color: var(--accent); }

/* ─ Cursor (einheitlich für Header & Footer) ─ */
.cursor {
  display: inline-block;
  width: 9px;
  height: 1em;
  margin-left: 6px;
  background-color: var(--accent);
  transform: translateY(2px); /* gleiche Ausrichtung wie bei Nebby */
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


/* Social Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.9rem;
  margin-bottom: 2.5rem;
}

.buttons a {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}
.buttons a:hover {
  transform: translateY(-2px);
  background: #33ccff;
}

/* Tea Button */
.tea-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,180,255,0.12);
  color: var(--accent);
  padding: 0.75rem 1.4rem;
  border: 1px solid rgba(0,180,255,0.4);
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 0.95rem;
  text-shadow: 0 0 6px rgba(0,180,255,0.5);
}
.tea-button:hover {
  background: rgba(0,180,255,0.22);
  border-color: #33ccff;
  color: #33ccff;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0,180,255,0.45);
}

/* Projects */
.projects { padding: 2rem 1rem; }
.projects h2 { color: var(--accent); margin-bottom: 2rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.3rem;
  border-radius: 12px;
  transition: 0.25s;
  text-decoration: none;
  color: var(--fg);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: translateY(-6px);
}
.card h3 { color: var(--accent); margin-bottom: 0.6rem; }
.card p { color: #c9d1d9; }

/* Footer */
footer {
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--border);
}
.nebby { width: 90px; opacity: .85; }
.nebby-terminal-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.coffee-text { color: var(--accent); }

/* Visitor Counter */
#visitor-counter {
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}
#visitor-counter .label { color: #8b949e; }
#visitor-count { text-shadow: 0 0 12px var(--accent); }

/* Footer links */
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  header { padding: 4rem 1rem 2rem; }
  .avatar { width: 120px; }
  .buttons a { font-size: .85rem; }
}
