@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg);
}

.nav-link.active {
  background: var(--accent);
  color: white;
}

/* Main content */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-image {
  flex-shrink: 0;
}

.profile-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
}

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

.section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-intro {
  margin-bottom: 24px;
}

/* Exploring section */
.exploring-section {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.exploring-section h2 {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}

.exploring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.exploring-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.exploring-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.exploring-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Focus cards grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.focus-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.focus-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.focus-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact section */
.contact-section {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.contact-links a,
.contact-links span {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

/* Resume page */
.resume-page {
  max-width: 900px;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.resume-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.download-btn:hover {
  background: var(--accent-hover);
}

/* Resume article */
.resume {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 48px;
}

.resume-title {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.resume-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.resume-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.resume-summary {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Resume sections */
.resume-section {
  margin-bottom: 36px;
}

.resume-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 20px;
}

/* Education */
.education-item {
  margin-bottom: 16px;
}

.education-header {
  margin-bottom: 8px;
}

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

.education-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.education-specialization {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-left: 16px;
  margin-bottom: 12px;
}

/* Skills */
.skills-group {
  display: grid;
  gap: 16px;
}

.skill-category {
  display: grid;
  gap: 4px;
}

.skill-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skill-category p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Jobs */
.job {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

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

.job-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.job-roles {
  margin-bottom: 16px;
}

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

.role-title {
  font-style: italic;
  color: var(--text-muted);
}

.role-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.job-achievements {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.job-achievements li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.job-achievements li:last-child {
  margin-bottom: 0;
}

/* Project in resume */
.project-item h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

.project-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Projects page */
.project-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.project-card.featured {
  border-left: 4px solid var(--accent);
}

.project-card h2 {
  color: var(--text);
  margin-bottom: 12px;
}

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

.tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* Highlights list */
.highlights-list {
  display: grid;
  gap: 20px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  color: var(--accent);
}

.highlight-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-image {
    order: -1;
  }

  .profile-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .page {
    padding: 32px 16px 64px;
  }

  .resume {
    padding: 24px;
  }

  .resume-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .job-role {
    flex-direction: column;
    gap: 2px;
  }

  .education-row {
    flex-direction: column;
    gap: 2px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .highlight-item {
    flex-direction: column;
    text-align: center;
  }

  .highlight-icon {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
