/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0e14;
  --bg-light: #111820;
  --bg-lighter: #1a2130;
  --green: #00ff9c;
  --cyan: #00d4ff;
  --yellow: #ffcc00;
  --red: #ff5f56;
  --orange: #ffbd2e;
  --text: #b3b9c5;
  --text-dim: #6b7280;
  --text-bright: #e4e8f0;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green);
}

::selection {
  background: var(--green);
  color: var(--bg);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Scanlines overlay ===== */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-lighter);
}

.nav-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: lowercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* ===== Prompt ===== */
.prompt {
  color: var(--green);
  margin-right: 8px;
}

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 56px;
}

.hero-prompt {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-title {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--cyan);
  margin-bottom: 32px;
  min-height: 1.5em;
}

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

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

.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.terminal-link {
  color: var(--text);
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--bg-lighter);
  border-radius: 4px;
  transition: all 0.2s;
  background: var(--bg-light);
}

.terminal-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(0, 255, 156, 0.05);
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.section-header {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 32px;
}

/* ===== Terminal Window ===== */
.terminal-window {
  background: var(--bg-light);
  border: 1px solid var(--bg-lighter);
  border-radius: 8px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-lighter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--orange); }
.dot.green { background: var(--green); }

.terminal-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 24px;
}

.terminal-body p {
  margin-bottom: 12px;
}

.terminal-body p:last-child {
  margin-bottom: 0;
}

/* ===== Experience ===== */
.exp-entry {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bg-lighter);
}

.exp-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.exp-role {
  font-size: 14px;
  color: var(--cyan);
}

.exp-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.exp-bullets {
  list-style: none;
  padding: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
}

.exp-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== Projects ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-light);
  border: 1px solid var(--bg-lighter);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.project-icon {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.project-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
}

.project-card p {
  font-size: 13px;
  margin-bottom: 16px;
}

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

.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-lighter);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  gap: 20px;
}

.skill-category {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.skill-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  min-width: 100px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  font-size: 13px;
  padding: 4px 12px;
  background: var(--bg-lighter);
  border-radius: 4px;
  color: var(--text);
  border: 1px solid transparent;
  transition: 0.2s;
}

.skill-item:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== Contact ===== */
.contact-body {
  text-align: center;
}

.contact-line {
  font-size: 18px;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.contact-desc {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-links .terminal-link {
  font-size: 15px;
  min-width: 280px;
  text-align: left;
}

/* ===== Footer ===== */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--bg-lighter);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.98);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--bg-lighter);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

  section {
    padding: 60px 0;
  }

  .skill-category {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero-links {
    flex-direction: column;
    gap: 12px;
  }

  .terminal-link {
    text-align: center;
  }
}
