:root {
  --bg: #0a0e14;
  --surface: #131820;
  --text: #e6edf3;
  --text-muted: #7d8590;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --border: #21262d;
  --terminal-green: #3fb950;
  --orange: #ff9500;
}

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

body {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 
               'Source Code Pro', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  max-width: 720px;
  width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

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

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s infinite;
  margin-left: 2px;
}

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

.lang-toggle {
  position: absolute;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent-dim);
  background: rgba(88, 166, 255, 0.1);
}

h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.title-tag {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.experience-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.experience-item:hover {
  border-color: var(--accent-dim);
}

.experience-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.experience-org {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.experience-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.skill-category:hover {
  border-color: var(--accent-dim);
  background: rgba(88, 166, 255, 0.05);
}

.skill-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

/* Tech Stack Styles */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.tech-category:hover {
  border-color: var(--accent-dim);
}

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

.tech-tag {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(88, 166, 255, 0.2);
  transform: translateY(-1px);
}

/* Projects Section */
.projects-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.projects-cta:hover {
  border-color: var(--accent-dim);
}

.projects-cta-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.projects-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.projects-cta-button:hover {
  background: rgba(88, 166, 255, 0.2);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.projects-cta-button .arrow {
  transition: transform 0.2s ease;
}

.projects-cta-button:hover .arrow {
  transform: translateX(4px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.project-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.project-link:hover {
  color: var(--accent);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

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

.project-tag {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--orange);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

.links {
  list-style: none;
}

.links li {
  margin-bottom: 0.75rem;
}

.links a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.links a::before {
  content: '→';
  color: var(--accent);
  font-weight: bold;
  transition: transform 0.2s ease;
}

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

.links a:hover::before {
  transform: translateX(4px);
}

footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-item {
    padding: 1rem;
  }
  
  .tech-category {
    padding: 1rem;
  }
  
  .project-card {
    padding: 1rem;
  }
  
  .terminal-header {
    flex-wrap: wrap;
  }
  
  .lang-toggle {
    position: static;
    margin-top: 0.5rem;
  }
}
