:root {
  --primary: #0366d6;
  --primary-dark: #024c8c;
  --text: #24292e;
  --text-light: #586069;
  --bg-light: #f6f8fa;
  --border: #e1e4e8;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

body {
  background: white;
}

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

/* Header */
header {
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

.tagline {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* About */
.about {
  margin: 20px 0;
}

.about > p {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 700px;
}

.expertise {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.expertise-item {
  flex: 1 1 calc(33.333% - 14px);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}

.expertise-label {
  display: block;
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 6px;
  color: var(--primary);
}

.expertise-desc {
  font-size: 0.9em;
  color: var(--text-light);
}

/* GitHub Stats */
.github-stats {
  margin: 40px 0;
  text-align: center;
}

.github-stats img {
  max-width: 100%;
  height: auto;
}

/* Main Content */
main {
  padding: 60px 0;
}

section {
  margin-bottom: 80px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
}

/* Project Cards */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.1);
  transform: translateY(-2px);
}

.project-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--primary);
}

.project-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95em;
}

.project-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.project-link:hover {
  border-bottom-color: var(--primary);
}

/* CTA Section */
.cta {
  background: var(--primary);
  color: white;
  padding: 60px 20px;
  border-radius: 8px;
  text-align: center;
  margin: 60px 0;
}

.cta h2 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9em;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .tagline {
    font-size: 1em;
  }

  header {
    padding: 40px 0;
  }

  main {
    padding: 40px 0;
  }

  section {
    margin-bottom: 50px;
  }

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

  .cta {
    padding: 40px 20px;
  }
}
