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

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

:root {
  --bg: #0a0a0a;
  --green: #00ff41;
  --green-dim: #00cc33;
  --amber: #ffb000;
  --text: #b0b0b0;
  --card-bg: #111111;
  --card-border: #222222;
  --font: 'Fira Code', monospace;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.header {
  margin-bottom: 3rem;
}

.prompt {
  color: var(--green);
  font-weight: 700;
}

.command {
  color: var(--amber);
}

.title {
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 700;
  margin: 0.5rem 0;
  white-space: pre;
  line-height: 1.2;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.section-prompt {
  margin-bottom: 0.75rem;
}

.output {
  color: var(--text);
  padding-left: 1rem;
  border-left: 2px solid var(--card-border);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Project card */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.15);
}

.card-titlebar {
  background: #1a1a1a;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--card-border);
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.card-dot.red { background: #ff5f57; }
.card-dot.yellow { background: #febc2e; }
.card-dot.green { background: #28c840; }

.card-titlebar-text {
  color: #666;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.card-body {
  padding: 1rem;
}

.card-name {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.card-desc {
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metric {
  font-size: 0.7rem;
  background: #1a1a1a;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: var(--amber);
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.8rem;
  color: #555;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Socials */
.socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  color: #555;
  transition: color 0.2s;
  display: flex;
}

.social-link:hover {
  color: var(--green);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* Loading */
.loading {
  color: var(--green-dim);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .title {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
