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

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1f1f1d;
  background-color: #fafaf9;
  padding: 1.5rem 1.5rem;
}

.container {
  max-width: 620px;
  margin: 0 auto;
}

.resume-container {
  max-width: 960px;
}

header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d9d9d6;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0dd;
}

.nav-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #787670;
  border-bottom: none;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #1f1f1d;
  border-bottom: none;
}

.nav-link.active {
  color: #1f1f1d;
  border-bottom: 2px solid #1f1f1d;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d9d9d6;
  flex-shrink: 0;
}

.header-content {
  flex: 1;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f1f1d;
  letter-spacing: -0.02em;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #1f1f1d;
  letter-spacing: -0.01em;
}

h2:first-of-type {
  margin-top: 0;
}

section:first-of-type h2,
section:nth-of-type(2) h2 {
  font-size: 1.75rem;
  margin-top: 0;
}

section:first-of-type p,
section:nth-of-type(2) p {
  font-size: 1.15rem;
  line-height: 1.8;
}

p {
  margin-bottom: 1.2rem;
  color: #3a3a38;
}

section {
  margin-bottom: 2rem;
}

section:first-of-type,
section:nth-of-type(2) {
  margin-bottom: 2.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #787670;
  font-style: italic;
}

ul {
  list-style: none;
  margin-bottom: 1.2rem;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #3a3a38;
}

ul li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: #787670;
}

.interests-list li:before {
  content: "→";
}

a {
  color: #1f1f1d;
  text-decoration: none;
  border-bottom: 1px solid #d9d9d6;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: #1f1f1d;
}

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

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.badge {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background-color: #f0f0ee;
  color: #3a3a38;
  border: 1px solid #e0e0dd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.badge:hover {
  background-color: #e5e5e3;
  border-color: #d0d0cd;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid #d9d9d6;
  text-align: center;
  font-size: 0.9rem;
  color: #787670;
}

/* Blog Styles */
.home-link {
  border-bottom: none;
}

.home-link:hover {
  opacity: 0.7;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  border: 1px solid #e0e0dd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: #d0d0cd;
}

.blog-card-link {
  display: block;
  border-bottom: none;
  color: inherit;
}

.blog-card-link:hover {
  border-bottom: none;
}

.blog-image-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f0f0ee;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f1f1d;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-description {
  color: #3a3a38;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #787670;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blog Post Styles */
.blog-post-header {
  margin-bottom: 3rem;
}

.blog-post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-post-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #787670;
  margin-bottom: 2rem;
}

.blog-post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-content h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #1f1f1d;
}

.blog-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.back-link:before {
  content: "← ";
}

/* Resume Styles */
.resume-header-section {
  background: linear-gradient(135deg, #f8f8f7 0%, #fafaf9 100%);
  border: 1px solid #e0e0dd;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.resume-title-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #d9d9d6;
}

.resume-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f1f1d;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.resume-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: #787670;
  font-weight: 500;
  margin: 0;
}

.resume-summary p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3a38;
  margin: 0;
}

.resume-section {
  margin-bottom: 3rem;
}

.resume-section-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f1f1d;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0dd;
  letter-spacing: -0.01em;
}

.experience-duration {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #787670;
  font-style: italic;
  margin-bottom: 2rem;
  display: inline-block;
  background-color: #f0f0ee;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.experience-card {
  background-color: #ffffff;
  border: 1px solid #e0e0dd;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.experience-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #d0d0cd;
  transform: translateY(-3px);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0ee;
  gap: 1rem;
}

.experience-title-group h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f1f1d;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.company-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: #787670;
  margin: 0;
  font-weight: 500;
}

.experience-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #787670;
  background-color: #f0f0ee;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}

.experience-role {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #3a3a38;
  margin-bottom: 1.25rem;
  font-style: italic;
  padding: 0.75rem 1rem;
  background-color: #f8f8f7;
  border-left: 3px solid #d9d9d6;
  border-radius: 4px;
}

.role-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0ee;
}

.role-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.experience-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #3a3a38;
  font-size: 0.98rem;
}

.experience-list li:before {
  content: "▸";
  position: absolute;
  left: 0.25rem;
  color: #787670;
  font-weight: bold;
}

.education-grid {
  display: grid;
  gap: 1.5rem;
}

.education-card {
  background-color: #ffffff;
  border: 1px solid #e0e0dd;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.education-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #d0d0cd;
  transform: translateY(-3px);
}

.education-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1f1d;
  margin: 0 0 0.75rem 0;
}

.education-school {
  font-size: 1rem;
  color: #3a3a38;
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.education-years {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #787670;
  margin: 0;
  font-weight: 500;
}

.achievements-container {
  display: grid;
  gap: 2rem;
}

.achievement-block {
  background-color: #ffffff;
  border: 1px solid #e0e0dd;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.achievement-block:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #d0d0cd;
  transform: translateY(-3px);
}

.achievement-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f1f1d;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0ee;
}

.achievement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.achievement-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.75;
  color: #3a3a38;
  font-size: 0.98rem;
}

.achievement-list li:before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  color: #787670;
  font-weight: bold;
}

.contact-info-container {
  display: grid;
  gap: 1.25rem;
}

.contact-item {
  background-color: #ffffff;
  border: 1px solid #e0e0dd;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.contact-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #d0d0cd;
  transform: translateY(-3px);
}

.contact-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #787670;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: #1f1f1d;
  border-bottom: 1px solid #d9d9d6;
  transition: all 0.2s ease;
  word-break: break-all;
}

.contact-link:hover {
  color: #3a3a38;
  border-bottom-color: #1f1f1d;
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
  }

  header {
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  section:first-of-type h2,
  section:nth-of-type(2) h2 {
    font-size: 1.5rem;
  }

  section:first-of-type p,
  section:nth-of-type(2) p {
    font-size: 1.05rem;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-image-container {
    height: 200px;
  }

  .blog-card-title {
    font-size: 1.2rem;
  }

  .blog-post-title {
    font-size: 1.8rem;
  }

  .blog-content h3 {
    font-size: 1.3rem;
  }

  /* Resume responsive styles */
  .resume-header-section {
    padding: 1.75rem;
    border-radius: 8px;
  }

  .resume-name {
    font-size: 1.75rem;
  }

  .resume-title {
    font-size: 1rem;
  }

  .resume-section-title {
    font-size: 1.4rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-date {
    align-self: flex-start;
  }

  .experience-title-group h3 {
    font-size: 1.2rem;
  }

  .experience-card {
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
  }

  .experience-role {
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
  }

  .experience-list li {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  .education-card,
  .achievement-block {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .achievement-list li {
    font-size: 0.95rem;
  }

  .contact-item {
    padding: 1.25rem;
  }

  .contact-label {
    font-size: 0.85rem;
  }

  .contact-link {
    font-size: 1rem;
  }
}
