/* ── Reset & Base ─────────────────────────────────── */

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

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --border: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #666666;
  --text-dim: #444444;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.08);
  --mono: "SF Mono", "Fira Code", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── Scanline effect ─────────────────────────────── */

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ── Container ───────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* ── Header ──────────────────────────────────────── */

header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

h1 {
  font-family: var(--sans);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Terminal prompt ─────────────────────────────── */

.terminal-prompt {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-symbol {
  color: var(--accent);
  user-select: none;
}

.typed-text {
  color: var(--text-dim);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-size: 0.7rem;
  line-height: 1;
}

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

/* ── Navigation / Links ──────────────────────────── */

.links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.separator {
  color: var(--text-dim);
  font-size: 0.7rem;
  user-select: none;
}

/* ── Sections ────────────────────────────────────── */

section {
  margin-bottom: 3rem;
}

h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-marker {
  color: var(--accent);
  margin-right: 0.25rem;
}

section > p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

/* ── Entries (Experience, Education, Projects) ──── */

.entry {
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s;
}

.entry:hover {
  border-left-color: var(--accent-dim);
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.entry h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.entry h3 a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dashed var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}

.entry h3 a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.entry-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.entry ul {
  list-style: none;
  padding: 0;
}

.entry ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}

.entry ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-weight: bold;
}

/* ── Skills ──────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skill-group h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 255, 136, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.tag:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.25);
}

/* ── Footer ──────────────────────────────────────── */

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 600px) {
  .container {
    padding: 2.5rem 1.25rem 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .entry-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Selection ───────────────────────────────────── */

::selection {
  background: rgba(0, 255, 136, 0.2);
  color: #ffffff;
}

/* ── Scrollbar ───────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
