/* Elka Lab — Retro-tech site stylesheet */

/* ====== Reset & Base ====== */
html, body {
  margin: 0;
  background: #0a0f0d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  color: #9fb3a9;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  color: #e8f5ec;
}

h1 {
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ====== Colors & Semantics ====== */
:root {
  --bg-primary: #0a0f0d;
  --bg-secondary: #0d1512;
  --text-primary: #e8f5ec;
  --text-secondary: #9fb3a9;
  --text-muted: #5c7a6b;
  --text-dim: #7d9488;
  --accent-green: #8fe3a8;
  --accent-yellow: #e3c98f;
  --border-light: #1e2b25;
  --border-mid: #2a3a33;
  --border-dark: #16201b;
  --footer-text: #3d5348;
}

/* ====== Animations ====== */
@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.elka-cursor {
  color: var(--accent-green);
  animation: blink 1.1s step-end infinite;
}

/* ====== Link Styling ====== */
.elka-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.elka-link:hover {
  color: #b8f0ca !important;
}

/* ====== Layout ====== */
.elka-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Scanlines overlay — fixed, non-interactive */
.elka-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    #8fe3a8 0px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}

/* ====== Header ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  border-bottom: 1px solid var(--border-dark);
}

.header-logo {
  color: var(--accent-green);
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

nav a {
  color: var(--text-muted);
  padding-bottom: 2px;
  transition: color 0.15s;
}

nav a.active {
  color: var(--accent-green);
  border-bottom: 1px solid var(--accent-green);
}

nav a:not(.active):hover {
  color: #b8f0ca;
}

/* ====== Main Content ====== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px;
}

main.lab {
  justify-content: flex-start;
  padding: 64px 56px 80px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

/* ====== Terminal Prompt ====== */
.terminal-prompt {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* ====== Content Cards ====== */
.content-card {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 40px 44px;
  background: var(--bg-secondary);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* ====== Projects Grid ====== */
.projects-intro {
  margin-bottom: 48px;
}

.projects-intro h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.project-card {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-secondary);
  padding: 26px 28px;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: #33493e;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-module {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.project-status {
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 3px;
}

.status-online {
  color: var(--accent-green);
  border-color: #2a3a33;
}

.status-progress {
  color: var(--accent-yellow);
  border-color: #3a3327;
}

.status-explore {
  color: var(--text-dim);
  border-color: #26332c;
}

.project-description {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ====== Contact Page ====== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-label {
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 30px 0;
}

/* ====== Buttons ====== */
.button {
  display: inline-block;
  white-space: nowrap;
  border: 1px solid;
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}

.button-primary {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.button-primary:hover {
  color: #b8f0ca;
  border-color: #b8f0ca;
}

.button-secondary {
  border-color: var(--border-mid);
  color: var(--text-dim);
}

.button-secondary:hover {
  color: #b8f0ca;
  border-color: #b8f0ca;
}

.button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ====== Footer ====== */
footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 56px;
  color: var(--footer-text);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border-dark);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  header {
    padding: 20px 24px;
  }

  nav {
    gap: 20px;
    font-size: 12px;
  }

  main {
    padding: 40px 24px;
  }

  main.lab {
    padding: 40px 24px;
  }

  .content-card {
    padding: 30px 24px;
  }

  footer {
    padding: 16px 24px;
    font-size: 11px;
    flex-direction: column;
    gap: 8px;
  }

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