/* === Base === */
html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Links === */
a {
  color: #0366d6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #024ea4;
  text-decoration: underline;
}

/* === Navigation === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 3rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-nav .name-block h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.site-nav .name-block p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
}

.site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav .location {
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons img {
  width: 28px;
  height: 28px;
}

/* === Section Headings === */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.main-content .section-title {
  position: sticky;
  top: 110px;
  background: #fff;
  z-index: 50;
  padding-top: 0.75rem;
}

/* === Main Layout === */
.resume-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 4rem;
}

.main-content {
  min-width: 0;
}

.sidebar {
  min-width: 0;
  position: sticky;
  top: 120px;
  align-self: start;
}

/* === Work Experience === */
.job {
  margin-bottom: 2.5rem;
}

.job-header {
  margin-bottom: 0.5rem;
}

.job-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.job-title {
  font-size: 0.95rem;
  color: #666;
  font-weight: 400;
}

.job-date {
  font-size: 0.85rem;
  color: #999;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.job-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}

.job-description p {
  margin: 0.5rem 0;
}

.job-description ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.job-description li {
  margin-bottom: 0.35rem;
}

ul.job-description {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

ul.job-description li {
  margin-bottom: 0.5rem;
}

/* === Section Dividers === */
.section-divider {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 3rem 0;
}

/* === Education === */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.education-item .degree {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.education-item .school {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.education-item .year {
  font-size: 0.85rem;
  color: #999;
}

/* === Hobbies === */
.hobbies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hobby-item .hobby-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.hobby-item .hobby-details {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.hobby-item .hobby-details p {
  margin: 0.15rem 0;
}

.hobby-item .hobby-details ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.hobby-item .hobby-details li {
  margin-bottom: 0.3rem;
}

.hobby-item-wide {
  grid-column: 1 / -1;
}

/* === Skills === */
.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
  background: #f5f5f5;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.skill-tag:hover {
  background: #e8e8e8;
}

/* === Footer === */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: flex-end;
}

.site-footer a {
  font-size: 0.8rem;
  color: #999;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* === Responsive === */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .resume-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    order: -1;
  }

  .education-grid,
  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  .site-wrapper {
    padding: 0 1.25rem;
  }
}
