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

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

body {
  font-family: 'JetBrains Mono', monospace;
  background: #f0f0f0;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

a {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #22c55e;
}

/* Terminal Window */
.terminal {
  width: 100%;
  max-width: 800px;
  background: #fafafa;
  border-radius: 10px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Terminal Header */
.terminal-header {
  background: #e8e8e8;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #d4d4d4;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

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

.terminal-title {
  font-size: 13px;
  color: #666;
  flex: 1;
  text-align: center;
  margin-right: 52px; /* offset for buttons */
}

/* Terminal Body */
.terminal-body {
  padding: 32px;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.prompt {
  font-size: 14px;
  color: #16a34a;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-content {
  padding-left: 16px;
}

/* About */
.name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.title {
  font-size: 14px;
  color: #444;
  margin-bottom: 2px;
}

.dim {
  color: #999;
}

.location {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.bio {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  max-width: 600px;
}

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

.lang {
  font-size: 13px;
  color: #666;
}

/* Technologies */
.tech-category {
  margin-bottom: 12px;
}

.tech-label {
  font-size: 13px;
  color: #16a34a;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #444;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: #16a34a;
  color: #16a34a;
}

/* Experience */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.experience-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.2s;
}

.experience-card:hover {
  border-color: #16a34a;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 15px;
  font-weight: 700;
}

.exp-period {
  font-size: 12px;
  color: #888;
}

.exp-role {
  font-size: 13px;
  color: #16a34a;
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-sm {
  font-size: 11px;
  padding: 2px 8px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #666;
}

/* Links */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  font-size: 14px;
  display: inline-block;
}

.link-prefix {
  color: #16a34a;
  margin-right: 4px;
}

/* Cursor */
.cursor-line {
  margin-top: 32px;
  font-size: 14px;
}

.prompt-inline {
  color: #16a34a;
  font-weight: 700;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: #1a1a1a;
}

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

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .terminal {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .terminal-body {
    padding: 24px 16px;
  }

  .terminal-title {
    font-size: 12px;
    margin-right: 40px;
  }

  .name {
    font-size: 20px;
  }

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

  .languages {
    gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body {
    padding: 20px;
  }

  .terminal {
    max-width: 90%;
  }
}
