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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* Hero */
.hero {
  margin-bottom: 3.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.125rem;
  color: #555;
  margin-top: 0.25rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-links a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.875rem;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
}

.contact-links a:hover {
  border-color: #1a1a1a;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 1.5rem;
}

/* Roles (Experience & Education) */
.role {
  margin-bottom: 2rem;
}

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

.role-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.meta {
  display: block;
  font-size: 0.8125rem;
  color: #777;
  margin-top: 0.125rem;
}

.role ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.role li {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.role li strong {
  color: #1a1a1a;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.project-title h3 {
  font-size: 1rem;
  font-weight: 600;
}

.stars {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  margin-left: 0.5rem;
}

.lang-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.lang-badge.python {
  background: #e8f0fe;
  color: #1a56db;
}

.lang-badge.c {
  background: #e8f5e9;
  color: #2e7d32;
}

.lang-badge.cpp {
  background: #fce4ec;
  color: #c62828;
}

.lang-badge.java {
  background: #fff3e0;
  color: #e65100;
}

.lang-badge.js {
  background: #fffde7;
  color: #f57f17;
}

.project-card p {
  font-size: 0.8125rem;
  color: #555;
  line-height: 1.5;
}

/* Skills */
.skill-group {
  margin-bottom: 1.25rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.tags span {
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 9999px;
  color: #444;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

footer p {
  font-size: 0.8125rem;
  color: #999;
}

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

  .hero h1 {
    font-size: 1.75rem;
  }

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

  .contact-links {
    gap: 0.75rem;
  }
}
